That is an odd $PATH - normally you'd have (at least) /usr/sbin and /sbin in there as well.  Is there something special about the remote system?

The problem would appear to be on your server, though.  When you ssh to a machine like that you're essentially running a full login on that system, just as if you had sat down at the machine and logged in to a VT.  There's not a lot of scope for local changes to mess that up, at least not in the way that you're seeing.

What were you doing on the server prior to this problem appearing?  What changes did you make?  The sudo binary would usually be in /usr/bin, which is in your $PATH; is sudo actually still installed?


Does btrfs support thin provisioning and quota management like zfs?

I would recommended ext4 or xfs on machines you really want to use. iirc brtfs will support quotas,but it's still under heavy development.


Will not play DVD with VLC missing drivers

After installing Ubuntu 14.04:

Step 1

Type the command below into terminal:
sudo add-apt-repository -y ppa:videolan/stable-daily

Step 2

LibDVDCSS is a library required for reading some DVDs. Unfortunately, due to legal issues, it is not included by default. This repository is provided by Videolan, and can be added with the code below:

echo 'deb http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list && echo 'deb-src http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list && wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -

Step 3

Next, check for updates with:
sudo apt-get update

Next, upgrade packages:
sudo apt-get upgrade

Step 4

Reboot your System and try to play your DVD in VLC.

Source: Things To Do After Installing Ubuntu 14.04 Trusty Tahr


Wacom Penabled Ubuntu as "Graphic tablet" for Mac

GIMP - no doubt both hands down, the free picture editor like Photoshop.

sudo apt install gimp

Inkscape - new opensource drawing software, like Illustrator. (I've never used this...because I do not have a pen interface but it looks nicer with a pen-tablet like Fujitsu T series.)

sudo apt install inkscape


Turning on HDTV/Monitor on boot or unsuspend

Samsung's implementation of CEC, called Anynet, is proprietary (think MotionRate 120 is still 60hz or QLED is not OLED). It works with other Samsung products such as a TV & Soundbar or Surround Sound Receiver. Does NOT work so great with other manufacturer products. Spent several hours with horrible Samsung customer service until a level 2 engineer disclosed Anynet is for Samsung products only and not a full implementation of CEC standard.


I got mine working as follows in (13.10):

Open up the terminal an do the following:

echo 'options uvcvideo quirks=0x100' | sudo tee -a /etc/modprobe.d/uvcvideo.conf

See: www.linux-hardware-guide.com


have you installed different versions of java rather than 1.7.x? it may be confused to eclipse, just see this link to re-configure your java environment.

To fix, open up terminal and type

sudo update-alternatives --config java

https://stackoverflow.com/questions/10165693/ubuntu-eclipse-cannot-load-swt-libraries-not-opening

In addition, I recommend install java and eclipse with self-extract files, it's easy to re-configure and can have multiple versions of them. Hope it helps.


Renaming files on Ubuntu-GNOME appears weird instead of blue

This is a bug and a bug report for this has been filed at https://bugs.launchpad.net/ubuntu-gnome/+bug/1581570. If you have a Launchpad account, you can also let the devs know the bug affects you.


Manually created scilab launcher doesn't work

The downloaded version has a number of .desktop files in .../scilab-5.5.2/share/applications
These .desktop files however assume the application is in $PATH, since the commands in the files to not include an absolute path to the binaries.
There is also an instruction on which commands to run when, in .../scilab-5.5.2/share/applications.
I would however save yourself the time, and install scilab simply from the repos (not from the downloaded file) by the command:
sudo apt-get install scilab

The version in the repos seems to be pretty much up-to-date!
Note
in case you might have saved one or more scilab "home-made" .desktop files in ~/.local/share/applications, be sure to remove them, since they will overrule the global ones, installed from apt-get


Error when installing Ubuntu 13.10 black screen/white flashing dash

Are you still able to boot the Ubuntu DVD?

If yes, select Try Ubuntu and, after getting to the Desktop, press Ctrl+Alt+T to open a terminal.

Now enter cat /var/log/boot.log and tell whether any errors are listed there. Also search cat /var/log/kern.log for errors.

If this experience scared you away from Linux and you just want to go back to Windows, open the program GParted and set a boot flag to your Windows partition. Remove the boot flag from the Ubuntu partition. Now try to reboot.

If you can reboot into Windows, and want to remove Ubuntu, just reboot to the Ubuntu DVD, open GParted and delete the Ubuntu partiton and the SWAP partition.

Resize the Windows partition to use the new free space to get the space usable again. NOTE: Before doing this, have a backup of your personal data from Windows, because partitioning can always cause problems.

To all the Moderators: I know this doesn't answer the original question, but I'm going to add additional instructions when I know more about the prob and am able to help.


Ubuntu: ThinkPad P50 with Docking Station - Flickering Screen on Notebook and external monitors

My personal solution (up to now) is to use a minidisplay-adapter for my external monitor in addition to the dock. (I agree, that's not really a solution)

Maybe this helps:
https://forums.linuxmint.com/viewtopic.php?t=241884

and here is a bugrepport reflecting the issue
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-361/+bug/1615734


Installing WineHQ

sudo dpkg --add-architecture i386
sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install --install-recommends winehq-devel

if it's not working, you can install wine-staging

sudo apt-get install winehq-staging

Source: https://wiki.winehq.org/Ubuntu

Another approach is to install PlayOnLinux

Installing PlayOnLinux

sudo apt-get install playonlinux

Then go to Tools > Manage wine versions and choose your wine version to install.


Need some help getting bluetooth to work

I can't tell the exact information you want know about Bluetooth. I assume that you are asking about bluetooth visibility to other devices.

Well, It's simple:

Hit the super button (windows key)
On the search box, type "bluetooth"
Launch the first application on the list by hitting ->enter
Just at the top of the window you will see a radio button labeled "Visibility of
(your device name)".Switch it on.

You can now scan available devices from whatever device you want to connect with your ubuntu machine.

If your question meant to ask fro something else, please edit it.

Method two:

open terminal and type

  rfkill list

Check where there is bluetooth.

You will find something like this

0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: ideapad_bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
2: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
3: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

If bluetooth says Hard blocked: yes, please type this

sudo rfkill unblock bluetooth

Try that...then lets Know what happens


By searching google with my last edit in mind I found this link Installed xorg on server, no screens found

which was similar but not exactly the same, but by using the first answerer's first command helped me find the problem which was 20-radeon.conf which I then deleted the file through tty, finally fixing the problem.


"Illegal Instruction (core dumped)" lubuntu 17.10 on development software (node, npm, sublime text)

This problem happens because your processor lacks the SSE2 instruction set. There's nothing you can do about it other than buying a new, more modern processor. I'm actually experiencing the same thing with my Athlon XP 2500+. The best solution is to use a distribution aimed at processors like this. I'm personally using antix Linux 17, which has its repositories aimed at non-SSE2 processors.
There's some things you can try as workarounds for some programs, but you will be out of luck for others. You can try to compile from source yourself, this will ensure the processors instructions are tailored for your specific processor, as its the one compiling it. I used this approach for RetroArch and worked flawlessly. You could also try to use older versions of the software you want to run that didn't require SSE2. Firefox for instance began using SSE2 in version 48, so you can use that version for a browser. However I personally use Pale Moon, a browser based on Firefox that has a dedicated non-SSE2 build. It can be found on the antix repositories. The main drawback is that you won't be able to use extensions as they require newer versions of the browser.
So now you know. Whenever you see "Illegal Instruction" it means that your processor doesn't understand what it's being told to do, since it doesn't have the required "dictionary", if you will, to understand it.


Ubuntu 15 network with bond, VLAN, bridge

So on ubuntu 15 server, I will use the "real" interface name (so, no ethx but the name givent by the bios vis systemd)

1- Enable the bond module for the kernel:

cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
loop
lp
#rtc
bonding

2 - Install necessary tools:

apt-get install vlan bridge-utils

3- reboot your server to be sure all is correct at this point. Note that you cancheck if the vlan and bonding module are loaded using:

lsmod | grep -E "bond|8021q"
8021q                  32768  0
garp                   16384  1 8021q
mrp                    20480  1 8021q
bonding               13926

4- Go to /etc/networking and make a copy of the interfaces file
5 - Here is the config I use to make it works:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

#

allow-hotplug enp1s0f0
iface enp1s0f0 inet manual
        bond-master bond0
        ethernet-wol g

allow-hotplug enp1s0f1
iface enp1s0f1 inet manual
        bond-master bond0
        ethernet-wol g

auto bond0
iface bond0 inet manual
        slaves enp1s0f0 enp1s0f1
        bond-primary enp1s0f0
        bond-miimon 100
        bond-mode active-backup

#
auto bond0.200
iface bond0.200 inet manual
        vlan-raw-device bond0

#
auto vmbr200
iface vmbr200 inet static
        address 192.168.2.5
        netmask 255.255.255.0
        broadcast 192.168.2.63
        gateway 192.168.2.1
        dns-nameservers 192.168.2.1
        dns-search mydomnain.lan
        bridge_ports bond0.200
        bridge_hello 2
        bridge_stp off
        bridge_fd 9
        up /sbin/ifconfig $IFACE up || /bin/true

5- Configure your switch to allow only vlan traffic on the ports where the 2 interfaces are connected (vlan trunck) (more on this later maybe :) )
6- if you only need dhcp on the bonding interface, use this:

auto lo
iface lo inet loopback

#

allow-hotplug enp1s0f0
iface enp1s0f0 inet manual
        bond-master bond0
        ethernet-wol g

allow-hotplug enp1s0f1
iface enp1s0f1 inet manual
        bond-master bond0
        ethernet-wol g

auto bond0
iface bond0 inet dhcp
        slaves enp1s0f0 enp1s0f1
        bond-primary enp1s0f0
        bond-miimon 100
        bond-mode active-backup

7- To enable WOL (wake on lan) on the 2 interface, note the line ethernet-wol g in the section of the 2 interfaces.

That's pretty all for now. I will tweak this question/post as soon as I have time toi play with LACP and bonding option as well as other setting found in the bridge parts. But it's a working solution for ubuntu 15 server and I hope it will help other people :)

Thanks


How can I see indicator-sync in LXPanel?

Even if this might be a forum zombie - it might help someone.

Coming from a bug filed on launchpad by a user with the same name, I suppose the Ubuntu One Indicator Plugin applet from Roman Yepishev (https://launchpad.net/indicator-ubuntuone) is meant here.

bug report: https://bugs.launchpad.net/indicator-ubuntuone/+bug/1076056

Solution:

Simply copy the starter to the folder where Lubuntu can find it:

cp /etc/xdg/autostart/indicator-ubuntuone.desktop .config/autostart/

Note that this will work only after a new login. If you want it to work instantly, use the following command line:

/usr/lib/indicator-ubuntuone/indicator-ubuntuone &

Hope it helps


Black screen with X cursor no access to terminal from there

When rebooting hit esc to see if ubuntu is loading files, if yes,then hit ctrl+alt+f2 to open terminal. Put your login and password. And try to re-install unity

sudo apt-get update

sudo apt-get install --reinstall ubuntu-desktop

sudo apt-get install unity

worked for me once


Sound not working after installing 14.04 from mini CD image

Okay, I've managed to resolve this issue now and I'll post how I did it in case anyone stumbles across this on Google at any point:

In my case I'd neglected to install speech-dispatcher upon installation. The minimum CD does not include this, as you'd probably expect. Simply run:

sudo apt-get install speech-dispatcher

If you're still having trouble also run:

sudo apt-get install alsa-base alsa-utils alsa-tools
sudo apt-get install libasound2 libasound2-plugins
sudo alsa force-reload


Ho my GOSH, I understood now. I mixed many different attempts consecutively and aplyed the last wich was wrong. The right approach is:

walter@walter-POS-EIBTDB:~$ sudo update-locale LANG=pt_BR.UTF-8
[sudo] password for walter:
walter@walter-POS-EIBTDB:~$ sudo locale-gen
Generating locales (this might take a while)...
  pt_BR.UTF-8... done
  pt_PT.UTF-8... done
Generation complete.
walter@walter-POS-EIBTDB:~$ õíõ :-)

My special thanks to: @Gunnar Hjalmarsson


I cant install old nvidia driver after kernel update

You have not given the details on How you tried to install, why you were not able to install (error message, etc), what exactly is the difference in performance that you noticed. It is always a good practice to provide as much (relevant) info as possible. It will help you get a quick & proper solution (or) at least, more closer options - besides helping/motivating the people who are trying to help.
If the driver is showing as the Recommended driver under Activities -> Additional Drivers, then it the latest stable legacy driver that supports your Ubuntu version & kernel version - according to Ubuntu.
Judging by the version number, the one that is installed now, seems to be the more later (if not latest) subversion of Nvidia 390 driver family. However, at times latest kernels & latest drivers don't go hand in hand.
You can install a particular version of NVIDIA driver by downloading it from official NVIDIA site (link below).
https://www.nvidia.com/Download/driverResults.aspx/137276/en-us
Note: This is for 64-bit GPU. If you have 32-bit, browse back in the site & select the appropriate one.

Now, before installing the particular version, you need to remove the
currently installed version(s). Follow the link below for
instructions.
https://askubuntu.com/questions/1097433/ubuntu-18-10-how-can-i-install-a-specific-nvidia-drivers-version

The download is a file with .run extension, and can installed by using just sh command (like below).
sh NVIDIA-Linux-x86_64-304.125.run


Typing commands into a terminal always returns "-bash: /usr/bin/python: is a directory"

When you run a command foo (where foo is replaced by whatever command you're running), the shell searches all the directories in the PATH environment variable for a file called foo with execute permissions.

If it doesn't find it, then in an Ubuntu system with the default configuration, it runs the command /usr/lib/command-not-found foo. This is done at the /etc/bash.bashrc file.

That's what produces output like:

$ foo
No command 'foo' found, did you mean:
 Command 'fio' from package 'fio' (universe)
 Command 'goo' from package 'goo' (universe)
 Command 'fop' from package 'fop' (main)
 Command 'fox' from package 'objcryst-fox' (universe)
 Command 'xoo' from package 'xoo' (universe)
 Command 'zoo' from package 'zoo' (universe)
foo: command not found

And:

$ gnuchess
The program 'gnuchess' is currently not installed.  You can install it by typing:
sudo apt-get install gnuchess

The command-not-found program itself (i.e., /usr/lib/command-not-found) is a Python script:

$ file /usr/lib/command-not-found
/usr/lib/command-not-found: a /usr/bin/python script text executable

So if your Python installation is broken, it is expected that command-not-found will always fail and give an error about Python. You can fix the problem by fixing your Python installation.

Ubuntu comes with Python installed, and requires Python for numerous programs (like the Update Manager and the Software Center, for example). Various different versions of Python are simultaneously available through the official software sources and different versions can be installed simultaneously without conflict. However, it is also possible to install Python manually by building it from source. If you do that, it's up to you to make sure that your manually compiled and installed Python does not conflict with any other installed Python implementations.

So the first thing you should do is to uninstall any manually installed Python. When installing it, there is a directory in which you would have run the command sudo make install. You need to go to that directory and run sudo make uninstall.

After you've removed all manual Python installations (if any), then completely reinstall Python:

sudo apt-get update
sudo apt-get --purge --reinstall install python

That will probably work. If it doesn't, then please provide the output of:

which -a python
file /usr/bin/python /usr/bin/python2.7


Reducing the size of the partition used by Windows

Boot into Windows and shrink the Windows partition using Windows tools. Leave the space that is released as unallocated.
Boot into a live Ubuntu DVD or USB drive.
Use gparted to create or edit partitions (and use the unallocated drive space).
If there are still problems for gparted, please reboot instead of shut down Windows. This avoids [semi]hibernating, and the file system will be ready for the linux tools. Later on you can turn of Fast Startup in Windows, which makes it stop semihibernating.


Find lock screen package in Ubuntu 19.04

The link you provided is pretty old. gnome-shell uses gdm3 instead of gnome-screensaver now.

try the following:

apt list gdm3

gives me:

Listing... Done
gdm3/disco,now 3.32.0-1ubuntu1 amd64 [installed]
gdm3/disco 3.32.0-1ubuntu1 i386

As you can see, it says above that it is installed.


Unable to play videos after converting from Netbook 10.04 to Lubuntu 14.04

Some packages may be incompatible with each other.

Please try reinstalling vlc and dependencies:

sudo apt-get install --reinstall vlc
sudo apt-get remove ubuntu-restricted-extras
sudo apt-get install ubuntu-restricted-extras


Ubuntu 18.10 & AMD RX 580. Flicker screen artifacts

I have RX480 that also flicker, for now my solution is to use an older kernel 4.18.0-11-generic.

You can boot to this kernel version in GRUB


How to set PcManFm as the default file manager?

After struggling with this Nautilus' slowness for a while, I decided to change my default as well. All of the "proper" solutions I tried doing didn't work very well. For instance, choosing the default in exo-preferred-applications didn't update the dash (or much else for that matter), changing .desktop files only worked sometimes (Dropbox still used nautilus), etc.

The simple solution that works for me in all cases without mucking with changing desktop files was to do the following two commands:

sudo mv /usr/bin/nautilus /usr/bin/nautilus.bak
sudo ln -s /usr/bin/pcmanfm /usr/bin/nautilus

You can of course replace /usr/bin/pcmanfm with /usr/bin/thunar, or whatever.

Edit: If you also want to have a desktop, open /etc/xdg/autostart/nautilus-autostart.desktop and make the Exec line

Exec=nautilus --desktop


An easy way to run commands at startup is to add them to /etc/rc.local but you need to make these commands executable your best bet is to use this script, what this script does is adds a link to the selected file in /bin/ allowing for it to be executed where you want.

What you should do is download the script and place it in a directory, it has to be ~/Scripts and then open a terminal and then run cd ~/Scripts then sudo chmod +x makeex.sh and then sudo ln -r -s makeex.sh /bin/

And then cd into whatever directory UbuntuBootScript.sh is stored in and run makeex.sh UbuntuBootScript.sh and then edit /ect/rc.local and add UbunutBootScript.sh to it.


New information:

It is worth noting libgtest0 no longer exists. As of 2013 or so (I am not sure of the date of the change) see this question:

Why no library files installed for google test?

Old answer prior to 2012:

It is in the Ubuntu repositories

sudo apt-get install libgtest0 libgtest-dev

See also man gtest-config


How do I enable sound with the "linux-virtual" kernel?

The -virtual kernel does not auto-load the snd module, that's the only difference (it contains snd and all its various sub-modules).

Simply run sudo modprobe snd to enable sound. To make this permanent, just add snd to the list in /etc/modules and run sudo update-initramfs -u.

If any modules appear to be missing, please install the linux-image-extra-virtual (Linux kernel extra modules for virtual machines) package.

  Note: in my experience, the other things a -virtual kernel may suffer from and which may need manual loading include no support for Unity 3D/OpenGL emulation, no bluetooth and no enhanced USB HID support.


DNS issues with VirtualBox VM and Ubuntu 18.04

You can resolve this by installing the resolvconf app from the repository.  Up until Ubuntu 18.04 LTS the app was installed by default.

$ sudo install resolvconf

After installing resolvconf on your VM client, add your desired DNS server to the /etc/resolvconf/resolv.conf.d/head file.

Place nameserver [your preferred dns server] at the bottom of the file.  After rebooting your VM client, you will see the content of the /etc/resolvconf/resolv.conf.d/head file in your /etc/resolv.conf file, which will take precedence of other settings.


This answer has a couple of examples on how to retrieve obsolete packages.

It should be fairly easy then to remove them.

A simple oneliner (warning not tested!) can be:

aptitude show '~o' | grep Package: | cut -d' ' -f2 | xargs -n1 -l --verbose sudo apt-get purge -y


I added "notify-send hi user" to startup command but it is not working. How can i make it work?

Try this

In terminal,

$sudo vim /home/user/hi.sh

#!/bin/sh
sleep 3
echo "Hi User!" | xargs -0 notify-send

save it.

In terminal

$gnome-session-properties

add
sh /home/user/hi.sh

Reboot and see if you can see Hi User!


When will the Humble Indie Bundle 6 games be supported on 12.10?

I know this questions is considered off-topic by most, but I'm going to answer because I got it to work for the previous humble bundle (Which was gifted to me).

You just need to install the debs as usual, and it will work as if you were on 12.04 (at least it did for me).


How does a Linux operating system recognize USB drive brand and other info?

There is a list of USB vendors and devices, built into a separate package usbutils. When you connect a USB device, the USB driver reads the vendor ID string from the device, and looks it up in the vendor table. Same for the device ID.

The official list is maintained by the USB organisation. Here's the list itself in readable format.


How do i enable a timed laptop screen power off from the console?

Ok so I gave this a go and succeeded.

As per systemd man page I've created a service in/etc/system/systemd/

Used setterm man page for the variables --blank 2 --powerdown 3

`[Unit]
Description=Enable virtual console blanking and poweroff

[Service]
Type=oneshot
Environment=TERM=linux
StandardOutput=tty
TTYPath=/dev/console
ExecStart=/usr/bin/setterm --blank 2 --powerdown 3

[Install]
WantedBy=multi-user.target`

saved as enable-console-blanking.service

Run sudo chmod 644 /etc/systemd/system/enable-console-blanking.service
then systemctl started and systemctl enabled it so systemctl status shows me:

> ● enable-console-blanking.service - Enable virtual console blanking
> and poweroff
>      Loaded: loaded (/etc/systemd/system/enable-console-blanking.service; enabled; vendor
> preset: enabled)
>      Active: inactive (dead) since Sun 2020-04-19 00:16:25 BST; 2s ago
>     Process: 20573 ExecStart=/usr/bin/setterm --blank 2 --powerdown 3 (code=exited, status=0/SUCCESS)    Main PID: 20573 (code=exited,
> status=0/SUCCESS)

I think thats 2 mins blank and 3 mins powersave, cant quite figure out what its doing, but it is going off, and thats a win in my books.


Strange logout issues on clicking icons in the launcher

I have the same problem. It seems to be a known Unity bug related to 'Window Spread' setting:

https://bugs.launchpad.net/unity/+bug/1462841?comments=all

The workaround is to disable 'Windows Spread' (thus losing that feature until the bug is fixed). Lame, but at the moment I'm not aware of anything better.


It may be better to do those operations from a TTY not from a terminal, do CTRL+ALT+F1 and logon on a real TTY.

Optionnal : Uninstall Kubuntu desktop sudo apt-get purge kubuntu-desktop -> It's optionnal because you can have both environements installed but only one running.
Then remove it dependencies sudo apt-get autoremove --purge
After that, install the lubuntu desktop sudo apt-get install lubuntu-desktop
Then, reboot your machine.

Be carefull : this process might corrupt the system, do a backup before proceed.


If binding to addresss is the problem(according to the logs), that means another program is probably using that port/address(80). You can find that program and stop it so that the port will be free for apache2.

Try the following these steps:

Enter sudo netstat -plant
This will give you the all the programs holding certain ports. Search for the programs which is holding the port ":::80" (or "0.0.0.0:80"). Save its PPID(PPID is the number just before the program name).

Enter sudo kill <PPID>, where '' is the saved PPID from the previous step.
This will stop the program which is using that port.

Now the port would be free to use. (re)start your apache2 server.

Source: https://wiki.apache.org/httpd/CouldNotBindToAddress


How do I change the hostname on Ubuntu Touch?

It turned out I needed to edit the file /etc/hostname (and update the ::1 and 127.0.1.1 entries in /etc/hosts). Rebooted and everything is fine.


Give this a try

sudo iptables -I INPUT -p tcp -s 0.0.0.0/0 --dport 9000 -j ACCEPT

To make the change permanent

iptables-save > /etc/iptables.conf # Save this changes to file
touch /etc/network/if-up.d/iptables # Create file to call conf from
echo "iptables-restore < /etc/iptables.conf" >> /etc/network/if-up.d/iptables # Add this line to this file
chmod +x /etc/network/if-up.d/iptables  # Make the script executable

Original Source


Right click the bar and press Add/remove panel items. Then press panel applets. Then Add. then a list will pop up. press Menu. You should also add Task Bar (Window List).


Remove Ubuntu 11.10 from Dual Boot Windows XP without XP CD?

This isn't a definite fix but is a quick workaround that might give you some more time:

Boot into Ubuntu
Open a terminal (type "temrinal" in the unity dashboard or press Ctrl+Alt+Del)
type/copy:

Sudo gedit /boot/grub/grub.cfg

Find the line that says:

set default="0"

Change the number to the position where your XP sits in dual boot menu, start counting at 0 - usually the first in the list will boot first hence the default="0".
Now find the line that says:

set timeout=10

change the 10 to 0 and it should just boot straight into windows on the next boot without displaying.

When you want to boot into Ubuntu (when your parents are out and you want to fix your mess!) hold shift while its booting and it should display your grub (dual boot) menu.

Good luck!!


you say u don't have a backup cd.
Well,stuff like this happens. I'm not an expert but u could reinstall windows 8.

If you don't have a windows 8 cd you can get it from microsoft i guess, from what i have heard, or from the manufacturer of your computer (that is if the computer came with win 8 pre-installed.

If that doesn't work idk where you can get a free copy of win 8, but i do know you can get an ISO of windows 7 from here (original, straight from microsoft): http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/cannot-find-digital-river-download-site/66a8439b-0d16-4b70-92f7-1c8486a46ebf

It's better than nothing...


Does the file '/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so' exist? If it doesn't try to look for it with locate v4l1compat.


How to install a software on a USB stick to be used on another computer?

Install Software to Computer with no Internet
I believe I have found a way to install software to a computer that does not have Internet access.
Required:
Computer with no Internet access, (Target computer).
Access to computer with Internet access.
USB drive.
Procedure:

Create a Full install of Ubuntu on the USB drive with the same version of Ubuntu as the Target computer, See: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step. a mkusb Persistent install will also work. See: https://help.ubuntu.com/community/mkusb

Install Synaptic on the USB. sudo apt install synaptic

Open Software and Updates/ Ubuntu Software confirm everything checked except Source code and Cdrom..., Close and Reload.

In Synaptic search for the program you want to install, select the main program and click Mark for Installation or Mark for Complete Installation.

Open Files in Synaptic and click Generate package download script. Save results in it's own folder as "newprogram.sh" where newprogram is the programs name. Do not press Apply.

In Terminal cd to the newprogram folder and run sudo chmod +x newprogram.sh then run the script ./newprogram.sh. (This may create a bunch of .deb files inside the folder)

Boot the Target drive and copy the newprogram package folder to the Downloads folder of the Target drive.

In Terminal cd to the newprogram folder and run sudo dpkg -i *.

The program and it's dependencies should now be installed.
Note: Above loosely based on https://ostechnix.com/install-softwares-offline-ubuntu-16-04/ without the need of installing Synaptic on the Target computer.


OpenStack + Juju: tenant_network_types in ml2_conf.ini

The configuration file in question is managed by the charm, and if it is manually modified, you run the risk of losing your custom setting when hooks, relations and other events occur.

In order to manage that configuration data with Juju, the charm would need to grow a new charm config option.  Please feel free to raise a bug against https://bugs.launchpad.net/charms/+source/neutron-gateway.  Be sure to include a description of your specific use case, and a request to consider adding this feature.


Suddenly my resolution of screen changed and i can't reset back

This is what I did:

Access terminal from login screen (Ctrl+Alt+F3)

sudo apt update
sudo apt upgrade
sudo reboot


Difference between Failed Authentications and Failed Logins in aureport

Alright I believe I've cracked this:

On a successful login, you generate 1 login and 2 authentications (One for PAM, and one for sshd):

type=USER_AUTH msg=audit(1526764807.252:118047): pid=25901 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:authentication grantors=pam_unix acct="root" exe="/usr/sbin/sshd" hostname=172.16.1.10 addr=172.16.1.10 terminal=ssh res=success'
type=USER_AUTH msg=audit(1526764807.261:118050): pid=25901 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=success acct="root" exe="/usr/sbin/sshd" hostname=? addr=172.16.1.10 terminal=ssh res=success'

type=USER_LOGIN msg=audit(1526764807.488:118058): pid=25907 uid=0 auid=0 ses=16568 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=172.16.1.10 addr=172.16.1.10 terminal=/dev/pts/1 res=success'

However, on a failed login, it depends on many factors, in my case, I did a login with an incorrect username, and supplied a password. This generated 1 login failure, and 3 authentication failure messages (1 for Public Key attempt, 1 for password, and 1 for sshd):

type=USER_AUTH msg=audit(1526765733.046:118093): pid=27246 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=pubkey acct="incorrectuser" exe="/usr/sbin/sshd" hostname=? addr=172.16.1.101 terminal=ssh res=failed'
type=USER_AUTH msg=audit(1526765734.217:118094): pid=27246 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:authentication grantors=? acct="incorrectuser" exe="/usr/sbin/sshd" hostname=172.16.1.101 addr=172.16.1.101 terminal=ssh res=failed'
type=USER_AUTH msg=audit(1526765736.654:118095): pid=27246 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=password acct="incorrectuser" exe="/usr/sbin/sshd" hostname=? addr=172.16.1.101 terminal=ssh res=failed'

type=USER_LOGIN msg=audit(1526765737.144:118101): pid=27246 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login acct="incorrectuser" exe="/usr/sbin/sshd" hostname=? addr=172.16.1.101 terminal=ssh res=failed'

So basically, if I omit the use of public key by enforcing password login with ssh option, I get only two authentication messages, instead of three.

I'm marking this as Solved. However, if someone has any reference document where it dives more into this, I'd be more than happy to have it.


Manually re-enable wireless and bluetooth

I found that under my "Bluetooth settings", I couldn't click anything and it said it was disabled by hardware switch.

So, I looked at my keyboard, and there's kind of this radio tower over "F2" in the color of the FN button. So I pressed FN-F2 and it re-enabled wireless and bluetooth.

I don't even remember pressing that button ever before, but I pressed it, and it worked.

Future viewers: If you see that your wireless AND bluetooth are disabled, and you're on a laptop, press FN-(wireless button, for example mine was F2). This will likely solve your problems.

What a simple solution. Really surprised this solution hasn't come up in any other Ask pages I've seen so far.

If this doesn't work, try the console commands:

sudo service wireless start
sudo service bluetooth start

as those returned neutral or favorable results for me, regardless of the button being down or not.


How can I open an application without making it appear (at all) in the Unity launcher?

I don't think it'd be possible in Unity, because the top bar is reserved for menus. But if you want it, you can install any other Desktop Environment like XFCE or LXDE. Then you can install some dock like AWN, Cairo Dock, etc.

Xubuntu with dock

Lubuntu with dock

More on docks: http://www.omgubuntu.co.uk/2010/04/you-choose-the-best-dock-for-ubuntu-poll.


No loudspeaker icon on taskbar, Kubuntu 18.04

You can try this:
sudo apt-get install indicator-sound
killall unity-panel-service
killall gnome-panel

or
sudo apt-get install indicator-sound
sudo apt-get install indicator-messages
sudo apt-get install evolution-indicator

Hope this helps.


You cannot have a single IP address, for your whole pc/laptop
Every NIC card has a unique IP address,so it will depend on how many NIC cards you have

But, if want to check your public ip (the IP address websites are using to recognize you) type the following into terminal:

curl ifconfig.me

Happy coding!


Is there any way to add the toolbar at the bottom of the new Firefox start page to the Ubuntu start page?

If you are asking about the bar at the bottom that you can add tools to, it is already there but is hidden by default.

If I am right in what you are asking,  in the Firefox menu go to View>Toolbars>Add-on Bar.
It will then pop up on the bottom of the screen. If you then right click on it and select customise, you can drag the widgets on and off the bar.

I tried to take a screen shot to show you the bar active but it is white, so is too hard to see in the picture and distinguish from the rest of the browser.


Can OpenVPN use an existing tunnel device instead of dynamically creating a new one?

From the OpenVPN manual page:

  --dev tunX | tapX | null

  TUN/TAP virtual network device ( X can be omitted for a dynamic
  device.)

Create a persistent tunnel device with:

sudo openvpn --mktun --dev <tun-name> --user <user-name> --group <group-name>

<tun-name> will be the tunnel device name. It should be "tun+number" (tun0, tun1, etc.).

<user-name> and <group-name> refer to user that will own the tunnel device.

Then you should use the same tunnel device name in the OpenVPN client. Instead of using --dev tun (command line parameter) or dev tun (configuration file), you should specify the name of the persistent tunnel device you created: --dev <tun-name> (command line parameter) or dev <tun-name> (configuration file).


Linux kernel didn't start correctly after boot

Please visit this website. They can help you..!
http://www.upubuntu.com/search/label/System

How Install/Upgrade to Linux Kernel 3.11.6 in Ubuntu/Linux Mint

Is the easy way to install a new kernel 3.11.6


File format problem, libreoffice writer is odt format, but i need .pdf, .doc, .docx, .rtf and .txt files format

Open the ODT file, you can then go to File > Save As (or 'Save as copy'), you can save to those formats and others:

You can also use 'Export to' and 'Export to PDF' to export to PDF and other formats.

For more information, you can use Help > 'libreoffice help' (or just press F1) - or use the online help (e.g. Save As, Export, Export PDF)

You can also use a command in terminal or a script to convert documents with libreoffice:

libreoffice --headless --convert-to <FORMAT> /<path>/<to>/<file>

where

libreoffice is the command for libreoffice (or probably libreoffice writer in this case) - this probably could be libreoffice4.2, libreoffice-writer, or soffice depending on how libreoffice was installed
--headless means it won't launch the libreoffice GUI.
--convert-to <FORMAT> - where <FORMAT> is the format you want to convert to, like pdf, docx etc
/<path>/<to>/<file> - file to convert - e.g. ~/Desktop/Untitled\ 1.odt or "/home/wilf/Desktop/Untitled 1.odt".

For more info on this run libreoffice --help or man libreoffice.


Simple C++ Thread Program Can't Be Compiled

You need to compile with -pthread as a compile option.

I got your code to compile with this (though I added the -Wall function to give me all warning notices):

g++ -pthread -out foo.exe foo.cpp

(where foo.cpp was the input filename I used containing your code)


Did you try this?

$ sudo apt-get install read-edid
$ sudo get-edid | parse-edid

If so, what is the output of the last command? Does it give an error message?

sean@sean-P55-USB3:~$ sudo get-edid | parse-edid
parse-edid: parse-edid version 2.0.0
get-edid: get-edid version 2.0.0

Performing real mode VBE call
Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
Function supported
Call successful

VBE version 300
VBE string at 0x11100 "NVIDIA"

VBE/DDC service about to be called
    Report DDC capabilities

Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x0 cx=0x0
Function supported
Call successful

Monitor and video card combination does not support DDC1 transfers
Monitor and video card combination does not support DDC2 transfers
0 seconds per 128 byte EDID block transfer
Screen is not blanked during DDC transfer

Reading next EDID block

VBE/DDC service about to be called
    Read EDID

Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
Function supported
Call failed

The EDID data should not be trusted as the VBE call failed
Error: output block unchanged
parse-edid: IO error reading EDID


How do I define another default ssh identity?

In your ~/.ssh/config file (create it if it doesn't already exist), you can specify which key to use with the IdentityFile directive:

IdentityFile ~/path/to/your/key

You can use this directive inside a "Host" section if you only want to use that key for a particular host.  For example:

Host *.example.com
    IdentityFile ~/.ssh/identity-example.com

If you run "ssh -v hostname", the debug information should confirm that it is using the key you specified.


Ubuntu 12.04 on Dell Latitude D610 along with Windows 7

Please see this answer.

Start following instruction where it said, Black/purple screen after you boot Ubuntu for the first time.
 Don't pay attention to screenshots. Those are wrong. Once logged in Press  Alt+F2 and execute gksudo jockey-gtk. This will check for the graphics dirver that may be required.


How can one-handed work in Ubuntu be eased?

I am writing this even considering that the person's right hand is also permanently immobilized.

Mouse

You might want to start using your mouse using left hand for the time being. You can change the mouse from Right Hand to Left Hand

Keybindings

You should change your keybindings which needs a key combo and the other key is on the right side. Like P or change screen lock from Ctrl+Alt+L

You can change your Keyboard bindings from Keyboards in System Settings

As I have never been in such a situation, so imagining is a bit tough.


Accept variable number of arguments and execute them

You can sort of do this but, as Michal Przybylowicz suggests, you shouldn't. If you know you want to do this, you could skip ahead; otherwise, please consider these alternatives.

If your goal is to issue multiple commands on one line that run one after another, separate them by ;.
If you you want them to run at the same, separate them by &. this will run them all in the background except the last one. If you want the last one to run in the background, put a & after it, too.
If you want them to run one after another but stop when one fails, separate them by && instead of ;.
If you want to be able to apply redirects to the while block of commands, enclose them in { }. You need a space after the opening {. The closing } must either appear on a new line or have a ; before it. Apply the redirections after the closing }, on the same line. For example, { echo H; ls /root; } >out.txt.
If the reason you want your function to run its arguments as commands is that you want to do other things with the arguments, then this might be reasonable, but you should consider alternatives. If you want to keep track of them, and the commands are being entered interactively, then you may be able to use the shell's own history facilities; see help history and help fc. If you want to immediately show the commands that will be run as well as run them, use set -x; see help set for details.

The reason you should not usually write a function that runs each of its arguments as a full command is that it would be cumbersome and error-prone to use such a function, because you would have to quote each argument that consists of multiple words (i.e., that passes one or more arguments to a command). This might not seem so bad... until you realize some of your arguments might themselves have needed quoting anyway, in which case you have to quote the quotes, too. This is workable, but far from ideal.

As a concrete example of the problem, consider the command you suggested you might be able to run to invoke your function:

myfun echo H ls /root git clone http://.... /home/myh/git/x1

That won't work. How is myfun supposed to know where one command ends and the next one begins?

If you really want to do it, one reasonable approach is to use the eval builtin (see help eval). Call the function whatever you like, it doesn't have to be named eval_all:

eval_all() { for cmd; do eval "$cmd"; done; }

for cmd has the same effect as for cmd in "$@". Use whatever name you like for the cmd variable; just remember to change $cmd accordingly. If you want to avoid writing to a cmd variable used outside the function:

eval_all() { local cmd; for cmd; do eval "$cmd"; done; }

However you decided to write this function, if you wanted to use it to run the commands echo H and ls, you would call it like this:

eval_all 'echo H' ls

But you can already do this, which is nicer:

echo H; ls

If you also wanted it to run the command touch 'honest $$$$ ideas.txt', you would call it like this:

eval_all 'echo H' ls 'touch '\''honest $$$$ ideas.txt'\'

There are other ways to quote single quotes. None of them are especially pretty. None are nearly as nice as:

echo H; ls; touch 'honest $$$$ ideas.txt'


titlebar sticks when I change to an empty workspace ?

this solved the problem

set Icons on Desktop in Tweak tool to on .


Update Manager failed with "the package catalog has broken" error

You can always try going to the command line and trying this command:

sudo dpkg --configure -a

and simply allow the package manager to repair itself. That will usually do the job.

Hope that helps. Have a nice day.


Why I am getting a segmentation fault opening Guitar Pro?

Try running

unset UBUNTU_MENUPROXY
unset GTK_IM_MODULE
unset QT_IM_MODULE

in the terminal before launching your program, but make sure you run the program in the same terminal session. If you open a new tab, for example, you'll have run those commands again.


How can I develop for Ubuntu Touch on Windows?

I would recommend installing a virtual machine. With ubuntu on it, or dualbooting Windows wit Ubuntu.


Can anyone tell me how to get the same Gnome desktop environment as the one in the photo?

You have to install VirtualBox Guest Additions in order to use Gnome Shell. There is no need to add any PPAs. Gnome Shell is in Ubuntu. But it requires hardware accelerated graphics, which isn't available until you install the Guest Additions.


Ubuntu wont install or run from live cd or flash drive

If you are trying to boot to the live CD from a USB memory stick then make sure it's formatted to FAT32. NTFS will not work.


internal microphone not showing up on Lenovo Yoga S740-14IIL (18.04)

I have the same problem with the same laptop, running Debian and kernel 5.7 and below.
I have not managed to fix the problem, but as a workaround, if I plug in specific headphones (ones with a four-connector TRRS plug), the built-in microphone is mysteriously detected and can be selected as an input device.
Edit: With kernel 5.8 and Sound Open Framework 1.5.1 (https://github.com/thesofproject/sof-bin) the built-in mic is picked up without any messing around plugging things in.


gpgkeys: key C927EBE00F1B0520 not found on keyserver

There are two errors in your question, one of them producing the GPG error.

 GPG error: http://toolbelt.herokuapp.com ./
 Release: The following signatures couldn't be verified because the public key is not available:
 NO_PUBKEY C927EBE00F1B0520

This GPG error is not related to Launchpad and as a result the keys cannot be retrieved with launchpad-getkeys. Following the instructions on http://toolbelt.herokuapp.com/linux/readme, you have to add the key with:

wget -q -O - http://toolbelt.herokuapp.com/apt/release.key | apt-key add -

Be aware that external repositories may be unsafe, only add repositories and keys that you really trust.

Failed to fetch http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/\*\*DISTRIBUTION\*\*/main/binary-i386/Packages.gz 404 Not Found

You've made a mistake in following instructions. Edit /etc/apt/sources.list and replace **DISTRIBUTION** with your actual distribution in lowercase (e.g. oneiric). Here's a command to do this automatically:

sudo sed -i /etc/apt/sources.list "s/\*\*DISTRIBUTION\*\*/$(lsb_release -sc)/"


The package isn't in official Ubuntu repositories. At the moment you have two choices:

Using some non-official package (PPA): Open a terminal and type sudo add-apt-repository ppa:telepathy/ppa. If this succeeded, type sudo apt-get update. Now you are done and can install Empathy. The current PPA version is 3.0.0-1~ppa11.04+1.
Go to the Empathy tree. There you'll find version 3.0.1 (tar.gz). You can download and unpack it. Before you continue make sure that the following packages are installed: gnome-common gettext libglib2.0-dev gtk-doc-tools libxml2-dev libtelepathy-glib-dev libmissioncontrol-client-dev libtelepathy-farsight-dev
libx11-dev libgtk2.0-dev
libcanberra-gtk-dev
libgstreamer-plugins-base0.10-dev
libebook1.2-dev
libnotify-dev
libunique-dev
libgnome-keyring-dev
Change into the directory where you unpacked the tar.bz2-file. First you should enter ./autogen.sh. If this is successful, you can build the software with the command make and make install installs the software in your system. Empathy's Install page has some more information.


Am I too late to upgrade a 14.04 to 14.10?

As Lucio mentioned in a comment, you can always upgrade to a development version. That way I could first upgrade to 14.10 and then to 15.04.

This is done using the do-release-upgrade -d command to go from 14.04 to 14.10 (the -d is required because the official version is obsolete so only the developer version is available for upgrade.)

Once 14.10 was upgraded, I could upgrade to 15.04 in the normal way, that is, using the do-release-upgrade without the -d option.

So if you are late upgrading from an LTS or other version to a newer version, you may need to use the -d to go to an intermediate version considered obsolete.


Windows folder lock 7 forgotten password

You can never be certain until you try but:

There is no Linux version of that software
There is no compatibility information on that software in wine.org's compatibility DB

So I'd say your chances are extremely slim to non-existent...


A proprietary driver is not installed.

You can install it by selecting it in Additional Drivers.

What is "AMD graphics driver(2GB)" is unclear.


I solved this by doing the following.

The fonts are located in /usr/share/fonts/. I got the contents of this location from another Ubuntu installation. I deleted the contents of that folder from my computer and copied the files from the other installation.

Then I changed permissions using sudo chmod 755 -R /usr/share/fonts and it worked.


Why should I install Ubuntu on a not so new computer?

You should install it on a newer computer, if you can! That said, it's fine to install Linux on an older computer if you want.

It is unlikely that anything will go really wrong if you do install it. However, bear this in mind:

Toshiba heat management isn't very well supported (I don't know how good kernel 4.0 is yet, I haven't updated my toshiba recently)
Ubuntu may not be as fast as the latest Windows is (Windows 10 is pretty good)
Not all hardware is compatible.
It might be worthwhile to dual boot, so you still have Windows if you ever need it.


Hotspot on Android phone creates visible Wi-Fi network.

On Android side you should know network name and its encryption key.
On Ubuntu side you should enter this information in NetworkManager:

click icon  in top right corner of screen;
then click on your network name and enter its encryption key).


Parsing error in blacklist-framebuffer.conf occurring at boot

I was able to fix it by changing line 6, which was just
    fb

to

blacklist radeonfb

I then updated the initial ramdisk filesystem with

sudo update-initramfs -k all -c

and reboooted. It seems to do the trick


How to set up two screens in one vertical-one horizontal formation?

You can probably use the xrandr tool for this (assuming that your driver supports the xrandr extension - I guess most do).

To check what monitors are connected and if xrandr works just type in a terminal

xrandr

On my system I get for example:

LVDS1 connected
[..]
DP2 connected
1920x1200 [..]

Now you can configure the placement etc. of the different outputs.

For example:

xrandr --output LVDS1 --mode 1280x800 --output HDMI2 --mode 1600x1200 --left-of LVDS1 --rotate left

This configures two screen side by side, the laptop-sceen is placed on the right of the external TFT and the TFT screen is rotated by 90 degrees (portrait mode).

To switch between different external monitors, often you need to switch one off, e.g. with

xrandr --output HDMI2 --off

because a lot of graphic cards just support 2 outputs enabled at the same time.


The FSB and RAM speeds will also be slower than newer computers, which will doubtless be adding to the delays.

I would say you might be better with a low-overhead distribution such as LUbuntu or LXLE.

I have a couple of older laptops that by rights should be fine, but don't seem to cope with the latest distro either. Such is life, unfortunately.

You can try the 32-bit version of Ubuntu, and try to remove some of the bloat from the system, but as Ubuntu tends to be an 'everyman' kind of OS, you may not have much luck. Especially with Unity - it's quite resource-hungry in my (albeit limited) experience.

HTH,
edooze.


How Do I Run update-perl-sax-parsers to get XML::LibXML::Document properly installed?

XML::LibXML::Document is just a XML::LibXML DOM Document Class.

You can't use it directly, only use XML::LibXML; is required.

first type sudo update-perl-sax-parsers --update

An you can quickly check that the following command works:

perl -e 'use XML::LibXML; $dom = XML::LibXML::Document->new( $version, $encoding );'


Which one: moving /home or making symlinks in regard to SSD efficiency

This approach are fine. I suggest you also consider these issues:

SSD technology and IO wearing

Depending on technology of your SSD, you have also to pay attention on IO rate of some applications. High IO could decrease the life of some devices. If was the case, these files would be better linked to HDD. I believe  this approach is not only for the /home but also /var and swap area

OS or Application Restrictions

On my last PC, I installed the OS on SSD and configured parts with more IO (swap area, /var and /home) to HDD. It seemed to be the ideal setting until some important applications began to fail. Ubuntu AppArmor resource was blocking output data of some applications to /var mounted on another partition. So this could be more a problem than an advantage if the user do not know how to set this restrictions.


how to create a ppa .dep that depends on non-default GCC?

You basically need to depend on g++-4.8:

Build-Depends: g++-4.8


`dotnet` command not found after installing using snap

You should try the following command

sudo snap alias dotnet-sdk.dotnet dotnet

Since snap doesn't provide automatic aliases for dotnet-sdk.

Regards,


How do I open new windows of a running app on another workspace under Unity?

You rely on a couple of flawed assumptions. First; it is not obvious that Mark Shuttleworth makes all these decisions. I hardly believe Ubuntu would've become such a success if he was a one-man show. It is a collective effort. Also, you assume that "this really handy function" has been thrown away. It hasn't.

Ok, now let's look at your question. It seems to be about how to launch a new instance of Firefox when there's already one running. Easy; middle-click it. Or if you use keyboard shortcuts, append Shift. For instance, if Firefox is number two on your launcher, press Super+Shift+2 to launch a new instance. You can then use Super+BAT (button above tab) to switch between Firefox instances, and you'll be moved to the correct desktop if they're on different ones. It will remember the window order, so you will also be able to use Alt+Tab to switch between the most recently used instances per application.

The cube and other Compiz effects are still available. Unity itself is a Compiz plugin, so none of those options have been removed.


Make the caps-lock key do the job of holding shift

[Answering the first question in your question. For the future, please submit a separate Ask Ubuntu question for each question you have.]

Install the gnome-tweaks package, if you haven't already done so.

sudo apt install gnome-tweaks

Then start Tweaks, navigate to Keyboard & Mouse -> Additional Layout Options -> Caps Lock behavior, and select Caps Lock toggles ShiftLock (affects all keys).


Because the first point release of Ubuntu 16.04 is not out yet, attempting to upgrade from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS without using the -d option will fail. The -d option is needed to specify that you want to "upgrade to the latest devel release". In short, you need to specify the -d option:

sudo do-release-upgrade -d


My understanding of this is that while gconf copied the entire tree to your home directory, dconf doesn't. So there are a bunch of things that dconf-editor just doesn't see as it may or may not be in your home directory (dconf-editor only seems to work on this scope).

gsettings seems to give MUCH more consistent results...


I can't use gedit and can't install on Ubuntu subsystem which is installed on my windows machine

MS/Windows/WSL2 doesn't support linux GUI integration with windows for the moment
Microsoft is working on it but it'll take another 6 months to a year (my guess) before that will be available
see MS blog : https://devblogs.microsoft.com/commandline/whats-new-in-the-windows-subsystem-for-linux-september-2020/#gui-apps
possible workaround : install ubuntu in a VM (virtualbox maybe)
Or use some workarounds as written in https://medium.com/@japheth.yates/the-complete-wsl2-gui-setup-2582828f4577
I wouldn't recommend it as it's not officially supported by ubuntu nor microsoft


There should have been a recent backup of your original passwd file at /var/backups/passwd.bak

Try booting from the live CD again and copying that file, instead of the one from the live CD. For example, if you have mounted the old filesystem at /mnt/oldsys then

sudo cp /mnt/oldsys/var/backups/passwd.bak /mnt/oldsys/etc/passwd

It will be slightly more complicated if your old system has a separate /var partition, but basically the same process. Then make sure the permissions on the copied file are correct

sudo chmod 644 /mnt/oldsys/etc/passwd


Ubuntu 12.04 doesn't find my wireless adapter on VMware

Go under VM menu, and make sure that the card is connected.  See image below.

I thought it was a given, since we're talking virtual, but here it goes:

VM software simulates all sorts of hardware devices.

Virtual machines, show just a wired connection. They don't know about, or care, what the actual physical connection is, wired or wifi. VMs on my main PC using wired Ethernet, and on my laptop using wifi show the identical icon in the Notification area, and behave identically.


Very high Xorg memory usage with Ubuntu 18.04

UPDATE:

I managed to figure out that the issue was a custom wallpaper systemd service that I was running to update the wallpaper every 30 seconds using pscirlce. Apparently I misconfigured the service and it wasn't removing something from memory properly. I don't know the exact cause of the issue, but removing this fixed my issue.

Unfortunately I lost the .service files so I don't have any more information for further research.


YES - running Wubi on top of an unsupported storage configuration can absolutely cause damage!  That's why you are told it's not supported!

The data corruption certainly affects the underlying NTFS file system, and files on it. root.disk was file in Windows, and it got wiped out, right?

All the chkdsk log is saying is that there were a lot of errors in the Master File Table, or index of files. The file data itself may have been unaffected, but the file system now may have no idea of where to find that data.

I recommend you restore files from backup as you notice they are missing.


Clarification needed on Juju deployment of the Ceph charm

Would you mind posting the config file that you used for your deployment?  That would be helpful.
Given your details about the hardware I would think that the charm would setup 3 OSD's (1 per server on /dev/sdb).
You're correct about Ceph managing a single block and storage pool.


`sudo apt-get update && sudo apt-get upgrade` show no updates available for months on my computer

Ah, I added a few more Ubuntu sources to my /etc/apt/sources.list, based on an example sources.list for Ubuntu 12.04:

http://pastebin.com/raw.php?i=E2B6i8G8

And 100MB of updates suddenly appeared!


You must allow the Apache user (usually www-data) to create files in that directory. This can be accomplished by making Apache the owner of the directory, for example, if the directory were called my-dir, you would open a terminal and run this:

sudo chown www-data my-dir


Uninstalled KDE-dependencies, can't install kile again

After browsing around like crazy, I found a definitive solution, just in case someone comes up with the same problem I had. The solution consists of installing aptitude and then installing kile through aptitude:

Following the commands

    sudo apt-get install aptitude

and

    sudo aptitude -R install kdebase-runtime
    sudo aptitude -R install konsole
    sudo aptitude -R install kile


How to install Gnome3 in future versions of Ubuntu?

"Gnome 3" is often confused with "gnome-shell".

Trying to simplify, Gnome 3 is basically the

Graphical User Interface (GUI) called gnome-shell
a number of key applications and
an extensive set of underlying libraries of code for the above.

Future versions of Ubuntu will use many of the key applications and the vast majority of underlying libraries of code. The remaining "Gnome 3" applications from above can be installed via Software Center.

Thus, this just leaves the GUI from the list above.  From Ubuntu 11.10 onwards, the default GUIs available will be Unity-3D and Unity-2D.  Assuming you need the GUI "gnome-shell", this is available to be installed through the Repositories as well.

There is a package in Software Center (or synaptic manager - if installed) called gnome-shell.

Install that and it will be available in your sessions menu to be selected when you next logon.

At the time of writing, 11.10 (oneiric) is in alpha.  A number of issues relating to integrating gnome-shell exists.  You should consult this AU Question before posting further more specific questions about Oneiric.


What make and model wireless USB dongle works with no issues?

Check out this list: https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported


How do I find projects in specific source language in Launchpad Translations?

This is generally very rare. Projects are typically written using the POSIX C locale (which is en_US in US-ASCII), and are then translated into other languages. And I don't know of any good way to find things based on the native language of the developers.

The translations system also generally expects that the default language being translated from is POSIX C.


Option to sync to Google Calendar doesn't show up in Evolution

This is a bug but can be resolved following this steps:

YOU HAVE THIS AND GOOGLE CALENDAR ISN'T AVAILABLE

Close Evolution :
Install Gnome Config Editor

  sudo apt-get install gconf-editor

navigate evolution -> address book :

Double Click on the right side and find the Google part select edit an copy all the line (all strange character are important):

then navigate evolution -> calendar :

double click on the right side -> Add and paste the line you copy before ...

now you can see :


Just found out how to:
Go into 'Software & Updates" it will open the settings window. The additional drivers tab is there, click on it, and choose the driver to be used.


I couldn't get it to work but there is a brilliant alternative already mentioned by Juan in Grub Customizer for anyone looking for a GUI to edit boot and grub.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update && sudo apt-get install grub-customizer


openjdk-7 gdb list error: "main.c: No such file or directory"

You should modify source path used by gdb to find out source file.

According to gdb manual:

  Executable programs sometimes do not record the directories of the
  source files from which they were compiled, just the names. Even when
  they do, the directories could be moved between the compilation and
  your debugging session. GDB has a list of directories to search for
  source files; this is called the source path.

You first need to find out where source file are on your system:

 locate main.c

and than use dir dirname command to:

  Add directory dirname to the front of the source path. Several
  directory names may be given to this command, separated by ‘:’ (‘;’ on
  MS-DOS and MS-Windows, where ‘:’ usually appears as part of absolute
  file names) or whitespace. You may specify a directory that is already
  in the source path; this moves it forward, so GDB searches it sooner.

Read carefully gdb manual's link above in order to know how this source path is used.


Install Java Plugin in Pale Moon Browser

As Gunnar Hjalmarsson said,

To install java plugin in Pale Moon web browser, you have to create a symbolic link of the file libnpjp2.so to the directory /usr/lib/mozilla/plugins

Here goes the exact terminal command

sudo ln -s /usr/lib/java/jdk1.8.0_121/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so

If needed, make corresponding changes to the command, if your java version and/or system architecture is different.

Note: Install latest Java JRE/JDK properly before adding symbolic link.

I have verified that the java plugin is working, by going to this page.


Ubuntu, jack, maximum priority for audio application

This is what I did to get best performance after fresh Ubuntu install. Priority set is important.
Install low latency kernel.
sudo apt install linux-lowlatency

Add new lines to /etc/security/limits.conf.
sudo nano /etc/security/limits.conf

* - rtprio 70
* - memlock unlimited
* hard memlock unlimited
* soft memlock unlimited

Install some services to set CPU for best performance.
sudo apt install cpufrequtils
sudo cpufreq-set -r -g performance

or
sudo apt install indicator-cpufreq

(after reboot you will see applet in notification area for changing performance of CPU)
Reboot.
Install jackd2 if you don't have installed already.
sudo apt install jackd2

Get name of your hardware. For example, my hardware: is PCH. The name of the hardware is in [].
cat /proc/asound/cards

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xa1228000 irq 130

Run jackd2 with parameters you need.
/usr/bin/jackd -d alsa -d hw:PCH -r 48000 -p 192 -n 3

You can change periods -p, frames -n and sample rate -r parameter for lowest latency. If crackling is present, this is your limit. (Frames / Sample Rate ) * Periods = Latency in ms.
Run DAW.
That's all. I hope this info could be helpful.


Disconnects on a Latitude e6410 with Centrino 6200 wireless

There is a very good step by step wifi support section on the Ubuntu site at

https://help.ubuntu.com/11.04/ubuntu-help/net-wireless-troubleshooting.html

Work carefully through this site following the instructions in order. This can fix many problems. You might want to do this with a wired connection available in case things go wrong.

Once you have done this very carefully see if the problem is solved.

If you problem has not been solved after working through this you can do the following that might help (it does for me on my netbook). Connect to the wired connection. Go to the software section and install WICD. Go to system settings-startup applications and add WICD as a start up. Uninstall network manager (this is very important). Reboot and see if this helps.


How can I get Compiz to work in a VirtualBox VM

In the VM configuration, go to the "Display" section, in the "Video" tab make sure "Enable 3D acceleration" is checked.

After installing Ubuntu inside the VM and starting it for the first time, install the 3 packages that start with virtualbox-ose-guest- inside the VM, then reboot Ubuntu inside the VM.  (BTW: you don't want the package named virtualbox-guest-additions.)

If I do that, I can run Compiz without problems (Unity doesn't work though!).


Can't access Windows 10 shares using SMB2 or 3 from 19.10

In /etc/samba/smb.conf, you should add this:

[global]
    client min protocol = SMB3
    client max protocol = SMB3

In windows 10 you should edit this and enter in the Local Group Policy Editor (search in windows)

  Computer Configuration -> Administrative Templates -> Network -> Lanman Workstation -> Enable Insecure Guest Logon - Enabled


When I ping my network address the loopback interface answers

192.168.1.15 is the IPv4 address of your device assigned in that particular network. By pinging that address you are actually pinging the localhost or the same "server" on which you are currently working on. There are basically 3 ways to access localhost;

127.0.0.1
localhost
IPv4 assigned within the network (here 192.168.1.15)

So, when you access/ping 192.168.1.15, the request goes to the device with that IPv4. But here it is the same device, thus acts as a loopback device. Consider pinging the same IP from another device. You'll get reply from the earlier said device and at that time it will not work as loopback device.


Your problem is with the Compatibility Support Module (CSM), which is enabled on your computer. Many Linux installation instructions suggest enabling the CSM, but this is bad advice. (The page you referenced comments that legacy mode will do nothing good, but doesn't really emphasize this point.) If you disable your CSM (aka "legacy boot support" or something similar) in your firmware setup utility, you should be able to get the Ubuntu installer to boot in EFI mode, which should then enable Boot Repair to work correctly. (In some cases, there are no "CSM" or "legacy boot" options, but there is a "boot mode" option with settings like "UEFI only," "UEFI or legacy," or "legacy only." Setting this to "UEFI only" should disable the CSM.)

If you can't find the appropriate options, I recommend you try using my rEFInd boot manager to force an EFI-mode boot. This is an EFI-only boot manager; if it boots, you can be sure you've booted in EFI mode, and on a UEFI-based PC, if it shows you an Ubuntu boot option, using it will boot in EFI mode. The page to which I linked includes download links for USB flash drive and CD-R versions of rEFInd; use one of those to prepare a bootable medium and boot to it. If this works and enables you to boot to Ubuntu, you can then either run Boot Repair or install rEFInd using its PPA or Debian package, which will bypass GRUB and use rEFInd as the default boot manager. One caveat, though, is that the downloadable USB flash drive and CD-R versions of rEFInd do not support Secure Boot. If this feature is enabled, you must either disable Secure Boot or jump through extra hoops to get rEFInd working with Secure Boot. The former will be easier than the latter.


After upgrading Qt, Ubuntu still uses the old version

Test if :

sh -c "$(find /home/John/Libraries/Qt-5.9 -iname 'qmake' | grep gcc) -v"

gives you the updated version, if so update the link in qmake command with

ln -sf $(find /home/John/Libraries/Qt-5.9 -iname 'qmake' | grep gcc) $(which qmake)


Realtek 8169 Gigabit ethernet adapter only 100Mbps in Dell Inspiron 5565, driver install did not solve

I had the same issue with 18.04 built-in r8169 driver not being able to negotiate gigabit speed. Then I found this in kernel log (dmesg | grep r8169):

[    3.484886] r8169 0000:01:00.0 eth0: RTL8168g/8111g at 0x        (ptrval), 84:39:be:65:a4:1c, XID 0c000800 IRQ 119
[    3.484891] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]

It seems to me the driver struggled at finding the address/port number (?) of the NIC. Fortunately re-trying initialization again made the issue go away. Maybe it's a timing issue?

What I did was to add several lines into rc.local to force reloading the r8169 kernel module:

rmmod r8169
sleep 2
modprobe r8169

Then the kernel log changes to this:

[   24.366692] r8169 0000:01:00.0 eth0: RTL8168g/8111g at 0x00000000955f6cfd, 84:39:be:65:a4:1c, XID 0c000880 IRQ 119
[   24.366700] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]

From this point on, it works on gigabit speed without any more issues.
Hope this helps.


How Do I Set All KDE Look And Feel Settings In A Script?

From my question I asked few weeks ago ( Where is the current KDE Plasma 5 theme saved? ):

According to this GitHub, currently enabled themes are stored in the ~/.config directory.
Appearance

Global Theme

.config/kdeglobals
.config/kscreenlockerrc
.config/kwinrc
.config/gtkrc
.config/gtkrc-2.0

Plasma Style

.config/plasmarc

Application Style

.config/kdeglobals

Window Decorations

.config/kwinrc

Colors

.config/kdeglobals
.config/Trolltech.conf

Fonts

Fonts

.config/kdeglobals
.config/kcmfonts

Icons

.config/kdeglobals

Cursors

.config/kcminputrc
So, I can now write a simple shell script that will save these files into a zip file and a script that will extract a zip file into this directory.

Note: This works only if you have all the themes installed. That means, you'll need to write a script that will check if these themes are installed before proceeding further. The installed themes have their own location too (it was somewhere in ~/.share/ if I remember correctly).


Why doesn't sudo crontab work but crontab works?

If I enter this command in " crontab -e ", it works fine:

That one is executed as you user so understands your HOME.

  Since my script contains sudo commands, I used "sudo crontab -e" and wrote:

Problem: if your line home/USERNAME/ should be /home/USERNAME/ (twice!) where USERNAME needs to be your actual user. You need an absolute PATH in crontab.

And indeed: the error is likely logged to /var/log/syslog

Oh and please do no use * * * * * without having some logic inside your script to have it not execute more times then you really want. If you need to run it forever use a systemd service with a respawn option.


How to access settings of new Skype for linux to set proxy?

Skype for Linux Beta has a basic support for the system HTTPS proxy.
Configure it via environment property HTTPS_PROXY, using the following format:
https_proxy = http(s)://username:password@hostname:port

Workaround:
I'm using Skype web version and works fine with proxy setting directly in the browser:

https://web.skype.com/

Conclusion: Microsoft blocks the proxy configuration in Linux.
The main motivation for do this it's force companies pay for Skype for Business (SfB).

UPDATE: Skype for Business Online - End of Life - July 31, 2021
The replacement will be Microsoft Teams in an attempt to fix Skype problems and limitations.

References:

https://support.skype.com/en/faq/fa1017/can-i-connect-to-skype-through-a-proxy-server

https://support.skype.com/en/faq/FA34656/more-information-about-skype-for-linux-beta

https://answers.microsoft.com/en-us/skype/forum/skype_linux-skype_startms-skype_signms/configure-skype-proxy-on-linux/f7f4eaed-b2c0-47d6-8168-eef7b444b081


How can one make Apache mod_expire to cache data for less then 24 hours?

Yes those should pass according to the official documentation here

It can be set as per the following:

years
months
weeks
days
hours
minutes
seconds


Which is the correct architecture for an intel xenon 5215 processor

Go to Get Ubuntu Server | Download | Ubuntu webpage, and click the Option 2 - Manual server installation button.

This will bring up a new screen. Click the green Download Ubuntu Server 20.04.1 LTS button.

A pop-up window will open saying You have chosen to open: ubuntu-20.04.1-live-server-amd64.iso. Click the Save File radio button and then click OK.


Where can I get the source files of the CD label?

I don't think they're available. The finalized PDF was uploaded by Canonical's Marketing Coordinator, which means the actual production of the document was probably done through channels internal to Canonical. A professional design team does not publish its source files.

With that said, I just tried importing the PDF into Inkscape (install) and it did such a good job it practically is the source file. Definitely give it a try.


HP Photosmart Premium C410b / Ubuntu / scanner function

The scan mechanisms and print mechanisms in Ubuntu are seperate, as opposed to the methods used on some other OSs.

For Ubuntu, the basic included scan program is Simple Scan, which can be found by opening the Dash and typing sane or simple scan, or opening a terminal and entering simple-scan

There are additional programs which can be downloaded to build upon the capability of the simple-scan program.  These can be found in the Ubuntu Software Center


Check the following configuration key:

gconftool-2 --get /apps/nautilus/preferences/desktop_is_home_dir

If the output is true, then set it to false:

gconftool-2 --set /apps/nautilus/preferences/desktop_is_home_dir --type bool false

then restart nautilus:

killall nautilus


Ubuntu 17.04 nvidia-settings, how to run from sshd?


Trying to install jdk 8.0 in ubuntu 16.04 but getting error

Instead of installing it from command-line, manually download and install the JDK package. Here is how:

Download appropriate JDK from here (.tar.gz).

Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JDK into the system location.
Change directory to the location where you would like the JDK to be installed, then move the .tar.gz archive binary to the current directory.
Unpack the tarball and install the JDK, type in: % tar zxvf jdk-8uversion-linux-x64.tar.gz

The Java Development Kit files are installed in a directory called jdk1.8.0_version in the current directory.
Delete the .tar.gz file if you want to save disk space.

To know more, visit: https://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html


How can I allow my computer to use more bandwidth?

although it works it is slow as it is not supported

That is a contradiction: it either works and is supported or it does not work and is not supported. Working and not supported is not possible. TP-Link Archer T6E uses a Broadcom chip.

You need the Broadcom proprietary driver (bcmwl). Those are likely on the ISO in the /pool directory. Enable the CD-rom repository in Software Sources, and in a terminal session do ...

sudo apt update
sudo apt install bcmwl-kernel-source

That will install the kernel modules needed to start using it.

In case you can connect to the internet wired, USB tethering, or a hotspot you can also do:

sudo apt-get install linux-headers-generic
sudo apt-get --reinstall install bcmwl-kernel-source

Before you start with this 1st check the common commands related to wireless and see if the commands identify your card and if a driver is active. You might have the wrong driver installed. There is a script called wireless-info that gathers all the data you need. Also install

sudo apt install pastebinit

That enables the script to make you a forum optimized paste that you can use to post on ubuntuforums so someone else can analyse it.

But again: a wireless either works or it does not work. And when it works it is supported. Anything related to speed is more likely to be related to settings: for instance the channel can be important. You can set that at your router.


How to find which installed packages are important?

If the installed package has priority  important or required then this kind of packages are considered as most important packages.

apt-cache show <package-name>

The above command  shows the priority of the corresponding package.

avinash@avinash-Lenovo-IdeaPad-Z500:~$ apt-cache show hostname
Package: hostname
Essential: yes
Priority: required

So run the below command to find all the packages which has the priority important or required.

dpkg --get-selections | xargs apt-cache show {} | awk -F' *: *' '$1=="Package"{p=$2;next} $1=="Priority"&&$2~/(important|required)/ {print p}'

Essential packages has the an extra record "Essential: yes" in the output of apt-cache show <package-name> command.These essential packages also has the priority important or required.To get the list of only essential packages then run the below command.

dpkg --get-selections | xargs apt-cache show {} | awk -F' *: *' '$1=="Package"{p=$2;next} $1=="Essential"&&$2=="yes" {print p}'

Save the above commands output to a text file for future use.


Is there a good method to create a keyword cloud in Ubuntu?

This looks like you want a graphical tool that expands upon 'grep'

For example, say I'm in a folder called 'Documents' and I want to search through all the directory and all the subdirectories for files that contain the word 'event'. Then I can do:

grep -r -l "event" *

more on grep can be found by typing 'man grep' in a terminal window.

AFAIK, no graphical tool exists to do specifically what you want. But such tools can be created. Can you give a more detailed description of what you want to do?


SD card or USB stick as permanent storage?

Since you keep a regular backup using a USB stick or SD card should work until you upgrade to a bigger internal drive. If size is not an issue, I would recommend

a high quality and fast USB 3 stick, or
even bigger and better: a USB 3 SSD (in an external box).

See this link about fast USB drives.

You can use a linux file system, ext2 or ext4. If you use ext4, you should turn off journaling. In both cases I recommend to use the mount option noatime in order to reduce wear. See this link.

An alternative is to store your files in the cloud (there are many 'free' or cheap web sites, where you can store files and access them whereever there is an internet connection).


I have successfully enabled netflix desktop with a customized wine version from:

http://pipelight.net/cms/install/installation-ubuntu.html

You will need to enable silverlight before start wine-browser
Use two commands:

sudo pipelight-plugin --update
pipelight-plugin --update

For some reason the first command was not enough, I have started wine-browser before ran it, and I had to remove the .wine-browser folder with:

rm -rf .wine-browser

And then I ran it without any problem. (silverlight plugin).

There is also: A way to enable netflix-desktop using pipelight

With commands:

sudo apt-add-repository ppa:ehoover/compholio
sudo apt-get update
sudo apt-get install netflix-desktop

It seems to install a shortcut to the application so you just have to call Netflix from your dash or alt+f2 (krunner), etc.


Configure NetworkManager's dnsmasq to use /etc/hosts

To speed up internet, ubuntu 12.04 has added a plugin to NetworkManager to start dnsmasq, a local dns server that caches dns entries. The problem is the plugin has hardcoded the --no-hosts string.

So one solution is to comment out the line that load the plugin in the NetworkManager config file and restart NetworkManager :

sudo mv /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf.bak
sudo bash -c 'cat /etc/NetworkManager/NetworkManager.conf.bak | sed -e "s/^\(dns=dnsmasq\)$/#\1/" > /etc/NetworkManager/NetworkManager.conf'
sudo restart network-manager

Another solution is to wrap dnsmasq to filter out the undesired arguments:

sudo mv /usr/sbin/dnsmasq /usr/sbin/dnsmasq.bin
sudo bash -c 'cat > /usr/sbin/dnsmasq' << EOF
#!/bin/sh
dnsmasq=/usr/sbin/dnsmasq.bin

exec $dnsmasq `echo $@ | sed -e s/--no-hosts//`
EOF

sudo chmod 755 /usr/sbin/dnsmasq

Please mark the bug as affecting you.

Another solution without patching system files

cat /etc/NetworkManager/dnsmasq.d/hosts.conf

addn-hosts=/etc/hosts


Server autoinstall: How to customise storage section?

First time through I went through manual install.  Then you will find /var/log/installer has yaml files that can be used as a template for the actual autoinstall.yaml that you want.  This is what I then constructed to replace Debian installer preseed with aoutinstall.
  storage:
    config:
    - grub_device: true
      id: disk-sda
      path: /dev/sda
      ptable: gpt
      type: disk
      wipe: superblock-recursive
    - device: disk-sda
      flag: bios_grub
      id: partition-0
      number: 1
      size: 1048576
      type: partition
    - device: disk-sda
      id: partition-1
      number: 2
      size: -1
      type: partition
      wipe: superblock
    - fstype: ext4
      id: format-0
      type: format
      volume: partition-1
    - device: format-0
      id: mount-0
      path: /
      type: mount


Will U1 phase out affect apps purchased in the Software Center?

It's Ubuntu One Files what it's being closed, not the whole Ubuntu One accounts so it shouldn't affect you.


Create a new user first: sudo useradd samba-guest.

Search your smb.conf for guest account. Set this to samba-guest (guest account = samba-guest).

Now restart Samba and it should work.

For more info, please click here.

Note: don't forget to give samba-guest read permissions for /var/www/html/store.


ACPI error while installing Ubuntu 16.04 on dual boot with Windows 10

I have solved. I recommend you don't use UNetbootin to create the bootable USB; instead use Rufus if you are in Windows or use the command line if you are in Linux (dd command). The main problem was with the graphics drivers and these are the steps I followed to solve this issue:

Once you have launched the bootable USB and you see the GRUB menu, move the selector to Try Ubuntu or Boot from live disk, whichever option comes.
Press E in order to edit the install command you are about to run. Go to the line that starts with word linux (the one with the words quiet splash), go to the end of this line and after the --- put the following words: nouveau.setmode=0.
Press f10 to boot the system
You can now run the installer
After reboot, repeat steps 2 and 3
Once you have booted go to terminal and type

sudo apt-get install nvidia-384

(384 is the latest and more stable driver version at the moment, replace this number with the last driver version you find on nvidia site in the future).
Now from menu go to Additional Drivers, go to proprietary drivers tab, select nvidia drivers and reboot

Last thing: if you experience screen tearing during Ubuntu use I suggest you to read the answer to this question.


Try and make it as regular as possible, that way you'll get to meet people more often but others will be able to pop in if they know it's going to happen so that it doesn't have to be pre arranged.  In Ireland we have 3 of them running, Dublin is on the last Wednesday of the month and people chose that date and it's worked out well.

What we've found is by picking somewhere central to meet up, people can have a bite to eat, or drink and chat.  Making it relaxed and not a formal event is key to making it fun and for it to happen again and again.

It's a fun way to explain/show people new features you've found in a casual way, so I've showed the Loco Directory and let people use my laptop if I was running the latest release.

Make sure everyone is welcome, if there are new less technical people present and the topics are getting too technical, talk to them separately or perhaps suggest techy talk for another time.

Above all just have fun and chat about your community.  Ubuntu hours are about your local area and the people in your community.


Docker run command does not works in bash script

It looks like you are using redirection incorrectly (output of docker load redirected to alpine.tar):

docker load>alpine.tar

I would suggest that you download alpine.tar from the other machine again (since it could be corrupt now) and then use docker load -i alpine.tar instead.

Since the image isn't loaded correctly, it would explain why the create command fails and $image_id is invalid. I would suggest to add a check that image_id is correctly set.

Measuring the start time of the container solely on when docker run returns to the shell would not be true measure of start time. From the docker run documentation:

--detach , -d       Run container in background and print container ID

This means that it will run in the background and just because it returns to the shell does not mean that the container is actually fully up and running.

You are also using $image_id as the name of the container you're starting, and I'm guessing you want to start a container with the actual image you just loaded. It would make more sense with something like:

docker run -i -d $image_id test_container

I would instead suggest to have a HEALTHCHECK or ENTRYPOINT instruction in the Dockerfile that would print something when it is actually fully up and running.

It is possible to stop/exit the container directly by specifying the entrypoint script being a shell, and then send a command to that shell, in this case exit:

docker run -it -d --entrypoint=/bin/sh alpine:latest exit

In your case, you should probably use $image_id instead of alpine:latest.


Problem setting max charge threshold with tlp on thinkpad L590 on Ubuntu 20.04

This is a known firmware issue. From to the FAQ

Charge thresholds shown by tlp-stat -b do not correspond to the configured ones

ThinkPad Edge, E / L / S series, SL410/510, Yoga series

On these models the threshold values shown by tlp-stat -b do not correspond to the written values.

For example the setting

START_CHARGE_THRESH_BATx=75
STOP_CHARGE_THRESH_BATx=80

shows 75 / 74. The described behavior is caused by the firmware (UEFI/BIOS), not by TLP.

Nonetheless the charge thresholds work as configured.


When would it be that Ubuntu 15.XX is released?

The numbers here show dates.

14.10 means it was released in 2014 October, so 15.04 should be released in 2015 April.

15.10 - consequently in 2015 October.


Leave old kernels installed could be dangerous?

You do not have to leave old kernels, and you do not have to remove them.

Old kernels just take space of your HDD. That's it. You can have one or two old kernels installed just in case you want to boot with one of them.

Old kernels do not affect a working system in any way.

So it is 100% SAFE to leave old kernels installed if this was the question. They will not be used unless you deliberately boot with one of them.


I think terminal applications usually start the terminal you specify in /etc/passwd. When you do a grep dkish /etc/passwd, what does the last part (the part after the last : character) say? I'm using bash, so on my system it gives /bin/bash. If it says something different, try editing this file. You'll need to logout+login for this to take effect I think.
Update You mention your Bash 'starts badly', but that /bin/sh is not affected. This could be an issue with Bash specific configuration files. ~/.bashrc and /etc/bash.bashrc come to mind. Check ~/.bashrc first. Does it contain a command that is waiting for input? Does it contain a long running command not set to run in the background?
Another way to check if those files are the culprit is to start a shell using /bin/sh and then manually start Bash using /bin/bash --norc. Does this give you a Bash that works without having to press Ctrl+C?


where can I find the official virtual box for ubuntu 13.10?

If you want to download the latest version 4.3.0, just as Babin said in his answer, you can download it from the VirtualBox site.  Make sure you download the right file for your architecture (32bit or 64bit).  Once downloaded, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to where the file was downloaded, probably the downloads folder, and run the command(s) below:

sudo dpkg -i <file_name>.deb

If you don't mind verison 4.2.16, then just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install virtualbox


ATI Catalyst vs Distro Compatibility Question

I very recently installed that 14.3 beta driver that ATI provides. This was my system specs and I am using Ubuntu 13.10.

X.Org/X Server - 1.14.5
Kernel 3.11.0
Eglibc version - 2.17

So that clearly tells you the story. You dont need to be that specific.

I would suggest that you follow the installer notes and also check the release notes(I suppose you have already) before installing. If anything goes wrong, start a tty session by pressing Ctrl+Alt+F1 then use the command

sudo aticonfig --uninstall

to uninstall the driver you have. Then reboot with,

sudo shutdown -r now

This way you can uninstall the driver if you encounter a problem after installing the driver. But that 14.3 driver seems to be working as far as I know with the specifications that are not too specific as you can clearly see above.


That's weird.  I just tried with the same font (mingliu.ttc) and it worked fine in LibreOffice on Ubuntu 10.10.

There might be a problem with your font cache.

Try running sudo fc-cache -f -v.  This will rebuild the cache.


Set file association by file type, not mimetype

Figured out, had to create my own MimeType.
Just followed this: https://help.ubuntu.com/community/AddingMimeTypes


Does Ubuntu's disk encryption work along side Windows 10 in a dual boot system?

Yes. It is called disk encryption, but in fact it encrypts partitions and will not encrypt your Windows 10 partition if you don't let it.


How do you access the hard drive in ubuntu?

Sims 3 is not designed to work on Ubuntu, according to their website it supports Mac and PC only.

If you are trying a workaround, please give details of what you are trying.

Otherwise, this may help you get started if you have the time to try getting PC games working on linux.


Chromebook boots into Chrome OS instead of Ubuntu

If I understand correctly, you dual-booted ubuntu and chrome os? If that's the case, just hold F8 on boot and select Ubuntu instead of chrome os.


I need help setting up Apache2 with Mono to accept web pages from Visual Studio

sudo apt-get install mono-apache-server libapache2-mod-mono

  sudo nano /etc/apache2/sites-available/site.conf

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName [SITE].[DOMAIN].com
    MonoAutoApplication disabled
    AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
    MonoSetEnv MONO_IOMAP=all
    MonoApplications "/:/var/www/site"
    MonoServerPath default /usr/bin/mod-mono-server4
DocumentRoot /var/www/site
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/site>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
            SetHandler mono
            DirectoryIndex index.aspx index.html
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel debug

    CustomLog /var/log/apache2/access.log combined
</VirtualHost>

  sudo a2ensite site

  sudo service apache2 reload

:)


You're trying to open the files with commands like this:

nano etc/apt/sources.list
nano conf/hadoop-env.sh

In the first, you forget to add the root folder! Just add a slash before the rest of the file path:

nano /etc/apt/sources.list

In the second, you need to add the Hadoop path:

nano $HADOOP_HOME/conf/hadoop-env.sh

Also, you'll probably need to open them as root user, so add sudo before all the command (just like with gedit!):

sudo nano /etc/apt/sources.list
sudo nano $HADOOP_HOME/conf/hadoop-env.sh


Update manager gives updates for older kernel

sudo apt-get autoremove

is not removing the older kernels.

Here is little discussion about that:

http://ubuntuforums.org/showthread.php?t=996053

And here is description of how it is achieved to remove older installed kernels
with their headers:

http://ubuntugenius.wordpress.com/2011/01/08/ubuntu-cleanup-how-to-remove-all-unused-linux-kernel-headers-images-and-modules/


How to auto answer to a multi-stage command?

This is possible. Although as mentionned in comments probably not the best idea. Please note that you have to use your own password for sudo, not root's password (that's precisely the point of running sudo). It's probably best to configure sudo to not ask a password. Also your vpn probably has an option that takes a credential filename.

The program you need is called expect. So first sudo apt-get install expect. Expect, as its name suggests, expects strings on terminal and sends back other strings. It is the perfect tool when a program prompts for answer. It's a quite complex program but here, it can be used in a very basic way :

run sudo command and monitor output on terminal
when you see this string, send this answer
when you see this other string, send this other answer
etc...

see askubuntu question 307067 or stackoverflow question 38458053 for example. Your search engine will find many examples once you know you have to ask for "expect password examples".

sudo will not always ask for your password. if you rerun a sudo command in the same terminal within 5 minutes or so, it won't ask for a password the second time. You can use expect timeout in such situations.

You could write a script called myexpectscript with such content :

#!/usr/bin/expect -d
set timeout 5

set pw {YOUR ubuntu GNU/linux P4ßw0rd}
set vpnuser {yourvpnusername}
set vpnpass {vpn-PAs$w0rd}
spawn sudo -p sudoisaskingforyourpassword vpncommand -foo -b ar etc...

expect "sudoisaskingforyourpassword" { send "$pw\n" }
expect {Do you really want to do that} { send "Yes\n" }
expect {vpn user prompt} { send "$vpnuser\n" }
expect {vpn password prompt} { send "$vpnpass\n" }
interact

make it executable with chmod 700 myexpectscript, then run ./myexpectscript.
Change -d to -f to get rid of the debugging outpout. You have to adjust the timeout, the command and the various prompts and passwords.

All this is, of course, completely untested.

Last but not least : expect uses the TCL language. TCL is a very elegant and friendly language, it's just a bit picky about who its friends are. If you get errors, be prepared to read docs for a long time.


Ubuntu doesn't boot after adding a bootflag to the Windows partition

Ah, UUIDs for partitions. In my experience, that approach only works as long as you don't tamper with your partitions.
What I have resolved to is removing every reference to the UUIDs in /etc/fstab and in Grub and then things tend to work.

Sometimes drives are named differently when you are in a minimal system, therefore you cannot mount /dev/sdb1. Try looking which partitions were found by doing

  fdisk -l

Alternatively you can watch the kernel boot very careful, or use

  dmesg

to show you the kernel ring buffer again...