What are some of the issues with CCSM and why would I want to avoid it?

I am an experienced Linux user, I've contributed to kernel and work on the Canonical OEM team; I only mention these facts to show my context, which is -- the other day, I did a fresh install of 11.10 on my laptop, and wanted to customize something (turning on focus-follows-mouse). I poked around in gnome-control-center for about 30 minutes before giving up and discovering the only way to do this was using ccsm.

After installing ccsm, I configured ffm, and then -- accidentally! -- my mouse cursor passed over the preferences button and the touchpad on my laptop registered a click.

Boom!

Unity session dead.

Luckily I still had an irc window open and I could beg for help from my colleagues who told me how to recover (rm ~/.compiz-1). This is the same problem some people keep having:

Unity 3D doesn't work anymore, just shows a menu on the top
Unity doesn't load, no Launcher, no Dash appears
Desktop disappeared after messing with ccsm

I know that people are going to google for how to configure things and land up here and they're going to see lots of mentions of ccsm; or worse yet from another unreliable source. The horse is out of the barn already, and we can't go back. The determined users are going to find it anyway, and anyone that tenacious deserves to know how to get what they want (and if you break it you get to keep both pieces!)

But my point is that from now on, we can try and do better for our users.

ccsm is dangerous; even if you know not to touch the bad thing, you might accidentally touch it anyway like I did.
ccsm has no future; the future plans for Unity are to migrate all the useful configurability bits out of ccsm into safer, supported tools. These tools should start to appear in 12.04.
the attitude of "recovering from your mistakes is a positive learning experience" is niche. Most normal people just want to use their computers without having them randomly break in mysterious, non-recoverable ways; most normal people do not share our culture of taking things apart to see how they work.

Again -- I know that people are going to find the dangerous stuff no matter what. But what we can do here is change our culture and give opinionated help, steering people away from the bad stuff and towards the good stuff.

It's easy to convey facts; it's much harder to convey wisdom.

Here, we should be aiming higher than merely giving the facts of what is possible; we should be sharing the wisdom of what is recommended.


how to get optimal performance from Centrino Advanced-N 6205 wifi card

Well so it turns out 802.11n was disabled for some reason:

mwhudson@narsil:~$ sudo grep 11n -r /etc
/etc/modprobe.d/intel_11n_disable.conf:options iwlwifi 11n_disable=1

Moving that file out of the way got me the performance I expected.


Problem installing Ubuntu 14.10 click package

First try to unregister

sudo click unregister --user=phablet click-ubuntu-sdk-14.10-armhf

if it still shows error then you can remove manually.

rm -rf /etc/schroot/chroot.d/click-ubuntu-sdk-14.10-armhf
rm -rf /var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf

then you can create again

sudo click chroot -a armhf -f ubuntu-sdk-14.10 create


AFAIK the problem is that the flatpak redefines its own /tmp, and the other apps expect to exchange files via the real /tmp. Other unexpected segregations:

Files you save/export from flatpak Gimp don't show in the "Recent" section of the file dialogs of other apps, because flatpak Gimp has its own recently-used.xbel file.
The Python in Gimp isn't the one installed in the system. Modules you added to that one aren't available in Gimp (unless you reinstall them).


VLC 2.2.1 doesn't play HEVC/H.265 encoded videos

Try this

sudo apt-add-repository ppa:strukturag/libde265
sudo apt-get update
sudo apt-get install vlc-plugin-libde265

source: How to install H.265 / HEVC codec on Ubuntu Linux?


Follow the commands below:

sudo add-apt-repository ppa:ryzom-isv/ppa
sudo apt-get update
sudo apt-get install ryzom

Source and more possibilities.


UFW is not logging how do I troubleshoot?

The log files are in:

  /var/log/

To get a list of UFW related logs run the following at the command line:

  ls /var/log/ufw*

Your results should appear like this:

~$ ls /var/log/ufw*
/var/log/ufw.log    /var/log/ufw.log.2.gz  /var/log/ufw.log.4.gz
/var/log/ufw.log.1  /var/log/ufw.log.3.gz

If you do not have logs there you may want to double check the status and settings for UFW.

  sudo ufw status verbose

You should get a result like this:

~$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip

If logging is off then you need to turn it on by running the following command:

  sudo ufw logging low

If you do not have any log files then you can check to see if rsyslogd is running by typing:

  sudo service rsyslog status

You should get a result as follows:

~$ sudo service rsyslog status
rsyslog start/running, process 991

If it does not show that it is running you can try to start the service:

  sudo service rsyslog restart


Ubuntu 20.04: Screen layout not saving after reboot

I'm not sure if you ever found a solution for your issue, and this may vary between specific Ubuntu flavors/distros, but I had a very similar problem with UALinux when I upgraded to 20.04.
I discovered there was a .desktop file in the .config/autostart folder that referred to a script in etc/skel which was executing on startup and overwriting many of my layout changes, such as favorites, screensaver, icon sets, and so on. I edited the variables in the script (or commented them out entirely if persistence was not desired) to reflect my preferred choices, saved, fixed my layout, then restarted. This stopped the layout from being reset to default, or rather, it allowed me to change the things I wanted to change while continuing to force settings I will never want changed to remain the same.
It's a handy script to have around in case you do something that messes up your interface and you don't know how to get it back--restarting will just fix it--but annoying if you don't know it's there, since it just overwrites your desktop layout again and again. I imagine you can also just stop the script from running at all by editing the .desktop file in the autostart folder.
I'm pretty new to Linux myself so I don't know if this will be applicable to your situation, but that was my solution, so I hope it helps.


Cannot remove play music icon from applications viewer in Ubuntu 18.04

Go to your ~/.local/share/applications/ directory and you should find a launcher associated to the Play Music webapp. Simply move/delete the file.

Note that the launcher may not look like a Play Music icon, but just may appear as text file with the .desktop suffix. You'll have to open such files with a text editor and view their content to recognise the correct one.


Install multiple PostgreSQL versions with different PostGIS plugin versions on Ubuntu 12.04

I have a Ubuntu 16.04 running with postgreSQL server 9.1, 9.3 and 9.5, where 9.5 has postgis 2.2 installed (via package postgresql-9.5-postgis-2.2). In normal server installation, there is /usr/bin/pg_config, a script which first looks for pg_config in /usr/lib/postgresql/*/bin/ (and, if existing, uses the latest version), and if there is none uses /usr/bin/pg_config.libpq-devwhich is part of the client developer installation. You can just try running pg_configto see if it finds a version, and where it points to.

I downloaded postgis-2.2.4.tar.gz, unpacked and tried to run ./configure. This ended up with an error message, saying I had to install the server developer package. So I did sudo apt-get install postgresql-server-dev-9.5 (for 9.5; you should install 9.1, see http://packages.ubuntu.com/precise/postgresql-server-dev-9.1). This did provide /usr/lib/postgresql/9.5/bin/pg_config, and ./configure did succeed.

grep PGSQL config.log gave

| #define PGSQL_LOCALEDIR "/usr/share/locale"
| #define POSTGIS_PGSQL_VERSION 95
| #define PGSQL_LOCALEDIR "/usr/share/locale"
| #define POSTGIS_PGSQL_VERSION 95
| #define PGSQL_LOCALEDIR "/usr/share/locale"
| #define POSTGIS_PGSQL_VERSION 95
| #define PGSQL_LOCALEDIR "/usr/share/locale"
| #define POSTGIS_PGSQL_VERSION 95
PGSQL_BE_CPPFLAGS='-I/usr/include/postgresql/9.5/server'
PGSQL_BINDIR='/usr/lib/postgresql/9.5/bin'
PGSQL_DOCDIR='/usr/share/doc/postgresql-doc-9.5'
PGSQL_FE_CPPFLAGS='-I/usr/include/postgresql'
PGSQL_FE_LDFLAGS='-L/usr/lib/x86_64-linux-gnu -lpq'
PGSQL_MANDIR='/usr/share/postgresql/9.5/man'
PGSQL_SHAREDIR='/usr/share/postgresql/9.5'
POSTGIS_PGSQL_VERSION='95'
#define PGSQL_LOCALEDIR "/usr/share/locale"
#define POSTGIS_PGSQL_VERSION 95

so the installation paths (BINDIR, DOCDIR, MANDIR and SHAREDIR) all point to the latest (9.5) installation. After successful make then make -n install (be sure to not forget the -n!) showed the installation paths. Most of them pointed to /usr/lib/postgresql/9.5/lib and /usr/share/postgresql/9.5/extension, with the exception of liblwgeom, which would be installed in /usr/local/lib and /usr/local/include.

So, you first could try ./configure (which won't harm) and see if it gives an error, and if not, where the installation would go to. Probably you have to install the development files, which will also install the correct pg_config for your version. As long as you do not sudo make install, nothing should be installed.

And, of course, have a trusted current backup of your running installation!


How to change naming scheme for network interfaces of an already installed Ubuntu 16.04?

It is possible, edit the following file with your favorite editor (vi for example)

vi /etc/udev/rules.d/70-persistent-net.rules


There is an official document about that explains it:
https://help.ubuntu.com/community/SettingUpNFSHowTo


indicator-network and related controls not working on Ubuntu phone

I was having this problem too. Give this a try:

rm ~/.config/connectivity-service/config.ini.lock

It appears that this old lock file can remain in existence when it shouldn't, preventing the network indicator from being able to run.

reference: Antti Kaijanmäki, https://bugs.launchpad.net/canonical-devices-system-image/+bug/1615474/comments/27


x-tile / python-gconf not installable on 18.10 MATE

About Gconf and python2
Not he answer you were literally looking for, but gconf is gone for quite a while (replaced by dconf), and python2, in which x-tile is written, isn't quite fresh as well. Looking at the code of x-tile, its latest commit was almost three years ago, which is a very long time in developers time.
Then what?
Your options are to either try and contact x-tile's maintainer and find out if he is going to update, or use another tiling extension, like this one, which is a default extension in Ubuntu Budgie, but also works on Mate (disclaimer: I am the author).
The extension furthermore has a growing number of cli options and can a.o. be used for quarter-tiling shortcuts, arrange all in a grid etc etc.

To install, just follow the instructions in the README here.


df -h shows 100% but actually free disc space

It is common for 5% of the capacity of a ext2/3/4 partition to be reserved as free space for the sole use of root, so that in the event of a partition becoming full, important files can still be written to disk, and commands can still be run to free up disk space.

Indeed for /dev/sda1: 876G used / 913G size = 0.959, which means there is only 4.1% free, so the partition still appears to be full.

You can reduce the percentage of reserved space on a ext2/3/4 partition with the command:

sudo tune2fs -m 2 /dev/sda1

which would, for example, reserve 2% of the free space instead of 5%.


I'm running 11.04 and nautilus elementary - no problems here.
If you do encounter any problems with NE, please report (a) bug(s) on nautilus-elementary's bug tracker on launchpad.


How to add search domain to Vinagre Remote Access Viewer

Ok, first get your friend to go to this website to get his external ip, get them to send it to you... put the ip in manually and it should work... something like this:


Ethernet connection issue on ubuntu 16.04 dell G7

You have an IPv6 address. So I guess that you can get a connection by turning off Ipv6 and restart the interface.

1.Turning off IPv6

Please add

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

to

/etc/sysctl.conf

and then type the following command and press Enter on a command line

sudo sysctl -p

This should be enough to turn off IPv6 but there is some bug and therefore we need to write some script to turn off IPv6 automatically when we boot Ubuntu.

Please create a new file /etc/rc.local and add these contents

#!/bin/bash
# /etc/rc.local

# Load kernel variables from /etc/sysctl.d
/etc/init.d/procps restart

exit 0

and give the permission to execute to the file

chmod 755 /etc/rc.local

2.Restart the interface

ifdown enp60s0 && ifup enp60s0


Will Unity allow users to change the color/appearance of the top-Panel?

Yes, The color of the panel changes as per the gtk theme.


How to install support for GStreamer element ffdeinterlace?

For some reason gstreamer plugins changed names and since Arista developers have not changed their dependencies it won't work fine. I've fixed this before by adding the gstreamer plugins on their ppa or by including older repositories (I recommend 12.04)


/etc/environment and /etc/profile.d/* ignored for the root user

You will need to get into a real root login shell:

sudo su -


how do I get to the desktop after installing ubuntu server in vmware workstation?

The server version does not come with a GUI interface configured, if you want a DE, try Xfce (which is lightweight). For this run

sudo apt-get install xfce4 lightdm firefox

After the installation is complete run startx.

Remarks: If you wanted just the a normal "beginner" installation of Ubuntu, you should have downloaded the Desktop version of the installer. Now,
if you want Gnome3+Unity (the default) run

sudo apt-get install ubuntu-desktop

If you want Gnome3+Gnome Shell run

sudo apt-get install gnome-shell gdm firefox nautilus

You only need to run one of this lines, and after the installation run startx.


Difference between libasan packes (libasan0, libasan2, libasan3, etc)

What is the difference between these packages?

The different packages are for different versions of gcc:

libasan0: gcc-4.8
libasan2: gcc-5
libasan3: gcc-6
libasan4: gcc-7
libasan5: gcc-8

To find out that information, you can look at the packages details: apt-cache show libsan0

  Which one should I install?

The version that matches the gcc version that you used to compile the program.


How can I get wireless to work on a Dell Latitude D610?

With the ethernet connected, please do:

sudo apt-get install linux-firmware-nonfree
sudo modprobe -r b43 && sudo modprobe b43

Detach the ethernet and your wireless should be working.


Make sure you are applying your changes to the config file located in your home directory.

~/.config/touchegg/touchegg.conf

If you don't have any file in this place copy the following file to the path above.

/usr/share/touchegg/touchegg.conf


Unity fails to load with nvidia-current with a NVIDIA GeForce GT 520M

I have the same card and had the same problem. While nvidia doesn't provide support for optimus technology, which this card has, on linux, I did get unity 3d to work by just uninstalling all nvidia drivers with:

sudo apt-get --purge remove nvidia*

After rebooting, I had fancy effects and all. I hope it works for you too.


Bootloader Problems Grub Won't Load Windows 7

Use a Windows Recovery disk this way: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader , until you get direct access to Windows.
Then run Boot-Repair to recover the GRUB menu.


How to connect to a network without having a GUI at any point of time?

I do not see your Ubuntu release ID and I do not know why you want to avoid the NetworkManager GUI but here is an alternative to using NetworkManager:

Put the connection name and attributes in /etc/network/interfaces.  This will cause NetworkManager to ignore this interface as "unmanaged".
See the Answer in ubuntu 14.04 connect to a wifi network using command line


the Debian instructions should work:  http://www.freelan.org/download.html#debian

(Notice the debian/Ubuntu at the top of the page).  Failing that, you can always compile from source.  I can't find anything else beyond that.


How to specify multiple media_dir in MiniDLNA

You are adding the media_dir just right. But please delete the quotation marks!

As the first comment suggests you need to reload your media database. I do this by having set inotify=yes in /etc/minidlna.conf

# Automatic discovery of new files in the media_dir directory.
inotify=yes

then use command

sudo service minidlna force-reload

in Terminal to reload the media database. Depending on the size and file number of your media_dirs you will have to wait some time until the media database is updated.

To check if everything works like it should I troubleshoot the media database, by opening it with SQLite Manager Plugin for Firefox and check if the desired files are to find inside of table OBJECTS. You will need basic SQL knowledge to work with the plugin.

If it doesn't work check the permissions on the files, that's a problem I often run into. Be sure the permission allows the user "minidnla" to have access.


I upgraded Ubuntu and my Grub2 menu is back to normal. A few MEMTEST items were added.


how to change sequence of grub entries from CLI

Although it's recommended you should not touch the grub.cfg file it's the most practical way of changing the order of display of menu items, if that's what you are asking. First back up the grub.cfg. Open Terminal and cd /boot/grub/, thensudo cp grub.cfg grub2.cfg

Typesudo gedit grub.cfg. Find your boot option blocks, each starting with the line, menuentry 'boot option name', an opening curly bracket at the end of the first line, and your lines of code that follow. Each entry block should end with a closing curly bracket. Cut and paste them after the final menu entry (in my file this is 'System setup'block) Make sure the final line of what you pasted has a closing curly bracket. Save file, restart and GRUB2 should appear with your boot options at the end.


Read this before doing anything Why is it bad to log in as root?

First of all, you must set root 's password.

sudo passwd root
Enter new UNIX password:

Now you have root password. Now activate the root account:

sudo usermod -U root

Then you should allow lightdm, gdm or kdm to allow logging in as root.

To enable this:

In GDM

Edit /etc/gdm/custom.conf file and include AllowRoot=true.

Additionally, in newer versions of Ubuntu, you need to edit  /etc/pam.d/gdm-password and comment out the line containing:

auth required pam_succeed_if.so user != root quiet_success

so that it looks like this:

#auth required pam_succeed_if.so user != root quiet_success

In KDM

Edit /etc/kde4/kdm/kdmrc file and change AllowRootLogin=false for AllowRootLogin=true.

In LightDM

This procedure enables the "Other" menu, so you can type the username root and login. You must edit /etc/lightdm/lightdm.conf and add greeter-show-manual-login=true. Then reboot.

Others session managers have other methods to accomplish this.

As you have noticed I gave the instructions but by any circumstance you should not run the GUI as root. Murphy's Law says that it is likely that you mess up somehow and will be annoyed starting again.

I played around enough, how do I go back?

To disable root login just type:

sudo passwd -dl root

Then revert the changes on the files above. Did it feel good having super-cow powers?


Issue with suspend on Acer Aspire E5-571G-52FL

I found a solution, but this workaround works only with Nvidia proprietary driver:

Open nvidia settings.
Go to PRIME profiles.
Once there, you need to select the Intel card.
Log out and log back in.


It may work in some cases ,but in most of the cases it will causes broken dependencies,If you installed synaptic you can see red colour on such(broken) packages


Aborted Ubuntu installation on Dual-boot system

First, Use the Ubuntu Installation Medium and Try Ubuntu. Open gParted and check the names of the partition. Try to mount the partition and copy the data to a safe location like an external hard drive as stated above. Do not copy data into the hard drive as it may overwrite the previous data.

Next try TestDisk to recover the partition tables. Use this link.

If you are unable to recover the data or the partition tables, I suggest you use EaseUS Data Recovery and create a bootable pendrive to recover your data. Make sure you recover data to another hard drive.

After that you may proceed with the installation of Windows 8 followed by Ubuntu installation.


KDE System Settings >> Multimedia >> Phonon

The settings are saved to the ~/.config/kde.org/libphonon.conf. The devices are saved to ~/.kde/share/config/phonondevicesrc.

Are the settings saved when you press the apply button? The file should change.

Try to rename (remove) the libphonon.conf or/and phonondevicesrc. Do you notice any change?


12.04 installation failure -> failed to boot -> system showing grub rescue

If you want to proceed to install ubuntu and the CD problem exists then you can make a bootable usb using unetbootin or LinuxLive usb creator. These softwares run both in Ubuntu and windows. After making an usb bootable, plug it and boot from the LiveUSB. The installation process is same as before. This process is much faster than CDs.
If you want to continue to windows, then insert your windows installation CD/DVD and boot from it. You will find a repair option at lower left corner of the installation window.
Or manually after booting into windows installation wizard choose command prompt and try these commands:

bootrec.exe /fixmbr

bootrec.exe /fixboot

hope this helps


I had the same problem and found a solution, very similar to this one: https://superuser.com/a/1075753/288688

You can create a rule for the krunner window: System Settings > Window Behavior > Window Rules > New...

For Window class (application) you select Exact Match and enter the name krunner. On the Size & Position tab, you enable Position with Apply Initially.

Now here comes the trick: For the first coordinate, you need to enter a number larger than your left screen's horizontal resolution. This way, the window will appear on the right screen. The point is that your multimonitor setup counts as one big screen.

For example, I entered 2600,0, and after clicking on OK and Apply, my krunner appears neatly on the right screen.


Music player that supports multiple genres

Rhythmbox performs search by "all fields" by default. Which means that it will search every shown field (columns are customizable), this way if a song matches at least one of your search criteria, it will be shown in the results list.

Let's say: I have songs with the "Disco" and the "Italo-Disco" tags in the "Genre" field, as shown in the next screenshot:

When I run a search for "Italo", only these songs that matches that search criteria will be shown in the list as shown in the next screenshot:

But if I run a search for the "Disco" tag, the results will show both "Disco" and "Italo-Disco" results, as shown here:

Other search results for tags in different fields/columns will do the same, see this screenshot for the "Techno" tag in the "Genre Field".

For customizing your fields list simply go to Edit/Preferences in order to check which fields you wish to be shown in the list in the "General" Tab:

If your Rythmbox's search results won't result in what you expect, you may wish to uninstall and reinstall Rhythmbox. Please let us know if you succeed.

Good luck!


Splash screen flickers during every boot

Do you have a USB keyboard/Mouse/Wifi receiver? I had this same issue whenever I had my logitech wireless keyboard and mouse hooked up. The problem was fixed by removing it...


Command works partially when run from startup applications

I came across this fix which works just fine for me and recognizes two fingers (scroll and right click). Just download this package -->

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/308191/+attachment/1735234/+files/synaptics-dkms_1.0.0_all.deb

As per comments on the bug report, this package has worked for most of the multitouch touchpads including Acer. Three finger touch didn't work for me.

read comment #115 and #116 at https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/308191/+index?comments=all


On a Toshiba TECRA changed the value of the BIOS booting configuration from 'OS' to 'all devices' and it solved it.


Ubuntu 13.04 - installation Nvidia driver

Hit Ctrl + Alt + F1 to reach the first virtual console. Log in there, then follow the instructions.

To get all the relevant stuff, including the kernel sources and kernel headers run next command

sudo apt-get install build-essential linux-source linux-headers

If the package linux-headers is not available, try running the command by specifying the exact version of the headers with:

sudo apt-get install linux-headers-`uname -r`

Next, install the current Nvidia driver:

sudo apt-get install nvidia-current

Once the installation completes successfully, check if the Nvidia driver is loaded:

sudo /sbin/lsmod | grep nvidia

If it's not, you will need to manually insert into memory. First, make sure all kernel module dependencies are satisfied and resolved:

sudo depmod -a

Then, load the driver:

sudo modprobe nvidia_current

This should succeed and the lsmod command should show it's loaded, but the usage count will probably be 0, because nothing will be using it yet. You will need to restart the graphics environment to actually benefit from the driver:

sudo /etc/init.d/lightdm restart

This will restart the graphics environment, you will see the Nvidia splash, and you will load into a desktop that has the Nvidia driver running, and all that. Your problem is now resolved.

Source: http://www.dedoimedo.com/computers/ubuntu-quetzal-nvidia.html (even if the specified source is related to Ubuntu 12.10, I test this method and is working perfectly on Ubuntu 13.04).


How to check if a LaTeX package has been installed?

If you know the name of the .sty or .cls file from the package, you can do

kpsewhich <filename>

and it show you the location of the file where Latex system finds the file.  If kpsewhich doesn't find it, you probably didn't install the files correctly or didn't run mktexlsr or texhash.

Also, please show us the output of

echo $TEXINPUTS

from the commandline.


Skype returns "HTTP Error 400. The request is badly formed." and I can't login or use it

SOLVED!
Thanks for answering dsSTORM, but i dealed with it with a little bit different solution.

What I have done was to unistall completely the Skype using:
$ sudo apt-get --purge remove skypeforlinux
$ sudo apt autoremove
$ sudo apt-get clean

Then, I searched at my root directory for the term "skype" and deleted all config files in home folder and others like /usr, /var and maybe others that I just can't remember (was a bunch of them). For some files I needed root.

Then I reinstalled Skype using:

$ sudo dpkg -i skypeforlinux-64.deb (downloaded from the official skype website)

Then I had to solve some dependencies using apt and now it's working fine!

I don't have a clue of what have caused that problem, and maybe that's not the best and most elegant solution, but at least it's working fine now. Hope it doesn't happen again.


How to fix random erroneous behaviour of application windows when using compiz?

You can use the Compiz Config Settings Manager (CCSM) and try to fix this behavior.

If you haven't installed , install it from Ubuntu-Software-Center. Search for: compizconfig.

You can call it from Dash writing : compizconfig

Although this program is dangerous and needs to be careful when you use it , will allow you to fix such behaviors.

Following is an example that may fix your problem.

Change the algorithm to smart (or any other that meet your needs)

Thanks


The driver you compiled doesn't cover your device at all. You can confirm it with:

modinfo 8812au | grep 9052

Where '9052' is the last part of your usb.id:

  ID 0846:9052 NetGear, Inc. A6100 AC600 DB Wireless Adapter [Realtek
  RTL8811AU]

The command will come back blank.

Let's remove it. In the terminal, navigate to the location of the file you downloaded, for an example, Downloads:

cd ~/Downloads/rtl8812AU
sudo make uninstall
cd ..
rm -rf rtl8812AU

Now let's download a better file:

sudo apt update
sudo apt install git
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux
make
sudo make install

Check:

modinfo rtl8812au.ko | grep 9052

The terminal should return your device ID:

alias:          usb:v0846p9052d*dc*dsc*dp*ic*isc*ip*in*

Reboot and you should be all set.


How to crop the output of `who -b` to show only date and time

who -b | sed 's/.*  //' >> file.txt

works for all locales installed on my system (see test below), basically it deletes everything until the last occurence of two succeeding space characters, which should match the beginning of the timestamp irrespective your locale settings.

$ for i in $(locale -a); do printf "%-10s: %s\n" $i "$(LANG=$i who -b | sed 's/.*  //')"; done
C         : Sep 23 20:22
C.UTF-8   : 2017-09-23 20:22
de_AT.utf8: 2017-09-23 20:22
de_BE.utf8: 2017-09-23 20:22
de_CH.utf8: 2017-09-23 20:22
de_DE.utf8: 2017-09-23 20:22
de_LI.utf8: 2017-09-23 20:22
de_LU.utf8: 2017-09-23 20:22
en_AG     : 2017-09-23 20:22
en_AG.utf8: 2017-09-23 20:22
en_AU.utf8: 2017-09-23 20:22
en_BW.utf8: 2017-09-23 20:22
en_CA.utf8: 2017-09-23 20:22
en_DK.utf8: 2017-09-23 20:22
en_GB.utf8: 2017-09-23 20:22
en_HK.utf8: 2017-09-23 20:22
en_IE.utf8: 2017-09-23 20:22
en_IN     : 2017-09-23 20:22
en_IN.utf8: 2017-09-23 20:22
en_NG     : 2017-09-23 20:22
en_NG.utf8: 2017-09-23 20:22
en_NZ.utf8: 2017-09-23 20:22
en_PH.utf8: 2017-09-23 20:22
en_SG.utf8: 2017-09-23 20:22
en_US.utf8: 2017-09-23 20:22
en_ZA.utf8: 2017-09-23 20:22
en_ZM     : 2017-09-23 20:22
en_ZM.utf8: 2017-09-23 20:22
en_ZW.utf8: 2017-09-23 20:22
it_IT.utf8: 2017-09-23 20:22
POSIX     : Sep 23 20:22

I'll leave my other solutions here for reference:

who -b | awk '{print $(NF-1)" "$NF}' >> file.txt

will print the last two columns (space-separated) of the command output, which works for a locale setting like yours (according to the sample in your question).

For the english output you need the last three columns:

who -b | awk '{print $(NF-2)" "$(NF-1)" "$(NF)}' >> file.txt


Upgrade from 16.04 LTS (32 bit) to 18.04 LTS

You are right in your suspicion: a 32 bit version cannot be updated to a 64 bit. If indeed your backup is up to date, you have no actual risk to loose your personal data.

Whether you will need to reload your data on your computer or not fully depends on how your system is configured. In a default installation, the root partition and the home partition containing the user data are on the same partition. When you install a 64 bit version over your old 32 bit version, you will typically reformat the partition, hence also wipe your data. Some users have a separate partition for /home. In that case, wiping the system partition leaves the user data on the other partition intact.

In theory, you could install your 64 bit Ubuntu on your current partition without reformatting. Then your data would remain. However, you would be left with a lot of orphaned system files from your old system. Old configuration files might interfere with the new installation. Therefore, this is a no go. The right way for you now is to have a good backup of your data, wipe the current installation for the new one and restore your data when the installation is up and running.


First, you can check if the monitors are recognized by your system. To do this, go in System Settings and click on Display icon. Second, if you didn't, check your driver configuration in additional drivers, if possible check the proprietary driver and install it.


Lubuntu 20.04 with NVidia driver - tiny fonts!

Since Lubuntu switched to lxqt instead of lxde, you are probably affected by the same thing I am seeing in KDE. "NVIDIA X Server settings" showed me it had recognised my screen as 52 dpi after the driver installation and the fonts were rendered accordingly.
For me, the fix was to find font settings and check the "Force font DPI: 96" button.


How to save my certified Ubuntu 11.10 which came with the computer

View months ago, i used DAR to backup my whole Linux partion. Here is the tutorial site and here a Mini-HowTo. After the dar file is created you can save it on a USB-Dongle/HDD.

You can install the DAR  package with:

sudo apt-get update
sudo apt-get install dar


What's the driver version for my ATI graphics card?

This should do the trick for you:

cat /etc/ati/amdpcsdb | grep "Catalyst_Version"

You should see something like

Catalyst_Version=S11.4

(Thanks for the question, it reminds me to update my display driver.)


How do I display the current local temp.?

Yes, from the terminal:

sudo apt-get install indicator-weather

Or available through the Ubuntu Software Center:

indicator-weather


18.04 `sudo dpkg-reconfigure lightdm` falls back to gdm3 after unity greeter

lightdm and gdm3 are display managers from which you can choose the sessions. You still need to customize your session.

example of a lightdm greeter

From wikipedia:

example of gdm3 greeter

From techrepublic

how to choose the sessions

For the lightdm greeter, there is an round icon at the top right corner of the box named "test".
When you click on it, it will show the installed sessions and you can choose which one you would like to use: for example, ubuntu, unity (the one the OP wanted), gnome, etc...

For the gdm3 greeter, there is a cog wheel next to the text "sign in" that works to the same effect.

Also look at https://itsfoss.com/use-unity-ubuntu-17-10/ for a short tutorial or at What happens under the covers to log me in and start up Unity or another Graphical User Interface? for a description of the all process from scratch


Convert png to pdf without using convert

I use the Phatch. You will have to create the actionlist with the graphical user interface (gui), and later invoke it from the command line.

Install:

sudo apt-get install phatch

Phatch is not only about converting from one format to another, but you can also batch crop, rotate, etc.
After install select the program from the dash or type

phatch

into the command line. Now the gui will open. Click on the green cross and search for the "Save" command to add it to the actionlist. Define type as "pdf" and an output folder (and other parameters if you want to). Default output folder is ~/desktop/phatch. If the program can't find the indicated folder during the convert action, it will create it automatically.
Now press Ctrl+Shift+S and save the actionlist giving it a name like "convert2pdf". Default path where actionlists are stored is ~/.local/share/phatch/actionlists. I recommend to choose your home folder for now. Now you have defined an actionlist which converts to pdf.

You have to do this previous step only once. From now on you can invoke the actionlist every time you need from the terminal in the following way:

phatch convert2pdf.phatch ~/folder/to/convert

Everything inside the ~/folder/to/convert will be converted to pdf and put into the output folder on your desktop. The original files won't be deleted.


I don't have permission to access this device on iftop and need to be root to run NetHogs

use sudo or gksu

$ sudo nethogs

or

$ gksu nethogs


Black screen on boot when any NVIDIA drivers installed

this is already answered here at askubuntu - I refer to this workaround of myself here :

How can I Install Nvidia Driver GT 520 and Cuda 5.0 in Ubuntu13.04?

You should carefully read this and follow this step by step - read this here too at nvidia :

http://www.nvidia.de/object/cuda_1_1_beta.html

This should solve your black screen into a magic screen ...


Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm

sudo apt install qemu-kvm

Check the ownership of /dev/kvm

ls -al /dev/kvm

Check which users are in the kvm group

grep kvm /etc/group

Output from the above command

kvm:x:some_number:

If there is nothing rightwards of the final :, there are no users in the kvm group.

To add the current user to the kvm group

sudo adduser $USER kvm

which adds the user to the group, and check once again with grep kvm /etc/group.

A restart may be required for the permissions to take effect.

Official answer on StackOverflow


Configure and run indicator-sysmonitor on boot at login prompt

Run sudo apt-get install gir1.2-appindicator3-0.1


So I finally figured out how to create and set up a user for SSH and although you could learn this stuff through familiarity like I had to, I think it would be helpful to other newbies if there was a simple list of commands they could look at.
First 2 things, typing sudo in front of your commmand gives you god-mode(run commands as root), if any commands fail, using sudo [command] pretty much always allows you to run it. And also you can look at any commands usage and options with
 man [command]

First of all create the user
useradd -m -d /home/myuser/
passwd myuser

These commands do a few things. Useradd will create a user with any options you specified, or defaults if you didn't

-m - Create the home directory if it does not already exist, must also have -d. Be aware that you don't capitalize -M because that option explicitly does not create a home directory
-d - Explicitly set the users home directory to /home/myuser/

With those commands we have created a user called myuser, set it's password(you can just press enter a few times using the passwd command to make a blank password), and finally set it's home directory
Now these might be created automatically honestly I can't really remember, but if you plan to connect using SSH your home directory must have an .ssh directory and that directory must have an authorized_keys file
 mkdir /home/myuser/.ssh/
 echo "" > /home/myuser/.ssh/authorized_keys

mkdir should be pretty self explanatory but echo has done some crazy stuff. First of all the echo command simply outputs...nothing, to standard output(stdout, or just the terminal). But we've used > here which is a special redirection character which is saying "hey, take stdout and send that data here", which in our case is a file located at /home/myuser/.ssh/authorized_keys. Visit this link to learn all about redirects in linux
Now the part that confused me, generate the keys and put the public key on the server.
Doing this from the terminal itself is at least a thousand times easier than figuring it all out with puttygen.
 hostname
 ssh-keygen -t rsa -C "myuser@myhost"

You will need to know your hostname, or you can use the hostname command to output it to stdout, you could create the keypair without specifying the host but I think you'll need to change it later for it to actually work and that's kind of a PITA so it's better if we can do it now. All you have to do is run this command and follow the prompts, for this post, I'll assume you used the defaults.
Add the public key to the users authorized_keys file
 cat ~/.ssh/id_rsa.pub >> /home/myuser/.ssh/authorized_keys
 echo -e "\n" >> /home/myuser/.ssh/authorized_keys

There's a lot of stuff going on here so let me explain. ~ is a shorthand essentially that means currently logged in user's home directory. cat is a command used to read files, we will read the file ~/.ssh/id_rsa.pub and redirect stdout in append mode to /home/myuser/.ssh/authorized_keys. Then we need to add a new line to the file because every public key should be on it's own line. Again using echo we will pass "\n" to stdout but this time with the option -e which says "perform the escaped character's function, not output"
Lastly, the whole point of this is security, right? So let's restrict users to just their home directory
 chmod -R 700 /home/myuser/
 chmod 600 /home/myuser/.ssh/authorized_keys
 chown -R myuser /home/myuser/

You know you can use the man command to look at the documentation for any commands so I'll let you guys figure out what those do on your own.
Lastly, at this point the easiest thing to do is to use an SFTP client, log into the server, then copy the private key to your local machine, this can then be sent via secure email, or better yet your clients can figure out how to create their own damn keypair and send you just the public key.
I hope this helps somebody eventually


Cannot remove safely usb external hard drive, it mounts again

For removing your device, you should un-mount it:

sudo umount /dev/sdb

in case it failed to un-mount, you should force it by add -f option:

sudo umount -f /dev/sdb


Why service munin-node does not run at start up (reboot)?

Well, I may have not found exactly the why, but I have found a solution.

I have changed a couple of lines from the /etc/init/munin-node.conf upstart config file, and now munin-node starts automatically on reboot, as I wanted.

I substituted the existent "start on" and "stop on" clauses for the ones found at the MySQL upstart config file at /etc/init/mysql.conf

Below is my modified snippet from /etc/init/munin-node.conf, which now works for me:

#start on (filesystem and net-device-up IFACE=lo)
#stop on runlevel [!2345]

start on (net-device-up
          and local-filesystems
      and runlevel [2345])
stop on runlevel [016]

I have just commented the original "start on" and "stop on" lines, and added the "start on" and "stop on" lines from mysql.conf.

It would be great if some expert here explained the meaning of these lines for us...

Thank you.


What do the abbreviations "etc" and "usr" mean?

As you suspected, /etc is from etcetera, unhelpfully named for "where everything else goes", and /usr was for "user applications". A lot of the detail on the history of the Filesystem Hierarchy Standard is documented on Wikipedia.


Must I always have to sign in, every time I switch on?

You'll have to turn the auto-login feature on if you want to log in to your system without providing the password all the time.

Open the "Settings" application and navigate to Details > Users. You should see an "automatic login" option. If the option is greyed out, first click the "unlock" button and enter your password. Then toggle on the "automatic login" option. After that you'll be able to log in without typing the password all the time.

If your issue is the keyring pop-up, something similar to this:

then remove the password and save it without a password next time you are asked.


Pre-installed GStreamer 0.10 does not recognized the installed element "ladspa-gate"

I made the assumption that there are no other dependencies needed other than the gstreamer0.10-plugins-bad package.

However, I was stupid, and I was wrong.

Running

sudo apt-get install ladspa-sdk cmt
rm -fv ~/.gstreamer-0.10/registry*

would solve the problem.

Now gst-inspect-0.10 | grep gate gives ladspa:  ladspa-hard-gate: Hard Gate


Company website does not work in linux, works in Windows

I'd like to comment, but my reputation does not allow this.

You mentioned OTP and this rings a bell.
Several SSL VPNs (which are talking of) store internal credentials and often to this by encrypting these credentials somehow.
(e.g. with the users password)
which is difficult with OTP ;-)

So it depends how the internal authentication is performed (which could be different on Windows browsers and Linux).

This is rather vague, but it might be an angle to look at.

But as Soll Illadan pointed out, this is something you need to put to your IT department.


Black screen after upgrading to Ubuntu 18.10

This graphics card Intel UHD Graphics 620, is on the official supported list. I would just boot with the nomodeset option if it works.


Locked Root : Advantage/Disadvantage from security point of view?

As the title says, I want to know the advantage and disadvantage of having no password for root account from security stand point.

Ubuntu locks the root account by default, so you can't log in as root.

But you can become root by different means.

This reduces the attack surface significantly. It ensures that people don't make a habit of logging in as root, to avoid hassle - which is a security risk. It means that only tasks that require root privileges will normally be started with root privileges, because the user has to invoke some mechanism to elevate the process to root, e.g. use sudo ....

The downside is, of course, that root account is not accessible, and if you screw up the alternate mechanisms such as sudo, you may have a problem.

This problem is in Ubuntu's view smaller than the security gain. If a user disagrees, they may freely enable the root account, by setting a password.

As to why other distributions do it in different ways - habits die hard. Many are used to having a root user around. Others may not want to rely on a sudo setup (Debian doesn't even install sudo in the minimal install), or they perceive the users should configure authentication.

The trend is also what's behind UAC in Windows. Provide limited permissions by default, but allow a user to elevate a process if required. The philosophy is the same.


As I'm not certain what caused the issue, I recommend you try booting into an older kernel. If you have grub, on boot, just select advanced options, and select a kernel version older than your, and see if the issue is resolved.


x11vnc: gdm3 creates a new x11 display after login

My installation is CentOS 8.3, and I experienced the same issue with gdm3 starting a new x11 display.
My workaround is similar to other solutions that use a service that starts x11vnc. For example see here.
In my solution, only one instance of x11vnc is used. The result is that the client always connects to the same port. For my users - this was an advantage.
Whenever x11vnc is restarted, it connects to the 'current' display. That is, the display for the greeter, or for the active user session.
It uses loginctl to find the active x11 login.
It should be noted that the result is not perfect:
When logging in or when logging out back to the greeter, x11vnc is killed and restarted with the new display. Whidh means that the vnc client disconnects and has to be reconnected.
This is similar to other solutions.
Details are as follows:
In /etc/systemd/system/x11vnc.service:
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target display-manager.service

[Service]
Type=simple
ExecStart=/etc/x11vnc/start_x11vnc.sh
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

The script in /etc/x11vnc/start_x11vnc.sh is as follows:
#!/bin/sh

# list login sessions
sessions=$(loginctl --no-legend | awk '{print $1}')
for session_id in $sessions
do
    session_attributes=$(loginctl show-session $session_id)
    IFS=$'\n'
    for a in $session_attributes
    do
        declare $a
    done
    # look for the login session which is x11 and active
    if [ $Type = 'x11' ] && [ $Active = 'yes' ]
    then
        break
    fi
done

# Now we should have the variables for the active login session
pid=$( ps -C gnome-shell -o lsession,pid,user,args | awk -v session_id=$session_id -F' ' '$1 == session_id' | awk '{print $2}' )
display_id=$(cat /proc/${pid}/environ | tr '\0' '\n' | grep DISPLAY | cut -d= -f2)

ps -C x11vnc u > /dev/null
status=$?
if [ $status = 0 ]
then
    x11vnc_port=$(ss -tulpn4 | grep x11vnc | tr -s ' ' | cut -d' ' -f5 | cut -d\: -f2)
else
    X11VNC_AVOID_WINDOWS=never
    x11vnc_port=$(/usr/bin/x11vnc -o /var/log/x11vnc.log -noxdamage -display $display_id -auth /run/user/$User/gdm/Xauthority -rfbauth /etc/vncpassw\
d -repeat -shared)
fi

Then, in /etc/gdm/PostLogin/Default:
#!/bin/sh
/etc/x11vnc/kill_x11vnc_gdm.sh

And in /etc/x11vnc/kill_x11vnc_gdm.sh:
x11vnc_pid=$(ps -C x11vnc -F | grep 'display \:0.*gdm' | tr -s ' ' | cut -d' ' -f2)
echo killing ${x11vnc_pid}
kill ${x11vnc_pid}


No Audio on Dell latitude 3410 with ubuntu 20

The solution posted here under the section #2 Fix PCI/internal sound card not detected (dummy output) with Ubuntu kernel 5.3.0-41 and -42 in Ubuntu 19.10 / 18.04 worked for me.
Just do this:

Edit /etc/modprobe.d/alsa-base.conf as root and add options snd-hda-intel dmic_detect=0 at the end of this file.
Without comma, of course!

After this, restart!


How to add Quicklists to GTK2 application?

There are two kinds of quicklist entries:

Static: they only depend on static entries in the .desktop files
Dynamic: they can be created in the program itself and seem to require PyGI.

So for you there seem to be two ways around that:

stick with static quicklists
write a separate server (very simple, really) that uses gtk3 /PyGI and acts as a bridge between nitro and the launcher.

You have to decide depending on your need, mainly on how much you need the dynamic part. But the second version really is not that hard to implement.


How to identify the culprit in a printing problem

I would guess that your code is generating in a font that was not stored on either or both of the printers. If a font is not stored and not supplied in the print job, the printer will select what it thinks is a good equivalent. Of course this is prone to issues. In this case line height may be different and one or more characters are not being recognised. Something like that anyway.

Cheers Paul


If it's possible to assign the weather station a default route through your ubuntu, it's going to be a lot prettier, now you'll have to NAT three times and that's not rock solid or easy to troubleshoot.

On the Ubuntu to set it up as an internet gateway instead of just an endpoint, you'll need to enable ip_forwarding and add a iptables rule to masquerade incoming traffic bound for the outgoing traffic to pretend it's coming from your ubuntu.

sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE

You may also need to add a rule in your forward to explicitly allow forwarding traffic, this may be already by default accepting everything.

iptables -A FORWARD -i enp0s3 -j ACCEPT

This would match all incoming traffic not destined for your ubuntu (passing through), so it's if possible match it also with characteristics like source (-s) and/or destination (-d)

iptables -A FORWARD -s 1.2.3.4 -d 5.6.7.8 -i enp0s3 -j ACCEPT


Does Ubuntu 12.04 works for an Asus g75vw?

I would say there is a 99% chance your intel cpu is supported and you just botched the install. You can always test Ubuntu hardware compatibility by booting from a Live cd or Usb drive. Chances are if your hardware is new 10.04 is not the way to go, try booting from the 12.04 Ubuntu cd (Hopefully it is the live disk) or usb drive and see if your hardware functions normally (albiet slowly because it's running from optical).


Adding -o Acquire::ForceIPv4=true after your apt-get command will force IPv4 connectivity.

For a permanent fix, create a file called  /etc/apt/apt.conf.d/99force-ipv4 and add the following line to it:

Acquire::ForceIPv4 "true";


Openstack Juju charms and Modified Kernels

There is no charm configuration option to control that.  When taking manual steps such as this to customize the unit, it will be necessary to manually resolve the issue.

It sounds like the custom kernel package is recommending the linux-headers-3.14.5MSSr6 package.

Please see the --no-install-recommends option and other info in the apt-get man page.


Which programming language suits a system that must work without user input

Any programming language is suitable to run without user input.

Python for sure is. There are quite a lot of servers running out there writen in python, and I wrote some scripts like this for work in python and they are working quite nice.

In my experience the most important issue is to catch all exceptions, so that the thing keeps running even when something unexpected happens. I even sometime run some code inside a try catching every exception and forwarding the error to a log file, to keep the thing running (this could be sane or crazy, depending on what is the program supposed to do).


Check for the existence of the file /run/reboot-required.

The file /run/reboot-required.pkgs lists the packages responsible for the reboot requirement.


You have to active fake RAID again and enter to its configuration page, remove RAID arrays and all its members.

If you still can't create MD array with these drives, you have to zero fill them, let the command below run about 10 minutes:

dd if=/dev/zero of=/dev/sdb bs=1024


Why is directory /home/david/workspace/ not present?

Sorry but "workspace" is not a default directory in the home directory.

The directories that re automatically added if /etc/xdg/user-dirs.conf has enabled=True (or for a per user configuration in ~/.config/user-dirs.conf) are found in /etc/xdg/user-dirs.defaults. By default these are...

# Default settings for user directories
#
# The values are relative pathnames from the home directory and
# will be translated on a per-path-element basis into the users locale
DESKTOP=Desktop
DOWNLOAD=Downloads
TEMPLATES=Templates
PUBLICSHARE=Public
DOCUMENTS=Documents
MUSIC=Music
PICTURES=Pictures
VIDEOS=Videos
# Another alternative is:
#MUSIC=Documents/Music
#PICTURES=Documents/Pictures
#VIDEOS=Documents/Videos

No, I do not believe Ubuntu did this from the default software.

"Workspace" I generally relate to 2 things:

workspaces/viewports switching. Is default for Ubuntu but has no relation to directories and/or /home/$USER/;
code editors. This does have a relation to your user since this is about editing multiple files in a project like setup.

Regarding the last option: software like Eclipse, Aptana can make a workspace directory but some do not do this in /home/$USER/ by default. Aptana creates it based on an INI file that has "osgi.instance.area.default=@user.home/Aptana 3 Workspace" in it. Eclipse uses "osgi.instance.area.default=@user.home/some_workspace".

Where you create this is probably a 1 time question when you start that editor the 1st time (and a setting that allows you to have it ask everytime on startup).

To me it seems logical you also included some other software (and my bet would be a code editor like Eclipse) and omitted this the 2nd time.


Retrieve background color in ubuntu mate

You can use a color picker to select the exact color you need.

Install GColor2 using sudo apt install gcolor2 and then launch it.
Click the color picker icon which will turn your cursor into a color picker, then click on the background color you want to pick.

See screenshot below:


The shutdown option generally appears in the Cog button menu. It is at the extreme top right corner of unity interface.


Change from UEFI to BIOS: can not install grub

This does not appear to be mentioned in the answers, you need the correct GRUB package. For BIOS this is at least grub-pc-bin. On a GPT partition you also need a BIOS boot partition, I wrote about how to set this up in: Is it still possible to install Ubuntu to an external harddrive with UEFI?


Why is the dropbox daemon running immediately whenever I open a new terminal window?

It turns out I wasn't looking into the initialization of bash enough; there was a malformed line in ~/.bash_alias which called the dropbox daemon, instead of setting an alias.

~/.dropbox-dist/dropboxd

Should have been...

alias start_dropbox='~/.dropbox-dist/dropboxd'


No internet connection after ubuntu server 20.04 install, ifconfig not available

Networking in Ubuntu server is managed by netplan. Your file lacks the details needed to connect the ethernet properly.

First, let's rename the file:

sudo mv /etc/netplan/*.yaml  /etc/netplan/01-netcfg.yaml

Now, let's change it to include the required details:

sudo nano /etc/netplan/01-netcfg.yaml

Change the file to read:

network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      dhcp4: true

Netplan is very particular about spacing, indentation, etc. Proofread carefully twice. Save (Ctrl+o followed by Enter) and exit (Ctrl+x) the text editor. Follow with:

sudo netplan generate
sudo netplan apply

You should be all set.


How do I install Vivaldi beta 2 on Ubuntu 15.10?

In software centre, just click install on the right

If for some reason that is not working for you, run these commands to download and install Vivaldi beta 2

wget https://vivaldi.com/download/stable/vivaldi-beta_1.0.344.37-1_amd64.deb
sudo dpkg -i vivaldi-beta_1.0.344.37-1_amd64.deb

It works using the terminal commands on my Xubuntu 15.10.


looking for a music player to control speed and transpose songs

Hard to know, your question is somewhat prone to opinions. My suggestion is Audacity.

See http://audacity.sourceforge.net/

It is a cross platform application (although frustrating there is not a port for android >_< )

You can change the tempo without changing the pitch. I use it for music lessons as students can play along but adjust the speed of playback.

If audacity does not have the features you want, update your question with specific features you lack.


Updated system and Firefox now won't let me type tildes or backquotes

My old (and I mean old) xmodmap remapping file included these two key lines:

keycode 49 = Alt_L
keycode 133 = grave asciitilde

Those two lines accomplished the remapping only partially.  What I had failed to do was this:

add mod1 = Alt_L
remove mod4 = Super_L

The key that I wanted to be the accent/tilde key had been a modifier key, for "mod4", with the keysym "Super_L". For some reason, that didn't start causing a problem until yesterday. Here I am in Firefox typing back-quotes just like before!!

So the bottom line is this: if you remap key symbols, make sure to check the modifier map. You can check the initial state of keys by starting a fresh X session and then typing:

xmodmap -pk

Then, view the initial modifier map with:

xmodmap

If you change keysyms for keycodes, make sure you add/remove them from the modifier map as necessary.

edit — oh also you can use xev to figure out what the keycode/keysym for a particular key is. Just run it from a terminal window; it's kind-of a mess but just mouse over its little window and press the key a couple times. Use ^C (control-C) in the terminal window to stop it, or I guess the "Close" thingy on the window.


How can I prevent software from becoming default?

The default software is based for a file type format.

If you want to define it, follow the steps:

List item
Find a file with a format that you want to define (mp3,avi,.... )
Click right button on it
Click properties
Click "Open with" tab
Choose the software that you want.

That's it!


ubuntu is trying to upgade from 14.04 to 12.10

You're not running 14.04 as you indicated, but you're actually running 12.04. All the output you show support this scenario.

Therefore, the proposed upgrade to 12.10 is valid. However, I recommend not to run this. Once on 12.10 you'll have to go through the long process of 12.10 → 13.04 → 13.10 → 14.04 to reach a supported release. LTS → LTS+1 upgrade path is supported and is a lot quicker. So instead, just upgrade to 14.04 directly from 12.04.


I think I've been hacked, what can I do?

If you have been hacked, or even think you have been hacked, then there is no easy way to determine what all has been done to your system.

In your case, we know that, at the very least, your system's hostname has been changed.  However, a backdoor for the hacker could have been installed.  Malware could have been installed.  Your system could be configured to use poisoned DNS.  You could have malware that's downloading very very NSFW illegal things to your computer.  There is literally an unending list of things your computer could be doing as a result of being hacked..

Your best solution is to "Nuke It From Orbit"TM, or in laymans terms, "Completely reinstall from scratch".

In addition to reinstalling your system from scratch, take the following steps:

Change all your passwords on websites you use.  It's possible your passwords are now in the hands of the hacker, so time to use different ones.
Set up a firewall.  After you have a cleanly installed system, run the following commands, to make sure that a firewall is installed and enabled.  This will help secure your system:

sudo apt-get install ufw
sudo ufw enable
Only use networks and websites which you trust to not be malicious.  Unsecured wireless networks are a hacker's paradise, and untrusted sites can have malware or other privacy-violating things on them that can lead to you being hacked.
Use different passwords for every login, and use a password manager to manage/remember them.  Make sure a password manager's password doesn't match another password you use, and make sure all your passwords are different.  This applies for your user account too going forward.  This is one of the most effective methods, but it's a little more difficult.


You have probably enabled showing hidden files. It's possible to disable that in 3 ways:

Edit -> Preferences , and uncheck Show hidden and backup files
Using CtrlH in file manager
Open View menu and click Show hidden files ( same as #2 )


The Ubuntu installer should recognize your Windows 8 partition and offer to resize that partition to make room for Ubuntu. The only way to avoid any risk of losing your Windows data is to back it up, but the Ubuntu installation is very reliable at keeping Windows installations intact.


rc.local command have user prompt and not run at startup

I'm not able to test it. But I assume that you can create a .sh file and run it on boot via crontab.

set -x                         # tell sh to display commands before execution

while true; do php /var/www/html/eventica/artisan SendRfid:send; sleep 0; done

exit 0

Make a .sh file and save it. (For example, /etc/myscript.sh)
Test run it. If you get a Permission Denied error, run chmod +x /etc/myscript.sh

If it works, you can use profile.d to run the script on logon.

ln -s /etc/myscript.sh /etc/profile.d/myscript.sh

That creates a symbolic link to profile.d.


Stream to stream conversion with icecast

Icecast itself only broadcasts streams, it won't touch the content of a stream.

What you want is mostly referred to as transcoding and is accomplished by additional software.

For audio streaming we recommend to use Vorbis or Opus as the codec. Generally we don't recommend using MP3 as the stream codec, as it's quality is low and there are still some patent issues.

When it comes to software capable of transcoding you might want to evaluate:

liquidsoap
mpd
vlc
gst-launch


Ubuntu 15.10 gnome edition won`t boot - error symbol 'grub_efi_secure_boot' not found

I suspect that either:

You have some leftover GRUB files from a previous installation that are causing problems with the current one; or
You've run into a bug in GRUB (or at least its current build)

If you're confident it's not the first issue, you might want to file a bug report about the problem.

As a practical matter, one possible solution is:

Boot with your workaround method.
Install my rEFInd boot manager as follows:

Type sudo apt-add-repository ppa:rodsmith/refind
Type sudo apt-get update
Type sudo apt-get install refind
When prompted, respond that you do want to install rEFInd to the EFI System Partition (ESP).

Reboot. rEFInd should come up as your default boot manager and you should be able to boot with it.
You may want to adjust the boot configuration. The single most popular change seems to be editing the boot entries, as described here.

If, after installing rEFInd, the system doesn't boot correctly, you should still be able to use your workaround method to boot. You can then adjust the boot order with efibootmgr to restore GRUB.


mdadm array, Error mounting system-managed device /dev/md0: can't read superblock on /dev/md0

Ok so i found a soloution, as i said, simple, 2 lines of code, it was a problem with the a superblock.

sudo fsck.ext4 -v /dev/md0
sudo mount /dev/md0

All working again, and ive written the answer down on libre, by pen and printed it off and answered on here.
Should remember/know what to do in the next 6 months :P


How Can I Add, and Use, a Color Scheme for Geany?

You can get theme files from https://github.com/codebrainz/geany-themes (I prefer Spyder Dark and InkPot). The easiest way is to click "Clone or download" and then "Download ZIP".

Just copy the .conf files directly into ~/.config/geany/colorschemes/. (Not wrapped in another subfolder as a result of downloading, archive extraction or Git.)

They will immediately be available from the menu bar under View → Change Color Scheme...

Note: These work for Geany 1.22 and above. For older versions you may need to:

download different files (links provided in the README above or at http://wiki.geany.org/themes/start)
navigate to View → Editor → Change Color Scheme instead
restart Geany before the themes appear as new options


Ubuntu on Hyper-V sluggish/slow UI experience

I wish I would have seen this question earlier. I'm sorry that you have been affected for a long time. :-(
This is a known issue (please refer to https://github.com/LIS/lis-next/issues/655) which has been fixed in the Linux mainline kernel since last Nov (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f1251a48c17b54939d7477305e39679a565382c).
For Ubuntu 20.04, as I just checked, the latest linux-azure kernel Ubuntu-azure-5.4.0-1039.41 (Jan 18) still does not have the fix, but the generic 5.4 kernel Ubuntu-5.4.0-66.74 and the HWE kernel Ubuntu-hwe-5.8-5.8.0-44.50_20.04.1 already have the fix. You probably want to upgrade to either of the two kernels that have the fix.
If you can't upgrade your kernel immediately, there is a workaround: please blacklist the Hyper-V synthetic framebuffer driver (the file location can be found by "modinfo hyperv_fb"), and then Linux will automatically use the legacy vesafb driver (if it’s a Generation-1 VM) or the efifb driver (if it’s a Generation-2 VM); if it’s a Generation-1 VM, please also add the kernel parameter "video=vesafb:mtrr:3", which tells the legacy framebuffer driver "vesafb" to map the legacy framebuffer cacheable. The rationale of the workaround is that the legacy vesafb/efifb drivers are fast since they map (or can be instructed to map) the framebuffer cacheable.


how to start a systemd service after another systemd service has stopped

I'm guessing service B in this example is a script that runs once, not a long-running service? If so, you can specify B as a "oneshot" type service, and just configure A to be After=B.

If you're trying to get A to come up if B fails, you can directly specify OnFailure=A in B.


"no such file or directory" installing upstream ruby-rvm?

Try the following (From the official install guide):

\curl -sSL https://get.rvm.io | bash -s stable

Notice the \ which is done to make sure your using the curl binary and not an alias.  See Why start a shell command with a backslash?.  As a hunch, if the command is failing, curl is aliased.


'Windows/Super' key gets remapped to 'Alt' through TeamViewer

I believe my particular case was a result of an Autohotkey script that was running. Gone now.


Ability of linking contacts in Empathy 3.4 is missing

I figured out the problem: The gnome-contacts package needs to be installed.

And linking works differently. When you select "Information" in the context menu, Gnome Contacts is opened, where you can link contacts with the same name, which then creates a metacontact in Empathy.


Simply adding Surys PPA won't crash your system.
Installing some packages and overriding existing ones as a result - MIGHT (but usually won't).

My usual approach is to install all PHP versions from Sury's PPA because I need to run a few PHP versions running next to each other on the same system.

Please first remove all ubuntu PHP packages before installing the ones Sury provides. All should be good afterward.

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

This should allow you to install soap for php7.1 with

sudo apt-get install php7.1-soap

I just checked this on 16.04.4.


This is possible.
As far as I remember, you have to enable Developer Mode in your device (Settings > About this phone) and connect it to your PC via USB.
Open the IDE and it should be added automatically in the "Devices" section.


recent upgrade puts grub to rescue prompt

Welcome to AskUbuntu!

This question is already asked, however, there was no good solutions for it but reinstalling the grub

HERE is a bug-report describing the bug briefly, and it seems like there is a bug in the Grub-package, causing upgrades to be incomplete when upgrading from older versions.

If you have a way to download and burn this, supergrub might help you reinstall the grub.
http://www.supergrubdisk.org/


If you downloaded the .iso file yourself, then it sounds as though the .iso file is damaged or incomplete.  Try downloading the file again, and verify that the SHA256 hash for the downloaded file is correct according to the instructions here.  (In my opinion you can skip the steps to get the signature key and verify the signature.)  When the sha256sum tool (or equivalent tool in whatever OS you're running now) says "OK", then you'll know that the .iso file is 100% complete and correct, and you can proceed to use Rufus to make a bootable USB drive.


Run:

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer oracle-java8-set-default

This will install Oracle JRE 8 and set it as default.


Google Chrome installed on Ubuntu but missing from MATE Menu

METHOD A: In the MATE Menu, right click "Applications > Edit Menus" then you will be able to edit the main menu.

METHOD B: Should that fail, open the Manin Menu applet, select the submenu you wish it to be in, then click the [New Item] button at upper left of the menu, and select the app you wish to add from the list of all the apps at left.

METHOD C: If you find the GUI menu editor clunky the other way would be to edit the background desktop files directly. Copy an entry for an app which should be similar to yours from /usr/share/applications to ~/.local/share/applications.

Rename that app's entry to match your new app.

Open it with a text editor with a right click.

Change the Name, Icon, Categories as required, and save it


python 2.7 is still default though alias python=python3.4 is set

Setting an alias is essentially a user shortcut and does not affect your environment outside of your terminal(see description of 'alias' here).  Your question doesn't explain what the 'end goal' is, so I'll answer the two I can think of.

If you only interested in a shortcut:Don't do it!  Just use 'python3.4' - it's 3 more keystrokes...
If you want to use version 3.4 by default outside your terminal:

First, you need to do is change the symlink of /usr/bin/python to point to the correct python version.

  unalias python
  ls -al $(which python)

Output should be something like:

lrwxrwxrwx 1 root root 9 Jan 01 00:01 /usr/bin/python -> python2.7

You need to change the link ("/usr/bin/python") to point to the python3.4 version:

sudo ln -f -v /usr/bin/python3.4 /usr/bin/python

IMPORTANT - you are changing the executable python version universally!  Be sure you don't have any applications that depend on the older version's libraries.  If, for example, you've installed the libpython2.7-dev package, then this is a CRAY CRAY BAD IDEA! Never mix versions of executables and build resources or you will get weird behavior...


/etc/profile* scripts do not run as root. Those scripts should be sourced by the login shell running under your user instead.

However, as you mentioned, your script approach is not a good way to change the MAC address. I'll describe a possible solution to get the script to work at the end anyway.

Ubuntu since 17.10 uses netplan to configure networking, which ignores the /etc/network/interfaces file used by the old ifupdown. Netplan is configured in /etc/netplpan/01-netcfg.yaml instead. Its content could look like this for an interface with overridden MAC address:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s25:
      macaddress: 12:34:56:78:AB:CD
      dhcp4: true

Also see the documentation for the macaddress configuration key in https://netplan.io/reference#common-properties-for-all-device-types

You could allow everyone to run a script with these commands as root using passwordless sudo - make sure you follow these steps correctly, otherwise you may end up with a broken sudo command or a privilege escalation vulnerability:

Put your three commands in a separate script file (e.g. /usr/local/bin/mac-change.sh). Make sure it is safe to run this script as root at any time.
Make that file owned by the root user (sudo chown root: /usr/local/bin/mac-change.sh)
Set appropriate permissions: executable by everyone, writable only by the owner, root (sudo chmod 755 /usr/local/bin/mac-change.sh)
Edit your sudoers file to allow everyone to run just that single script as root without password, by typing sudo visudo to open the sudoers editor and adding this line below near the bottom of the file:

ALL ALL=(root) NOPASSWD: /usr/local/bin/mac-change.sh

Now everyone should be able to run sudo mac-change.sh or sudo /usr/local/bin/mac-change.sh without having to enter their password. You can then include this as a line in /etc/profile or a new script in /etc/profile.d.


What is causing my my screen to go black?

Hmm... This is not looks like a software problem. First (if u are able ofcourse) plug an external monitor and boot ur netbook to see if u got signal. This way we can exclude the possibility of a damaged gpu. If u boot normal with signal in the external monitor then it means that 1) Your inverter is burned (or is about to burn and stops to work when it get warm) and or 2) Is the backlight of ur screen that means u need a new screen but the 2nd is a lil bit rare damage. Many times screen is nearly black and hardly u can see signal under some light, so boot and watch the screen carefully. Also when you boot w8 some mins and see if the hard disk read and if u can listen the ubuntu's entrance sound. To be sure that is only a screen or inverter problem and not something worst. I hope to help u a lil bit. Sry for my english :)


Can I install Ubuntu 13.04 on ibm thinkpad a31

It should work. Make sure you get the latest version of Ubuntu (13.10) or the Long Term Support version (12.04) of Ubuntu. If your laptop cannot run Ubuntu, you could try  Debain or similar Linux distribution. You can 'test' if it works by creating a Live DVD or USB


Check outh these two articles the might help.
Uses of iPods With Banshee in Ubuntu
The Banshee Music Player


go to the directory through the terminal where the installation files were extracted  and

cd bin
./idea.sh


Thank you for your suggestion. Sadly however, your suggestion did not work, but with a little experimentation, I think I have found the solution.

Using my original example (above) I used the command:

~$ fdupes -ndN /path/to/drive {A,B,E}

I found this deletes duplicates within the specified folders {A.B.E} only, in accordance with the parameters set (-ndN), and ignores the rest of the directories on the drive.

It also works for subdirectories under a parent directory if the path is modified.


What's the difference between insmod and modprobe?

modprobe reads the modules from /lib/modules/$(uname -r)/modules.dep.bin (or without the .bin suffix if the other file is not available). From the same file, dependencies are loaded.

modprobe accepts the name of a .ko file in /lib/modules/$(uname -r) (e.g. nvidia-current for the file dkms/nvidia-current.ko) and aliases (modules.alias.bin). Builtins (modules.alias.bin) are recognized as well, but since these modules are loaded by default, there is not point in modprobing this kind of modules.

insmod on the other hand accepts paths to files. The module does not have to reside in /lib/modules/$(uname -r), but dependencies are not automatically loaded. This is the lower program used by modprobe to load modules.

Other programs related to modules are rmmod and modinfo.

rmmod removes a kernel name based on the name from /proc/modules. This name does not necessarily have to be the same as the one passed to modprobe (for the nvidia-current file, this is nvidia for example).

modinfo accepts a filename, or the filename without .ko suffix in /lib/modules/$(uname -r).


Can't Change To Nvidia Proprietary Driver Ubuntu 18.04

Try to remove the installed drivers by running:
sudo apt-get purge nvidia*
sudo apt remove nvidia-*
sudo apt autoremove

Check what is the recommended driver for your Nvidia card by running:
ubuntu-drivers devices

If you want to install the driver automatically, run :
sudo ubuntu-drivers autoinstall

If you want to install a specific driver, run:
sudo apt install nvidia-<driver number>

Once the installation is finished, run prime-select query to check which graphic card is being used by your device.
If you want to change the graphic card used by your PC, run : sudo prime-select <intel/ nvidia>; choose between Nvidia and Intel graphic cards.
After that, restart your PC to apply changes


How to Force Ubuntu to load and use my .ppd printer driver instead of the default one?

Open "Printers" from the menu (up, right), where you can can shutdown your computer;
Right click on your Dell 1815dn printer;
Left click on "Properties";
In the default pane ("Parameters"), click on the "Modify" button for "Make and model";
There, select the option "Providing a PPD file";
Click on "Next";
Follow the rest of the wizard.


"Back" and "Install Now" buttons grayed out in 14.04 installer

This happens with both, DVD and USB. The issue appears when selecting the keyboard layout, before selecting partition or drive to use or in between. Simply put, the Back, Install or Continue buttons stop working. they are not selectable. The only good thing here is that you do not get both, Back and one of the other buttons grayed out at the same time. So you can go back and forth until the button appears to be clickable.

This is actually a bug so I will close as such. I suspect the fix will appear on 14.04.1

There is a bug report about it here: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1303945

And another similar question regarding 14.04 in Ubuntu 14.04 - Install Now button disabled


Ubuntu 12.04 isn't working with one of my crontab commands... any ideas?

General tips for debugging crontab:

catch the output.

Either redirect it to a file, e.g. { command1; command2; } &>/tmp/joboutput
or ensure that the crond send output as email to your mailbox by setting MAILTO=user@example.com in your crontab.

The shell environment of process invoked by crontab differ from the environment started the same process in a terminal.
Ensure that all necessary environment variables either specified inside the crontab.
% has a special meaning in the crontab (read carefully man 5 crontab :-)

  The entire command portion of the line, up to a newline or % character, will be executed by /bin/sh or by the shell specified in the SHELL variable of the crontab file. Percent-signs (%) in the command, unless  escaped  with  backslash (),  will be changed into newline characters, and all data after the first % will be sent to the command as standard input. There is no way to split a single command line onto multiple lines, like the shell's trailing "\".


You can use Cups administration page. You can access it by opening http://localhost:631 in your web browser.

Then select Administration -> Manage Printers

Select your printer and then, on the "Administration" dropbox choose "Set Default options". Change the default settings and finally press "Set default options". If it asks you the username/password use the same combination you use to login.


Where to find administration, preferences, etc?

Open the Dash and type Help and read the help documentation on how to use Unity. Since 11.04 was released six months ago the Administration and the Preferences menu have been replaced with System Settings which is part of the power cog menu.

Some people chose to use Ubuntu Classic mode. That is no longer available. If you prefer the classic type of User Interface then there are answers to previously asked questions that will help you. Such as this one:

Is classic mode gone from 11.10

Follow the links.


Red triangle with an exclamation mark Ubuntu 16.04

It could be an error relative to some broken updates.

You can try to fix this error updating package list:

sudo apt-get update
sudo apt-get upgrade

Note: before run the above commands check that your computer is connected to internet.

I hope this could help you.


Is there a ticker application available?

What about tickr ?

It is in the repositories and puts a scrolling news ticker across your desktop.


Major changes in sorting method of glibc on Ubuntu 18.04 after upgrading to Ubuntu 18.04.5

Why glibc totally changed within LTS release without 'major upgrade'?

It didn't.
18.04.5 is based on glibc-2.27, which still has the "old" Unicode CLDR.
The updated CLDR comes with glibc-2.28.
The result that you get with 18.04.5 seems legit, whereas the result you mention with 18.04.0 is weird, as if an older release had a newer glibc library, and 18.04.0 => 18.04.5 did a downgrade.
In other words, the result you mention as old is actually new (in the future from the point of view of 18.04) and the result you mention as new is old.


How can I regain my SSD Icon in the launcher?

First:

If you're using Ubuntu with Unity, that thing on the left edge of the screen is the launcher.
Launchpad is a web site where Ubuntu development takes place.
fdisk only works properly with MBR/MS-DOS partition tables. If you have GPT partition tables, use gdisk or better parted. That's what the error message is trying to tell you.
Linux doesn't use drive letters.

To answer your question:

Yes it's normal that the drive or partition where the Ubuntu root filesystem resides is not shown in the launcher as a removable disk drive or physical drive. Use Nautilus (the "Files" application) to browse your computer and files.

Yes you are right, "filesystem" in Nautilus is the drive where Ubuntu is installed on. When filesystems are mounted via the /etc/fstab file they will not show up (with some exceptions like the /media location) as a icon in the launcher or physical drive in Nautilus.


Setup Ubuntu on a new drive - help needed

The question is whether your old laptop will boot from an external hdd.

If it does, then:

To install Ubuntu to your external SSD drive, with no usb or dvd:

On your netbook with no usb and cd-drive: download the *.iso file of your desired Ubuntu flavour.
Install Unetbootin.
Run Unetbootin, select the downloaded *.iso, and make sure you install it to the Hard Drive. (the preserved space you can leave at 0 MB).
When this is successful, reboot, and select Unetbooting from the menu. This should start the LiveCD version of Ubuntu, and you should now be able to install Ubuntu to the external SSD drive. Install the bootloader to the SSD drive.

To run the new Ubuntu:

Set the BIOS to boot from the SSD drive.


how to uninstall Ubuntu 12.10 to install Ubuntu 12.04 with only Ubuntu 12.10 with usb pen drive (Startup Disk Creator doesn't finish the creation)

There isn't a way to revert to an older version of Ubuntu once a newer version is installed, so if you want to go from 12.10 to 12.04, you will have to download and install 12.04 or earlier. As to why you are unable to download it, that should probably be another thread.
Edit: More details on downgrading: How to roll back Ubuntu to a previous version?


If I turn off Login requirement am I secure if someone wanted to connect through internet?

yes you are safe. Auto login wont remove the password and it wont stop the authentication it just doesn't ask you for a PW at boot. Firewall(S) very likely also protect you.


Filenames with spaces breaking for loop, find command

Using for with find is the wrong approach here, see for example this writeup about the can of worms you are opening.

The recommended approach is to use find, while and read as described here. Below is an example that should work for you:

find . -type f -name '*.*' -print0 |
while IFS= read -r -d '' file; do
    printf '%s\n' "$file"
done

This way you delimit the filenames with null (\0) characters, this means that variation in space and other special characters will not cause problems.

In order to update an archive with the files that find locates, you can pass its output directly to tar:

find . -type f -name '*.*' -printf '%p\0' |
tar --null -uf archive.tar -T -

Note that you do not have to differentiate between if the archive exists or not, tar will handle it sensibly. Also note the use of -printf here to avoid including the ./ bit in the archive.


How do I add a Notebook to a Box in a VBox?

Here's an example that has context

from gi.repository import Gtk

class Handler:
    def onDeleteWindow(self, *args):
        Gtk.main_quit(*args)

    def addNotebookClick(self, *args):
        vbox = builder.get_object("attachtome")
        mynote = builder.get_object("notebook1")
        temp = Gtk.Box()
        mynote.reparent(temp)
        vbox.pack_start(temp, expand=False, fill=False, padding=0)
        window.show_all()

builder = Gtk.Builder()
builder.add_from_file("howtoaskaprogrammingquestion.glade")
builder.connect_signals(Handler())
window = builder.get_object("window1")
window.show_all()

Gtk.main()

It works with this glade file

It provides this functionality:

This also works, if you're using your own Notebook.  Note that when you run the example you see a slight change in window geometry(the object being added), but it doesn't appear to render because it doesn't have any tabs yet.

from gi.repository import Gtk
class Handler:
    def onDeleteWindow(self, *args):
        Gtk.main_quit(*args)

    def addNotebookClick(self, *args):
        vbox = builder.get_object("attachtome")
        mynote = Gtk.Notebook()
        #mynote = builder.get_object("notebook1")
        #temp = Gtk.Box()
        #mynote.reparent(temp)
        vbox.pack_start(mynote, expand=False, fill=False, padding=0)
        window.show_all()

builder = Gtk.Builder()
builder.add_from_file("howtoaskaprogrammingquestion.glade")
builder.connect_signals(Handler())
window = builder.get_object("window1")
window.show_all()

Gtk.main()


How to resolve dependency conflict for xserver-xorg-input-evdev

Obviously there are specific evdev driver packages for each release. In my case it turns out that sudo apt-get build-dep xserver-xorg-input-evdev-lts-trusty works just fine.

Though I'm running trusty it turns out that my system uses xserver-xorg-input-evdev-lts-vivid...


What does "System program detected error" mean and how serious is it?

If the virtual machine is really important:

If the ubuntu virtual machine you installed is really important, i.e. contains data that you cannot afford to lose and have invested a lot time and effort installing applications and configuring them:

Clone the virtual machine first: This is pretty easy; you can just copy all the files of the virtual machine present on the host (Windows 7 here) to a persistent and reliable location(an external disk, may be) and ensure that you don't damage it further.
Check the system logs and logs of the application that you feel might have caused the problem: This is tedious and time consuming; the system logs are present in /var/log/syslog, /var/log/dmesg, /var/log/dmesg.0, etc. and most of the application logs in /var/log directory. Read and analyze them to get messages such as "error" or "critical", etc. Usually, the more important (critical) ones are in red such as this:

and analyze as to what caused the crash and resolve it, if possible.

If the virtual machine is not pretty important:

Report and ignore. This message might be just an application crash report, but is essential that the developers know about it (which is why it is encouraged to report and should be done so). You can continue working unless something really bizarre happens(the crash might now be the cause in future) or create a new virtual machine right away.

However, it would be great if you could reproduce the crash and report it as a bug to the developers of the concerned package so that it is resolved upstream and other users (or you) in future are not affected by the same.


Create user with curtin installer - MAAS

I found out my problem: I wasn't using the in-target command!


What are the key differences between Mac OS and Linux that prevent application compatibility?

Mac OS is based on a BSD code base, while Linux is an independent development of a unix-like system. This means that these systems are similar, but not binary compatible.

Furthermore, Mac OS has lots of applications that are not open source and are build on libraries that are not open source. Because of this reason, it is not possible to port those applications to run on Linux without being the copyright owner of those applications and libraries.


How to permanently change the IP address of Ubuntu with CLI only?

Two (of many ways) to do it, say you want the new IP to be 192.168.80.10 with netmask 255.255.255 and your interface is eth0

$ sudo ifconfig eth0 192.168.80.10 netmask 255.255.255.0

or, with the newer ip command, you remove the old address and add the new one:

$ sudo ip address del old.ip.address/netmask dev eth0
$ sudo ip address add 192.168.80.10/24 dev eth0


SSL absent from Python 3 in FRESH install of 16.04

Something else?

The error is in your program only (and in the original post you refer to which I have fixed now). You have to use either the imported urlopen function:

from urllib.request import urlopen
urlopen('https://askubuntu.com').read()

or the imported urllib.request library:

import urllib.request
urllib.request.urlopen('https://askubuntu.com').read()

but not a mix of both, i.e. use a library where you've only imported a function like in your case.


How can I configure things so that Jmeter finds the JDK of Java?

Your java home is correctly set. It does not require to edit environment. Just remove /bin/java that is tailing after $JAVA_HOME at line no. 125 and 192 in jmeter binary file. Then try running ./jmeter again.


Help! on installing TP-link AC13000 T4U V3 driver on 18.04 without Internet connection and without dkms package installed?

Good news! You can get the driver installed and working temporarily without dkms.

Please download this file and transfer it to the desktop of your Ubuntu machine: https://github.com/cilynx/rtl88x2bu/archive/5.6.1_30362.20181109_COEX20180928-6a6a.zip

Right-click it and select 'Extract Here.' A new folder will be created called rtl88x2bu-5.6.1_30362.20181109_COEX20180928-6a6a. Open a terminal and do:

cd ~/Desktop/rtl88x2bu-5.6.1_30362.20181109_COEX20180928-6a6a
make
sudo make install
sudo modprobe 88x2bu

Your wireless should now be working.

Now do:

sudo apt update
sudo apt install git dkms

Ignore the many updates that will be offered.

Once dkms is installed, do:

sudo make uninstall
sudo modprobe -r 88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

You should be all set. Now install the updates:

sudo apt update && sudo apt -Y upgrade


X server display configuration page will not load

I had exactly the same problem, and updating the NVIDIA driver to current (280 instead of 173) solved my problem.
See also my answer in this thread.


Try sudo usermod -U username to unlock your account.


VirtualBox Guest Additions won't install on Ubuntu Server 12.04

I had the same problem when running the installer from the vbox additions iso, but running sudo apt-get install virtualbox-guest-utils worked fine. I did an apt-cache search virtualbox to verify the name of the package before attempting the install.

I did however, run the command suggested by Gregory above (as I was trying to get the installer to work from the iso, which it never did), but that may or may not have had an impact.

If you want to avoid the installing X11 dependencies use:

sudo apt-get install --no-install-recommends virtualbox-guest-utils && sudo apt-get install virtualbox-guest-dkms

Edit: See comment below.


Can't delete partition on a USB drive because of different block sizes?

use the command line to format this partition using the following steps (of course by root user):

root user):

$ fdisk /dev/sdb

This will log in to the a disk management in console. type m for help (manual). Continue deleting the partitions using d and write it to the table using w.
All the required information are available here.


ubuntu 12.04 LTS nVidia driver mirrors second monitor

You can get a lot of information from /var/log/Xorg.0.log.  Look for Errors.

Also check out /etc/X11/xorg.conf.  xorg.conf used to be necessary for setting up X properly, but my experience has been that it usually gets in the way now.

I have a newer version of Ubuntu and a newer graphics card, but I run without any xorg.conf file and don't use the nvidia-settings tool at all any more.  Instead I can just use the standard displays applet.

If you must use xorg.conf, I find the displays applet only gets in the way.  In this case I suggest deleting the display config for your user and instead use the nvidia-settings as root to set the monitor config. Note that setting the monitors this way makes it a pain when docking and undocking a laptop.  Since you are using a laptop I highly suggest trying to run without xorg.conf defined (make sure to rename it instead of deleting it, so you can put it back if there is a problem).

Good luck


Ati - Problems with open drivers after fglrx remove

You need to purge virtualbox because it causes the issue with the KDE effects since llvmpipe driver is blacklisted for them. For some reason, the virtualbox's driver is used after uninstalling fgrlx.

I guess it should also help with the resolution too.

Sergey


Deleted old linux images now ubuntu will not boot it just hangs

Are you sure your GRUB is properly configured to use the right kernel as the default kernel?  You could check this out in the GRUB menu file under the /boot directory.  Sorry can't remember the exact name right now.

Also, you might consider re-installing the GRUB boot loader.

Final thought, hope you did not delete something else you should not have.  I'd suggest retrieving your /boot directory from backups, re-GRUBbing and then go from there.


You can install a gnome extension that enables the feature you're looking for.
The download link to the extension is here.
You can also find instructions for installing gnome extensions in this article.
note: it requires wayland (and it only allows you to move windows with 3 finger drag; nothing else)


Driver for printer Epson XP-411 never ends intalling

Test this:

1- Download the file to your distribution.

32 bits:

http://download.ebz.epson.net/dsc/op/stable/debian/dists/lsb3.2/main/binary-i386/epson-inkjet-printer-201203w_1.0.0-1lsb3.2_i386.deb

64 bits:

http://download.ebz.epson.net/dsc/op/stable/debian/dists/lsb3.2/main/binary-amd64/epson-inkjet-printer-201203w_1.0.0-1lsb3.2_amd64.deb

2- Install it by gdebi or software center.

Requires a set of libraries to be installed.


You can create a backup by clicking File->Backup settings... in Evolution this will save you data and configuration.

Manually you should run evolution –force-shutdown first to make sure evolution is not using the files.

Then you can Backup:

~/.evolution (this saves your data)
~/.gconf/apps/evolution (and this your configuration)


You should find the corresponding line in your

/etc/fstab

file and comment it out. However, be very careful when editing this file as you can easily break the boot process of your system with a corrupted fstab.


BT_GET_CAPABILITIES warning slowing down audio apps

Depending on the application, it might be possible to disable ALSA support so that it instead uses Pulseaudio directly.

For example I have an OpenAL game which shows this problem. I edited /etc/openal/alsoft.conf and added the line drivers = pulse, so that OpenAL will always use Pulseaudio rather than checking for ALSA, OSS or other audio frameworks. Since it appears to be the ALSA framework which causes the BT_GET_CAPABILITIES error, this change fixed the problem for me.


New Titan X causing infinite login loop on 14.04

On boot tap shift key a few times just after BIOS screen and the GRUB screen will appear ... pick the one saying Ubuntu extra choices or such (not normal,not restore the 3rd one) ... pick root shell option ... Now we will remove all nvidia drivers to revert temporarily back to nouveau drivers

dpkg -l|grep nvidia  # to see what you currently have installed

sudo apt-get remove --purge nvidia*

reboot and it should allow you to login normally however you will be using open source nouveau graphics drivers ... I suggest you now upgrade to ubuntu 16.04 ... then to install latest nvidia drivers

System Settings -> Software & Updates -> Additional Drivers

and pick the one saying  Nvidia version 367.35 which is refreshingly recent and as a bonus will enable you to install the Vulkan SDK

Above UI listing is also available from command line

ubuntu-drivers devices
ubuntu-drivers devices | grep recommended

If above does not show recent driver version then checkout How do I install the Nvidia drivers?

tl;dr  identify if your nvidia card has a companion Intel/AMD graphics card which is used normally such that nvidia is auto selected when needed ... although this was more of an issue in prior ubuntu releases

This command will show your graphics card(s)

lspci -k | grep -EA2 'VGA|3D'

pay particular attention to what is says after

Kernel driver in use: xxxxxxx
Kernel driver in use: nvidia   <-- you want this to appear

this repo will make visable recent driver releases

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get upgrade

from above you typically want to install the most recent driver

sudo apt-get install nvidia-xxxxxx   # <-- the latest one
sudo apt-get install nvidia-367


Python script cannot run from .desktop launcher

This works for me :

First, my desktop file

[Desktop Entry]
Version=1.0
Name=My Application
Comment=My Application Comment :-)
Exec=/usr/local/script.py
Icon=/usr/local/script.py
Path=/usr/local
Terminal=false
Type=Application
Categories=Utility;Application;

Next, maks the script executable :

Make sure the first line of your file has #!/usr/bin/env python

Make it executable - chmod +x script.py

An alternative is to use the python command line in the desktop file

Exec=python /usr/local/script.py