OpenGl renderer shows N/A on NVIDIA/INTEL GPU config with prime-select intel

sudo inxi -G
Graphics:  Card-1: Intel Device 5916
       Card-2: NVIDIA GM108M [GeForce 940MX]
       Display Server: X.Org 1.19.5
       drivers: modesetting (unloaded: fbdev,vesa)
       Resolution: 1920x1080@60.05hz
       OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2)
       version: 4.5 Mesa 17.2.4

It worked with sudo for some reason. Looks like i do have openGL running properly.


Rhythmbox plugins installation dependency issue

in a terminal,type

sudo apt-get install -f

the -f flag means --fix-missing

after this, u can run

sudo apt-get install ubuntu-restricted-extras

this installs a few third-party plugins.

You can try to run your plugin install command again.


It wasn't gnome-shell problem. Same day I also tried to browse font pack with Font Manager by adding folder to Font Manager without knowing that these fonts would be installed. It was 1GB font pack provided by Google, with various quality which made this problem

After removing this font folder everything back to normal. What a nightmare!


ps doesn't show network ports, at least not to my knowledge. The more appropriate command to use is netstat or lsof.

For instance, if I want to see whether or not my ssh server is listening on port 22, I can do this:

xieerqi@eagle:~$ sudo netstat -tulpan | grep ":22"
[sudo] password for xieerqi:
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1012/sshd
tcp6       0      0 :::22                   :::*                    LISTEN      1012/sshd

Same for lsof, if I want to check a specific port, like 58732

xieerqi@eagle:~$ sudo lsof | grep ":58732"
[sudo] password for xieerqi:
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
firefox    2491          xieerqi   65u     IPv4            1948841         0t0        TCP eagle:58732->104.16.113.188:http (ESTABLISHED)

As to why your command returned

user 4378 4308 0 09:40 pts/2 00:00:00 grep --color=auto 6703

That is the only string that was matched in the output of ps, in other words, grep command itself is the only  one on that list. And again, there wouldn't be anything else, because you're looking for ports, and ps doesnt show ports


Usually such a device gets disconnected due to poor signals. See if it's heating.

Sometimes you need to install proprietary drivers for the dongal to make it properly functional

See :

How to get my 3G ZTE MF XXX / Prolink PHS XXX dongle working in Linux
How to Install Huawei Mobile Partner 21 in Ubuntu (For Huawei dongals)


Merge two unallocated partition using gparted?

I suspect that they can't be merged because they are not next to each other. Try moving sda 5 and sda 4 all the way to the left or right so the unallocated areas are next to each other and see if you can merge them then.

Good luck.


Unity tweak tool is already in the official ubuntu repository, look:
$ apt search unity tweak tool

unity-tweak-tool/focal,focal 0.0.7+-0ubuntu6 all
  configuration tool for the Unity desktop environment

Then you don't need anymore to have their repository installed. You can remove it from the /etc/apt/sources.list.d/ directory or its specific line from /etc/sources.list file.
If you don't know how to remove the file or edit the file just ask.
After that simply update again your installation with
# apt update

or
$ sudo apt update


For an Intel card  install the i965-va-driver and vainfo packages. After that, issue the vainfo command, you should get something similar to this:

$ vainfo
libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: i965 Driver 0.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD


Mount network drive - line 3 in /etc/fstab is bad

The problem is that there is a space character in the URL.

Since fstab does not allow use of quotes, you have to use the escape character notation. Use \040 to replace the space between "Seagate" and "expansi"


I guess it's a problem with the Python PATH. Probably your installation does not look for packages in the directory where Biopython installs its files.
Step 1 - Checking the Python PATH and Biopython installation directory:
Please check your Python 2's PATH setting with the following command:
python -c "import sys; print('\n'.join(sys.path))"

According to the package content of python-biopython version 1.64, it will install the Bio package directory in /usr/lib/python2.7/dist-packages/, so if this directory is missing in your Python PATH, we have spotted the error cause.
Step 2 - Trying a temporary fix:
You can add a directory to the Python PATH variable by setting the shell's environment variable PYTHONPATH before starting the interpreter:
PYTHONPATH="/usr/lib/python2.7/dist-packages" python

In this Python session you should now be able to use the Biopython package. After you verified that it works, we can continue with...
Step 3 - Making the fix permanent:
Python has one directory where it looks for path configuration files (*.pth). We find out which directory this is in your installation with the command:
PythonSiteDir=$(python -c "import site; site._script()" --user-site)
echo $PythonSiteDir

This first stores the path in the variable $PythonSiteDir and then outputs it to the terminal. In your case, it will probably show the directory /home/alex/anaconda/lib/python2.7/site-packages, but if not, please use your respective directory instead.
We have to place our custom .pth file into this directory, so first we make sure that we don't accidentally overwrite an existing file by checking which path configuration files already exist there. To avoid much typing, we use the variable we created earlier:
ls ${PythonSiteDir}/*.pth

All file names displayed by this command do already exist and may not be used.  Assuming that biopython_directory.pth was not in the list, we will now create this file and let it contain the path where Biopython is installed:
echo "/usr/lib/python2.7/dist-packages" > ${PythonSiteDir}/biopython_directory.pth

That was all. The only thing left by now is to test whether it worked. You can either just start using Biopython again or you can first check the current Python Path with the command from above:
python -c "import sys; print('\n'.join(sys.path))"

Source/inspiration for step 3: https://stackoverflow.com/a/12311321/4464570


I followed the steps here and I have sound working. Don't be daunted by the long list of to-remove packages that the command there generates, it will work after rebooting.


use $x variable in with cut command parameter

Yes it is possible:

$ lines=("abc,def" "foo,bar")

$ x=1
$ echo "${lines[1]}" | cut -d, -f$x
foo

$ x=2
$ echo "${lines[1]}" | cut -d, -f$x
bar

However this sounds like an XY problem


Dual Monitor display space is larger than physical screen

Set the higher resolution monitor to be your primary monitor.  Steps for this vary depending on what driver you're using, if it supports xrandr, whether or not you're using xinerama, and if you're tweaking your xorg.conf among other things.

So no step by step.  You can get all your icons on your desktop that way though.


You're right about Alt-F12, for toggling mouse mode on and off.

As for scrolling in the Byobu, you'd need to enter scrollback mode, using F7.


How to install Ubuntu "alongside windows"?

You might see option 'Something else'
select it.

now select partition where you want to install ubuntu
asign '/' partition  and swap partition.

NOTE:- select partition carefully,take important data backups in case you fail.


Your quoting is messed up - as you can see by running the assignment with set -x:
$ alias modemreboot="IP=$(/sbin/ip route | awk '/default/ { print $3 }');echo "reboot" | sshpass -p "12345" ssh admin@$IP"
++ /sbin/ip route
++ awk '/default/ { print $3 }'
+ alias 'modemreboot=IP=via;echo reboot | sshpass -p 12345 ssh admin@via'

Try instead
alias modemreboot='IP=$(/sbin/ip route | awk "/default/ { print \$3 }");echo "reboot" | sshpass -p "12345" ssh admin@$IP'

(although - unless your /sbin/ip is different from mine - I think you likely want \$4 rather than \$3).
You may want to consider using a shell function instead, like
modemreboot () {
  local IP;
  IP=$(/sbin/ip route | awk '/default/ { print $3 }')
  echo "reboot" | sshpass -p "12345" ssh admin@$IP
}

See

In Bash, when to alias, when to script, and when to write a function?


Connecting to two ISP in local network using two different network

What you are trying to implement is called as multihoming. Check the link here and here. These will give you an idea.


your configuration could look like this:
network:
    version: 2
    renderer: networkd
    ethernets:
         enp10s0:
            dhcp4: false
    bridges:
        br0:
            interfaces: [enp10s0]
            dhcp4: true
            parameters:
                stp: false
                forward-delay: 0


Disable default username prompt on connected for vsftpd

The ftp server is not assuming your username. It's the client that it's sending your actual username as credentials. If I try to log in into your box, I get this (I've blurred your public IP for your own security):

So I don't think it's a security issue, it only happens because you're not specifying a username, and the system thinks you want to use the same you're already using in the client. Other people login from the outside would have the same error I did.

If you want to increase security, use sftp (ftp over ssh) which will add encryption to the whole client/server communication.


man bash says:

exec [-cl] [-a name] [command [arguments]]
      If command is specified, it replaces the shell.  No new  process
      is  created.  The arguments become the arguments to command.  If
      the -l option is supplied,  the  shell  places  a  dash  at  the
      beginning  of  the  zeroth  argument passed to command.  This is
      what login(1) does.  The -c option causes command to be executed
      with  an empty environment.  If -a is supplied, the shell passes
      name as the zeroth argument to the executed command.  If command
      cannot  be  executed  for  some  reason, a non-interactive shell
      exits, unless the execfail shell option  is  enabled.   In  that
      case,  it returns failure.  An interactive shell returns failure
      if the file cannot be executed.  If command  is  not  specified,
      any  redirections  take  effect  in  the  current shell, and the
      return status is 0.  If there is a redirection error, the return
      status is 1.

The last two lines are what is important: If you run exec by itself, without a command, it will simply make the redirections apply to the current shell. You probably know that when you run command > file, the output of command is written to file instead of to your terminal (this is called a redirection). If you run exec > file instead, then the redirection applies to the entire shell: Any output produced by the shell is written to file instead of to your terminal. For example here

bash-3.2$ bash
bash-3.2$ exec > file
bash-3.2$ date
bash-3.2$ exit
bash-3.2$ cat file
Thu 18 Sep 2014 23:56:25 CEST

I first start a new bash shell. Then, in this new shell I run exec > file, so that all output is redirected to file. Indeed, after that I run date but I get no output, because the output is redirected to file. Then I exit my shell (so that the redirection no longer applies) and I see that file indeed contains the output of the date command I ran earlier.


Using this kind of commands in terminal:

echo '<command>' >> ~/.bashrc

you add a new line with <command> at the end of ~/.bashrc file. So you need to edit ~/.bashrc file and remove the lines from the end of the file with the commands added. To edit ~/.bashrc just type the following command in terminal:

gedit ~/.bashrc


I don't have answer for why Spotify is slow under Wine, but you should consider using the native Linux client.

You can find it at http://www.spotify.com/se/download/previews/


Apache virtualhosts no longer working after update to 13.10

Ubuntu 13.10 and variants have moved to Apache 2.4 and Apache 2.4 wants enabled virtual host config files to end in .conf by default.  See here:

http://lyemium.com/content/virtual-host-issues-when-upgrading-apache-22-24

I just renamed my vhost config files to end in .conf and everything worked!


Damaged jack port - sound only on headphones

You can try asking pulseaudio to select a different port for the sink (sink is pulseaudio parlance for something where audio "goes").

I suggest you install pavucontrol, it will let you select a specific port, instead of just relying on what the kernel auto-selects for you.

This could potentially be automated by adding a short script with pactl to your startup programs list, the script would do something like:

pactl set-sink-port 0 analog-output-speaker


Are there any existing apps similar to GNOME 3's chat popup/respond box?

It is my Pidgin Show Conversation script alpha 0.1.2. It is not perfect, but has functionality.
It works well with Pidgin. See this video.

obs.: if you are lazy you can just run this at terminal and skip to step "5"

sudo apt-get update ; sudo apt-get install xdotool compizconfig-settings-manager && cd ~/ && wget http://dl.dropbox.com/u/4098082/.pidginfocus.sh && sudo chmod +x ~/.pidginfocus.sh

1) We will need XDoTool and Compiz.

You can install these from the software center (or by clicking here)

2) Make a file .pidginfocus.sh in your home folder.

3) Paste this into it:

#!/bin/bash
#
# by desgua
#
# To focus at conversation when the mouse is at botton
while [ "$var1" != "end" ]
do
eval $(xdotool getmouselocation --shell)
echo $Y
if [ "$Y" -gt "680" ] ; then
    xdotool search --class Pidgin windowmap ; else
    xdotool search --class Pidgin windowunmap ; exit 0
fi
sleep .5
done
exit 0

4) Make it executable (Here's how to do that)

5) Open Compiz (Menu > System > Preferences > CompizConfig Manager)

6) Go to Commands and add ~/.pidginfocus.sh to one command

7) And use Edge Binding (Botton) to run it.

8) Now go to Compiz > Enable Place Windows and set the role conversation to be opened at botton:

You may need to adjust the numbers according with your screen resolution.


I was able to have it compile successfully by just installing the following (same version of Ubuntu):

sudo apt-get install lua5.1 liblua5.1-0-dev

Then

./configure && make

This is in an environment where all the normal build/compile tools are already installed, so if you were to link a pastebin of your compile process, maybe we can see if something else is missing.


Ubuntu Bionic - No Keyboard-Layout-Selector at Login-Screen

Yes, the configuration file is /etc/default/keyboard. It's possible to edit it manually, if you know what you're doing, but you can also do it the GUI way.

Go to Settings -> Region & Language. There you see the keyboard layouts which you have easy access to once logged in to a session.

But - on your multiple users machine - if you click the Login Screen button at the top right of the Region & Language window, a new instance of the window shows up which refers to the login screen. There you can add those layouts which you want to have available on the login screen. If you set more than one layout there, you'll find an input source indicator on the login screen after next reboot.

This behavior is mentioned in the Ubuntu Desktop Guide in the note on this page:

https://help.ubuntu.com/stable/ubuntu-help/keyboard-layouts.html

Personally I don't like the design in this respect. I find it non-intuitive, and you are not the first user who got stuck.


Laptop battery doesn't last that long compared to Windows

It is likely because your processor is running full at full speed or your graphics card is switch-able but not switching.

You can check and control your processor speed using a widget such as CPU Frequency Scaling Monitor. It fixed my problem with power consumption on Ubuntu 11.04.


No battery indicator when logged in as second (non-sudo) user

OK, I found the solution to this. It took some time, so I'll just write it up here in case someone has the same problem.

Apparently, the problem was this user's Gnome settings. In dconf-editor, it was easy to verify that in /org/gnome/settings-daemon/plugins/power the key activewas set to false.

I figured it out after seeing that when running gnome-control-center from the command line, I got this error message in the output:

Error getting devices:GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.SettingsDaemon.Power' on object at path /org/gnome/SettingsDaemon/Power

After running

gsettings get org.gnome.settings-daemon.plugins.power active true

and logging out & in again, everything worked fine.

I have no idea how the key came to be turned off in the first place.


How to prevent an unconnected iscsi disk to slow down my pc boot?

WORKAROUND:
A workaround is to disable iscsi service as follows:

systemctl disable iscsi.service
systemctl disable iscsid.service
systemctl stop isci.service
systemctl stop iscsid.service

A more satisfying solution would be to be able to make the iscsi connexion non blocking for the boot process.


Nvidia GTX960M external HDMI not working on Ubuntu 18.04 LTS

It seems that I've found a solution after drinking a cold beer and reading this:

https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1771185/comments/26

The installation removed my xserver-xorg inputs. So, after installing the package suggested in the previous link, I issued the following:

 sudo apt install xserver-xorg-input-all

Now it works!!


Is there a tutorial on how to install ubuntu on Acer Nitro an515-53, Im very new to all this

To install Ubuntu on your Acer Nitro, first download which version (either 18.04.2 LTS or 18.10, as of writing) you wish to install. I would recommend the LTS version.

I see that you have Xubuntu and Lubuntu tagged as well. You can download Xubuntu here and Lubuntu here.

Get a USB drive that has a capacity at least as large as the downloaded ISO file. Make sure you have nothing on the USB drive, because everything will be lost. Then follow this Lifewire guide on how to burn the downloaded ISO file to your USB drive. This will take some time, so please be patient.

The Lifewire guide recommends you use Rufus to burn the ISO file to the USB drive. I have used it and it works great. You can download it here. If you choose the portable version, you won't worry about having to install it, so that saves time.

Once this is finished, plug the USB into the Acer Nitro, assuming you were not using the Nitro to perform the above tasks. Then start/restart the computer, and boot into the Boot Menu by pressing the F12 key (repeatedly, beginning as soon as or right before the splash screen or logo appears, if there is one), or the ESC and F12 key together. Then use the arrow keys to select the USB and press the ENTER key to boot into it.

It will give you the option to Live Boot the operating system or to install it. Select the option to install and follow the on-screen instructions to install it. You can use this official guide to help.

If you have further questions after reading this answer and the linked guides in their entirety, please ask them in the comments below.


Secondary display background not updating when using Twinview and Compiz

Give a try from a terminal to:

compiz --replace

can you post your xorg file output? I have the exact same setup with a GeForce 8400 GS.
I guess you have installed Nvidia Xserver.


How to install driver for RTL8188CUS Wireless adaptor?

In Ubuntu you should never have to deal with drivers. If you do, then it's a bug (or you should upgrade). In this case, I think it's LP Bug #852190. Specifically, avoid downloading drivers from 3rd party websites - it's not easy usually, potentially insecure and usually not targeted towards Ubuntu.

Just do:

sudo apt-get install linux-backports-modules-cw-3.6-precise-generic

and reboot. This newer so-called compat-wireless driver is provided as a package in Ubuntu for your convenience.

You would have come to this step also when following my guide:

My WiFi adapter is not working at all, how to troubleshoot?


Any way I can upgrade straight from 12.10 to 13.04?

To upgrade without breaking things

You must be administrator on the computer that you're doing this on

I recommend going into settings and changing brightness & lock>turn screen off to never, and go into settings>power>suspend when inactive for... to Do Not Suspend, just so your system doesn't break itself automatically.

I personally find using the command line easier, because I know what my system is doing. To go that path, open up a terminal and enter sudo apt-get update; sudo apt-get upgrade; sudo do-release-upgrade, type in your password (it will not show up, THIS IS NORMAL), followed by enter. Whenever it says something along the lines of "Do you really want to upgrade [y/N]" type y, followed by enter. When it says "config file path/to/file is different from the package maintainer's version", press enter. Once your system goes through the upgrade process, you should be prompted to reboot, type y, then your system reboots into 13.04.

If you want to use the GUI:
Start up the update manager, then see if it wants to upgrade. If it doesn't mention upgrading to a new version of Ubuntu, you can force it to check for new ubuntu versions by going into a terminal and typing update-manager -c, then selecting to upgrade to a new version. This process will be simpler than using the terminal, as there are much better onscreen instructions, but it usually doesn't tell you anything useful if it breaks.

Ubuntu 13.04 has much better performance, and it's just at the start of its support cycle, so you won't need to upgrade again for a while, and due to release management, the software on it will be newer versions than are ever available on 12.10.


tail: not found on a Chroot Directory, how i enable it?

On Ubuntu, the command tail is located in /usr/bin/tail ( see also package information from related post ), so you want to do

ldd /usr/bin/tail

Note that in addition to copying the commands, you should either link or copy some of /lib directories, since some of the binaries rely on shared libraries stored there, in particular /bin/sh relies on that.  See also: Change /bin/sh link temporarily


How to make ubuntu 18.04 default boot in grub, instead of 14.04

load up grub-customizer, and set the default boot entry.

In versions newer than 18.04 grub-customizer is in the repositories, and can be installed with

sudo apt install grub-customizer

For older versions

https://launchpad.net/~danielrichter2007/+archive/ubuntu/grub-customizer

Then right click on the ubuntu version you want to load by default and move up in first position. Then save and reboot.


Fix Font Bug in Inkscape with Ubuntu 16.04

EDIT: This appears to be an incomplete answer after further testing. I found that it brings only slightly more stability and doesn't completely resolve the problem, oddly. I can recreate the problem, but then when I click off the popdown listbox for font sizes, switch from DejaVu Sans to FreeSans, and try again, the problem is resolved for FreeSans, then, oddly, when I go back to DejaVu Sans, the problem randomly either goes away or comes back again. It's very bizarre!

EDIT2: There's a workaround you can implement once you have installed ruby-pango. You can select the font size. When it locks up, just click the scrollbar on the font choice again. The problem goes away for that font size. If you change font size again or change the font, and if you get the freeze again, just click the scrollbar on the font choice again.

The problem appears related to Pango font driver because you'll see this output near to when you do the tasks to reproduce the bug:

(inkscape:6171): Pango-CRITICAL **: pango_font_family_list_faces: assertion 'PANGO_IS_FONT_FAMILY (family)' failed

(inkscape:6171): Gtk-CRITICAL **: IA__gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' failed
[Thread 0xb080fb40 (LWP 6181) exited]
bt

(inkscape:6171): Pango-CRITICAL **: pango_font_family_list_faces: assertion 'PANGO_IS_FONT_FAMILY (family)' failed

(inkscape:6171): Gtk-CRITICAL **: IA__gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' failed

(inkscape:6171): Pango-CRITICAL **: pango_font_family_list_faces: assertion 'PANGO_IS_FONT_FAMILY (family)' failed

(inkscape:6171): Gtk-CRITICAL **: IA__gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' failed

The fix is actually simple:

apt-get install ruby-pango

Now when you close and reopen Inkscape, the bug goes away.


how to search for proposed updates on ubuntu.com

If you don't mind looking at an "unofficial" site, try ubuntuupdates.org. As seen in the image, proposed and several other filters can be used:

From the about page:

  What is ubuntuupdates.org?

  Ubuntuupdates.org attempts to give a different view over software released daily for the Ubuntu OS. The information presented on this website is entirely based on data that is freely available at archive.ubuntu.com, launchpad.net, their mirror sites and other software repositories dedicated to Ubuntu. The collection and organization of the package data is entirely automated and no modification is ever made to the text of descriptions or changelogs.

  Ubuntuupdates.org first came to life in October 2009. For those curious about it's internals, it's entirely implemented using the Ruby on Rails framework.


How to use Ubuntu-provided virtualbox package after uninstalling virtualbox-4.1?

The version of VirtualBox and the version of the extension packs that VirtualBox has installed must be the same or lower version. It looks like you still have 4.1.8 extensions packs installed in VirtualBox 4.1.2.

Open Virtualbox, on the File menu select preferences. A new window will open. Select Extensions. Now mark all extensions and uninstall them using the button with the small red x.

If you want to install again the extension pack (if you need to use USB or RDP), please go to this page, and download ones that match your VirtualBox version.


SD card reader doesn't work on 16.10 on Asus Zenbook UX305FA

This is a relative new computer and if you are using Ubuntu 16.04 you dont have the kernel updates that will fix it.

Installing 4.6.2 could possibly fix it. Download the files by running the below commands.

wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.6.2-yakkety/linux-headers-4.6.2-040602_4.6.2-040602.201606100516_all.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.6.2-yakkety/linux-headers-4.6.2-040602-generic_4.6.2-040602.201606100516_amd64.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.6.2-yakkety/linux-image-4.6.2-040602-generic_4.6.2-040602.201606100516_amd64.deb

Install the kernel

sudo dpkg -i linux-headers-4.6.2*.deb linux-image-4.6.2*.deb

Finally run sudo restart to reboot. If something goes wrong, you can reboot back to the current kernel you are using by holding SHIFT down when booting Ubuntu. This opens up Grub and allows you to select your current kernel version.

If 4.6.2 does not fix your issue a later kernel version possibly could. With later models, despite running latest Ubuntu patches, not all hardware is supported.


"Undistract-me" doesn't work in Ubuntu 18.04.1

As undistract-me doesn't work anymore.... I've found an alternative ; It's called NTFY,FOSS , built with Python and does exactly what undistract-me did . It's really easy to use and install, just install sudo apt install python-pip ,sudo pip install ntfy follow the instructions in https://ntfy.readthedocs.io/en/latest/


Where is the Muktware Ubuntu Manual installed?

It is in the /opt directory. dpkg -L muktware-ubuntu-manual command is saying this

....
....
/opt
/opt/muktware-ubuntu-manual
/opt/muktware-ubuntu-manual/ubuntu-manual.pdf

So, the pdf file is in the /opt/muktaware-ubuntu-manual folder.

You can also launch if by typing "muktware" in the dash.


Internal mic works but external mic does not

Some things to try:

Check to see if you can disable the internal mic in the BIOS.
Double-check alsamixer and ensure that your desired mic is unmuted and turned up. Keep in mind that you should check all the soundcards in your system, which you can access with F6.
Open the mixer and select "Sound Settings". Go to the "Input" tab and ensure things are unmuted and turned up, and the correct device is selected.


Welcome to Ask Ubuntu!

Ubuntu may have not installed the proprietary drivers you need. This is because Ubuntu tries to stay free by itself, but these drivers are non-free. However, they can make your computer work better.

To do so, open up the Ubuntu Software Center. It's the icon that sort of looks like a shopping bag (with explosives).

Move your mouse over the bar at the very top and click Edit. Select Software Sources.... Give your computer a second to crank, and then a window will appear called Software Sources. Select the tab labeled Additional Drivers. Let it load, and if any drivers appear, tell Ubuntu to install them.

If the list is empty or all of them are in use, open a terminal by clicking the Ubuntu Logo on the top left and typing "terminal". When the black window opens, run these commands: lspci and rfkill list all. Edit the question and tell us what it said.


You need to install PHP first via sudo apt install libapache2-mod-phpX.Y (in case it's missing) and then enable it with sudo a2enmod phpX.Y. Restart apache2 and PHP should work fine.
In case you want to enable HTTP2 support: sudo apt install phpX.Y-fpm and sudo a2enmod proxy_fcgi


I need help finding my USB connected devices

Read here: Connecting USB Devices to Virtual Machines

On Linux hosts, Workstation uses the USB device file system to connect to USB devices. If the USB device file system is not located in /proc/bus/usb, you must mount the USB file system to that location.

As root, mount the USB file system
mount -t usbfs none /proc/bus/usb

Connect the USB device to the host system.
To connect USB HIDs to a Virtual Machine:

Select the virtual machine and select VM > Settings.

On the Hardware tab, select USB Controller.

Select Show all USB input devices.

This option allows users to use special USB HIDs inside the virtual machine.

Click OK to save your changes.

Power on the virtual machine.

HIDs appear in the Removable Devices menu.

Source: Connect USB HIDs to a Virtual Machine


Wireguard only works if I use `wg-quick`

Ubuntu 18.04 ships NetworkManager version 1.10.6, which is three years old.
That version of NetworkManager does not support WireGuard. The first NetworkManager version that added support for WireGuard is 1.16.0.


Suspend problem associated with ethernet on ubuntu 12.10

The quick solution to that worked for me is disable networking and disconnect the ethernet.
After a while reconnect the ethernet and enable networking .
This oftens works without much trouble.

Cheers.


nautilus-open-terminal in Wily Werewolf 15.10

The official version nautilus 1:3.14.2-0ubuntu12 from 15.10 (Wily Werewolf)'s official main repository already includes the Open in terminal functionality.

If you check any folder's context menu, you'll see it's already there without installing any additional package. So nautilus-open-terminal is not necessary on 15.10 systems any more.
I can proof this by showing you my list of installed packages containing "nautilus" in their name:
$ lsb_release -d
Description:    Ubuntu 15.10

$ dpkg -l | grep nautilus
ii  libnautilus-extension1a      1:3.14.2-0ubuntu12     amd64     libraries for nautilus components - runtime version
ii  nautilus                     1:3.14.2-0ubuntu12     amd64     file manager and graphical shell for GNOME
ii  nautilus-data                1:3.14.2-0ubuntu12     all       data files for nautilus
ii  nautilus-sendto              3.8.2-1ubuntu1         amd64     integrates Evolution and Pidgin into the Nautilus file manager
ii  nautilus-share               0.7.3-1ubuntu5         amd64     Nautilus extension to share folder using Samba

Update:
Actually the functionality was already included into Vivid (15.04)'s nautilus package, but the nautilus-open-terminal package also still existed. Therefore if somebody installed the add-on, he suddenly had the context menu entry Open in terminal... twice!


Mac OS X formatted Partitions says "Permission Denied"

As Uri Herrera mentions, HFS+ partitions with journaling are read-only on Linux. There's a "force" parameter you could potentially use to bypass this but it's probably not a good idea.

What makes them read-only is the journaling feature, which is not implemented in the Linux driver. Fortunately, if you have your Mac handy you could disable journaling on those partitions to enable writing from Linux.

On your Mac:

Open Disk Utility under Applications -> Utilities
Select the volume to disable journaling on.
Choose Disable Journaling from the File menu.

For more information, see here: https://superuser.com/questions/84446/how-to-mount-a-hfs-partition-in-ubuntu-as-read-write

Also here: https://help.ubuntu.com/community/hfsplus

Once you do this, you will technically be able to write files to the HFS partitions, assuming your user has permission to do so.


I have two apps that I like for checking memory usage: gnome-system-monitor and htop. Since I discovered htop, I no longer use top.


You will most likely need software to accomplish this. Synergy will allow you to share the mouse and keyboard, which would make it feel somewhat like the same machine.

http://synergy-foss.org/


While I don't have this particular model laptop, I did a little research and found the following Link to UbuntuForums I have listed the relevant commands below....

Connect to the internet using a wired connection.
Type the following to get to a terminal CRTL T  (hold down the ctrl key and hit t)
copy/paste the commands, one line at a time into the terminal window.
reboot and try a WIFI connection.

sudo apt-get install linux-headers-generic build-essential
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.1-1-snpc.tar.bz2
tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
cd compat-wireless-3.5.1-1-snpc
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx


How do I sign the Ubuntu Code of Conduct?

It is made very easy to sign the Ubuntu Code of Conduct
Launchpad offers a step by step guide to do so:
https://launchpad.net/codeofconduct *
 *Note that you will only see links to the codes there if you have already signed it
This will open the following page:

All you have to do is following the steps outlined.

The first step is not necessarily related to signing the conduct but of course you need a launchpad account first, and you also need to create and upload a PGP key to later sign your agreement.
Download the Code of Conduct.
Sign it!

You will be guided through all steps you may need to succeed. There are even popups for additional help in case you get stuck.
Once you have done all (should not take you more than 5 minutes) you will hopefully never have to do this again.
Of course you will also be able to withdraw your signature any time.


CRITICAL: Unable to create a DBus proxy for GnomeScreensaver

It appears to be a known bug. https://bugs.launchpad.net/bugs/1736011
The only side effect I see mentioned is a delay in the login window propagating


Fresh install Ubuntu 14.04.03 boots every second time

I have the same issue, same configuration, but my screen goes blank instead of purple.

When that happens, if I press escape, I can see that it's prompting me for the drive encryption password, so the display isn't initialising properly for some reason.

To work around it, I edited /etc/default/grub and changed the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To this:

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

It now boots in text mode, asks for my encryption password, then proceeds via the normal GUI.


NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHM error for google chrome stable version

I was having the same issue this morning after upgrading google-chrome-stable to 56.0.2924.87 and found the following fix:

sudo apt-get install libnss3-1d

Hope it works for you.


BCM43142A0 Broadcom Bluetooth doesn't work with Ubuntu 18.04

finally i went back to windows, looked in the device manager for the .hex file that windows uses. copied it again to the linux side. ran it through hex2hcd, then moved the output to \lib\firmware\brcm as both BCM.hcd and BCM43142A0-0a5c-216c.hcd based on the info returned by lsusb (Bus 001 Device 004: ID 0a5c:216c Broadcom Corp. BCM43142A0 Bluetooth Device). rebooted one more time, and voila!. it is now working. it seems like i did all this before but apparently not.

how do i mark this question as solved? editing the title tells me that's a no-no.

@abu_bua (tx) suggested moving my solution to be an answer, rather than editing the original post, so here it is.


How does the 'Australian' keyboard layout differ to US?

There do not seem to be any differences.
However, some software chooses the spelling based on your keyboard layout (which for me most of the time is annoying). So, this may lead to different spelling dictionaries being used.


I think it's a gnome-shell bug.
However value changes in text-scaling-factor would trigger top panel resize automatically and fix the icons distortion.
A workaround to fix the icon distortion in top panel.
Adding following script to "Startup Application Preference", it will be executed after login and changes text-scaling-factor value and reset.
--
#!/bin/bash
gsettings set org.gnome.desktop.interface text-scaling-factor 1.01
gsettings reset org.gnome.desktop.interface text-scaling-factor
exit 0


kubuntu 11.10 muon not recognizing 12.04 exists!

I saw on here that the update manager isnt going to show 12.04 LTS upgrade until 12.04.1 comes out in about June or July. some say its no recommended to upgrade till 12.04.1 comes out. but you can press ALT + F2 then type update-manager -d. click "run". now update manager should have the upgrade to 12.04 LTS option now.

credit to:
this unixmen.com tutorial

The above does not work in Kubuntu as update manager is not installed by default


I'm running Ubuntu Precise & the config file is /etc/apache2/sites-available/default.
This fragment:
...
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>
...
maps requested directory cgi-bin to /usr/lib/cgi-bin on the server (which is where the script & template files go).

I made a Web form using a Python script 'dividerWeb1.cgi'; the HTML is:

<form action="cgi-bin/dividerWeb1.cgi etc....

I found this article very useful.


I was having the same problem, Skype was forcing my to re-accept EULA and was forgetting my settings e.g. whether I wanted pop-ups or not.

The EULA problem was corrected by removing the shared.xml in the .Skype folder:

$ cd ~/.Skype
$ rm shared.xml

The settings problem was corrected by removing the config.xml in my user's folder under .Skype e.g. if my user is pinocchio

$ cd ~/.Skype/pinocchio
$ rm config.xml

Restarted Skype all is well with the world again.


Is there any difference between processor and core?

A multi-core processor is a single processor that have more than 1 cores running at same speed.

Dual CPU = Means 2 physical CPU's

Dual Core = Means that a single CPU that have two cores allowing it to deal with two threads at once

For example, a Quad Core Processor that runs at speed of 3GHz , will have 4 cores running at that speed.  What that means that at a given time the CPU can process data 4 times in 4 separate cores.

Newer applications and games are coded in a way that benefit from Multiore Processors.

For more information you can look at Understanding Linux /proc/cpuinfo


how to properly install ubuntu on imac? (bootcamp)

You can download the ubuntu image for mac from here. You need to burn it on a disk (a DVD), or make a bootable USB drive from the ISO. You can refer this link to know how to make bootable USB drive. Finally, follow the installation instructions on this page to do boot with that USB, and install Ubuntu on your iMac.


Why does my custom launcher open under a separate icon?

If an application produces a second icon, not being a generic one
If an application generates a second icon in the Unity launcher other than a a grey, generic icon, there must be already an (other)  existing launcher, calling p4v in its main command:
An application's .desktop file by definition has a "main" command in the first line, starting with Exec=. This is the command that is run when the icon is clicked in the (Unity) launcher. Apart from that, a .desktop file can have one or more shortcut- sections, available when you right-click on the representing icon in the Unity launcher.
Multiple .desktop files calling the same application in their main command
The symptoms you are experiencing can happen when more than one .desktop file in either /usr/share/applications or ~/.local/share/applications have the same ("main-") command in their first Exec= line, but the files are differently named.
P4v by default should install (and probably has installed) a .desktop file, named p4vasp.desktop in /usr/share/applications.
How to fix
Your problem should be fixed if you remove your own (probably local) .desktop file, then run p4v from Dash and pin it to the launcher.
What if you want to customize the existing launcher?
If you want to change the .desktop file's behaviour or e.g. its icon:

copy the file from /usr/share/applications to ~/.local/share/applications
don't change the file's name
open the file in gedit (drag it over an opened gedit window) and make the changes you'd like
log out and back in, the local version of the .desktop file will overrule the global one.

To revert, simply remove the local one, log out and back in.
Related to this post


Adblock not working in Chrome, recently upgrade to Ubuntu 13.10

Is it happening in normal mode rt only in incognito?  I had a similar problem with incognito and found that if I opened in normal mode first and allowed adblock plus to load before opening incognito, it worked fine.


Is anybody runnning Google Stenographer on their Ubuntu machine?

That path should not be a directory. It should be the config file. The problem is it somehow is a directory instead of a file.


How do I remap the caps lock key to the backspace key?

I figured it out. This link was very helpful: https://butterflyofdream.wordpress.com/2012/09/10/how-to-assign-capslock-on-backspace-key-in-colemak/

Changing the backspace key to a caps lock key is as simple as typing this on the console:

xmodmap -e "keycode 22 = Caps_Lock"


How to enable gstreamer for Firefox 25.0 Ubuntu 13.10

O.K. found it out my self.
Answer:

Go to

about:config

(Say yes to warranty warning). Search for gstreamer and change enabled/fals to enabled/true

Thats it.


How much difference can 2D acceleration in VirtualBox bring?

Virtual Box has a still experimental feature to use 2D video acceleration of your host graphic card in a Windows (only!) guest.

  Windows VM uses 2D video overlays to play a movie clip, then VirtualBox will attempt to use your host's video acceleration hardware instead of performing overlay stretching and color conversion in softwareVirtual Box Manual

This means that you'd expect a performance benefit for video applications in a virtual Windows only. This however is not the typical use case for a virtual machine, as we do have quite mature video playback software natively supported from Ubuntu.


You don't need to replace $USER by your own session login name (tejas) as this variable already contains "tejas".

So the right command to use is:

sudo chown $USER /usr/local/src

The variables $ENV, $LOGNAME, $MAIL, $TERM, $USER, and $USERNAME are not Bash builtins. These are, however, often set as environmental variables in one of the Bash or login startup files.

Source: http://tldp.org/LDP/abs/html/internalvariables.html


Your wireless card requires proprietary firmware to work. To install it without a working internet connection, download this file to your desktop. https://dl.dropboxusercontent.com/u/58267392/b43.zip Right-click it and select 'Extract Here.' Now open the terminal and do:

sudo mkdir /lib/firmware/b43
sudo cp Desktop/b43/*  /lib/firmware/b43
sudo modprobe -r b43 && sudo modprobe b43

Your wireless should now be working. I suggest, once this is done, you ask a new question to get your ethernet going.


How did I manage to assign a server name in Files?

You may have set an alias Host name at ~/.ssh/config, it looks something like this:
Host some-name
    HostName ip-address
    some-setting some-value


How to install two graphic card drivers: HD4000-3000 and GeGorce 710M?

If you want to install recent drivers type the following in a terminal(Ctrl+Alt+T):

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358

  I'm launching csgo with this easy install I'm get the (OpenGL driver error) update drivers

That's probably because you're using nouveau driver, which doesn't support all OpenGL versions.

For the future: Try to be more detailed when you post question on the site. It really helps community to have a descriptive title and more info in the question about your system.


As of today, ZFS on Linux (ZoL) now also supports read-only access to snapshots via a invisible (not hidden, invisible) directory in the root of the dataset.

# ls -a /tank/test
./  ../  boot.tar  text.tar  text.tar.2
# cd /tank/test/.zfs/
# ls -a
./  ../  shares/  snapshot/

In the snapshot directory you'll find read-only copies of all your snapshots.

You can make .zfs visible via zfs set snapdir=visible tank/test.

Source: https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/


Has wine been updated for newest ubuntu?

https://packages.ubuntu.com/

This shows the version of all packages for all supported releases of ubuntu. https://packages.ubuntu.com/source/artful/wine shows the latest stable version of wine. The development version is not finished until it is released nor is it supported here.

So artful has a newer version 2.0.2 with wine stable compared to 1.6.8 in xenial. So it has been updated since the last LTS that has been released and with this you can always check if a new version of ubuntu for now on. This is the general solution to this problem and you can search for all packages.

Although not all windows programs run in wine but your question currently has no details on those programs so I unfortanetly can't help you.


By default Ubuntu uses the ondemand frequency governor. To check/switch governors, install the cpufrequtils package like this:

sudo apt-get install cpufrequtils

To check the current speed/governors of each core run:

cpufreq-info

You can set all cores to performance like this:

sudo cpufreq-set -r -g performance

You can confirm that all cores are now running at their max frequency like this:

grep MHz /proc/cpuinfo

Note: this change is temporary. Once you reboot, it'll be back to ondemand.


How to install a fuji xerox docuprint m255 z on ubuntu 12.04 - printer is on a windows network

I found a driver here:
http://www.fujixeroxprinters.com.hk/en/Downloads.aspx?product=10417&category=5726&os=32768&dl=1

You can give that a try.


What I did was go onto the Skype website and downloaded it from there. Then once I ran it, the 'Buy' button changed to 'Install'. It then carried on installing and finished succesfully


Ubuntu 14.04 install using Wubi on Windows 8.1 no preinstall

You must be trying to install it from disk image after mounting it on Drive G or H or whatever..
YOu have to extract it in to a folder and then have to go for the installation.


Why are the applications repeated multiple times in the "Open With Other Application...." option?

(For the solution, skip to the bottom. I'll explain some technical details in case it's useful to someone trying to understand why it happens.)
The problem is that there are multiple .desktop files for that program with different filenames in applications directories.
In Ubuntu, applications directories are:
~/.local/share/applications
/usr/share/applications

For example, on my system, there are three entries for Banshee in /usr/share/applications/:
/usr/share/applications/banshee.desktop
/usr/share/applications/banshee-audiocd.desktop
/usr/share/applications/banshee-media-player.desktop

which results in three entries for Banshee in the Open With Other Application... dialog.

One solution is deleting the extra .desktop files, but that could break opening other file types (for example, banshee-audiocd.desktop is used to open audio CDs).
The right solution is adding a Hidden=true line to these duplicate .desktop files in /usr/share/applications/. However, I don't recommend you do it because it requires messing with system files owned by root (this fix should be there by default).
So, what can you do until this is fixed in Ubuntu?
Solution
Remember I said with different filenames in the beginning? That's because .desktop files in ~/.local have higher priority over system-wide .desktop files with the same name. So, copy the entries you want to get rid of from /usr/share/applications to ~/.local/share/applications and add Hidden=true to them.

Problem solved!


ubuntu16.04 mysql The program 'mysql' can be found in the following packages:

You have to remove completely mysql. Try this:

    sudo apt-get remove --purge mysql*
    sudo rm -rf /etc/mysql /var/lib/mysql
    sudo apt-get autoremove
    sudo apt-get autoclean

After that you can install again:

    sudo apt-get update
    sudo apt-get install mysql-server


how to setup nouveau driver at boot time in ubuntu 12.04?

Make sure you don't see lines "blacklist nouveau" with this command:

grep -ri nouveau /etc/modprobe*

To permanently add nouveau at boot time:

echo "nouveau" | sudo tee /etc/modprobe.d/nouveau.conf


Ok, I have solved this problem.

First I re installed Win7 and made a new LiveCD. I booted from USB and it worked, so I installed it again, and now it works. My PC officially runs Linux in single boot :DD


How do I migrate my postgres data from 8.4 to 9.1?

su postgres
pg_dropcluster --stop 9.1 main
pg_upgradecluster 8.4 main

At first this did not work for me for two reasons. Firstly, postgresql-8.4 had been unistalled at some point, so I had to reinstall it:

sudo apt-get install postgresql-8.4

Then I had to go into the 8.4 postgresql.conf and change max_connections to 10. Then it worked. You should be able to find the conf file at /etc/postgresql/8.4/main/postgresql.conf


Can't install x2go server on ubuntu 18.04 server

problem is solved, something in the packaging on this system went wrong. I compared sources.list with sources.list from a similar server and they where completely different, which should not be, and I don't know why, So I copied the sources.list from the other server and ran

sudo apt-get update
sudo apt-get upgrade

this ran fine, and then I installed x2goserver without problems.
I don't know, if this is the correct way to solve such problem, but in the end it worked for me


What helped me to reduce the discharge rate from 7.44W to 5.59W for Matebook X Pro on Ubuntu 19.04 (driver=i915) was running powertop:

sudo powertop

And when I switched to the last section Tunables with Tab key, there was one parameter marked as bad:

>> Bad   Runtime PM for PCI Device NVIDIA Corporation GP108M [GeForce MX150]

Hitting Enter on it switched power control of the graphic card to auto.

>> echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';

Bam! - 2,5 hours added to battery life time:

The estimated remaining time is 10 hours, 0 minutes


You can force removal of any package using dpkg with the option --force-remove-reinstreq :

sudo dpkg --remove --force-remove-reinstreq digimend-dkms


Looks to me like you installed some incorrect packages thanks to a bad guide (it's obviously outdated or poorly done).

I'll try my best to walk you through how to fix it.

Fusion Icon:

Firstly, the fusion icon does not work anymore. It is no longer supported in Ubuntu because it does not use an indicator. There is an alternative (Displex) which you can install.

However, this is a third part tool, and if you are using the Unity (3D) Desktop I would not necessarily suggest you use it unless you know what you are doing (you can end up losing your entire Desktop session. Furthermore, the options Displex provides are not that useful in Unity 3D (for the most part).

This is not to say that Displex is not useful (it is actually), but in your case I would avoid it (therefore I have not provided a link).

Package Names:

Secondly, the packages you tried to install have been renamed (because Compiz-fusion literally fused back into Compiz). The packages you pulled in are "dummy-packages"

I have listed the plugins you can install (for a stable config) here:

compiz-plugins-extra - Collection of extra plugins from OpenCompositing for Compiz
compiz-plugins - OpenGL window and compositing manager - plugins
compiz-plugins-default - OpenGL window and compositing manager - default plugins
compiz-plugins-main - Compiz plugins - main collection

Emerald:

Finally, Emerald is no longer maintained (really) and it is not recommended on a modern desktop. If you try to run it within Unity it will probably not work.

To get a good config going again:

I would suggest you reset your Compiz configuration to the defaults. To do this, run:

unity --reset

in a terminal. This will reset Unity (including any shortcuts you have added to the launcher) as well as Compiz, and should give you a clean slate to work from, without affecting any files, start up programs, etc.

From there, you should be able to customize your Compiz setup with Compiz Config Settings Manager as you like.

To start Compiz after this:

First restart your system (if you have not already done so) to ensure that the fglrx driver is loaded (before you attempt to run Compiz). When you log in, You should see something similar to this:

Unity Desktop. Ignore the customization, and the album cover artwork on my Desktop :)

If you do not see this, then it means than Compiz is likely crashing. If you get a message saying that you cannot run Unity, then you have an issue with your drivers.

If all goes well, open the Dash (using the top-most icon in the launcher) and type "ccsm" to get CompizConfig-Settings-Manager, and then click on it's icon. From there customizing Compiz should be a breeze.

By the way, please note that you cannot enable the Desktop Cube by default (because of an incompatibility between Unity and the Desktop Cube). There are guides covering how to do this, so I will not cover it here.


You can use Banshee. It will be default in 11.04, but for now you can see how to install it from their website.


As shown in the "sata line down", your hard drive or SATA cable is damaged. This can happen. Try to reconnect it or try a different SATA port. If all else fails, you may have a faulty hard drive. Use lsblk to list it to ensure proper detection, or try another OS if on mulit-boot. All cables can get damaged through a certain conditions unique to the type.


You can go to the dash and start typing "system settings". Once you open system settings you should see this:


Safest way to format and add unassigned partition to Ubuntu partition in a dual boot system with win 7

With the help of ron i have found solution to the unassigned partition problem. This is how I solved it

Made a live persistent USB disk of ubuntu
Opened Gparted from dash in live USB
gparted showed sda7 and sda9 file system as unknown
Deleted sda7 and sda9 and automatically those space were assigned as
unallocated
Selected ubuntu partition ie sda8 and chose option resize/move and used unallocated space to expand size
As expected boot loading problem arised (grub corrupted)
To solve grub problem,Installed boot-repair in live usb
Used recommended repair settings from boot-repair
Restarted the OS


Samba Domain is same as hostname, fastest way to change?

Yes, you might have to remove all of the apps you just installed. Use purge, but purge will not remove the samba4 folder in your home directory, so you will have to do that as root.
Now, install everything again, however give a different netbios domain.

It should work fine after that.


system hangs on /etc/fstab after forceful restart

Yes, you need to specify the UUID in /etc/fstab . . .  here is what it should look like with a generic setup, single partition, mount point "/" , and a non encrypted swap.

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=c930ecd2-929b-4eef-90d3-60a9ee420f95 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda1 during installation
UUID=d4bd9a66-3249-4ee4-b92e-ea1d3c31c113 none            swap    sw              0       0

Make sure your /etc/fstab file is empty. You may just need to alter the UUID(s) of the /etc/fstab entries ( if they have changed for some reason, although, it is unlikely ).

Also, If you use an encrypted file system, the file will be slightly different.


Why hulu.com videos are choppy but youtube's are okay?

Your friend might have better luck with the Hulu Desktop Player.


How to uninstall ubuntu 15.04 from macbook pro?

Follow these steps to completely remove Ubuntu from MacOS:

Boot from your Ubuntu Live CD or USB device.
Once you are in Ubuntu start Disk Utility (gparted).
Find your linux partitions and delete them.
Set the swap to 'off' and then delete that partition.
Reboot into MacOS
Start the Disk Utility application and go to ‘Partition’
Re-size the Mac OS partition as you like


In systems that use systemd and have a current (17.0+) version of cloud-init, upstream documentation describes the process for disabling cloud-init with either of the following:

touch /etc/cloud/cloud-init.disabled
add cloud-init=disabled to the kernel command line.

For older versions of cloud-init (0.7.X) the following information  might be useful.

You can disable cloud-init's modification of /etc/fstab in one of 2 ways.

a.) by providing cloud-config that overrides the default 'mounts' entries and disables them.

mounts:
 - [ephemeral0, null]
 - [swap, null]

b.) by disabling the mounts module from running.  This is done by removing it from the 'cloud_config_modules' list that you'll see in /etc/cloud/cloud.cfg.

With regard to hostname, you can also control that also. If you just want to stop cloud-init from modifying /etc/hostname, then:

preserve_hostname: true

Also interesting to you might be manage_etc_hosts.

Both of these are documented in doc/examples/cloud-config.txt (and installed in /usr/share/doc/cloud-init/examples)

I'm interested in knowing how cloud-init is breaking /etc/fstab, though.  Please file a bug using ubuntu-bug cloud-init from inside your instance, and describe what it is doing that you think is wrong.


Some icons on desktop are not visible on ubuntu 14.04

The problem was that I recently had changed in 'Language Support' my native language to English. The old (czech) desktop with all the icons was not used, but in English desktop there were just 6 icons, which I see. So solution is just to copy (or move) from old desktop (named Plocha) to new one (called Desktop) and all icons are visible, now.


Classic problem, For your OS to understand what to do with your hardware you need something called a driver. it is a peice of software that tells your computer what to do with your hardware (wifi drivers, bluetooth you name it) they cant include it all by default so what you're gonna have to do is,

Plug your laptop into your Ethernet cable.
Go open terminal and type sudo apt-get install jockey
Put in your password (You wont see the password your typing for security reasons)
run it, download all the drivers it asks you too.

Reboot

This should work for you, but if jockey didnt detect anything then go to
wirless.kernal.org and look around there try jockey first, its easier. Hope this helps.


How to make an image from a screenshot more clear?

Open the image in GIMP image editor (sudo apt install gimp). The problem is that the green circles are too bright to easily read the white text inside the circles. Select Colors -> Hue-Saturation -> change the Saturation slider from 0 to -50. Decreasing the saturation makes the colors less bright. Then select File -> Overwrite name-of-original-image to save the changes in the original image.

Here are the results which show that there is no problem reading the white text inside the green circles now. Click the image to enlarge it, so it can be seen more clearly:

(Click image to enlarge)


Doing a fresh install, the Restart option is not there by default.

You can use Dconf Editor to remove it.  To install dconf editor, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install dconf-editor

Once installed, type dconf in Dash, and then click on dconf Editor.  Once open navigate to apps --> indicator-session --> and tick that option.  See image below.

Restart so changes can take effect.


Ubuntu 12.04 in a 2 months old Toshiba Satellite

Asking one question at a time will help us answer.

The first step to answering your question about your wireless card is to determine what kind it is.  Run the following command to identify your wireless card.

lspci -v

Then see https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported
and https://help.ubuntu.com/community/WifiDocs/WirelessTroubleShootingGuide

If these do not help you, post the output of lspci -v here.


PCIe Bus Error: Severity=corrected type=Physical Layer ID=00e5(Receiver ID)- How to fix this error on Linux Mint?

I am using the same Asus Laptop Model and I too faced the same error on Ubuntu and not with Mint as I am using only Ubuntu alongside Windows 10. I tried the following fix which actually worked for me.

Steps to fix this issue:

Turn on the system.
On the Grub menu, Press e while the highlighter is on ubuntu(in your
case, Linux Mint).
Now, we have to edit the line. Keep the cursor or blinker before the
the term "quiet splash" and type pcie_aspm=off and then press CTRL + X
to save and continue booting. I added the image below kindly refer to the image.

For me, Ubuntu started loading up after this and finally,

I have to update my grub so that the above command will be included
every time when the system loads.
Assuming the system loaded normally, let us update the grub. Open the
terminal and run the command sudo update-grub. this command will
update the grub with the above-made changes.

The above fix worked for me and I hope it works for you as well.


Disk space Indicator for Files (Nautilus) application in Ubuntu 18.04

Install GNOME extension "Disk Space Usage" found here.

Other GNOME extensions can be found here.


Canon 120 LiDE Scanner VirtualBox Windows 7

Try this:

Open a terminal. Press Ctrl+Alt+T

Run it:

$ sudo apt-get update
$ sudo apt-get install --reinstall libusb-dev build-essential libsane-dev git-core
$ git clone git://git.debian.org/sane/sane-backends.git
$ cd sane-backends
$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
$ sudo make
$ sudo make install

Check if recognized his idVendor and idProduct, run:

$ dmesg

This command should report something like:

...... usb ?-?: New USB device found, idVendor=04a9, idProduct=190e

Continue running:

 $ sudo nano /lib/udev/rules.d/40-libsane.rules

And add the following lines at the end of file:

# Canon CanoScan Lide 120
 ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="190e", ENV{libsane_matched}="yes"

Ctrl + U Paste. Ctrl + O Save file. Ctrl + X Close nano.

Continue running:

$ sudo nano /etc/sane.d/genesys.conf

And add the following lines at the end of file:

# Canon CanoScan Lide 120
 usb 0x04a9 0x190e

Ctrl + U Paste. Ctrl + O Save file. Ctrl + X Close nano.


After looking more clear-fully at the readline6 source package, more specifically at the readline-common.postinst file I discovered the file is copied at the configure step

if [ "$1" = "configure" ] && [ "$2" = "" ]; then
  install_from_default /usr/share/readline/inputrc /etc/inputrc
fi

I really don't understand why it's copied this way and not with some cp in the rules file or even in a debian/readline-common.install file.


Can anyone advise of a way to set a universal quit-application shortcut?

Gracefully close a window

The simplest would be to add the following command to a shortcut key of your choice:

wmctrl -c :ACTIVE:

wmctrl is not installed by default:

sudo apt-get install wmctrl

from man wmctrl:

-c <WIN>
    Close the window <WIN> gracefully

Gracefully closing a window means that if you e.g. made changes to the currently opened file, you will be asked if you want to save the changes etc. This is similar to the Cmnd + Qyou are used to.

To add it to a shortcut key

Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

wmctrl -c :ACTIVE:

Or, if you are comfortable with Alt + F4

Even much simpler, as mentioned by @Takkat (thanks!), you can simply press Alt + F4


This question has been solved by installing a development version of OpenGL, following the link at:

How do I set up an OpenGL programming environment?

and installing the files: sudo apt-get install anjuta

sudo apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev
(includes opengl dev though under different names, as I undertstand it)

I also needed the development version of freetype by using:

sudo apt-get install libfreetype6-dev , from last comment at:

freetype cannot be found by build #3029

Now OpenCASCADE is building correctly.


You should definitely break these up.

There was a bug that was patched for the wifi. I've also gone so far as to get the DELL ISO Image and start anew.
Dell released a BIOS Update to fix the keyboard issue.
My touchpad issues were resolved with the BIOS updated, too.

Hope this helps.


Is it Normal for a Powerful Machine to Stutter? AMD R9 390

I was able to solve this by switching from radeon to amdgpu kernel modules. The instructions were here:

https://wiki.archlinux.org/index.php/AMDGPU#R9_390_series_poor_performance_and/or_instability

This command outputs what kerenl driver is currently in use:

lspci -nnk | grep -A3 "\[03..\]:" | grep "Kernel driver in use"

For me it now reads:

Kernel driver in use: amdgpu


Need to change strong passphrase for Private folder

If you don't have any data in the Private folder yet, then you simply need to copy the contents of one of the ~/.ecryptfs/ directories to the other machine.

The files in that directory (specifically ~/.ecryptfs/wrapped-passphrase and ~/.ecryptfs/Private.sig) determine the keys that will be used to do the encryption.

Note that if the login passphrase is different on the two machines, you'll need to use ecryptfs-rewrap-passphrase to ensure that your Private directory is mounted at login.


I have to take backup of all my files in Windows

In a terminal window (Ctrl+T), create a mountpoint:
mkdir ~/ntfs

Mount sda2 to ntfs (this will be a subdirectory of your home directory:
sudo mount -t ntfs -o ro /dev/sda2 ~/ntfs


Python3.5 claiming pip installations in virtualenv and its uninstallation causing errors

Your problem is not quite clear to me from your description. But I have an idea, probably it may help you out.
How many versions of python have been installed in your system?
If you don't know it, try this,
find /usr /lib* /home -type d \( -name "*site-packages" -or -name "*dist-packages" \)

The idea is to find all the location for Python distribution and package folders.
/usr/lib/python2.7/dist-packages
/usr/lib/python3/dist-packages
/home/name/pyenv/versions/3.8.3/lib/python3.8/site-packages

Then you will have a clear sense what versions of Python have been compiled to your system.
Now, it's time to get all their pips. (some of them may not have if you don't install it)
find /bin /usr /lib* /home -type f -name "pip*" -executable

You may get some outputs like;
/usr/bin/pip3
/usr/bin/pip3.5
/home/NAME/pyenv/shims/pip3

Test them one by one by using:
PATH-of-PIP --version

e.g.

/usr/bin/pip3 --version

To know where those pips are linking to.
In your case, since you want to use version python-3.9, you can;
pip-full-path-for-3.9 install django

For convenience, you can also permanently add it to your .bashrc file. My suggestion is to add an alias to it. Or make a symbolic link. Or change its name for easy remember to use if you are really sure to it.
echo "alias pip3.9=pip-full-path-for-3.9" >> ~/.bashrc


What worked for me was the following:

[Desktop Entry]
Name=Sublime T2
Comment=Best text editor ;)
Exec=/opt/Sublime\ Text\ 2/sublime_text
Icon=/opt/Sublime\ Text\ 2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
StartupNotify=true
Version=1.0

I'm also using ubuntu 12.04, unity.

The icon path isn't working because you have spaces in the file path and you need to have a backslash - known as "\" before the space.


How can I make the screenshot Prompt to provide me with the option to select a region?

The program you are looking for is xfce4-screenshooter Go to System Settings -> Keyboard -> Shortcuts -> Custom Shortcuts. You can add your custom combination there. For the command you want to execute by pressing your special combination enter

xfce4-screenshooter

Tip: When you have your screenshot application shown on screen try ps ax and you can see, which application is actually running. I am pretty sure it is xfce4-screenshooter.


E: Unable to locate package handbrake-cli

On Ubuntu platforms, there is an official HandBrake PPA, and thus you can install HandBrake directly from the PPA as follows.

$ sudo add-apt-repository ppa:stebbins/handbrake-releases
$ sudo apt-get update
$ sudo apt-get install handbrake-gtk handbrake-cli


You can install TLP and Indicator-cpu, that should cool down your laptop.

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw thermald indicator-cpu
sudo start tlp

Modify the battery so it is always in powersave.

sudo nano /etc/init.d/ondemand

Find:

echo -n $GOVERNOR > $CPUFREQ

and replace $GOVERNOR with powersave

Reboot your machine.

sudo reboot

I also recommend you should install

sudo apt-get install intel-microcode

and Preload, to reduce the RAM usage.

sudo apt-get install preload


At least for ls, you can use

ls --color=never


Battle.net client wont start Ubuntu 16.04 LTS

The new battle.net client has new requirements. Here's how I got it installed:

Create a separate wine prefix for battle.net (replace user with your username)
export WINEPREFIX=/home/user/.wine_battlenet
This sets the wine prefix to the specified directory for the currently open terminal.
Run winecfg, select Windows XP as the OS and on the Libraries tab, add an override for msvcp140 (native, builtin). Click Apply and close the configuration.

In the same terminal run winetricks corefonts to install the default Microsoft fonts.
At this point installing battle.net should work without problems.
wine Battle.net-Setup.exe
You should get a desktop icon (which automatically uses the wine prefix) and everything should work as expected.


Here: http://humpolec.ubuntu.com/20131220/dualboot.sh

Someone should update that wiki page.


Prevent Standard users from seeing and mounting drives

Make sure that the mount command does not have a Set UID permission set on it. A set UID permission allows a script to execute as the creator instead of the invoker. Lets say root owns/created the file, if you run it and it has that permission you're effectively root.

By changing this permission normal users can't use mount without sudo.


Is 32 or 64 bit better for a computer with 2 GB memory?

You list your processor as "Intel(R) Pentium(R) 4 CPU 2.80GHz, x86 Family"

Anything in the x86 Family is a 32-bit processor. You need to install the 32bit version.

If you had a AMD64 or x86_64 Family it would be a 64bit processor and capable of running a 64bit version.

As for the memory issue. The main difference between 32bit and 64bit is the ability to address more memory. A 32-bit processor can only handle up to 4GB or 2^32 = 4GB. A 64-bit can handle much more than that 2^64 = 16EB = 17,179,869,184. The implementation details are much more complex than this description.


I use simple string replacement in my Ghost charm. You could do something similar with Python if you didn't want to install any additional languages.

utils.js: https://github.com/hatched/ghost-charm/blob/master/utils/utils.js

config.js.template https://github.com/hatched/ghost-charm/blob/master/assets/config.js.template


I found the solution. When the VT sensor is connected to the NMR that it gives feed back to, a null modem is used.  When I went to connect the VT to my computer, I also used a null modem.  After trying every combination, of settings, I tried getting rid of the null modem, and using a regular serial cable.

At that point, I was able to send commands, and get data back.


Which folder contains executable's launcher file?

If I am not mistaken, you are using Ubuntu 12.04, right?
Look in to the folder mentioned below.

/usr/share/applications

I am sure you should find your applications there. Double-click on icons to start the applications.


Windows don't behave properly on a second monitor in GNOME3

I experience exactly the same issue with gnome 3.2 on gentoo.
The problem goes away if you put the top panel into the external monitor (at the top of everything).
Probably, it would be a good idea to file a bug into the gnome bugzilla to geti it fixed for 3.4


I don't know if the Broadcom Crystal HD is supported by the upstream Linux kernel, but Broadcom does provide drivers for Linux. I don't know if they work with the latest kernels though, as the site says >= 2.6.11, but the kernel in 14.10 is version 3.16.

The USB WiFi adapter you link to claims Linux support, but I do not know if drivers are included in the upstream kernel. It may come with drivers you will need to install or compile. If you already have one, check any CD that came with the adapter for drivers. Edimax also has a driver download available. Looking at the Edimax driver, it appears to be a Realtek RTL8188C/8192C chip, so may be supported by upstream kernel.

The best way to check, is to simply create a bootable USB installer disk, boot the live Ubuntu system, and see if your devices are recognized and work appropriately.


I fixed it.
The problem was that the game was not running in true "fullscreen" mode, although it declared so.
Workaround was: go to game settings, set "windowed mode", maximize the window, return to settings and set "fullscreen mode".
Now the game should run in proper fullscreen mode, covering all the screen


How to uninstall windows after I’ve already dual booted it with Ubuntu?

It is fairly common in Linux to want a "clean system," so I got used to rebuilding my system as a practice.  If you store your personal files on a separate drive from the OS this is actually quite simple.
Just rebuild your system without the dual boot capacity (i.e. rebuild with Ubuntu and forget about Windows).
I hope this helps!


conected to wireless but can't access any page

I suspect that there is some sort of Port Forwarding problem.
Check your port forwarding configuration and delete everything
then add back just what you know you need.
Also check to see if you enabled using wireless or eth0.
If your connection is disabled you will experience this trouble as well.
Another thing is to check if there is a needed password.
You might want to simply delete all the networks and refresh
them then make sure you have entered the correct password
as well as selecting the correct security WEP, WPA, WPA2


Do i have the latest drivers/software on AMD Graphics

actually, every Ubuntu's repositories doesn't always provide new softwares in their server. Because Canonical retests and evaluates all new softwares versions that will enter into repos for ensuring the softwares is 100% compatible with Ubuntu versions.

If you want to get the latest versions, you could download from official website software distributor. but it doens't guarantee compatible completely.


System not booting to USB. I want to install dual install Windows alongside presently Ubuntu

I solved this issue by using a Windows system to create a bootable USB with the "Media Creation Tool" from the official Windows website.
This question is closed here.


I can't see anythong wrong with your crontab entry, so it is probably the script that is malfunctioning.

It looks like the script is creating a file in a relative location (e.g. ./filename.csv) and this could be the issue. If you execute the script from the directory it is in (./importModifiedServices.sh), the relative path is equal to the path the script is in.

If you change the code to use an absolute path (/ora/oss/OSS80/DB_DIR/bnsbvt/nimetn/) it will probably work.


Run following commands:

cd /path/to/folder

find -iname "*.dmp" -exec rm -rf {} \;

Find command find all the file which end with .dmp extension and remove them one by one so this command take one file at a time to remove and find command pass all the .dmp file one by one to rm command to remove


How do I stop Ubuntu One from syncing when I login?

Just uncheck "Ubuntu One" in menu System -> Preferences -> Start applications
You then have to start manually, when you want to use it.


Step by step

Open the Terminal application and copy/paste the following command in the window that opens (called a terminal or console) and press Enter:

sudo sed -i 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="acpi_osi=Linux"/g' /etc/default/grub

You'll be prompted for a password. Enter your Ubuntu password, followed by Enter.

Note that your key-presses will not show up as asterisks or anything else while you are typing your password; this is a security feature and is normal.

What we're doing here

Prefixing a command with sudo runs it with administrative (or, in Unix terminology, root) privileges.
sed is the Unix command-line string editor.
The -i option makes sed edit files in-place instead of simply showing you what would be changed but not actually saving the changes.
The 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="acpi_osi=Linux"/g' part is what does the search and replace.
/etc/default/grub is the file to edit. It's a configuration file for Grub, Ubuntu's bootloader (the program that loads Ubuntu when you turn on your computer).

Update Grub with the changes

Run this command:

sudo update-grub

This makes Grub see the changes in its configuration file and apply the new config.

Try it out

Reboot your computer to test out the change you made. If it works, you're good to go, and you've successfully edited you're first file using the command line!

Congratulations :)


ubuntu attempts to connect to USB-to-Ethernet adapter

If you don't need to have USB devices to pass through to the guest you can disable USB passthrough in your VB settings.

VM settings > USB > Enable USB Controller

You can also blacklist the USB device.

Look here https://projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/

Hope this helps.


System monitor (panel) shows the wrong amount of used ram

The memory usage in Linux is often very high because unused memory is used as a cache (I'm not too sure a cache for what, probably for disk access). So make sure that the red bar in the upper panel is not related to cache memory. You can configure the upper bar monitor by right clicking on it and selecting Preferences. There you can select the colors for the different types of memory, set a different color for cache and User.

In the graphical memory usage the cache memory is considered as free memory (And it is technically the case as cache can be used at any moment for new programs) so this is why you see different values.


Any chance of an amd64+mac iso for current LTS, MacPro(orginal 1,1 2,1: 32bit EFI, HW 64bit)

http://cdimage.ubuntu.com/releases/14.04/release/
you will find the ISO file you need to create a dvd and boot off of.  Don't forget to hold down the "C" key during boot up.

I have 14.04 LTS installed on my mac 2008 pro 2,1, working great!Runs like a champ!


How do I disable updates in Ubuntu 20.04?

Although update is good, but if you want to disable it you can do so with these simple steps.

Open the software & updates application
Select “Updates” tab.
from “Automatically check for updates” option, select Never.

and your update will be disabled, until you want that back.
thank you


Based on: https://superuser.com/a/516847/205010

Install gnome-tweak-tool: sudo apt-get install gnome-tweak-tool
Open it: gnome-tweak-tool
Go to Keyboard and Mouse and change Key Theme to Emacs


Configuring Samba on Ubuntu 16.04 on two nearly identical machines

Answering my own Question 1:

For me it was a two step process:

some-very-long-name@some-very-long-name:~$ nmblookup some-very-long-
192.168.29.168 some-very-long-<00>
some-very-long-name@some-very-long-name:~$ sudo mount -v //192.168.29.168/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword
mount: //192.168.29.168/some-very-long-name mounted on /mnt/ralph12.
some-very-long-name@some-very-long-name:~$

I had created an smb network share name called some-very-long-name. Note that nmblookup needs to have the name truncated to 15 characters.

Then use the ip address delivered by nmblookup in the mount command.


You follow similar instructions to when you first installed

cd rtlwifi_new
make clean
make
sudo make install

And for bluetooth

git clone -b troy https://github.com/lwfinger/rtl8723au_bt.git
cd rtl8723au_bt
make
sudo make install

Reboot

October 2015 edit, Pilot6 has a PPA with a dkms module that doesn't need to be reinstalled after a kernel update
sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware rtl8723au-bt-dkms

Reboot and done


JAVA blocked due to security level on Ubuntu 13.10

I find these "it works on my machine" and "use what I use" answers annoying.  If you're using Oracle's JDK and having this problem on Linux, add the following line to your ~/.java/deployment/deployment.properties file:

deployment.security.level=MEDIUM

Then restart your browser.  This is the Linux equivalent of all the Windows and Mac OS X specific "set your security level to Medium" instructions polluting the "how do I do this on Linux" search results.

Good luck!


ath9k driver suddenly doesn't see channel 13 anymore

I installed the wireless-crda and the iw packages which automatically seem to have fixed things, before I saw these replies. Thank you for the answers, however!


Install batman-adv under Ubuntu to start a mesh network

You don't need the packet batman-adv since Ubuntu 12.04.

Install the packet

apt-get install batctl bridge-utils

then

modprobe batman-adv
batctl -v

sais for example:

  batctl debian-2011.4.0-2 [batman-adv: 2011.4.0]

(only some versions are compatible)

for example to connect to batman.kiel.freifunk.net on wlan0 with the bssid 02:ca:ff:ee:ba:be
use this script. that will start a mesh network on your computer.

To get back to normal networking just restart the networkmanager:

/etc/init.d/network-manager restart

and remove the node from batman (see script)


Digital Audio Output light on on MacBook Pro

This is the digital audio output (optical SPDIF), not a warning light. You should be able to turn it off with:

amixer set IEC958 off


How to renable “never show” notifications in Xubuntu 14.04?

You can use this commands to reset the values from command-line:

Network notifications:

gsettings reset org.gnome.nm-applet disable-connected-notifications
gsettings reset org.gnome.nm-applet disable-disconnected-notifications

Wireless notifications:

gsettings reset org.gnome.nm-applet disable-wifi-create
gsettings reset org.gnome.nm-applet suppress-wireless-networks-available

VPN notifications

gsettings reset org.gnome.nm-applet disable-vpn-notifications

Thanks for this hint to https://askubuntu.com/a/398488/265974

Or with the dconf-editor:


There are several caveats in what you tried to do. I already mentioned the danger introduced by your approach:

  Next time nautilus is going to be updated, your dolphin gets overwritten (as your link points there). Same goes for gnome-terminal.

So we figured, this was not a good idea :)

But there are some ways to try working around, so "x" gets run when "z" was requested -- but I'm not aware of any as soon not "z", but "/full/path/to/z" gets called. As long as it is just "z":

creating an alias for z, like alias z=x (works on a per-user-level -- or globally, depending on where it was defined)
creating a "replacement" for z in a location mentioned in the PATH before the location the real z resides in

A little more details on the second approach. Taking your original problem, you want to have dolphin executed whenever nautilus is called upon. You already found nautilus at /usr/bin/nautilus. Now let's (probably correctly) assume your $PATH contains (in this order) /usr/local/bin:/usr/bin -- so you see /usr/local/bin would be searched before /usr/bin. So we simply create a shell script /usr/local/bin/nautilus with the following content:

#!/bin/bash
/usr/bin/dolphin %$@

So what will happen? If you (or some script/program/daemon/...) invokes nautilus, this will execute /usr/local/bin/nautilus (as this is the first "nautilus" found in the PATH), which simply starts /usr/bin/dolphin -- voila! But if the "whatever" uses the full path, this won't work.

So you say: Hey, why didn't Izzy say "just do a ln -s /usr/bin/dolphin /usr/local/bin/nautilus?" Sure you can do that -- and it will work the same. But using a script as shown may come in handy if you need to introduce additional parameters which are not passed with the original call. With above script, dolphin simply gets passed the same parameters the original call used (%$@). But you can play around with things in the script, replace parameters, etc. As for your current problem, the link would be enough (as long as nautilus doesn't get called with the full path).


My computer "rediscover" my HP Printer over and over again... and duplicates the entry. Anything I can do to avoid that?

Open a terminal and go to:

/etc/cups/cups-browsed.conf

Then make the following change in the file:

BrowseRemoteProtocols none

save and then restart CUPS:

service cups restart


How can I remove all updates installed after a specific date?

There is an alternative, command line approach to getting installation history.

The package manager apt seems to log everything in /var/log/apt/history.log and /var/log/apt/term.log, including separating everything by datestamps. Both contain similar, usable information but term.log is both more verbose and doesn't explicitly indicate what initiated the operation.

History log

/var/log/apt/history.log stores a concise summary of each apt run. Here's a snippet of mine for a manual installation:

Start-Date: 2014-08-22  17:17:52
Commandline: apt-get install nautilus-dropbox
Install: nautilus-dropbox:amd64 (1.6.1-1), python-gpgme:amd64 (0.3-0ubuntu3, automatic)
End-Date: 2014-08-22  17:19:13

The Commandline: field indicates what triggered the run, and in the case of installations made by the update manager it should look something like:

Commandline: aptdaemon role='role-commit-packages' sender=':1.131'

...and there's your list of packages, sorted by date, method and action (install/upgrade/remove). Note that if you want to to pass these packages back to apt-get remove ...:

As mentioned, this completely removes packages rather than reverting them. The information in the logs could certainly be used to look at upgraded packages, though rolling them back is another matter.
You'll need to strip out the parentheses, their content and comma separator from the list via your preferred method of text manipulation (e.g. sed, vim etc.). So if I wanted to remove the packages in the snippet above I can use the line relatively directly:

sudo apt-get remove nautilus-dropbox:amd64 python-gpgme:amd64

Terminal log

Generally /var/log/apt/term.log is less conveniently structured but, for the sake of completeness, you can get the same information. Terminal output is delimited by timestamps again, and package installations can be got from lines of the following form:

Selecting previously unselected package nautilus-dropbox.

The following is one way of printing a list of installed packages to the terminal for the entire log:

$ awk '/^Selecting/ {gsub(/\./,""); print $5}' /var/log/apt/term.log

This can be adapted or extended to get installations in a date range.


E: The package livenavigator needs to be reinstalled, but I can't find an archive for it

Finally,
I edited the /var/lib/dpkg/status file using

sudo -H gedit /var/lib/dpkg/status

and removed the part referring to livenavigator. I saved the file, and then I ran

sudo apt-get clean

and I rebooted the PC.

At least, I restored all APT functionality.


Conflict between variable substitution and CJK characters in BASH

Short answer:

set LC_ALL=C for the behaviour you expect

pauhel@permafrost:~$ b="你1265-3好"
paul@permafrost:~$ echo ${b//[0-2]/}
你1265-3好
paul@permafrost:~$ export LC_ALL=C
paul@permafrost:~$ echo ${b//[0-2]/}
你65-3好

Long answer:

The behaviour you expect relies on collation ordering  which is locale/OS implementation dependent. The POSIX standard leaves it specifically undefined except for the C locale. (Bash calls an external library for this and, at a guess, it looks like that falls back to ASCII ordering if only ASCII characters are present).

Later versions of bash have a shell option  that lets you specify something like you expect.

See:

https://groups.google.com/forum/#!topic/gnu.bash.bug/S6cN9KI4vK4/discussion

for more background.


How to set up a basic home network file sharing?

You can right click on a folder and choose "Sharing Options"

then select "Share this folder"


Why not just install freeglut3 from the repositories? In the same terminal you are right now, type this:

sudo apt-get install freeglut3

It will ask you for your password, enter your password and done.


do-release-upgrade ubuntu 10.04 always failed

Can you test if your internet connection is IPv6 ready with http://www.test-ipv6.com? Maybe that's the problem. If you can't connect via IPv6, then try the following:

1. In Terminal, type "pkexec gedit /etc/gai.conf"
2. Uncomment (i.e. remove "#" at the beginning) the line "precedence ::ffff:0:0/96 100"

After that, IPv4 connection should be used and upgrade process should work.


i am new to ubuntu so just a bit of queries before i install it over my windows

Normally internet should work out of the box. If for some reason this does not work with your provider we need to know why and what we have to address manually.
A lot can be changed with ncpa and only stating that you have access via their website is not very clear, do you mean they run a proxy at that address, or is this the address from their gateway? Do you get an ip-adres automatically or do we have to assign by hand? etc
To install a program through commandline you use: sudo apt-get install programname
,but if you are a newbie I would start with the graphical interface.
Keep your questions simple, you now ask for several things in one item, and just some troubleshooting commands can take books to describe if you do not properly address what you want to find/fix.


What should I do in emergency mode where I got couldn't find amd

Your image is too large and cuts of important parts but it DOES tell you want to do: view the log. The part WHAT log you need to view is cut off though so you need to examine that.

The text probably states:

  Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into dafault mode. Press Enter for maintenance (or press control-D to continue):

If the same use "enter" to go into maintenance mode or control-D to continue. Then do a

journalctl -xb

to view the log to find the problem that have it stop. And ...

systemctl reboot

to reboot.


Conda / apt-get & issues installing graph-tool

In general there should be little to no interaction between conda-installed and apt-installed packages. At least that's the intention, although there are a lot of ways you can get yourself into trouble.

I'm not familiar with graph-tool, except for just-now looking at the website.  It's got quite the list of dependencies.  I also looked on anaconda.org for it, and found the gnarly conda install incantation with all of those channels--the one that caused you problems. (One of those channels is mine.)

One piece of advice is to be mindful of what you're actually interacting with on PATH. Executing echo $PATH will show you the contents of that environment variable, and the directories along with their order is key. To help you figure out what's being recognized as an executable, use which -a. For example, which -a python.

With all of those dependencies, I'm not surprised you're having problems. My second piece of advice is to try using a conda env. A conda env will help isolate all of your dependencies.

Try the command

conda create --name graphtool -c floriangeigl -c vgauthier -c msarahan -c bioconda -c ostrokach -c salford_systems -c ptorrestr -c pkgw -c kalefranz graph-tool

where the --name graphtool creates a new env named graphtool. Then run

source activate graphtool

to activate the env. From there, you should be able to execute (in the same terminal session) whatever graph-tool commands you need.

Now to the stack trace you got when you tried your conda install command...

It appears there's an issue with anaconda.org and the libgcc-5 package on the ostrokach channel. The stack trace indicates you got a 404 NOT FOUND error for the URL

https://conda.anaconda.org/ostrokach/linux-64/libgcc-5-5.4.0-2.tar.bz2

that anaconda.org indicated existed in https://conda.anaconda.org/ostrokach/linux-64/repodata.json. If this particular error persists, file an issue (maybe even referencing this thread) at https://github.com/Anaconda-Platform/support/issues.


Ububtu 20.04 hangs at the start of live, and of install. Also tried with live and install Ububtu Studio

I believe i've got it!
Win 8.1 does not completely shutdown because there is a fast reboot option there that affects things and could cause problems.
I changed it to NOT use fast boot and i purged all the temp files. Ubuntu studio 20.04 loaded like a charm.
keep in mind i'm no expert...but it worked.


[Firmware Bug]: TSC_DEADLINE disabled due to Errata - what should I do about this?

Just install intel-microcode with sudo apt-get install intel-microcode and reboot.

If it does not help, try to update your BIOS.

It was already reported to launchpad as bug 1724650.


Missing Armenian language pack in Ubuntu 18.04

The reason is that too few strings are currently translated into Armenian.

Translation of Linux, including Ubuntu, is mostly done by volunteers. You may want to take contact with the Ubuntu Armenian Translators team and maybe get involved yourself.

It's not possible to just request a new language to be added. Establishing a new language and make it sufficiently translated is a big undertaking.


Tooltips text and background are same color in gnome-shell

To circumvent this sort of problem it may be useful to choose a different theme under Settings->Appearance.


There is no build for saucy 13.10 in launchpad. unity-lens-torrents


What to do when lspci and hwinfo freeze the system?

1. Using lspci to get a list of devices

To make lspci work temporarily, you have different possible options that might work :

Check that everything is up-to-date, including non-free firmwares
Disable ACPI : add acpi=off to the grub kernel command line (see this thread)
Blacklist some well-known drivers, like nouveau
Install an older kernel

When you can run lspci, save the bus IDs in a file :

lspci | awk '{print $1}' > pci_ids.txt

2. Debugging devices

Then, reboot "normally", i.e. with the config where lspci was not working before, and run lspci with each id :

for i in `cat pci_ids.txt`; do echo " * CHECKING $i";lspci -s $i; done

Then, you will find which hardware is the source of the problem.


The last time I programmed in Glade/GTK, it didn't require "gtk-builder-convert". The .glade file that glade provides is itself xml file you need. Just program your code as if you already have converted the file to .xml (btw, i'm using glade 3.12.1). As:

#include <gtk/gtk.h>

void on_window_destroy (GtkWidget *object, gpointer user_data) {
    gtk_main_quit();
}

int main (int argc, char *argv[]) {
    GtkBuilder *builder;
    GtkWidget *window;

    gtk_init (&argc, &argv);

    builder = gtk_builder_new ();
    gtk_builder_add_from_file (builder, "ui.glade", NULL);

    window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
    g_signal_connect (window, "destroy", G_CALLBACK (on_window_destroy), NULL);

    gtk_widget_show (window);
    gtk_main ();

    return 0;
}


Yes, all available packages are stored locally and

sudo apt-get update

updates that list.


NOTICE: this question and answer pre-date the OpenSSL bug, Heartbleed.

First you need to completely remove the old installation:
(this will break most systems!  Be careful!  Most people will regret this)
    apt-get purge openssl

You may want to clean house by running:

apt-get autoremove && apt-get autoclean

Then you should download and compile the version you want (full list)

wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz