When I run the debugger: "failed to set controlling terminal"

I see that this is old. However, it is unanswered and it is receiving significant views, hence…..
I read some answers and it said I needed to use `elf64` (not as the book said).
The book in question is really about programming in assembly language for Intel’s 32-bit x86  CPU’s, this is explicitly stated throughout, and in any of the marketing literature that I have seen. You’ll need to be mindful of subtle differences between the IA-32 and x86-64 architectures. If you are using a x86-64 PC, it stands to reason that some of the examples given in the text may need tweaking slightly.
In addition to changing elf to elf64, it would be wise to replace stabs with dwarf, as in my experience, assembling your program with stabs in x86-64 is not entirely compatible; stabs would be a more appropriate format for working with IA-32 Linux.
Again, it is up to you to decipher where the examples given in the text need adjusting for the change in technology.
nasm -f elf -g -F stabs eatsyscall.asm

becomes...............
nasm -f elf64 -g -F dwarf eatsyscall.asm

This should successfully compile your source code into a x86-64 compatible object code file.
...................................................................................................................................................................
Using elf format as opposed to elf64, will assembly a x86 object code file. You can then create a 32-bit executable using the following:
ld -m elf_i386 -o executablename objectfilename.o
Option -m is for Emulation (please see ld man pages). Here you can select your desired architecture, from those available. Using -m elf_i386 enables us to create a i386 executable on our x86-64 machine.
You can use option -V to get a list of available architectures; please see man pages for full details.
..............................................................................
I run in the terminal `kdbg eatsyscall.o`. It opens the Kdbg software and Kdbg: Program output
You will need to load an executable file into the debugger, not an object code file as above. You have already created this executable, assuming it was successful, when you ran the object module through the linker; as stated in your question.
Your main concern appears to be with the warning in the output terminal window.
The solution can be sought in the manual. I’ll reproduce the solution here, in case the URL fails in future.

When a program is debugged with KDbg for the first time, the program
output window is not used. The reason for this is that KDbg cannot know
whether the program requires sophisticated terminal emulation or if it
expects input through a terminal. So, a terminal emulator program is used
by default. In order to redirect the output to the output window, you must
do the following:

Open the Settings dialog by selecting Settings|This Program.
Switch to the Output tab.
Choose Only output, simple terminal emulation and click OK.
Reload the program by selecting it from the list in File|Recent >
Executables.


How to install Skype in Ubuntu Studio 16.04?

Just write it on terminal

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

I just tested it here, it works.


Building custom kernel for signed vmlinuz

For installation on EFI boot systems, vmulinuz has to be signed by a private key.  To do this, install the sbsigntool package.  You will also need to make keys with openssl and add your public key to the MOK list.  I'm far from an expert on this since I've only done it once, but hopefully this gets you on track.


SSH does not use UDP.

UDP is only used by alternative implementations like mosh.


Alienware 17 R4 Ubuntu 16.04 WiFi driver

Intel recently added the VID and PID to their backports, to install

sudo apt-get install git
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi
make defconfig-iwlwifi-public
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
make -j4
sudo make install
Reboot and if the wireless doesn't work, in terminal dmesg | grep iwl | nc termbin.com 9999 and post the URL from terminal in a comment as we made need to get firmware from upstream

After a kernel update you will need to

cd backport-iwlwifi
make clean
make defconfig-iwlwifi-public
make -j4
sudo make install


Preseed doesn't automatically select network interface on Ubuntu 14.04; automated install needs human input

This is (or was?) a reported bug. The solution was to try passing netcfg/choose_interface= YourInterface to the kernel as a boot option.


The command for saving a Vim file is :w and Enter in the Command mode. You can get the command mode by pressing the Esc key. If you want to save and exit the file it is :wq


run sudo apt depends <package name>
in your case sudo apt depends vlc


Brightness controls act different after waking from suspend on dual-boot Macbook Air 6.1

I started this as a question, but found the answer right where I should have been looking for it in the first place. On my hardware, the kernel module on that page solves every part of the problem I describe here.

May it save somebody else a few hours of futzing around (and also, may it teach me to rtfm!)


Brightness controls not working on a Sony Vaio VPCEH38FN

Run:

sudo gedit /etc/default/grub

Update these lines:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

... with the following arguments:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
GRUB_CMDLINE_LINUX="acpi_osi=Linux"

Then run sudo update-grub and reboot.


There is a fonts related bug in Ubuntu 16.04.

For instance, in previous Ubuntu versions the package ttf-devanagari-fonts was installed when you installed the Nepali language. However, that package is not available in the Ubuntu archive for 16.04. The replacement package, which ought to provide the necessary fonts for Nepali, is fonts-deva.

So, Bishal, it would be great if you could install fonts-deva from the Ubuntu archive, and confirm that it provides the fonts needed for a correct rendering of Nepali.

When the bug has been fixed, fonts-deva will automatically be installed when the Nepali language is installed.


Why does the common internet stop working when I connect to an OpenVPN server?

You are most likely tunneling ALL traffic through the VPN. This "feature" is enabled by default in Network Manager, and it doesn't care what you have your OpenVPN settings set to.

From the VPN config in Network Manager, click "IPV4 Settings" tab, then select “Automatic (VPN) addresses only” from the "Method:" dropdown.

I had this same issue for quite a while and figured it was an issue with my OpenVPN config file, but alas, it's a feature of Network Manager.

Edit: You may also have to add a DNS server like Google public DNS to your DNS server list.


Why does Chromium crash within seconds of starting?

Short answer

Start Chromium from a terminal with chromium-browser --password-store=basic
Log in to a web page (in my case, gmail)
Close Chromium
It should now start normally.

Reason

I found the bug is already reported here. My default starting page was the gmail login page (it's password pages that cause the crash).
I was able to start the program so that it stays open with the option '--password-store=basic'. Doing this seemed to fix some problem with my synced password keystore.


How to create & pin Unity shortcut to a specific command / shellscript

You need to setup the WMClass to rdesktop in your .desktop file. This one works for me:

[Desktop Entry]
Version=1.0
Type=Application
Name=Gacela
Exec=rdesktop #####:####
Icon=/usr/share/icons/gacela.png
Comment=Conexion co Gacela
Categories=Internet;
Terminal=false
StartupNotify=true
StartupWMClass=rdesktop
GenericName=

To get the WMClass of any running window, you need to use this command:

xprop

and click on the window that you want to identify. Look for the value of WM_CLASS in the output, or grep it if you prefer a smaller output:

xprop | grep WM_CLASS


OpenVPN on Ubuntu VPS Server lost connection

I solved the problems:

1 - Server doesn't access to internet after connection with VPN. Solution: add Google DNS to /etc/resolv.conf (nameserver 8.8.8.8 and nameserver 8.8.4.4)

2 - I cannot access to server after this connect with VPN. Solution: redirect the VPN traffic to real IP:

ip rule add from x.x.x.x table 128
ip route add table 128 to y.y.y.y/y dev ethX
ip route add table 128 default via z.z.z.z

Where x.x.x.x is your public IP, y.y.y.y/y should be the subnet of your public IP address, ethX should be your public Ethernet interface, and z.z.z.z should be the default gateway. Information obtained from here and here


How do I install the "Beeline" Hive client?

It is not necessary to install beeline/hive. All you have to do is collect the relevant jars from your system and copy them and place them in a single folder.

Suppose, we have a source system where you have beeline and a target system where you want to run beeline.

On the source system collect the relevant jars into one folder. The best way I have found to identify the exact jars involved is to use the jvm option: -verbose:class

I.e., you should be able to issue a java command that will replicate a typical beeline command invocation on the source system.

Then copy those files into one folder on the target system. cd to that folder to make the -classpath reference later simple.

I use an HDP 2.5 Hortonworks distro. For me, the following invocation on the target system works:
java -Xmx1024m -classpath apache-log4j-extras-1.2.17.jar:avatica-1.8.0.2.5.0.0-1245.jar:calcite-core-1.2.0.2.5.0.0-1245.jar:calcite-linq4j-1.2.0.2.5.0.0-1245.jar:commons-cli-1.2.jar:commons-codec-1.4.jar:commons-collections-3.2.2.jar:commons-configuration-1.6.jar:commons-lang-2.6.jar:commons-logging-1.1.3.jar:curator-client-2.6.0.jar:curator-framework-2.6.0.jar:derby-10.10.2.0.jar:guava-14.0.1.jar:hadoop-annotations-2.7.3.2.5.0.0-1245.jar:hadoop-auth-2.7.3.2.5.0.0-1245.jar:hadoop-common-2.7.3.2.5.0.0-1245.jar:hadoop-mapreduce-client-core-2.7.3.2.5.0.0-1245.jar:hive-beeline-1.2.1000.2.5.0.0-1245.jar:hive-exec-1.2.1000.2.5.0.0-1245.jar:hive-jdbc-1.2.1000.2.5.0.0-1245.jar:hive-jdbc-1.2.1000.2.5.0.0-1245-standalone.jar:jce.jar:jline-2.12.jar:jsse.jar:log4j-1.2.16.jar:rt.jar:slf4j-log4j12-1.7.10.jar:sunec.jar:sunjce_provider.jar:super-csv-2.2.0.jar:xercesImpl-2.9.1.jar -Dhdp.version=2.5.0.0-1245 -Djava.net.preferIPv4Stack=true -Dhdp.version=2.5.0.0-1245  -Dhadoop.log.dir=/home/userid -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/home/userid -Dhadoop.id.str=userid -Dhadoop.root.logger=INFO,console -Djava.library.path=:/home/userid -Dhadoop.policy.file=hadoop-policy.xml  -Djava.net.preferIPv4Stack=true -Djava.util.logging.config.file=/home/userid/parquet-logging.properties -Dlog4j.configuration=beeline-log4j.properties -Dhadoop.security.logger=INFO,NullAppender org.apache.hadoop.util.RunJar /home/userid/hive-beeline-1.2.1000.2.5.0.0-1245.jar org.apache.hive.beeline.BeeLine  -n userid -p pass -u "jdbc:hive2://knox.company.com:8000/;ssl=true;transportMode=http;httpPath=gateway/tdcprd/hive"

Some of the parameters are probably not necessary, but I kept them because that is how it is done on the source system. You should use source system's java invocation as a reference pattern.


Is it normal that mdadm has to start from scratch when I restart my computer while it's rebuilding the third disk?

Yes, that's normal if building the RAID wasn't done yet.

RAID 5 needs at least n-1 disks to be "built" completely (where "n" is the total number of disks in the RAID). As this was the first time you were (re)building them, all of them were only built for 60%, and none of them were marked as "complete".


Any alternative to XTerm with splitting and tabs?

Do sudo apt-get install suckless-tools, then run this command to have a tabbed xterm:

tabbed -c xterm -into &

Press Ctrl+Shift+Enter to open a new tab and Ctrl+Q to close a tab. You'll find more info in the man page for tabbed.


How do I install Docker on Ubuntu 16.04 LTS?

Docker comes in two flavours: The Comunity Edition (CE) and the Enterprise Edition (EE). See this question for the differences. Just take Docker CE if you don't know which to take.

There are two ways of installing it (thank you, Katu and Suor!). The official docker way is a bit more recent.

(A) Official Ubuntu Repositories

$ sudo apt-get install docker.io

In the past this way was discouraged as the docker package was super outdated. The universe sources are fairly recent now.

(B) Official Docker Way

The Ubuntu installation instructions list all you need in detail, but in most cases it boils down to:

(1) Set up the docker repository

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

(2) Install Docker CE

sudo apt-get update
sudo apt-get install docker-ce

(3) Verify the installation

sudo docker run hello-world

The latest version can be found here. It was 18.06 in November 2018. This version is available in the sources from above, whereas the default Ubuntu package sources only contain Docker 1.5 (source). You can find changes in the docker release notes. Version 1.5 is so old that I could not find out how old it is.


I can't install ubuntu, no caching folder found

I do not know what it can be, but I can suggest:

First, "No caching mode page found" is irrelevant. It shows up every time I boot my NAS and it works perfectly.

Second, and most likely, the image file you make those boot USB from is corrupted.

Third, try to boot something else than Ubuntu. "Gparted LiveCD" is my go to solution. Be mindful of difference between Legacy Boot and UEFI boot mode though.

Fourth, try plugging USB stick in the top left USB port on your PC back. It is, so to speak, "port №1" and some rare motherboards can't boot from anything else.


"gkr-pam: unable to locate daemon control file" warning

My ubuntu 20.04.2 has the same issue.
My workaround is comment this line at /etc/pam.d/gdm-password:
#auth    optional        pam_gnome_keyring.so
after that open terminal and type gdm3:
sudo systemctl restart gdm3.service


How to update the version of already installed GraphicsMagick in Ubuntu 14.04 LTS

As mentioned in the comments, I could only find GraphicsMagick 1.3.23 for Ubuntu 14.04. You can install it from the PPA at https://launchpad.net/~rwky/+archive/ubuntu/graphicsmagick using these commands:

sudo add-apt-repository ppa:rwky/graphicsmagick
sudo apt-get update
sudo apt-get install graphicsmagick
sudo apt-get install libgraphicsmagick3


I can actually duplicate that same problem.  I just got finished with it myself using the same version.

Because it is not just you, I would suppose that either you or I need to file a bug report via Banshee's Bugzilla.

EDIT:  bugzilla filing bug 632026


From the man page example of pam_umask

man pam_umask

  EXAMPLES
         Add the following line to /etc/pam.d/login to set the user specific umask at login:
      session optional pam_umask.so umask=0022

So in your case, use 0027 for the mask.


Is there Exec Shield buffer overflow protection for Ubuntu?

Ubuntu has NX protection enabled by default. This either uses hardware NX when the CPU supports it, or uses NX emulation in the kernel (the equivalent of the Red Hat Exec Shield patch).

For more information, visit:
https://wiki.ubuntu.com/Security/Features

more specifically:
https://wiki.ubuntu.com/Security/Features#nx


Ubuntu 14.04LTS after updates can't boot

If you go into BIOS and everything on the hardware end is working correct, then first try to run the file system check command from root. When you get to the Boot option screen select advanced options for Ubuntu 14.04. In the next screen select the highest number Ubuntu recovery mode, the number changes but the it's always chronological. When you get to the recovery menu, select root and enter, fsck -A , don't use the fsck selection it's actually a different command. Select Y for every option it gives. This could correct your problem. Then type exit. The recovery menu will then come back up. Select the network option to mount the file system it will return to the recovery menu when complete. Select dpgk ,this can take a wi when it finishes type exit. You will then return to the recovery menu and tell it to return to regular boot. If you can't get any boot menu or that fails, put a live disc of ubuntu 14.04 in, and select reinstall ubuntu. If this doesn't work, I NEED MORE INFO to help. TTFN, the toachGmon


If you have a nvidia card and want proper use of it you will need the nvidia driver! Concentrate your efforts there. Is there something 'not standard' about where/how your graphics card is installed? E.g. I used to have a motherboard that listed the pci numbers backwards. The nvidia installer can fall down in such cases, especially with 2 graphics cards. If you get a black screen

Ctrl+Alt+F2

login and attempt to fix/work out what is going on. If necessary you can uninstall the nvidia driver and reboot to get back to x.


You probably need swap space

I'm going to post this as an answer because it can address what you're describing. That does not mean it is absolutely the answer for your situation.

I have a computer with no swap partition on it. What you have said pretty much describes what I see happen when my RAM fills completely. Waiting (for a long time) may result in the system killing processes to free up RAM so you can work again.

The bottom line is, you either need to watch your RAM to make sure it doesn't fill up, or you need to create some swap space. Creating swap space is probably the better of the two routes. If you don't want to swap to your SSD, put the swap space on a different device. If you really want to just watch your ram, pull up a terminal window and run watch -t -n1 free -m.


x11 mouse themes not showing on desktop (unity)

You may need to restart some applications for the new theme to work. If you log out, and then log back in, the new cursors should show in those areas, rather than the old one.


Can you change where apt installs software?

From http://ubuntuforums.org/ via Abz's blog:

  To change apt cache permanently :

cd /new/cache/is/here
mkdir partial
nano /etc/apt/apt.conf

  Add this line:

dir::cache::archives /new/cache/is/here

  To change temporarily:

sudo apt-get -o dir::cache::archives="/new/cache/is/here" install packagename

  Or you can create a symbolic link (it will DELETE your current cache)

You can first move old cache files to somewhere else for safe keeping:

sudo mkdir /New_Location/newtmp
sudo cp -a /var/cache/apt/archives/* /New_Location/newtmp

Then create the symbolic link:

sudo rm -rf /var/cache/apt/archives
sudo ln -s /path/to/new/cache /var/cache/apt/archives

Finally move all your old cache files to your new cache location and clean up the temporary data:

sudo cp -a /New_Location/newtmp/* /path/to/new/cache
sudo rm -rf /New_Location/newtmp/


How to prevent system from being "minimized"

It's not that Canonical changed the image without users' consent.
What you get is the prepackaged ubuntu-minimal which is used by most cloud hosting providers and containers like Docker.

You can read more about what is Minimal Ubuntu.

Quote for context:

  Minimal Ubuntu is a set of Ubuntu images designed for automated deployment at scale and made available across a range of cloud substrates. They use the optimised kernels and optimised boot process on their target compute substrate. These images have a greatly reduced default package set, without many convenience tools for interactive usage. They are much smaller, boot faster, and will require fewer security updates over time since they have fewer packages installed.

To answer your question - you have more than one choice:

Use something other than ubuntu-minimal as a base image
Customize the image to include the packages you need


I don't have permissions to extract a theme to usr/share/docky/themes?

First extract the theme to your /home folder. Possibly a new folder will be created. (the theme folder)

Of course the permissions of /usr/share/ belongs to root. You can open a terminal and copy the entire folder (with the theme) with root privileges.

sudo cp -R /home/path/to/dir/theme/ /usr/share/docky/themes/

The -R means recursively , so the whole folder with the theme will be copied in /docky/themes/

Good Luck.


Are user files still private when two sudo users exist in Ubuntu?

If your colleague is in the sudoers list he is root as much as you if he wants it (and he can impersonate you too), and then he can see everything.

This is the worst setup you can have if you want user privacy. You should definitively read into how user management on Linux works. Here are a few articles yo can start with:

https://help.ubuntu.com/stable/ubuntu-help/user-accounts.html
How to manage users and groups?
https://help.ubuntu.com/community/EncryptedHome

And even then if someone has physical access to the machine in question, there is no privacy, he could drop at boot into a root shell and see everything no matter what, and if this would be password protected he could still use an USB stick and go in on this way.

So best thing in that case is proper user management, password for root, and encrypted drive and/or encrypted home directories.


How to install Eclipse Neon/Mars for C/C++ on ubuntu 14.04

Assuming you extracted the downloaded eclipse package and created a working eclipse.desktop launcher file, then your eclipse still needs at least an installed JRE (Java Runtime Environment) or an installed JDK (Java Development Kit - OpenJDK or OracleJDK) to work...

I would recommend you to install OracleJDK if you develop with Java as well, otherwise you only need the OracleJRE... I can post the instructions how to do this in a very clean way, if you need them...

Eclipse should locate your installed JRE/JDK automatically, if everything is installed properly...
alternatively you can tell eclipse, where to find the JRE/JDK:

open the eclipse.ini file with gedit (in your extracted eclipse folder) and edit it as follows:

...

openFile
--launcher.appendVmargs

# add these lines ----------------------------------------
-vm
/path-to-jre-or-jdk-folder/jdk1.8.0_version/bin
# --------------------------------------------------------

-vmargs

...

Replace 'path-to-jre-or-jdk-folder' with the real path on your computer and replace 'version' with the version number of your installed JRE/JDK...


Keyboard layout switching unvoluntarily when opening new application

IBus is intended to allow on-the-fly changes to the input method. Ащк учфьздуб ершы цфы ензувув гыштп Ctrl-Space to enter Cyrillic; and the same to switch back to my native layout. I also have it configured to accept Pinyin on request, and I'm just learning Chinese so I won't even demonstrate 中文.

Я не говорю на русском так что мой текст вероятно не имеет смысла.


Why does my Ubuntu 17.10 lock screen show "file 2 new notifications"

I found my answer by moving the mouse pointer up to the top of the screen by the current day and time.  Click on it and a drop down appears with a calendar on the right and notifications on the left.


That is normal, because GnomishDark is not a package that can be removed with the apt-get command.

When you install a theme, you are just putting the files into the appropriate folder. So all you need to do is remove the GnomishDark folder (and its subfolders). You can do this as described below:

If you have the theme in the /usr/share/themes directory, enter:

sudo rm -r /usr/share/themes/NAME_OF_THEME_FOLDER
If you have the theme in the ~/.themes directory, enter:

sudo rm -r ~/.themes/NAME_OF_THEME_FOLDER

-r is for recursive and tells rm to remove the parent folder as well as subfolders.


On Ubuntu focal, aptitude is available from universe repository, the dependency libapt-pkg6.0 is available from focale-updates.
sudo add-apt-repository universe
sudo apt update
sudo apt install aptitude


How do I get the return code of a command in a pipe, run as a background process?

You can access the PIPESTATUS variable inside the background process:
$ { rsync /non-existent-dir/ /another-dir2/ 2>&1 | tee outfile1 > outfile2 ; echo $PIPESTATUS } &

If you only want to know the exit status of the rsync command, you can simply use exit ${PIPESTATUS[0]} instead of the echo command. Otherwise you will have to use a temp file.
Reference: https://stackoverflow.com/a/50754377/13534737


Chromecast doesn't want to work with VLC 3.0.1

I faced the same problem and found that the issue was the Ubuntu firewall. I disabled it and all works.


Ubuntu Server VPS restore previous installation

That's not the way I would proceed.

I would

Take note of all config files I edit.
Create a script to automate that edit or to copy the edit over to a backup location. I would store these ON the server AND remotely (the 1st to quickly be able to restore a mistake; the 2nd in case of a reinstall).
Restoring a backup = clean install + restore edited files.

You should do this for all the different versions: using settings on 1 version of Ubuntu and then copy them over to another release is generally a bad idea. That would not take into account that releases change how they work. MySQL, as an example, drops settings in between releases and uses different setups between releases. You can not use all the different settings for MySQL 5.7 on MySQL 5.6 or on MySQL 5.5.


Assuming a static IP you add it in /etc/network/interfaces

auto <interface>
iface <interface> inet static
    address <yourIP>
    network <yourNetmask>
    gateway <yourGateway>
    dns-nameservers 103.241.42.2 127.0.0.53


How to customize Nautilus to display directory tree in the sidebar?

Install Nemo file manager in Ubuntu (Unity)

Warning: do not use this PPA if you're using Linux Mint or if you use Cinnamon in Ubuntu! Also, if you've added any Cinnamon PPAs, remove them before using the WebUpd8 Nemo PPA even if you didn't install Cinnamon, or else the Nemo version in the WebUpd8 Nemo PPA might be overwritten.

Update: the PPA now provides Nemo 2.8 for Ubuntu 15.10, 15.04 and 14.04.

Add the PPA and install the latest Nemo with Unity tweaks/fixes by using the commands below:

sudo add-apt-repository ppa:webupd8team/nemo
sudo apt-get update
sudo apt-get install nemo nemo-fileroller

To launch Nemo, search for "Nemo" in Dash - no application called "Nemo" will show up but instead an application called files should be displayed - that's the app you need to launch. Don't search for "Files" because that will also find Nautilus (which is also called "Files").

Why use Nemo? Well, Nemo comes with a huge number of features that no longer exist in Nautilus (including treeview sidebar option). To see other tips like make Nemo your default file manager, etc. go to:

http://www.webupd8.org/2013/10/install-nemo-with-unity-patches-and.html


matlab-support is described (via apt-cache search matlab-support) as:

matlab-support - distro integration for local MATLAB installations

it is NOT MATLAB, it is just the glue between MATLAB and your distribution. As the error message says, No default Matlab path found.

You will have to install MATLAB (probably, as @David Foerster says, by reading   How do I install the latest version of Matlab?


find with wildcard path and export the result to a file

You can use

find /path/to/root_folder -type d -name "match_string" -exec find "{}" -type f -name "*.ext" \; > ~/file_list

The command will search for all folders named match_string, then search for all files which names end with .ext in them and their subfolders and list all found files with their absolute pathes. The list will be stored in ~/file_list.

If you use

cd /path/to/root_folder
find -type d -name "match_string" -exec find "{}" -type f -name "*.ext" \; > ~/file_list

the files will be listed with relative pathes to the current directory, but the name of the current directory (which is path/to/root_folder) will not be displayed, instead ./ is displayed.


Installed Ubuntu on same partition as Windows 7. How can I unistall?

You'll have to reinstall Windows, since installing Ubuntu onto the same partition will have overwritten the data Windows needs to work.  If you don't like that, you might try to use a program such as GParted to see if you can recover your Windows data


What is the proper way to set custom windows decorations using KDE Plasma 5?

Well, I am answering my own question.

The theme I wanted to tweak was located at https://store.kde.org/p/1172409 - A.K.A, WindowsK10.  I downloaded the theme, unzipped, and un-tarred the file.  I took a look at what was provided - 1 text document which looks like a configuration file, and a bunch of .SVG vector image files.  I then found my installed version of the same theme at ...

~/.local/share/aurorae/themes/WindowsK10/

This particular theme is called an 'Aurorae Theme' whatever that is.  In the end there are no configurations for setting the colors I want to change.  Instead I must tweak the images - in this case the image was called 'decoration.svg'.  I used Inkscape to tweak the vector graphics and rebooted to see the effect.  I was able to change the color by changing some parts (embedded shape objects) of the graphic file.  Not really a user configurable thing.  Not sure who invented this strategy for themes but in my opinion this is really a weak strategy.  I suspect this is not the way KDE intended themes to be designed and distributed, but whatever.


If the processor is Intel Celeron, you have to make sure that ubuntu installer is 32 bit.


Problem was architecture:all in the debian control file, replacement of it by 'any' fixed the problem


Windows 10 and Ubuntu 16.04 dualboot renders Windows unbootable

BCD does not work well with hardware changes after install. When you get the error you should see a message like this:

Windows failed to start, a recent hardware or software change might be the cause. To fix the problem:

1. Insert your windows installation disc and restart your computer.

2. Choose your language setting, and then click "Next."

3. Click "Repair your computer."

If you do not have this disc, contact your system administratos or computer manufacturer for assistance.

Status: 0xc000000e

Info: the boot selection failed because a required device is inaccessible.

I can think in two solutions:

1) change the hardware order, this can be acomplished by changing SATA cable position on motherboard making linux last drive, i.e if you only have two drives, windows first, linux last. Or if your bios allows it change order inside bios (easy way).

2) If the first solution don't work (and probably won't) rebuild BCD, by making startup reparations with windows DVD, or try repairing with advanced startup F8.

EDIT (added more info):

Also won't hurt to check this info:
https://msdn.microsoft.com/en-us/library/windows/hardware/dn640535(v=vs.85).aspx

and in particular this Q/A:
https://msdn.microsoft.com/en-us/library/windows/hardware/dn640535(v=vs.85).aspx#gpt_faq_mixed_gpt_mbr


Operating System not found in 14.04.3 (32bit)

An error sign shows up: Could not detect which operating system is in the disc image. You will need to specify which operating system later.

Is NOT an error. It's just a warning.

Regarding the:

  Operating system not found

is almost always a wrongly configured VMWare. You will probably get better response on the VMWare website. A quick search shouws this with the same notice ("Operating system not found") and has a solution "you need to click the "connected" and "connect at power on" in the right top corner in order to make the iso to mount properly." That topic also points to vGeek on how to set up VMWare.


Check if it is a problem with drivers,.. or rather see this link https://help.ubuntu.com/16.04/ubuntu-help/sound-nosound.html

An Ubuntu documentation.


Read the drive

So first of all, to be able to read mac drives in Ubuntu you need hfsprogs.

sudo apt-get install hfsprogs

NOTE: if you get an error like E: Unable to locate package hfsprogs then you may need to enable the universe repository - see How do I enable the universe repository?

When this is installed, you should be able to open the drive with the file explorer (nautilus), just by clicking on the drive.

However, in your case, the disk is probably damaged. Ubuntu can try to fix some things, but there is no guarantee this will work, and it is a lot trickyer.

Fix the drive

Run the following command (replacing XY with the correct device) to fix the drive:

sudo fsck.hfsplus -f /dev/sdXY

Replace XY with the correct device. From your error message, I gather it is sda2, although it might be different on your iMac

If this doesn't fix your drive, I think it's hopeless. If the system files are corrupted, that means the drive is dying really fast. It could already be to late...


Can't use Win+E / Mod4+E shortcut under Ubuntu 18.04

Well, it's all related to the „ibus input method“ and the „GTK Emoji Selector“ as far as I could figure out. Being in a terminal (or any other gtk app, e.g. pluma) pressing ctrl-E, :-), enter gets you an actual unicode smiley,…  fancy, but obstructing in applications requiring this shortcut.

Most advice on the net highlights to use ibus-setup and remove or change the keyboard shortcut. As it turns out, the ibus package isn't even installed at all in Ubuntu MATE 18.04. Also, setting the general language input method from ibus to none in general language settings is not helping. It already is set to none.

So yes, it's a bit of a miracle where all of this got hardwired into Ubuntu 18…

The only thing that does work I found on superuser:

$> gnome-language-selector

set "Keyboard input method system: XIM"
(apply system-wide is not necessary.)

$> mate-session-save --logout   (or sudo reboot, as you wish)


The ingreslock port (tcp/1524 is being controlled by an entry in /etc/inetd.conf).

Essentially an interactive bash shell is being provided to the listening port; the seventh field of the inetd.conf entry shows this.

You can achieve similar results by creating a similar entry in inetd.conf or by creating your own service for xinetd to listen for.


sudo pip install virtualenv

The sudo means you're installing virtualenv with root. You need to install virtualenv to the user profile instead with just:

pip install virtualenv


Asus X550L Weak Wifi signal ubuntu 14.04

We need to install the 3290 driver go here and download the driver then:

We need to install some prerequisites to be able to compile the new driver.

sudo apt-get install --reinstall linux-headers-generic linux-headers-$(uname -r) build-essential dkms

We need to change to the directory the driver was downloaded too which should be the downloads folder.

Please copy and paste all commands one line at a time for accuracy:

cd Downloads

Now untar the driver to /usr/src directory

 sudo tar -xf rt3290sta-2.6.0.0.dkms.tar -C /usr/src

then do:

sudo dkms install -m rt3290sta -v 2.6.0.0 --force
echo "blacklist rt2800pci" | sudo tee -a /etc/modprobe.d/blacklist.conf
echo "blacklist rt2x00pci" | sudo tee -a /etc/modprobe.d/blacklist.conf

Reboot.
The directions to install come from the readme file of the driver and my own.

Now, check the settings in the router. WPA2-AES is preferred; not WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, I have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz.

I also have better luck with a fixed channel, either 1, or 11, rather than automatic channel selection. 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-fits-all setting. Find yours here: Country Code Then set it temporarily:

sudo iw reg set IS

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

gksudo gedit /etc/default/crda

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

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: IPV6 setting  This example is for ethernet, but you want wireless.


remounting read-only GPT filesystem as writable

First, be aware that your problem has nothing to do with GPT, except indirectly (as noted shortly). Also, as Ubuntu's fdisk doesn't support GPT, your fdisk output is worse than useless -- it's led you to believe that the disk has one partition, whereas it almost certainly has at least two. You should use parted or gdisk to view the partition table, as in:

sudo gdisk -l /dev/sda
sudo parted /dev/sda print

Most Mac disks have a FAT32 EFI System Partition (ESP) as the first partition, but this partition is unlikely to hold any data you want. The data you seek is probably on an HFS+ partition numbered 2 or above.

Once you've found and mounted your HFS+ partition, you may run into a permissions issue, because Ubuntu and OS X assign different user ID (UID) values to the first user by default. See the following question and answers for more on this issue:

How to manage permissions on a shared volume for OSX and ubuntu


Ubuntu 18.04: List View for Icons on the Desktop

It appears support for this feature has/is being stripped away by Nautilus.

https://www.omgubuntu.co.uk/2018/01/gnome-desktop-icons-removed-3-28

Also tried the work-around by using Nemo to manage the desktop.

https://www.linuxuprising.com/2018/07/how-to-replace-nautilus-with-nemo-file.html

Was not successful in getting Nemo to manage the desktop, perhaps due to the following bug: https://bugs.launchpad.net/ubuntu/+source/nemo/+bug/1742193


How to manage Ubuntu monitor from Windows 10 via usb cable

DisplayLink provides Ubuntu software, too: http://www.displaylink.com/downloads/ubuntu

Or you might be able to use xrandr, or the control center GUI.

Edit: Sorry, just realized you had tried it.  What wasn't working?  Do you have error output you could post?


How do I run a script on startup as superuser?

/etc/rc.local will run as root.

Most of the init process is run as root, or starts out that way.


Ubuntu 16.4 not recognising on-board graphics for 8th gen mobo Gigabyte Z370M

Fixed! Using the on-board graphics seems to have been the problem. Multiple suggestions to use-a-graphics-card were received. I borrowed an old card from a friend, put it in, computer works fine now.

Bigger picture, hardware seems to be getting unfriendly to Linux. One example - I bought a laptop to install Linux on - it just wouldn't install. Apparently, for security reasons, some CPUs/mobos/something won't run an OS unless it's got a magic key. I never verified this, but it matched my experience.


Restart a python script every hour or so

Best approach would be via GNU timeout  as in
timeout -k 3600 python3 /path/to/script.py

where -k stands for "kill after" and time in seconds.
So to have the script run, terminate and restart every hour, you could do
while timeout -k 3600 python3 /path/to/script; do
   sleep 2
done

where sleep 2 is merely to add small delay before restarting

Alternatively consider using Threading module in Python to schedule the relevant parts of the script instead. See  https://stackoverflow.com/a/50537798/3701431


I copy past the comment in the default confiugration file

Set this to 'yes' to enable PAM authentication, account processing,
and session processing. If this is enabled, PAM authentication will
be allowed through the ChallengeResponseAuthentication and
PasswordAuthentication.  Depending on your PAM configuration,
PAM authentication via ChallengeResponseAuthentication may bypass
the setting of "PermitRootLogin without-password".
If you just want the PAM account and session checks to run without
PAM authentication, then enable this but set PasswordAuthentication
and ChallengeResponseAuthentication to 'no'.

for those reason disabling only PasswordAuthentication and ChallengeResponseAuthentication let pam to be setup to handle account and session staff
I copy past what those modules type are meant for

account
this module type performs non-authentication based account management. It is typically used to restrict/permit access to a
service based on the time of day, currently available system resources
(maximum number of users) or perhaps the location of the applicant
user -- 'root' login only on the console.
session
this module type is associated with doing things that need to be done for the user before/after they can be given service. Such things
include the logging of information concerning the opening/closing of
some data exchange with a user, mounting directories, etc.

you could check the pamd configuration file in etc/pam.conf etc/pam.d/*
and doucle check what modules do.
Furthermore the connection termination message does not seem to be related to pam configuration...
it's sent by sshd specifically in clientloop.c function client_loop
         /*
          * In interactive mode (with pseudo tty) display a message indicating
          * that the connection has been closed.
          */
         if (have_pty && options.log_level != SYSLOG_LEVEL_QUIET) {
                 if ((r = sshbuf_putf(stderr_buffer,
                     "Connection to %.64s closed.\r\n", host)) != 0)
                         fatal("%s: buffer error: %s", __func__, ssh_err(r));
         }

in my case it prints that message no matter the value of UsePAM.


Internet connection fickle with 11.10, fine with 10.04 live CD

Atheros AR5008's have seen numerous problem reports.  On versions before Oneiric the following was one method to resolve connection issues - give it a try to see if the same solution works for oneiric.

sudo -s
echo "options ath9k nohwcrypt=1" > /etc/modprobe.d/ath9k.conf


No.

The official upgrade from LTS to LTS is possible when the 1st point release gets released (18.04.1). Current target for the release of the 1st point release is July 26th.

You can do sudo do-release-upgrade -d on a fully updated 16.04 if you want to upgrade from command line. Only do that when you know how to restore your backup.

Due to the changes between 16.04 desktop (unity) and 18.04 desktop (gnome 3), I would re-install anyways. Make sure you can restore a backup for your personal data.


The Software center depends on that service. You will figure it out if you try to remove it. BTW you can disable it using this approach by David Anderson

sudo chmod a-x /usr/share/oneconf/oneconf-service
sudo chmod a-x /usr/share/oneconf/oneconf-query
sudo chmod a-x /usr/share/oneconf/oneconf-update

In other words: change permissions for these files.


Can I have two sessions of tmux in separate panels?

Yes you can... just run tmux after TMUX= so you can have a nested session:

TMUX= tmux


Trying to copy a file from server to client

Basically, you keep using incorrect syntax (including your before edited versions of the command).

scp jay@192.168.1.129:/home/jay/sshd* ./

should work. Or this , if I have client and server backwards:

scp sshd* jay@192.168.1.129:/home/jay/

By the way, I much prefer to keep the original time stamp:

scp -p sshd* jay@192.168.1.129:/home/jay/


can't find information on creating a 1TB partition

Okay, I figured that since no one knew what was going on, I would go through the entire process again. I'm not sure what happened the first time, but this time everything worked correctly, and I have the full drive formatted and sdb1 is now the full available space for the drive.


Ubuntu 18.10 Headphones/Speakers "linked" (Speakers have no sound)

Fixed the issue myself by guessing which one would be the right path. It turned out to be:

analog-output-speaker

So, in case you are a similar problem with one of those old netbooks with Intel Atom, try to follow the solution I posted in the question and use that path.


Matlab freezes after calling a figure function in Ubuntu 15.04

I also had GL issues. Matlab support team recommended I start matlab with -softwareopengl flag. Figures don't look as good this way, diagonal lines don't get smoothed so you see "steps", but no more crashes for me when I see figures.


Can’t change brightness of Thinkpad X1 Extreme 4K in Ubuntu 18.10

As I was in the same situation, I found compromise solution that I want to describe.

First, in order to install Ubuntu 18.01, it was first necessary to change in the BIOS the video setting from "Hybrid graphics" to "Discrete graphics" (which bricked the machine because of a bug in the BIOS, but the machine got replaced after a month, but this is another story).

Finally, with Discrete mode On, I could install Ubuntu 18.01. But then this brightness stuff didn't work. When going back into BIOS and switching to Hybrid mode, then the graphics wouldn't work.

So, I installed the proprietary (non opensource) Nvidia drivers through the "Software & Updates" Program. Rebooted, still no possibility to adjust brightness.

But now, with the proprietary Nvidia driver I can switch the BIOS setting to Hybrid mode again, and then the brightness controls work!


Problem with AMD HD8670M + fglrx driver in ubuntu 13.10

Follow the below tutorial, it worked for me :

http://xpressrazor.wordpress.com/2013/05/31/fix-catalyst-driver-in-ubuntu-13-04/


I'm using Ubuntu Server for a simple home server - do I need cloud-init?

Cloudinit is really for customization of images in the cloud. If for example you had a cluster of servers, networked together to create your own cloud server. You could use cloudinit to create a series of scripts to help you with creation of your servers, i.e. a script that customizes the name and dns for each server that's started. To add and remove dns entries as need be. This functionality is great if you have a lot of virtualized servers but not so much if all you have is one or two boxes with no intention of taking them into the cloud.

Documentation


How would one install a side by side installation of Python 2.x, and Python 3.x

Python 3 is available from the repositories and can be installed side by side with Python 2:

sudo apt-get install python3 python

You can use the -V switch to find out the minor version numbers:

$ python3 -V
Python 3.1.2

$ python -V
python 2.6.6


Preferences => Mouse & Touchpad => Mouse => General => Show position of pointer when the Control key is pressed.


upgrading 14.04 to 15.04 fails with infinite loop

Ubuntu 15.04 is end-of-life this month (Jan-2016).

To upgrade from 14.04 LTS (to 15.04) would only have been supported via 14.10 (which is no longer supported).

What you were attempting is NOT supported.

You need to re-install either Ubuntu 14.04 LTS or 15.10 ..

Note: If you do NOT already have backup of any data (or settings), then you need to recover that data BEFORE the new install.


Keep 3.13 kernel, update it, but no upgrades to newer kernels

If your Ubuntu 14.04.x currently has the 3.13 kernel, it will not be upgraded to any other major version.

You can safely update the system.


Could be as simple as a routing issue. Check the netmask and the routes on the client ("ifconfig pppX; route" for a Unix-y machine, probably ipconfig /something on Windows) to make sure packets from the client from the wider network would be sent down the link. Then check the other way around - would the routing table on the network devices forward packets for the client's IP address to the VPN server ..


Running Transmission depending on which wi-fi you are connected to

Write a script, call it check_transmission, save it in ~/bin/check_transmission

#!/bin/bash

# Set your HOME_ESSID here, make note of single and double quotes
HOME_ESSID='ESSID:"your_wireless_home_network_name"'

# Get your current MY_ESSID (network name)
MY_ESSID=$(iwconfig | awk '/ESSID {print $4}')

# Test if you are on your home network and if so
# Start Transmission
[ ${MY_ESSID} == ${HOME_ESSID} ] && transmission &

Make it executable

chmod u+x ~/check_transmission

Run gnome-session-properties and add it to your startup programs

(Use the "Add" button , put /home/your_user/check_transmission in the dialog)


Try installing from Ubuntu Apps, just click Gwibber .


Does bcache require a fresh installation?

There is no need for a fresh install.  See the blocks README and the bcache FAQ.  To enable bcache on your root filesystem, you would convert the root device with blocks, whether or not you have a fresh install.

ObDisclaimer:  I wrote the conversion tool.


Create a simple bash  script with following contents:

#!/bin/bash
command='<your-command>'
eval $command
dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver',member='ActiveChanged'" | while read line ; do
        if [ x"$(echo "$line" | grep 'boolean false')" != x ] ; then
           eval $command
        fi
done

Now Add it to Startup applications -> Add  and type : bash  <path-to-script> in Command box.


How to mount a luks encrypted partition at boot

The solution was to add this secret-disk   /dev/sda3   none luks to the /etc/crypttab file as admin and reboot. The passphrase will be requested, and the encrypted partition unlocked.


How to open Mono app with GUI in Linux server without X?

Undo your superstitious setting of $DISPLAY. It's trying to access the (nonexistent) X Server on "This server is only access through ssh and has no graphical interface". Uninstalling xserver-xorg is optional, but you must fix $DISPLAY.

On your originating system, initiate the connection using the -X or -Y option (see man ssh). You may have to xhost + the server.

And you need an X server on the client. – @bodhi.zazen


Why should I use gksudo for Gtk apps instead of sudo?

Source.

There are other times, though, when side effects can be as mild as Firefox extensions not sticking or as extreme as as not being able to log in any more because the permissions on your .ICEauthority changed.

These errors occur because sometimes when sudo launches an application, it launches with root privileges but uses the user's configuration file.

For example, if you launch Firefox with the command

 gksudo firefox

it uses root's Firefox configuration file.

But if you launch Firefox with the command

 sudo firefox

it runs with root privileges but uses the user's configuration file.


How can I disable NeoGrub Bootloader on Console?

You need to repair your windows bootloader and then make grub2 as default bootloader.To do that follow the below steps,

Boot windows installation disk then select the "windows repair" or "repair your computer" option before you go into the installation process.
After selecting windows repair option,it will take you to the next screen.In that screen select the "command prompt" option
Then run the below commands,on it.

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

This will repair your windows bootloader.
Atlast ran boot-repair-disk and click on the recommended repair option.Now it works.


NTFS filesystem not being read on my Windows Dualboot

Try formatting the partition in Windows and see if Ubuntu reads it.


Ubuntu 16.04 installer can't find my SSD on my Dell XPS 15

You will need to switch the SSD controller mode in BIOS settings (press F12 when booting) from "RAID" to "AHCI", as right now Linux doesn't have the firmware support for the former mode, so cannot recognise the SSD drive.


Brightness & Lock missing in System Settings - can't change screen locking time

Actually, brightness settings are not listed under settings, AFAIK. I just checked. Instead, they are either on your monitor, embedded in your laptop (if you use one) or are with your graphics drivers. Usually, with an AMD GPU, typing gksudo amdcccle will open the Catalyst Control Center--here, you can edit brightness. Example:

If you use NVIDIA, just a search for "NVIDIA" in the dash should bring up a config.


Meld Installation Ubuntu 10.10 not working

If you still want to use meld on 10.10,

Please try this package: http://launchpadlibrarian.net/55033915/meld_1.3.2-1ubuntu1_all.deb

It came from https://launchpad.net/ubuntu/maverick/i386/meld/1.3.2-1ubuntu1

Or you could pick an older verion here.


How do I remove computer name from the command line prompt?

Edit your .bashrc, change PS1 to:

PS1='\u:\w\$'


Intallation of Netgear N300 Wireless adapter on Dell Latitude D830

izx -- it's also a wireless USB adapter. That would have been obvious to you if you spent 10 seconds on google before telling the OP that the object he is currently holding in his hand doesn't exist.

To the OP: check this thread. The answer there will work for 12.04, as well.


How can I clear history and settings for the Remote Desktop Viewer (Vinagre)?

Found it here:
~/.local/share/vinagre/history

Open it with your favorite text editor and go to town or simply delete the file.


Hide unmanaged network interfaces in Ubuntu

There is a GNOME Shell extension that hides unmanaged network devices: nm-hide-unmanaged

You have to install it manually according to the instructions in the README (it doesn't appear to be available from the GNOME extensions directory).


To detect your USB device, in a terminal, you can try:

lsusb , example:

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 046d:0809 Logitech, Inc. Webcam Pro 9000
Bus 003 Device 002: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse

or this powerful tool, lsinput ,
1st install it, and then try it, it lists all input devices including your USB device :

sudo apt-get install input-utils
lsinput

example:

$ lsinput
/dev/input/event0
...

/dev/input/event1
...

/dev/input/event2
...

/dev/input/event3
bustype : BUS_USB
vendor  : 0x46d
product : 0xc016
version : 272
name    : "Logitech Optical USB Mouse"
phys    : "usb-0000:00:1d.1-2/input0"
uniq    : ""
bits ev : EV_SYN EV_KEY EV_REL EV_MSC

udevadm , with this command line, you need to unplug the device before using the command and then plug it to see it:

$ udevadm monitor --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
UDEV  [1915.787445] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-2 (usb)
UDEV  [1915.796226] add      /devices/pci0000:00/0000:00:1d.3/usb5/5-2/5-2:1.0 (usb)

But it might not work. In my case I m trying to make my Leapfrog Tag run on Ubuntu without success.


"The daemon is being inhibited" error message when mounting volumes on a partitioned external HD

The error message "The daemon is being inhibited" is probably the clue here.

There is a ubuntuforum entry here with a few suggestions that you can copy and paste into a terminal:

Potential Solution 1

sudo killall udisks

Potential Solution 2

sudo apt-get install udisks libgdu0 gnome-disk-utility policykit-desktop-privileges --reinstall


First try to repair the display manager

start lightdm service, it is maybe stopped

sudo service lightdm start

reconfigure, In case the first option doesn't work

sudo dpkg-reconfigure lightdm

reinstall. The worst case

sudo apt-get install --reinstall lightdm

I suggest you to install Gnome. It's my preferred Desktop Environment

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell


Running Ubuntu in the new Windows 10 using WSL Windows System for Linux (not hyper-V)

I recommend ubuntu 19.04 then ubuntu 20.04 LTS when it comes out next year

and VirtualBox for the VM software.


how to reset DNS settings to the defaults?

First, your /etc/systemd/resolved.conf should look like:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=yes
#DNSStubListener=yes

Then run: sudo rm /etc/resolv.conf && sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

And check your systemd-resolved is enabled with: systemctl status systemd-resolved.service and if not then enable it: systemctl enable systemd-resolved.service and start: systemctl start systemd-resolved.service

Seems, that's all.


how to drag a folders or files on an application?

After long searching in the sources and other topics here on this board:

No, Ubuntu is not designed for having simple drag and drop operations between File manager and applications, despite they copied a lot from OSX and others but just not the more important functionality nor implementing such things right.


just check with

du -hsx /* | sort -rh | head -10

you folder sizes of your system. Maybe there are some big files you doesn't need.

Alterative you can enlarge you root partition.


Screen temporarily turning black when switching workspaces and applications

I guess it was an issue with the drivers. A reinstall of Ubuntu (overkill, perhaps, but I think it was not a bad idea for other reasons too) seems to have fixed the problem.


External monitors not detected after BIOS update

Turns out that the Secure Boot was activated again, so I just had to go to BIOS menu and deactivate it.


The important part is in your message:

"The file '/home/mike/Downloads/minecraft.jar' is not marked as
executable. If this was downloaded or copied from an untrusted
source, it may be dangerous to run. For more details, read about the
executable bit."

Command line
The command:
sudo chmod +x /home/mike/Downloads/minecraft.jar

will make it executable. Be sure to read the 2nd part of the message: make sure you got it from a trusted source.

GUI
If it is easier for you, you can also view the file with Nautilus and richt click it, open Properties, open the Permissions tab,  and tick the box that says:
Execute: Allow executing file as a program.

Other
From a very reliable source I have been told you can also do:
java -jar /home/mike/Downloads/minecraft.jar


How do I know my fan is working in Ubuntu

Try using HardInfo which is very useful GUI application to know all information about system & hardware.

Install HardInfo by sudo apt-get install hardinfo

Here is screen-shot where fan info is displayed.

Hope this helps.


By design, it is not possible to create a keyboard shortcut that uses multiple non-modifier keys.

Imagine you've created shortcuts for both Super+Up and Super+Up+Left. When you press Super+Up, how will the computer know whether to execute the shortcut or keep waiting for more keys?


Help with restoring windows 7 boot from ubuntu grub

Boot from live usb
Take backup of important data
Delete the partitions properly
Format with desired OS


Found the answer to my problem. The directory or file created had a space at the end of the filename. At least the android version of the app cannot handle a space at the end of the filename or directory name.

I figured out how the space was added. It was done automatically by my keyboard application.

I figured this all out by using "adb logcat" and examining the error message in detail.


How to configure characters composition without the compose key

I have found the solution just by trying other options from Settings > Region & Language. The correct Input Sources is English (US, intl. with dead keys):

If the cedilla (ç) is not working:

Edit the file /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache and locate the line starting with "cedilla". Add the locale en at the end of the last string, example:
"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"

Replace the character ć with ç in the Compose file:
sudo sed -i /usr/share/X11/locale/en_US.UTF-8/Compose -e 's/ć/ç/g' -e 's/Ć/Ç/g'

Modify the file /etc/environment adding these lines:
GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla

Reboot the system


Own Python app + other apps makes system freeze - where to start searching for issues?

Tune Swap...

We try to temporarily fine-tune your system with:

sudo sysctl vm.swappiness=80

With only 8G RAM, this will force the system to use more swap.

Update the BIOS...

HP Notebook 15-ay143tx

Your BIOS is currently F.21

As per this web page, the current BIOS is F.48, from Jan 10, 2020.

download the update
backup important files
install the newer BIOS

Update #1:

Since tuning vm.swappiness, we see an improvement in system performance, so we'll make it permanent with these commands...

sudo sysctl -w vm.swappiness=80

sudo sysctl -p

Ultimately more RAM and more SWAP would make further improvement.


I'm addressing the part of your question for having a Windows Installation on a USB that you can plug into any computer, and run Windows.     You also wanted to do this from you Ubuntu OS without any special tools.  The applications used are available from the Repository.

Virtualbox
Gparted

You can do this by installing Virtualbox:

$ sudo apt install virtualbox

Follow the GUI to create a Windo Windows 10
Machine.

Connect your Windows 10 ISO to the virtual machine and install Windows 10.

Make sure you the virtual machine is not larger than your USB drive.

Install Windows 10 to the VM.

Then go to the folder of the Windows 10 machine and run this to create an image of the vdi file.

$ VBoxManage clonehd ["Windows 10.vdi"] ["win10.img"] --format RAW

The first parameter is the name of your windows vdi file (not including the brackets).  The second parameter is the name you decide to call the image file.

Now run this dd command to write the image to your pendrive.

$ sudo dd if=[win10.img] of=[/dev/sdc] bs=4M status=progress

Again, the names in the brackets are a variable.  Replace those names with your actual file and device on your system.

Us Gparted to fix the integrity of your created Pendrive.

$ sudo apt install gparted

It's important to have your Windows Installation drive smaller than your destination pendrive.  When the company finishes you will have unallocated space, the difference between the larger drive.  You can fix this by running Gparted to resize your Windows Installed partition.


How do I reinstall shared dependencies after upgrade to 16.04?

I had this exact same problem after the 16.04 upgrade.

The thing is that I had emacs built from source, so I solved it by: re-downloading the source package, compiling & re-installing.

See https://www.gnu.org/software/emacs/manual/html_node/efaq/Installing-Emacs.html for specific instructions.

Hope it helps.


I think the answers given so far are a bit over-complicating things. There is no separate script required, the relevant DBus commands can be sent directly via dbus-send. Just make sure that the dbus package is installed and in the command line issue the following commands:

mkdir -p ~/.local/share/applications
cp /usr/share/applications/spotify.desktop ~/.local/share/applications/

Edit the file ~/.local/share/applications/spotify.desktop to read:

[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Listen to music using Spotify
Icon=spotify-client
Exec=spotify %U
TryExec=spotify
Terminal=false
Type=Application
Categories=Qt;Audio;Music;Player;AudioVideo
MimeType=x-scheme-handler/spotify
# ====> MODIFICATIONS START HERE <=====
Actions=PlayPause;Next;Previous

[Desktop Action PlayPause]
Name=Play/Pause
Exec=dbus-send --print-reply=literal --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
OnlyShowIn=Messaging Menu;Unity;

[Desktop Action Next]
Name=Next
Exec=dbus-send --print-reply=literal --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
OnlyShowIn=Messaging Menu;Unity;

[Desktop Action Previous]
Name=Previous
Exec=dbus-send --print-reply=literal --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
OnlyShowIn=Messaging Menu;Unity;

And you're done.


D-Link DWA-131 does not work in Ubuntu 18.04

You have several possibly conflicting drivers loaded. The driver rtl8xxxu should drive the USB well. Let's blacklist all others and see if the USB now works as expected. From the terminal:

sudo -i
echo "blacklist rtl8188ee"  >>  /etc/modprobe.d/blacklist.conf
echo "blacklist 8192eu"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and tell us if there is any improvement.


In no modern Operating System viruses are an issue for the sensible user. So viruses are an issue if you're not sensible.

Viruses in fact don't get harmful unless you actually run them. That's almost the same in every different O.S., and do mistrust people telling you "Linux is good because Windows has got viruses" because it's nonsense. Linux (and Ubuntu) is good for many reasons, but this has nothing to do with viruses.

However, running Ubuntu or Linux in general lets you be statistically less prone to get infected by viruses. Ubuntu encourages users to choose official repositories as the main source of software (which are safe), and running an executable by double-click is less easy than in Windows.

But you can still get into a website that asks you to add a poisoning repository, or to install a malicious .deb (with double-click) to add some awesome functionality Ubuntu is missing.

So viruses are a problem because of the user, not because of the system (which in most cases is an innocent victim), even if in some old Windows systems (95, 98, ME but also old versions of XP) one could get a virus without doing anything unsafe, just through some vulnerability of the system. But leaving out pointless chat topics (Micro$oft is baaad, etc...) nowadays Windows systems are safe enough for the use cases they're intended and do get infected because of user inexperience and IT unknowing.

So, to answer your question:

Windows users are usually less competent users and get infected with ease
Ubuntu users use repositories which are safe

In no way Ubuntu is stronger towards viruses, I can write one tomorrow, pack it in a .deb, and it would be insidious and destructive also because people think "linux has no viruses". Linux has no viruses until you create one, which can be done in minutes, assuming you can convince the victim that it is safe to execute it.


You can't take any installed programs from Windows to Ubuntu Linux. After installing Ubuntu, you have to install any program you need.

You have to install DotA2 and the Steam Client after installing Ubuntu. I know, downloading DotA2 takes ages...
There is no MS Office for any Linux Version. And I doubt ther will ever be one. However, Ubuntu comes along with a preinstalled version of LibreOffice, which is compatible with MS Office documents to about 95% (estimated by be...). You have to make a backup of your files before installing Ubuntu.
The installation progress will wipe your whole HDD, as long as you don't have your files on a second partition and then partition your HDD manually.
If these programs are available for Ubuntu, you can install them after the Ubuntu installation.
The AMD driver fglrx for the AMD Radeon R7-250 can be installed via Ubuntu's driver manager.


In case anyone else lands here and updating doesn't help, this LINK helped me resolve the issue. Apparently it's a path issue.

So, quoting the answer from the link, simply create a ~/.curlrc file and put in the file:

capath=/etc/ssl/certs/
cacert=/etc/ssl/certs/ca-certificates.crt


wipe windows and everything else, then install Ubuntu

Just put in the Ubuntu LiveCD, tell it to install Ubuntu, and let it automatically partition the whole disk. That should do it.


Tem pra todos os Linuxers, Impressora e Escaner (Have to all Linuxers, printer and scanner) :
http://download.ebz.epson.net/dsc/search/01/search/searchModule


Xubuntu slow login, unable to go back to login screen. How to debug?

I edited /usr/share/gvfs/mounts/network.mount by running:

sudo nano /usr/share/gvfs/mounts/network.mount

Then I made the [Mount] section look like this:

[Mount]
Type=network
Exec=/usr/lib/gvfs/gvfsd-network
AutoMount=false

In particular, I did this by changing the value of AutoMount from true to false.


There are not that many alternatives, but we can still build a list:

GPLI + OCS - this is the most common set up on Debian based distributions. Since you are new to this field I would advise you to start here, counting on its large community.

Pulse 2 - a project by Mandriva that looks very mature with lots of features. In principle also backed by a strong community, but concieved for a different distribution.

Snipe IT - recent, with not that many features, but uses Bootstrap and looks very nice.

FusionInventory - this is an alternative to OCS, meaning that you will still need GPLI to keep a centralised inventory.

Extra: There is a recent GPLI + OCS installation guide at Ubuntu Geek.


Unity dashboard does not start on desktop

Try unity --reset and be aware that this will reset all your Unity settings to default.


How to download large Google Drive file with resume support in Ubuntu?

I had the same issue downloading files using downloaders. The issue is when you are logged in with any Gmail account,  google generates a different link. What I do is, I generate a shareable link and open that link in incognito mode, then just added the link to downloader and it works. And now the download link generated is a different one.

More Clear Solution (Changed)

Open Browser in Private/incognito mode
Open the download url  for example it is "https://docs.google.com/uc?id=0B08CMVb2YK_EMkUyRmc4a0NtazQ&export=download"
File size is larger so it will show you warning just click Download anyway the file will start downloading.
Now goto downloads and copy real link form it, that will be like "https://doc-10-4c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/eia3v63medr04gs1ralifdfml72cmc8k/1469383200000/0595560048316020307/0B08CMVb2YK_EMkUyRmc4a0NtazQ?e=download". For each time/session you will get changed/new link
Now add this link to the uget/idm/xdm it will start downloading.

Tools Info
UGet+ Chrome


Yes, you'll find that behavior available with Unity as well. Launcher icons will have multiple small arrows to the left of them when multiple windows of the same application are open. Click that application's icon again to change between individual windows.

You can edit the behavior of this and many, many other Unity/Compiz desktop settings using CompizConfig Settings Manager (ccsm), which you can find in the Ubuntu Software Centre.


Remove all data and settings of an uninstalled application

You can use apt-get purge for the same exact purpose, here is an example:

First remove your desired program using apt remove, then run:

dpkg -l package-name

You should get:

||/ Name              Version       Architecture  Description
+++-=================-=============-=============-====================
rc  package-name      1.1            amd64        something

RC means:

r package has been removed.
c configuration files still lives on your system

Now use apt-get purge for exact same program, this time dpkg -l package-name output should be like:

||/ Name              Version       Architecture  Description
+++-=================-=============-=============-====================
un  package-name      <none>        <none>        (no description available)


Plasma hangs when I try to switch desktops

OK, got it, it is kwin dying for some reason.

If you have the same issue, you may press alt+f2 or alt+space or whatever your hotkey for executing a command is and

kwin_x11

restarts kwin. Since the issue doesn't happen too often, I am satisfied with this workaround.


Home launcher disappeared, how do I get it back?

try pressing alt+f2 and then type the following.

unity --reset-icons

How do I reset my Unity configuration?


Ubuntu 16.04 not showing battery indicator

if you need it desperately then, just re-install ubuntu-desktop

to remove :

sudo apt-get autoremove ubuntu-desktop

and to again install it:

sudo apt-get install ubuntu-desktop


Uninstall Ubuntu 14.10 from Windows 8.1 computer

Computers that ship with Windows 8 or later are different from previous ones. They can completely leverage UEFI and won't have bootloader in MBR overwriting each other. Instead, they have an EFI System Partition where bootloaders all have their own directory.
Check is you have such an installation, which you can check by running the following command:
$ mount | grep efi

Which should give you output similar to this:
none on /sys/firmware/efi/efivars type efivarfs (rw)
/dev/sda1 on /boot/efi type vfat (rw)

Then you can just delete the Ubuntu partition, without having to worry.
Related:

How do I remove "Ubuntu" in the bios boot menu? (UEFI)


Issues mounting WD 320 External in 12.10

I can see sda is your HD, I'm guessing it only has one partition on it - which will most probably be name sda1 which I will use for these instructions.

Try this:

Open a terminal Ctrl+Alt+t
move to media directory cd /media/
Make new directory to mount HD sudo mkdir mybook (root privileges required)
Mount HD sudo mount /dev/sda1 /media/mybook

That should have mounted your drive to /media/mybook/

You could mount somewhere else but i use the media directory as that is where I usually see devices mounted.

Good luck


I found a solution through this stack overflow answer: https://stackoverflow.com/questions/4128817/how-can-i-execute-a-command-when-i-first-login-to-my-unix-server
which works for me. I just added

cd ~/Application
sudo python main.py


set prefix=(hd0,msdos6)/boot/grub

then press Enter.

insmod normal

press Enter.


Why no library files installed for google test?

Is it a bug?

No, it's deliberate:

gtest (1.6.0-1ubuntu2) precise; urgency=low

  * Stop distributing static library (although still build it, to ensure gtest
    works).  Upstream recommends against shipping the libary at all, just the
    source. (See: http://code.google.com/p/googletest/wiki/FAQ)
    The Debian maintainer plans to do this also (see BTS: 639795); do it in
    Ubuntu now to fulfil MIR requirements.

To build static libraries

cd /usr/src/gtest
sudo cmake .
sudo make
sudo mv libg* /usr/lib/

Edit:
The names have changed slightly over the years, though the process remains the same.  In Ubuntu 17.04:
sudo apt-get install libgtest-dev
cd /usr/src/googletest/googletest
sudo mkdir build
cd build
sudo cmake ..
sudo make
sudo cp libgtest* /usr/lib/
cd ..
sudo rm -rf build


12.04: 2 defined users but one with mute sound at login

It sounds like the second user is not in the audio group. Login as the admin user and open a terminal. Type:

            id [non-admin user name here]

which will show group memberships of the non-admin user. If it's not in the audio group, you should add it to this group using:

            sudo usermod -aG audio [user name here]

Insert the user name without the square brackets. This could do the trick.


How do I take my playlists from Banshee and put them on Itunes and my Ipod?

To sync your iPod in Ubuntu, use GTKpod. It is the definitive iTunes equivelent for Ubuntu. You can't import/export banshee playlists into iTunes on Windows. Welcome to the world of cross-compatibility. You can go through the hassle of making the playlists again, but it would take as much time to do so in GTKpod as in iTunes.


Samba file sharing working on one windows computer, but not the other

Just use name.local, in your example CRISPYSERVER.local (as already mentioned in the comment by Morbius1). I had the same problem with some Windows 10 installations. Some of them can access a Samba share using just the hostname without any problems, others need .local added to the hostname to work. As far as I know, this is not related to enabling or disabling SMB1 functions in Windows 10.


Formulae created in Excel not working in OpenOffice

I had the same problem. Specifically, my issues were due to sum.product not being supported (or well supported) by openoffice. Please note this was Spanish version, but I guess it might happen in some others, too... I changed to LibreOffice and everything is going fine now.


Will VirtualBox recognise a USB device if Ubuntu doesn't recognise

Yes, but.. You have to add your user account to the VBOXUSERS group.

Here is a quick rundown.
http://www.howtogeek.com/howto/31726/mount-usb-devices-in-virtualbox-with-ubuntu/

Once you do that (and reboot) your USB devices should appear when you click on the USB icon on the bottom status bar of your virtualbox window.


Do note: This should work (and has been tested on) Ubuntu 10.04 and 12.04.

Now, we're going to use the official Puppet repo, since it has newer versions of most of it.

To do that,

wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
sudo dpkg -i puppetlabs-release-precise.deb

Now we have the puppet repository added.

sudo apt-get update

Now we have updated our sources.list, so apt-get knows where to find the puppet package.

sudo apt-get install puppet

make sure you can ping the puppet master at 'puppet'.

Now, you need to use the root user for this.

Run

sudo -i

on both the agent and the puppetmaster.

Now, on the agent:

puppet agent --test

It should return some output like this:

root@puppetslave2:~# puppet agent --test
info: Creating a new SSL key for puppetslave2.home
warning: peer certificate won't be verified in this SSL session
info: Caching certificate for ca
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
info: Creating a new SSL certificate request for puppetslave2.home
info: Certificate Request fingerprint (md5): 04:8F:9A:99:0F:FF:26:7C:FC:2D:9C:8B:B8:B8:DF:17
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
Exiting; no certificate found and waitforcert is disabled

on master:

puppet cert list

root@puppet:~# puppet cert list
  puppetslave2.home (04:8F:9A:99:0F:FF:26:7C:FC:2D:9C:8B:B8:B8:DF:17)

puppet cert sign puppetslave2.home

And then the output should be something like this:

root@puppet:~# puppet cert sign puppetslave2.home
notice: Signed certificate request for puppetslave2.home
notice: Removing file Puppet::SSL::CertificateRequest puppetslave2.home at '/var/lib/puppet/ssl/ca/requests/puppetslave2.home.pem'

now go do

puppet agent --test

on the agent. it should succeed, if you have a manifest on the puppetmaster for it. Example one below:

node 'puppetslave2.home' {

    file { '/etc/motd':
     content => "Welcome.
          This machine is managed by Puppet
    "
    }
}


Could I Instal Edubuntu in a PiV 1.4GHz, 512Mb Rambus, 64Mb Geforce 4 MMX?

1.4 ghz is enough for the system requirements, but your RAM is just enough so it might be a bit slow. I would recommend to upgrade the RAM, because if you use many programs at once it might be a bit slow.

But give it a try, if your kids tries to do everything at once then it will be slow. but if they just use one program at the time it should be sufficient.

Lack of RAM is normally the biggest issue when using Ubuntu and feeling it being slow.

Good luck, and if you find any other releases just come back and ask again.


No internet after upgrading from 17.04 to 17.10

I have faced the same problem. In /etc/NetworkManager/NetworkManager.conf, I removed the line dns=dnsmasq, then my internet was working fine. I am not an advanced user, so am not sure this will work for you, but just wanted to share my experience.

To do so, open terminal then enter the following command

sudo nano /etc/NetworkManager/NetworkManager.conf

then add # before dns=dnsmasq and save the file.


Not able to install golangci-lint in ubuntu 18.04

You need to install gcc compiler. Open Terminal and execute below command to install development libraries.

sudo apt-get install build-essential


you could use setfacl

setfacl -d -m group:name:rwx /path/to/your/dir

Where name is the group name

To find which groups you or a specific user belong see In unix/linux how do you find out what group a given user is in via command line?


How to enable internet sharing via USB Ubuntu 20.04 to android 6.0.1 and 10

I have a way but a little bit tricky. You are going to need:

Android with the "USB-PC internet share" option (not the classic USB tethering)
iptables or nftables (for masquerade/SNAT)
tcpdump
iproute2
a dns server on your linux (dnsmasq is quick to set up)

1/ On you android device: got to Settings >> Network connection >> Tethering and portable hotspot >> USB-PC internet share . Say ok or choose any OS suggested (usually different Windows versions), it does not matter  as long as the functionnality is enabled.
=> now your smartphone is going to immediately try to connect to internet, but your Linux system is not yet ready.
You will need to retrieve the folling information: the subnet and the default gateway you smartphone is going to use. This can be done with tcpdump
2/ On your Linux: use tcpdump to capture traffic from the USB network interface (enabled when USB PC internet share is activated from android). You are going to see a lot of whohas XXXX. This ip address is the default gateway you android is trying to reach.
add this ip address and the correct subnetmask to the tethering interface (sudo ip address add XXXXX dev XXXX) or use network manager
3/ enable masquerading with iptables:
sudo iptables -A POSTROUTING -o usb_thethering_interface -j MASQUERADE

4/ make sure you dns server is working on the Linux.
Should work fine


davfs2: file "disappear" and end up as lost+found/.goutputstream-XXX

I am seeing something very similar, but only with .jpg files, and the names in lost+found look like:

2019-04-16_Staples_business_laptop.jpg-47BABQ
.2019-04-16_Staples_business_laptop.jpg.EbARnY-DhpL11

(i.e. have base64? suffixes of 6 or 12 chars, and possibly a '.' prefix)

Fix (at least on my system)

As suggested by man davfs2.conf, edit /etc/davfs2/davfs2.conf and uncomment and change the lines with use_locks and drop_weak_etags to:

use_locks 0
drop_weak_etags 1

Then unmount and remount your WebDAV folder.

This is safe for me because it is a single-user WebDAV folder that is only written to from one machine at a time, but YMMV.


How do I find out which wi-fi hardware is on my laptop?

You can run:

$ sudo lshw -c network

note that that will also list the cabled interface.


Creating a .deb: dpkg-genbuildinfo: .buildinfo is meaningless

I realized defining the build target with its lot of "dh_" rules is not the way to go.

I rewrote it with

override_dh_auto_build:
    $(MAKE) all

I also added

override_dh_usrlocal:
    echo

to avoid a

  desktop is not a directory

error which I don't understand, and my .deb builds fine.

I still have a

  dpkg-genbuildinfo: error: badly formed line in files list file, line 2

at the end though.


How to install Firefox Aurora from a terminal?

As muru says, since you've downloaded a binary build of Firefox and not source code, running ./configure and make commands does not apply to your situation. Instead, you run it with ./firefox from the folder you unpacked.
This does not work now, but it should work nce you have the necessary libraries that Firefox. The problem is that you have a 64-bit Ubuntu system (amd64), but you're attempting to run the 32-bit version of Firefox Aurora (i386).
If you really want to run 32-bit Aurora on 64-bit Ubuntu, you can:
Your 64-bit Ubuntu system is capable of running 32-bit executables, but most of them, including this one, require the 32-bit versions of some system libraries. Those versions are available for your 64-bit system, but they are not installed by default.
So, if you really want to test the 32-bit version of Aurora on your 64-bit system, you can install libstdc++6 for the i386 architecture, by running these commands:
sudo apt-get update
sudo apt-get install libstdc++:i386

That should fix the error you're currently having, though you might instead get a similar error about another missing library. You could then fix that the same way, and eventually you'll have all the needed libraries installed.
To find out what package to install to get a particular file (in that case, it was libstdc++.so.6), you can use the Ubuntu package database. In the textbox under "Search the contents of packages," put in the filename and click Search.
The search results may look complicated at first, but it's usually navigable if you keep in mind that 32-bit library .so files on a 64-bit Ubuntu system are usually stored in the /usr/lib32 directory. In any case, feel free to expand your question if you have further difficulties.
But I'd suggest you test 64-bit Aurora instead:
To get the 64-bit version of Firefox Aurora, download a snapshot archive with x86_64 instead of i386 in its name. In this case, you should use firefox-33.0a2.ca.linux-x86_64.tar.bz2 instead of firefox-33.0a2.ca.linux-i686.tar.bz2.
You can get the 64-bit version by using a download link in the "Linux 64-bit" column of the Aurora download page, instead of the "Linux" column which lists downloads for the 32-bit versions.
In this case, the file you probably want is:

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora-l10n/firefox-33.0a2.ca.linux-x86_64.tar.bz2

That's the current latest Aurora build for 64-bit Linux in the Catalan language. But note that in the future, there will be a later version (so in the future, that link should serve only as an example of what the URL looks like, rather than being the best download).


It works.

sudo add-apt-repository ppa:atareao/atareao

sudo apt-get update

sudo apt-get install touchpad-indicator


awk: cannot open "filename" for output (Too many open files)

That means you have to close the open file handles.

It might be cleaner to

zcat Merged.csv.gz |
    awk -F, '
        FNR == 1  {header = $0; next}
        !seen[$7]++ {
            file[$7] = "data/S20180528_"$7".txt"
            print header > file[$7]
            close(file[$7])
        }
        {print >> file[$7]; close(file[$7])}
        END {
            for (f in file) system("gzip " file[f])
        }
    '

Since the file is sorted on column 7:

zcat Merged.csv.gz | awk -F, '
    FNR == 1  {header = $0; next}
    $7 != key {
        if (file) {
            close(file)
            system("gzip " file)
        }
        file = "data/S20180528_" $7 ".txt"
        key = $7
        print header > file
    }
    {print > file}
    END { close(file); system("gzip " file) }
'


Free space turned unusable when dual booting Ubuntu with Windows

If your disk partitioning is MSDOS instead of GPT, you are limited to only four primary partitions.  The usual solution is to make the fourth partition an extended partition, and then you can add logical partitions within the extended partition, and Ubuntu does not care if its partitions are logical or primary.  Your situation is odd since all machines with Windows 8 preinstalled I thought were UEFI on a GPT partitioned disk.  Anyway, small shops can put Windows 10 on an MSDOS disk, and you then live with the limitations.

Try the Google search:

  convert legacy Windows 10 to UEFI
  The link third item  has some detailed text on the "more" as well as a video.

Ron Smith's gpt fdisk also has some possibilities, but whatever you do, backup everything first, most of the instructions assume you will wipe the disk and recreate everything.  Assume the worst.  It would be far easier to free up some space at the end of the disk, add an extended partition, and then add logical partitions for the Ubuntu install.

I'm faced with a similar problem, a legacy Windows 7 upgraded to Windows 10, but I have a Lenovo which can boot either legacy or UEFI without switching things in the UEFI settings, so I can boot UEFI Ubuntu off a second GPT disk in the disk caddy when I want to (just cannot boot Windows that way, but I don't care).


Ubuntu 18.4 can't install latest version of speedtest-cli

You have to install it as root and so, will be installed in your PATH. So uninstall what you have installed

pip3 uninstall speedtest-cli

Then install it again, but as root

sudo pip3 install speedtest-cli

You can now run speedtest-cli (or shorter : speedtest as you told me) in your terminal (no root needed)


Possible to create MSI installer for use in Linux

AFAIK there are no tools to create MSI packages on Ubuntu (MS in MSI stands for "Microsoft", and MSI is pretty much limited to the Windows platform). You can package Ubuntu (and other flavours) in packages of various forms (apt, snap, tarballs, etc.) -- see http://packaging.ubuntu.com/html/packaging-new-software.html, for example. But using the same package for Windows and Linux (or other Unixen) is not really a realistic option, given the vast fundamental differences between the two OS platforms.


Switched to xubuntu-desktop, nautilus glitches

When we decide to change graphical interface (from Ubuntu to Xubuntu e.g) some apps, although keep working at newer GUI, are natively bound to original environment, so they may become unstable after that.

So it's Nautilus. It's a good practice to reinstall it to grant a better performance.

sudo apt remove --purge nautilus
sudo apt install nautilus


Scripting the hiding of username on login screen (18.04)

My solution thanks to help from @ponsfrilusl

sudo -u gdm bash -c 'dbus-launch --exit-with-session gsettings set org.gnome.login-screen disable-user-list true' > /dev/null 2&>1

It outputs No protocol specified this can be ignored by appending > /dev/null 2&>1 to mute this.


I installed Ubuntu alongside OSX and now OSX will not start.

Since you have OS X Lion nstalled, you might:

boot your Mac by holding the [X] key to force OS X startup;

or

boot your Mac by holding the [COMMAND] and [R] keys to start the recovery mode;

as explained at the following link: http://support.apple.com/kb/HT1343


Desktop background won't change until restart

have you tried logging out and logging back in first? The issue may be session-based versions a complete restart of the system, and that would be better to try first, to determine if the problem is based on the session rather than restarting the entire system (which in Linux should not be required).

Normally, the change should apply automatically, but this may be a problem with your session, hard to tell without more information at present. Have you added or made any changes to the desktop session, in other words modifications to items such as Unity or GNOME-Shell?


Command last does not show logins through sFTP, is there something similar or any logs?

The default configuration of syslogd sends all log messages related to authentication to /var/log/auth.log, which will include openssh-server's log messages.


So I haven't actually been able to set up the fitbit using libfitbit, I had to use my roomates Mac to do the initial setup.

As for the "sticking in the stick and get the upload going", I included some udev rules in that package (I believe the original author wrote them), and it should just work when the fitbit is plugged in (once the initial setup has been done).

If it doesn't work, you just need to plug in, and run sudo start libfitbit_client


How to crossbuild apps for ubuntu core with snapcraft

Unfortunately Snapcraft doesn't yet support cross-building. In order to build a snap for x86 it needs to be run on an x86 host; for arm, an arm host.

Indeed, as mentioned by didrocks, you can run Snapcraft directly on the Snappy device by using the Classic Dimension on Ubuntu Core 16.04.


How to fix dpkg error [Errors were encountered while processing console-cmoon/console-data]

I had the exact same error and solved it by removing the console-data and console-common packages and installing them again.
Remove the packages
sudo apt remove --purge console-common console-data

Installing the packages again
sudo apt install console-common console-data

When installing these packages again, it will ask for the policy for handling keymaps. Select Don't touch keymap and press enter.
Hope this helps.


How do I get the IP address of an LXC container for automation?

A native solution (which isn't any prettier than @siloko's answer) would be

lxc list "<name>" -c 4 | awk '!/IPV4/{ if ( $2 != "" ) print $2}'

There are alternatives to awk, but that's tangential to the question.


I have a zip file. I extracted it and modified some files. How do I list them?

You can compare the crc32 checksums:

#!/bin/bash

target_dir="/path/to/target/"
archive="/path/to/archive.zip"

# Loop through files in archive
while IFS= read -r filename; do
    # Check if file exists in target:
    [ -f "${target_dir}/${filename}" ] || { echo "new: '$filename'"; continue; }
    # Get CRC32 Checksum from target
    crc_in_target=$(crc32 "${target_dir}/${filename}")
    # Get CRC32 Checksum from zip
    crc_in_zip=$(unzip -vqq a.zip "$filename" | awk '{print $7}')
    # Compare Checksums
    [ "$crc_in_target" = "$crc_in_zip" ] || echo "changed: '$filename'"
done < <(unzip -Z -1 "$archive")

Note:
 This might have problems when the filenames contain a newline character.

Well, I'm pretty sure you can do the same with php directly without calling the shell. You may ask for help with php at stackoverflow.com.


How to sandbox Chromium that's installed via SNAP?

According to Firejail's man page which you can access by the command man firejail, they do not support snap packages.

Alternative sandbox technologies like snap (https://snapcraft.io/) and flatpak (https://flatpak.org/) are not supported. Snap and flatpak  packages have their own native management tools and will not work when  sandboxed with Firejail


Check these two threads. I quoted the relevant sections for your convenience:

https://forums.opensuse.org/showthread.php/509254-Can-t-change-YouTube-video-resolution-in-Firefox

Hello,

  Either set media.mediasource.enabled and
  media.mediasource.webm.enabled to true in Firefox's about:config or
  install flash-player.

  Regards,

  Antoine

https://support.mozilla.org/en-US/questions/974108

  Clear the cache and cookies only from websites that cause problems.

  "Clear the Cache":

  Firefox/Tools > Options > Advanced > Network > Cached Web Content:
  "Clear Now" "Remove Cookies" from sites causing problems:

  Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"

Another method from the same thread

  Dear, Everyone who cares. I've had the same solution on and off for
  weeks, and I have just now found my solution. Try LOGGING OFF.
  Something in the account settings was doing it for me, but Logging off
  of my youtube / gmail account fixed this problem.

  Spread the word.