Will LibreOffice 3.4 be included in an update? Ubuntu 11.04 ships with LibreOffice 3.3.2

In a few weeks LibreOffice will publish a new Version LibreOffice 3.4

Will Ubuntu release this update like a new Version of Firefox? (a few days after the release)

Or: similar to openoffice? (more or less never)

LibreOffice 3.4.3 for Natty was released 7 Oct 2011.  Consider adding the libreoffice repository:

 sudo add-apt-repository ppa:libreoffice/ppa
 sudo apt-get update
 sudo apt-get upgrade

This will make sure you're always up to date with the newest versions of Libreoffice.

for new versions of software you will properly have to wait for the next release, this is what normally happens.

if a ppa gets released for the software then you can install this and get the latest versions.


sudo: /etc/sudoers is world writable I'm using Ubuntu 16.04 LTS.
In the terminal I was in the htdocs/project folder and I have run this command to change permission of current folder:

asus@asus-X541UJ:~/Bureau/htdocs/project$ sudo chmod -R 777 /

After many of texts were appeared in the terminal , sudo command isn't working anymore.

sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

You did something really wrong: you gave everyone the power to modify the root directory and all of its subdirectories (there included /etc and /etc/sudoers*).

For this reasons sudo will refuse to run. From the friendly manual:

            To help prevent the editing of unauthorized files, the following restrictions are enforced unless explicitly allowed by the security policy:

             ·  Symbolic links may not be edited (version 1.8.15 and higher).

             ·  Symbolic links along the path to be edited are not followed when the parent directory is writable by the invoking user unless that user is root (version 1.8.16 and higher).

             ·  Files located in a directory that is writable by the invoking user may not be edited unless that user is root (version 1.8.16 and higher).

If you have root's password, please use su - to become root and fix back the permissions.

Otherwise you need to reboot the machine with init=/bin/sh, remount the / file system as rw (read-and-write) and, again, fix all those permissions. That can be tedious and error prone, indeed, but it's still possible.

As root you can start with:

find / -type d -maxdepth 1 -exec chmod -vc go-w {} \;
chmod -vc 440 /etc/sudoers


setting up a script to rotate scren Lenovo Yoga Thinkpad S1 I am trying to set up a Lenovo Yoga Thinkpad S1 to rotate the screen with the touch of a button but I am having a little trouble with the script that actually does the work.

I have found the scripts that does everything I need here.

The script that is giving me trouble is the first tone of post number 6.
The script is as follows:

#!/bin/bash

# Script rotates screen 90deg on every run, and also rotates touchscreen and wacom input.
# In modes other than normal, touchpad is deactivated.

current_orientation(){
    xrandr|grep " connected" |awk '{print $4}'
}
#orientation=`current_orientation`
case $( current_orientation ) in
    "(normal" )
        xrandr -o left
        xsetwacom set "Wacom ISDv4 EC Pen stylus" rotate ccw
        xsetwacom set "Wacom ISDv4 EC Pen eraser" rotate ccw
        synclient TouchpadOff=1
        xinput set-prop --type=int --format=8 "ELAN Touchscreen" "Evdev Axes Swap" "1"
        xinput set-prop "ELAN Touchscreen" "Evdev Axis Inversion" 1 0
        onboard &
        ;;
"inverted" )
    xrandr -o right

    xsetwacom set "Wacom ISDv4 EC Pen stylus" rotate cw
    xsetwacom set "Wacom ISDv4 EC Pen eraser" rotate cw
    xinput set-prop --type=int --format=8 "ELAN Touchscreen" "Evdev Axes Swap" "1"
    xinput set-prop "ELAN Touchscreen" "Evdev Axis Inversion" 0 1
    ;;
"right" )
    xrandr -o normal
    xsetwacom set "Wacom ISDv4 EC Pen stylus" rotate none
    xsetwacom set "Wacom ISDv4 EC Pen eraser" rotate none
    synclient TouchpadOff=0
    xinput set-prop --type=int --format=8 "ELAN Touchscreen" "Evdev Axes Swap" "0"
    xinput set-prop "ELAN Touchscreen" "Evdev Axis Inversion" 0 0
    killall onboard
    ;;
"left" )
    xrandr -o inverted
    xsetwacom set "Wacom ISDv4 EC Pen stylus" rotate half
    xsetwacom set "Wacom ISDv4 EC Pen eraser" rotate half
    xinput set-prop --type=int --format=8 "ELAN Touchscreen" "Evdev Axes Swap" "0"
    xinput set-prop "ELAN Touchscreen" "Evdev Axis Inversion" 1 1
    ;;
* )
    synclient TouchpadOff=0
    echo "c est autre chose"
    current_orientation
    #echo $orientation
        ;;
esac

When I run the script from the button nothing happens. (button is configured to call the script from keyboard shortcuts). I have set the script to execute with chmod +x. However, when I run the script from the command line I get "c est autre chose". As this is is in the script I can see that the script is working?? - I guess. But it does not rotate the screen at all. Or turn off touchpad.

This script works for others with the same model of computer using different flavors of Ubuntu. I am running Ubuntu Gnome 14.04. I have already set up the palm rejection script also found in post number 6 and it is working fine.

I would ask on the forum where I found the script but registration is temporarily closed.

You could try to change synclient touchpadoff=0 to synclient touchpadon=1 and at right" styles rotate half and erase" rotate half.

and it might work fine this way.

Change the script to xrandr|grep " connected" |awk '{print $5}' as Charles suggested.


How do you set the default speaker on Ubuntu 20.04 focal I have tried pactl list short sink, but I get
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

which leads me to believe that ubuntu is using a different audio management technology now. Is this correct? What is the proper way to set the default speaker in focal?

Maybe running this command with sudo could work?


git clone:command not found I want to install something. as I am running a command on my Linux is m getting this error. What should i do?
git clone https://iffgit.fz-juelich.de/fleur/fleur.git
If 'git' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf git

Do you have git installed?
You can check that by opening your terminal and typing:
apt policy git
If it shows Installed: (none), it means git isn't installed. You can install it by typing:
sudo apt install git
After installing it you can clone the repository.

u need to install git first
If you’re on a Debian-based distribution, such as Ubuntu, try apt:
$ sudo apt install git-all


How do I uninstall Extreme Download Manager? How do I  uninstall Extreme Download Manager on Ubuntu 12.04? That means also getting rid of the icon that appears in the Application area of Dash as well as all the Java related stuff that was downloaded with it.

I tried using 'sudo apt-get purge xdman' but i am not certain that that did the job:(please tell me that i didn't make things worse, PLEASE!).

I was told that xdman was uninstalled but all the Java related stuff is still in the history section of the Ubuntu software center and the extreme download manager icon is still in the app section of Dash. And i want to get rid of that also. I have heard that Java is dangerous because its loaded with spyware etc!

Thanks

Java is not dangerous. It can be if the application using it was not using it properly thus creating holes and such. That doesn't mean that using Java automatically makes you vulnerable...because it doesn't.

I wouldn't use Java unless I absolutely have to because Java uses a lot of resources to do simple things so I much prefer native applications instead.

With that said, what Olupot Douglas said regarding the removal is close.

sudo apt-get remove xdman

that will remove the xdman package.

sudo apt-get autoremove

that will remove all unnecessary packages...packages that were installed but are no longer being used by any other packages. This applies to any packages not being used, not just xdman.

sudo apt-get purge xdman
or
sudo apt-get remove --purge xdman

Purge will remove config files as well as uninstalling the app. If you did this then that is odd that it is still showing xdman content in your dash.

Java still being installed after uninstalling xdman is expected because just uninstalling xdman doesn't mean it will also uninstall Java. First, try the autoremove option and if that doesn't remove java then reply here and I will give you some other commands to use. (but autoremove should work)

I think you can just delete the xdman directory and uninstall xdm helper plugin in your browser
To uninstall xdman

 sudo apt-get remove xdman

To remove the config data as well

 sudo apt-get remove --auto-remove xdman

I've never really used or installed it before


How can I upgrade my 10.04. to new version I recently upgrade my ubuntu from 9.04 to 10.04 and when I open Update Manager, it says:

New Ubuntu release '12.04.1 LTS' is available.

(Shouldn't it be 10.10 or 11.xx)?

When I click 'upgrade', it fails with

Could not calculate the upgrade

How can I upgrade it to 12.04?

As said by mikewhatever above 10.10 is not supported anymore another reason is that when you upgrade to a Long Term Support release (LTS) like the 10.04 you get the option to upgrade straightaway to the next LTS release which is the 12.04.

For the problem about that the upgrade can't be calculated you need to remove added repositories. A thread at ubuntuforums is available that shows an example to this problem http://ubuntuforums.org/showthread.php?p=12236020#post12236020

Try entering this into the terminal:

sudo apt-get dist-upgrade

Hope it helps!


Abnormal cooling fan speed My laptop is a Dell Inspiron 3521, dual booted Windows 7 with Ubuntu 18.04 LTS.

Two days ago I installed Ubuntu, when I start Ubuntu the fan speed is at 0 RPM. It eventually increases when the temperature rises (1200 -> 2600 -> 3200 -> 4800). But the problem is that the fan speed goes to max (4800 RPM) at about 55 °C and it never decreases. The temperature drops to a minimum of 42 °C.

All readings are taken from lm-sensors and psensor. In Windows, at 42 °C the fan doesn't even start, and I've barely seen it goes to max speed (monitored with HWiNFO).

So I'm a bit worried about this matter. I've read some other articles about fan speeds, and as they suggest I don't want to mess with the fan speed by manually overriding it unless it's absolutely necessary. Laptop's specs are here.

What would be the cause to fan to run continuously at max speed?
Besides the sound, is it a problem to let fan continue at this speed?

Install i8kutils:

sudo apt install i8kutils

Next add to file /etc/modules the new line i8k:

echo "i8k" | sudo tee -a /etc/modules

Create and add to i8k.conf file new line options i8k force=1

echo "options i8k force=1" | sudo tee -a /etc/modprobe.d/i8k.conf

Now force i8k kernel module to load:

sudo modprobe i8k force=1

or just reboot your laptop.

Open file /etc/i8kmon.conf with nano text editor:

sudo nano /etc/i8kmon.conf

Add to the file the following strings:

# Run as daemon, override with --daemon option
set config(daemon)      0

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 20

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0)   {{-1 0}  -1  40  -1  40}
set config(1)   {{-1 1}  30  60  30  60}
set config(2)   {{-1 2}  53  128  53  128}

# For computer with 2 fans, use a variant of this instead:
# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# set config(0) {{-1 0}  -1  52  -1  65}
# set config(1) {{-1 1}  41  66  55  75}
# set config(2) {{-1 1}  55  80  65  85}
# set config(3) {{-1 2}  70 128  75 128}

# end of file

Now you can run i8kmon to check the cpu temperature and control the fan speed:

i8kmon

More information on i8kmon available from Ubuntu Manpage.


Where can I look up my update history? Is there a place where I can look what updates I've installed?

You can read the history.log file in /var/log/apt.

Eg. less /var/log/apt/history.log.

It became useful for us to have a slightly more easy and accurate answer to the question "when was the last time we patched this thing?".  So I put this together.  I tested it on 12.04 and 14.04 and 16.04.  It returns reasonably accurate answers for that question.
Note: "reasonably accurate" probably isn't "completely accurate".
Note: "for that question"  only.

sample output:

xenial% 9: ./linuxpatchdate
2016-07-19 54
2017-02-24 363
2017-03-08 7
2017-03-09 2

subroutines and program:

#!/usr/bin/perl

#------------------ subroutines --------------------

sub parseRecord {
    my $sdate = "";
    my $useful = 0;
    my $packages = 0;
    my @ptmp;
    while (my $recordLine = shift() ) {

       if ($recordLine =~ m/^Start-Date: ([\d\-]*).*/) {
          $sdate = $1;
       }
       elsif ($recordLine =~ m/^Commandline:.*upgrade/) {
          $useful = 1;
       }
       elsif ($recordLine =~ m/^Install: (.*)/) {
          $recordLine =~ s/\([^\)]*\)//g;
          @ptmp = split(/,/,$recordLine);
          $packages = $packages + $#ptmp + 1;
       }
       elsif ($recordLine =~ m/^Upgrade: (.*)/) {
          $recordLine =~ s/\([^\)]*\)//g;
          @ptmp = split(/,/,$recordLine);
          $packages = $packages + $#ptmp + 1;
       }
    }

    if ($useful) {
       return ($sdate,$packages);
    }
    else {
       return ("0",0);
    }
}

#------------------ main program --------------------

@lines = split(/\n/,`/bin/zcat -f /var/log/apt/history.log  /var/log/apt/history*gz`);
my %patchHash;
my $line;
my @inputLines;
my $pushDate = "";
my $pushNum = "";

foreach $line (@lines) {
    # all records separated by blank lines
    if ($line !~ /./) {
       # no-op
    }
    elsif ($line =~ m/^Start-Date: ([\d\-]*).*/) {
       @inputLines = ();
       push (@inputLines, $line);
    }
    elsif ($line =~ m/^End-Date: ([\d\-]*).*/) {
       ($pushDate, $pushNum) = parseRecord(@inputLines);
       if ($pushNum != 0) {
          $patchHash{$pushDate} += $pushNum;
       }
    }
    else {
       push (@inputLines, $line);
    }
}

foreach $pushDate (sort(keys(%patchHash))) {
   print "$pushDate $patchHash{$pushDate}\n";
}


Ubuntu 13.04 Dual boot UEFI Windows 8 Preinstalled ACER I have read so many tutorials here on other places, but never see an instruction that is suitable for me.
I have tried to boot secureboot in UEFI boot all seems fine in the installation, but after the installatiuon that seems to work good as dual boot, I just get windows 8 at the boot loader lines, which looks like Grub , but I am not sure really. But no sign of the Ubuntu instalation just the windows 8 option.
So my question is if there is a complete tutorial. Or do I have to wait until 13.04 is finally released?
Yes there is tutorials like " http://www.linuxbsdos.com/2012/11/05/dual-boot-windows-8-and-ubuntu-12-10-on-uefi-hardware/ " but it does not work at all they use both a lot of partitions but not clearly say explain the efi boot wich imply they did not use this method at all., not clearly say if this is a secure boot or something different and use easybcd windows program.

I found this link that might be helpful, especially the last bit about the bootloader:

http://www.linuxbsdos.com/2012/11/05/dual-boot-windows-8-and-ubuntu-12-10-on-uefi-hardware/

Jack


How to slice a tuple using variable indexes, output as textual list I am using Ubuntu 18.04 and Python 3.8
I need tuple_slice() to do 2 things:

slice an input tuple between the given start and all BEFORE the end indexes
Concatenate these values as a comma separated string

I've been able to do the second part
def tuple_slice(startIndex, endIndex, tup):
    tup = tup[startIndex:endIndex]
    print(tup)
    my_list = list(tup)#= [34, 13, 64]  # I want to derive this using indexes
    print(my_list)
    my_string = ','.join(map(str, my_list))
    print(my_string)
    return my_string

if __name__ == "__main__":
    print(tuple_slice(1, 4, (76, 34, 13, 64, 12)))

Example, I want:
1st and 2nd parameters are the indexes, 3rd parameter is the tuple.
tuple_slice(1, 4, (76, 34, 13, 64, 12))

to return:
34,13,64

This should solve your problem
def tuple_slice(startIndex, endIndex, tup):
    return ",".join (str(n) for n in tup[startIndex:endIndex])

Using your example
[In]: print(tuple_slice(1, 4, (76, 34, 13, 64, 12)))
[Out]: 34,13,64

I think you are overcomplicating things a bit, you can do it in one step:
#!/usr/bin/env python3

def tuple_slice(start, end, tup):
    print(", ".join (str(n) for n in tup[start:end]))

tuple_slice(1, 4, (76, 34, 13, 64, 12))

Shows:
34, 13, 64

Or similar, if you need or want the string for further processing:
#!/usr/bin/env python3

def tuple_slice(start, end, tup):
    return ", ".join (str(n) for n in tup[start:end])

print(tuple_slice(1, 4, (76, 34, 13, 64, 12)))


Unable to change the permission of a file using chmod The command chmod -x filename doesn't work for me.

When I execute the command like this:

chmod -r filename
chmod -w filename
chmod -x filename

They complete without any error. But the permission of the files doesn't get affected.

I think you're confusing - with +. One adds a permission, the other removes it. Here's a silly little test with a new file that starts with global rwx (aka 0777):

$ install -m 777 <(echo) test; ls -l test
-rwxrwxrwx 1 oli oli 1 Oct  3 13:34 test

Let's remove read permissions with -r:

$ chmod -r test; ls -l test
--wx-wx-wx 1 oli oli 1 Oct  3 13:34 test

And add them back with +r:

$ chmod +r test; ls -l test
-rwxrwxrwx 1 oli oli 1 Oct  3 13:34 test

Try executing your commands in sudo mode.

sudo chmod -r /path/to/file/filename
sudo chmod -w /path/to/file/filename
sudo chmod -x /path/to/file/filename

And make sure the account you are using has the right permissions to change those properties.


Change guest username Now, looking around on Google shows me some ways in which to customise the settings of the Guest session. But, I would love a way to change the name of the Guest account.

Basically, I'm planning to take some laptops out to a school in Africa and want to rename the "Guest" account in 14.04 to "Student" so the students use that. They tend to store stuff on USB sticks and they're using the Guest account so they can't break anything.
EDIT: I'll expand on this slightly. They're using the guest account simply for the reason it doesn't save anything after logoff. This was a specific thing the teachers have asked for.

I don't mind if the actual username remains guest behind the scenes, but as long as it shows up as Student to on Unity. Any way of going about this?

Why don't you create a user named "Student" as standard account, without admin permission.

Go to System Settings->User Acoounts, then unlock and create a new user:

Change A User's Login

This will change only the user's login name.

# usermod -l newname oldname

Change the Real Name

This will change the real name of the username.

# usermod -c "New Real Name" username


15.04: How to enable predictable network interface names by default? Now that Ubuntu has completed the switch to systemd in 15.04, I want to get rid of /etc/udev/rules.d/70-persistent-net.rules and switch to predictable network interface names (a.k.a. biosdevnames). How could I do this?

In Ubuntu 15.04'ssystemd, predictable interface names is opt-in by default instead of opt-out. So you have to specify on the kernel command line net.ifnames=1

For example, in grub configuration file, /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash net.ifnames=1"

You wil also have to remove /etc/udev/rules.d/70-persistent-net.rules and to avoid it being regenerated at each boot you need to run

sudo ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules

Using the new names in /etc/network/interfaces seems to be the answer according to this forum post and this documentation bug #1312785


How can I update my nodeJS to the latest version? I have installed nodeJS on Ubuntu with following code

sudo apt-get install nodejs

Since I am a new user for ubuntu I also ran this code too

sudo apt-get install npm

Now when I type

 nodejs --version

It shows

v0.6.19

I checked and saw latest nodeJS version is 0.10.26

How can I update my version of nodeJS to 0.10.26?

I tried with

 sudo apt-get install <packagename>
 sudo apt-get install --only-upgrade <packagename>

but no luck.

Use n module from npm in order to upgrade node
sudo npm cache clean -f
sudo npm install -g n
sudo n stable

To upgrade to latest version (and not current stable) version, you can use
sudo n latest

Fix PATH:
  sudo apt-get install --reinstall nodejs-legacy     # fix /usr/bin/node

To undo:
  sudo n rm 6.0.0     # replace number with version of Node that was installed
  sudo npm uninstall -g n

You may need to restart your terminal to see the updated node version.
Found in David Walsh blog

If you are behind a proxy, maybe you could get this error when you run 'sudo n stable':

Error: invalid version

You have to set the env variables like this:

export HTTP_PROXY=http://your-proxy-url:port
export HTTPS_PROXY=http://your-proxy-url:port

And then run the command passing these variables to the root user:

sudo -E n stable


Can I delete a logical E: drive, which popped up after installing dual boot ubuntu? I installed Ubuntu dual-boot in my PC alongside Windows 10. Before installing, i had shrunk my 1TB hard drive and left 200 GB for Ubuntu installation. The installation went fine, but after booting up Windows, I see in disk management, that a new logical drive had appeared, which i did not create, having 512 MB size...Can i safely delete the new drive?

Do not delete! It contains grub config files! Deleting will cause grub bootloader to fail to start!


update android phone os with ubuntu 12.04 How do i update an android phone from 2.2 froyo to 2.3 gingerbread with Ubuntu 12.04 ?

Does this process require Windows ?

I am using Ubuntu 12.04 on a core i3 machine.

Thanks in advance.

ragv

In theory, an Android phone doesn't need a computer to upgrade. In practice, this is usually the case - all I had to do to upgrade was home, menu, settings, about phone, software version, check for updates, apply. (It was something like that, but it's also sometimes a little different by phone as well.)

It should be noted that occasionally, a company will force you to use their proprietary desktop software to upgrade your phone. They will almost certainly distribute their software for only Windows, and so unless it works in WINE or Mono it won't work in Linux. What kind of Android phone do you have?

Also, if you plan on rooting and using a custom ROM, all you need for this is to put the ROM on the micro-SD card in the phone, which can be done on whatever OS you like. Again, it's an entirely phone-contained process after you root. Rooting works on Windows, Mac, and Linux; you need to have the android SDK setup and Mono set up and use SuperOneClick.

Android does its own upgrades via phone but when a total new distro change is needed, it needs a software suite and time is long due for a Linux version of that particular update suite.


Why does LIBVA return an error while trying to init Intel GM965 driver? Ubuntu 12.04 amd64, Intel 965GM chipset.

Here is the result of vainfo command:

libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit.

This file is actually exists, libva-intel-vaapi-driver is installed, even path to libva_driver is written to /etc/environment. I've tried to install those drivers with or without stopping the lightdm service, with bleeding edge Intel drivers or with standard canonical drivers, already. But have all the same result as at the beginning of the post.

update: after some research i have found that there is a non-zero possibility that VAAPI doesn't support GM965 (X3100) chipset. Is it really so?

I should say that answer as simple as sad: from this 01.org link and this wikipedia link I knew that my GM965 chipset in particular isn't supported by VA-API.

https://01.org/linuxgraphics/downloads/2013/2013q1-intel-graphics-stack-release

Apparently it is supported now but I guess we will need to either find a PPA or wait for them to hit the repos as it would be too much effort to get going and certainly keep going really.


Accessing surveillance camera in VM I downloaded Ubuntu 17 to run in a VM (VMWare player) on a WIN10 host to be able to test Linux video surveillance camera software. I can ping my gateway and one of the cameras (.155 below) but I can't connect to the camera with either VLC or Xeoma. Suggestions?

$ ifconfig -a
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.168  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::2ea6:4027:a9b2:e030  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:35:f6:01  txqueuelen 1000  (Ethernet)
        RX packets 38357  bytes 51867963 (51.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17366  bytes 1391196 (1.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 54577  bytes 7823272 (7.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 54577  bytes 7823272 (7.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=3.12 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=5.18 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.56 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1.29 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=1.33 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=1.23 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=1.27 ms
^C
--- 192.168.1.1 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6006ms
rtt min/avg/max/mdev = 1.234/2.144/5.183/1.388 ms
lew@ubuntu:~$ ping 192.168.1.155
PING 192.168.1.155 (192.168.1.155) 56(84) bytes of data.
64 bytes from 192.168.1.155: icmp_seq=1 ttl=64 time=3.47 ms
64 bytes from 192.168.1.155: icmp_seq=2 ttl=64 time=10.6 ms
64 bytes from 192.168.1.155: icmp_seq=3 ttl=64 time=4.16 ms
64 bytes from 192.168.1.155: icmp_seq=4 ttl=64 time=4.59 ms
64 bytes from 192.168.1.155: icmp_seq=5 ttl=64 time=7.68 ms
64 bytes from 192.168.1.155: icmp_seq=6 ttl=64 time=3.36 ms
64 bytes from 192.168.1.155: icmp_seq=7 ttl=64 time=5.33 ms
^C
--- 192.168.1.155 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6009ms
rtt min/avg/max/mdev = 3.360/5.609/10.648/2.466 ms
lew@ubuntu:~$ ping www.ibm.com
PING e2874.dscx.akamaiedge.net (104.96.227.152) 56(84) bytes of data.
64 bytes from a104-96-227-152.deploy.static.akamaitechnologies.com (104.96.227.152): icmp_seq=1 ttl=54 time=38.5 ms
64 bytes from a104-96-227-152.deploy.static.akamaitechnologies.com (104.96.227.152): icmp_seq=2 ttl=54 time=41.3 ms
64 bytes from a104-96-227-152.deploy.static.akamaitechnologies.com (104.96.227.152): icmp_seq=3 ttl=54 time=38.6 ms
64 bytes from a104-96-227-152.deploy.static.akamaitechnologies.com (104.96.227.152): icmp_seq=4 ttl=54 time=37.7 ms
64 bytes from a104-96-227-152.deploy.static.akamaitechnologies.com (104.96.227.152): icmp_seq=5 ttl=54 time=38.2 ms
64 bytes from a104-96-227-152.deploy.static.akamaitechnologies.com (104.96.227.152): icmp_seq=6 ttl=54 time=36.6 ms
^C
--- e2874.dscx.akamaiedge.net ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5117ms
rtt min/avg/max/mdev = 36.685/38.538/41.348/1.440 ms

If you have the drivers for the surveillance camera, try to install the drivers for it in your Windows 10 host. Then, connect the USB (or whatever kind of connection you use) to your Ubuntu 17 guest from the USB icon or from the settings. I'm not sure if this is correct or right. Contact me for more.

Bajiru :)


How to disable IPv6 in Ubuntu 14.04? I am using Ubuntu 14.04. And I have done the following to disable ipv6.

I have open /etc/sysctl.conf using gedit and paste the following lines at the end of sysctl.conf.

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

But when I check it using following command,

$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

I am getting result as '0'( i.e still Enabled). Please help me to disable ipv6, so that I can use hadoop.

I followed instructions from this link.

To disable ipv6, you have to open /etc/sysctl.conf using any text editor and insert the following lines at the end:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

If ipv6 is still not disabled, then the problem is that sysctl.conf is still not activated.

To solve this, open a terminal(Ctrl+Alt+T) and type the command,

sudo sysctl -p

You will see this in the terminal:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

After that, if you run:

$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

It will report:

1

If you see 1, ipv6 has been successfully disabled.

In addition to Ross Rogers answer above you should add:

sudo nano /etc/init/scip.conf

# description "Start sysctl at boot"

description "sysctl"

start on runlevel [2345]
stop on runlevel [016]

console log

respawn
respawn limit unlimited

exec /sbin/sysctl -p


Run commands on system shutdown/reboot/logout I would like to run certain aliases and simple commands when system shuts down or reboots or when I simply log out of system. This would help a lot as I usually forget about shutting down vagrant ( vagrant halt ) and some other terminal commands.
Do we have some kind of bash files or scripts so I can achieve this on Ubuntu 14.04.

Runlevel 0 corresponds to shutdown, and Runlevel 6 corresponds to reboot.

The /etc/rc[0-6].d/ directories contain scripts that are executed when a particular runlevel is initiated.

So you can write a script that contains commands to shutdown various processes, and store that script in /etc/rc0.d/K99_yourscript and make it executable. This will run your script at shutdown. Copy the script over to /etc/rc6.d/K99_yourscript to have it execute on reboot as well.


Printer Indicator missing in Ubuntu 14.04 Since updating to Ubuntu 14.04 when I print a document the Printer indicator doesn't show in the top toolbar.

How do I get it back?

If you are using an HP printer then why not install HPLIP-GUI from the software centre and use that instead as it gives you a LOT more information about your printer including ink levels and cleaning/maintenance/alignment setup as well as an icon in your system tray...


Webm videos converted with avconv not working properly I'm converting mp4 videos to webm with the following command:

avconv -i INPUT.mp4 -c:v libvpx -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 2 -c:a libvorbis OUTPUT.webm

Am I doing something wrong?
Should I use all of these parameters? I just want to make the videos compatible with all the browsers/devices.

The videos are not working on Firefox on most devices and on Chrome in a specific Android device that I have.

EDIT: When i play the embeded videos on firefox, on any android device, it goes straight to the end and doesn't play. It only plays if i click in the progress bar.
If i open the videos on firefox without embedding them in a html page, they seem to have a bigger width box outside then, while the video is inside it.

I uploaded a video that i converted. Try it in firefox: https://mega.co.nz/#!cg9FVZJD!CpC6X3NXH8rAVdBiS9ZqqwyITdyPb_qkKAKsvQXRpzI

This is a comparison between the videos, after and before the conversion:
![Image here]: http://i.imgur.com/V2FijCQ.jpg

I have the same issue, using the same conversion tool.  The video plays as normal in Chromium, but not Firefox 30 (Linux) or Aurora 31 (Windows).  When I used ffmpeg (of which avconv is a fork) a couple of months back, all worked as expected.

What I have noticed is that on Firefox, the progress bar appears for the video and it shows as if the the video has already been played.  Sliding this back to the start and pressing play will display the video, but it appears in the centre of the screen and too small to see the content.  If you right click the tiny video and click on full-screen, it will play normally.

The old webm videos made with ffmpeg work fine in the same version of Firefox so it appears that the files created by avconv are different in some way. Perhaps they do not correctly report their dimensions for some reason?

I will try to fiddle around over the weekend and report back.

Regards,

Steve

I'm having the same experience, though I note that the WEBM files I'm getting are using VP8,
not VP9.

Here's the command line I am using on both an Ubuntu 12.04 and a 14.04 system:

avconv -threads auto -strict experimental -i /tmp/c5858937cc47b4c237e1a6ba0b8ba01220140627-2490-1vwkdcr -y -vcodec libvpx -b 250k -maxrate 250k -bufsize 500k -pix_fmt yuv420p -flags +mv4+aic -threads auto -b:a 128k -strict -2 -s 640x360 /tmp/c5858937cc47b4c237e1a6ba0b8ba01220140627-2490-1vwkdcr20140627-2490-ufj5hv.webm

There are no error messages on either system.

On the 12.04 system, the webm video behaves as expected - intial frame of the video shows up in the embedded player, video plays just fine.
If I open the file in VLC, it plays just fine.
On a 14.04 server using the version of avconv that comes with it, If I embed the file in a web page, the video appears black. Pressing play on the player (VideoJS) just skips to the end.
If I drag the VideoJS slider backwards, I can see a frame of the video, but it will not play.

I'm using the same Ruby on Rails app on both systems, the same version of jquery, videojs, and any other javascript libraries.

I'm going to try using a binary from a 12.04 system on the 14.04 system and see if the behavior is any different, will report back here.


External USB hard drives - what speeds should be expected? Given the number of questions ive seen about slow usb transfer speeds I have to wonder what speeds should one be expecting for  a 'typical' usb2  and usb3 hard drives?

A side question would be what would be considered a proper way to test these speeds.

Typical hi-speed USB hard drives can be written to at rates around 25–30 MB/s, and read from at rates of 30–42 MB/s, according to routine testing done by CNet.[62] This is 70% of the total bandwidth available.
According to a USB-IF chairman, "at least 10 to 15 percent of the stated peak 60 MB/s (480 Mbit/s) of Hi-Speed USB goes to overhead — the communication protocol between the card and the peripheral. Overhead is a component of all connectivity standards."
For isochronous devices like audio streams, the bandwidth is constant, and reserved exclusively for a given device. The bus bandwidth therefore only has an effect on the number of channels that can be sent at a time, not the "speed" or latency of the transmission.

USB supports the following signaling rates: The terms speed and bandwidth are used interchangeably. "high-" is alternatively written as "hi-".

A low-speed rate of 1.5 Mbit/s (~183kB/s) is defined by USB 1.0. It is very similar to full-bandwidth operation except each bit takes 8 times as long to transmit. It is  intended primarily to save cost in low-bandwidth human interface devices (HID) such as keyboards, mice, and joysticks. The full-speed rate of 12 Mbit/s (~1.43 MB/s) is the basic USB data rate defined by USB 1.1. All USB hubs support full-bandwidth.

A high-speed (USB 2.0) rate of 480 Mbit/s (~57 MB/s) was introduced in 2001. All hi-speed devices are capable of falling back to full-bandwidth operation if necessary; i.e. they are backward compatible with USB 1.1. Connectors are identical for USB 2.0 and USB 1.x.

A SuperSpeed (USB 3.0) rate of 4800 Mbit/s (~572 MB/s).
The written USB 3.0 specification was released by Intel and partners in August 2008. The first USB 3 controller chips were sampled by NEC May 2009[55] and products using the 3.0 specification arrived beginning in January 2010.[56] USB 3.0 connectors are generally backwards compatible, but include new wiring and full duplex operation.

Source: http://en.wikipedia.org/wiki/Universal_Serial_Bus

Primarily I believe the power being supplied to the drive is external drive bottlenecking performance.  Say a usb port supplies say it's optimal of up to 1 Amp or 1,000 Milli Amps of electricity.  Now you look at a western digital 7200rpm 2.5" sata drive requires say 2,500 Milli Amps to attain maximum revolutions which may spit out 100MB/s write over sata 2.  We then convert the interface to usb with it's limited power output of 1000ma.  It can only feed the drive 1000ma out of it's required 2500ma.  It reduces the power which in turn reduces the revolutions by 60%.  That 60% reduction in power leaves only 40% of the drive being powered over the 1A max output and that 1A is only of certified systems which state that they charge at 1A max or 500ma max or it could be that if your using only the hard drive over usb you attain that full 1A of energy.  If you use any other USB ports on the system your reducing the milli amp draw on each usb port since the usb interface would fry if it could power all usb ports at full 1a power unless specifically stated by the manufacturer.  So try unplugging all usb devices and only plug in the drive for a test, try using ps/2 keyboard/ mouse.  One more thing is the format is important for usb drives as well since sometimes you have to find the ideal cluster size for the interface/ drive limit.  So typically NTFS 64KB Clusters is ideal for any drive for optimal big end performance.  However some drives don't run solid at 64KB so I'd start at 8KB clusters, then try 4KB Clusters, and finally 2KB Clusters.  Format and copy a file to the drive and show details of how many MB/s it's getting.  Make a mental note of the speeds to it's corresponding cluster size.  Then use which one one runs best.  I would test 2KB, 4KB, 8KB, and 64KB and see which one gets the best maximum or best average.  Typically 64KB is always ideal but smaller sometimes results in a tiny gain on small file transfer performance, since 64KB clusters is ideal for large files.

If we could figure out how to feed our external drives extra power from say a 2.5A 5.0V charger which would feed it through a usb power splitter like say a high end AC External powered usb hub which charged each port up to 2.5A each.  Then you would be golden and will achieve optimal usb 2.0/ 3.0 speeds so we're talking up to say 64MB/s write on usb 2.0 and beyond 100MB/s on usb 3.0 ports if the drive will allow it.


Set default application using command line How can I do right click > File > Properties > Open with > Set as default in the terminal?

I created a java app and an installation script for it. I would like to run my app by double click. So I create myProgram.desktop file in /usr/share/applications/ (I did it because base JRE.desktop is using the wrong working directory). If I set it up in the GUI, everything is working, but I am not able to do it from the terminal (basically from my script).

To make a default application that opens a file from the GUI do the following:

Right click on the file and choose properties.
Select the open With tab.
Select your desired application
Click Set as Default


After routine update on 14.04, cannot even SEE internet (no ethernet, no wifi) I am posting this question from my Windows desktop, because as of this morning my laptop is no longer even an internet accessible device, and doesn't even seem to think it's supposed to be an internet accessible device.

My OS is Ubuntu 14.04, 64 bit. The laptop is an Asus X551CA, and I got it in 2013 April.

Last night, I installed a routine Ubuntu update. I then restarted my computer. This morning, I have no internet. Like, at all. When I open up Firefox, every single tab says it failed to load the requested page. At the top right corner of the screen, there isn't even an internet icon. I tried connecting my ethernet cable, but it didn't even react at all.

I tried restarting like three or four times. It doesn't help. The internet is still missing.

I tried the following terminal commands, as suggested by responders to this question.

sudo service networking restart

sudo service networking force-reload

sudo dhclient

sudo apt-get update

Each one returned errors.

The first one returned this.

stop: Job failed while stopping
start: Job is already running: networking

The second one returned this.

reload: Job is not running: networking

The third one returned this.

avahi-daemon stop/waiting

And the fourth one, after spitting out a large wall of text, then returned this.

W: GPG error: http://deb.opera.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 63F7D4AFF6D61D45

I have no idea what to do. It's the very end of the semester, and I have a research project that I need to complete by the end of monday. So it is, to say the least, absolutely imperative that my internet be working soon. Please, please help.

The issue arose due to a regression introduced with a fix for libnl3 bug #1511735.

I resolved this issue by downloading a newer version of network-manager from another computer with a functional network connection.

Here are the respective download links for the amd64 and i386 architectures.

Copy the .deb file to a USB stick and install it on the affected computer with:

$ sudo dpkg -i network-manager_0.9.8.8-0ubuntu7.3_amd64.deb

For more information, please, refer to:

https://askubuntu.com/a/771692/164341
https://askubuntu.com/a/727462/164341

My network was down after my last update as well.   I ran update/upgrade from recovery mode and that solved it.

I had to use the root terminal in recovery mode because my recovery mode is buggy.  So I had to mount the drive RW manually and bring the network up, ifonfig eth1 up , which I don't think you have to do otherwise.

Be real, be sober.


Is there a KVM GUI for headless Ubuntu Server 18.04 LTS? I want to be able to install and run virtual machines on my headless Ubuntu server, but I don't want to use the cli as there are far to many switches to memorize that can create far to many typo errors, what I'm looking for is maybe a 3rd party GUI that can perform the same functions as virt-manager, without installing a desktop GUI.

You can run virt-manager on your Windows machine and visually manage your remote libvirtd server.

Another option is to install in your Windows environment the Windows Subsystem for Linux (WSL). Then download an appliance/VM (however you want to call it) from the Windows Store (there's Ubuntu, Fedora, Alpine).
Then from that linux instance, execute virt-manager. Have it display its windows to you with VCXsrv, an X11 distribution compiled with VisualC++ that runs well on Windows.
Screenshot


Print two A5 pages on one A4 page with correct sizes I've got a  PDF file, which has A5 as internal page size. This is also shown by evince:

A5 is half A4, so I thought it should be possible to print two pages of this PDF on one A4 page, such that they have the correct size. But choosing to print two pages per sheet actually shrinks each page to half its size, so they end up being A6-sized. It looks like this:

I could use the zoom option to get "acceptable" results, but this seems a bit hacky and I had to experiment to get the right size (hint: 200% is to large, not sure why though).

Is there a clean way to print this PDF on A4, preferably from the usual printing dialog?

One way to solve this is using command line tools, as mentioned by Graham in the comments. This can be done as follows:

pdftops DOC.pdf DOC.ps

converts the pdf-file to a PostScript (ps) file.
Then

psnup -pa4 -Pa5 -2 DOC.ps DOC_2.ps

creates a new PostScript file, where each A4 page contains two of the original A5 pages. After that use

ps2pdf DOC_2.ps DOC_2.pdf

to convert the PostScript file back to pdf.

If necessary, after converting to ps one might also use psselect to select only a part of the pages.

I'm still not happy that this is not possible from the standard printing dialog, so I don't consider this a real answer, but rather a bandaid.

Bookletimposer does this perfectly (and it can reorder the pages to create a booklet). It might be worth a try.


How can I install Unity after installing Desktop Edition? I've just upgraded my Ubuntu Desktop from 10.04 to 10.10 on my netbook.

How can I install Ubuntu Unity for my notebook ?

You just need to install the package ubuntu-netbook.

if you go on the ubuntu website click on netbook on the top left you will get detailed instructions.


How do I stop immortal / immortalctl process? This is driving me nuts!

I've been bombarding immortal to stop a process so I can update it, but it... won't stop... That process is immortal (pun intended)!

I'm trying to stop a .NET Core MVC application:

I've tried:

immortalctl stop <process-name>
immortalctl stop <process-id>
sudo immortalctl stop <process-name>
sudo immortalctl stop <process-id>
sudo immortalctl -k <process-id>
sudo immortalctl -k <process-name>
immortalctl -k <process-id>
immortalctl -k <process-name>
set IMMORTAL_EXIT=exit sudo immortalctl exit run
sudo IMMORTAL_EXIT=exit immortalctl exit run
(Where run is the process name - see pictures).
sudo immortalctl halt "*" And it comes back to life in about 5 seconds.

Here are the docs:
https://immortal.run/post/immortalctl/

Here's the current terminal:

Any ideas?

To stop/start/restart all depends on how you started the process if using immortaldir the easy way is just to remove the run.yml or rename it to run.yml-off from the directory that you passed as an argument or  defined when calling immortaldir (probably /etc/immortal) check How to install & setup for more details

If you ran the process using your $USER (not root), you could remove the $HOME/.immortal directory (this will stop other processes as well)

To manage the process you then can use immortalctl, in your case the name of your process is run therefore if you want to stop it just need to do:

# immortalctl stop run

or

$ sudo immortalctl stop run

In this case, run is the name of your service and also the name of your service config, probably located in /etc/immortal/run.yml

Keep in mind that immortal will do its best to keep your process up and running forever, if you are using:

# immortalctl  -k run

This will only send a kill signal to your process, but immortal will bring it up again, you may have already noticed that the PID changes.

When using immortaldir the options exit or halt will behave more like a restart, they indeed are exiting or halting (stopping and exiting the supervisor) but immortaldir will bring your application up again since the idea is to keep your application always running.

For more examples check: https://immortal.run/post/examples/


How do I disable swap? I have some sensitive data in RAM that I prefer not to be on disk. How do I disable swap?

I have more than enough RAM. If RAM consumption gets too high I have no problems with processes being terminated. How do I disable swap?

Note: I do not have a swap partition and this is running in a VM (VMware)

Using

sudo swapoff -a

is the usual way to turn off swap, with the swapon -a command used to turn it back on.
See man swapoff   for more information about turning off swap for explicit devices.

Go into a terminal and execute this command: gnome-disks. It is not installed in all distributions. If so, follow the instructions printed to install it and try again. Look for a device with the word 'swap' on the left pane. It usually has a size the same as your physical memory. Click the square button to disable it. Authenticate this change with your root password.

Screenshot:

In the System Monitor application (gnome-system-monitor), you will see it reports the swap area as 'not available'. The swap area is disabled, but not deleted. You can enable it easily again in the future. Deleting the swap space has caused my system no harm, but you will create more work for yourself if you do decide you want it back (hibernation) in the future.

To prevent it from mounting at startup, you should go into the "Edit Mount Options..." in gnome-disks and uncheck "Mount at startup".


How to create a custom launcher in Cairo Dock? I'm trying to create a custom launcher for Aptana Studio in my Cairo Dock. I begun by right click → Add custom launcher and I'm stuck at entering the command? What am I supossed to put in there (I tried ./AptanaStudio3 - but it doesn't work). I'm using Ubuntu 12.04.

I have already created an Aptana Studio 3.desktop file and it has an icon; my only problem is I cannot put it into my cairo dock.

How do I create a custom launcher in Cairo Dock for Aptanan Studio?

Aptana Studio 3 doesn't have a launcher icon

  sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

to create a launcher , then drag and drop it into cairo dock

I just created a custom launcher and adding the path of aptana /opt/aptana folder/AptanaStudio3 in the "command on click"


Why is my Laptop keyboard messed up after plugging an external keyboard? I'm running xubuntu 12.04 on a 2007 macbook.

I'm using the laptop with external screen, keyboard and mouse.
Yesterday after a dist-upgrade and after I unplugged the external keyboard I noticed that the Lapotop's keyboard was mapped to whatever (J = 1 , L = 3 , M = 0 e.t.c.) however I can login and type perfectly in the login screen and as a guest.

Any suggestions on how to get more information and/or troubleshooting are welcome.

This looks like your Laptop keyboard has an integrated Numpad. It is active when enabling NumLock.
Your Laptop Numpad might have small drawings of numbers on right part of your keyboard with the following mapping:
jkl -> 123
uio -> 789
m -> 0

Disabling NumLock should give back those keys their primary function.

Hit Shift+NumLock several times to disable Numlock.
You might also have a combination with the Fn keys depending on your Laptop model.
If for some reason you are unable to get it done with your physical keyboard, this should help:

execute onboard in a terminal. This will open an on-screen keyboard.
click 123, then NumLock. After every click check if your Laptop keyboard is back to normal.

Notes:

On Mac keyboards the NumLock button is likely to be labelled "clear".

I found an answer to my problems with my Samsung keypad after it had been used with an external keyboard in which it does not function well. The instructions were given at Ask Ubuntu:

  Put off the unit with the external keyboard and restart it with the external  keyboard.
  When the laptop is in the state ready to use, from the external keyboard simultaneously hit the keys NUMLOCK and SHIFT and try to hit a key which is lock before if it is reinstated.


Post installing comodo issues I have installed comodo antivirus for my Ubuntu 12.04, even if I'm a newbie I managed to enter finalize the installation, you know when you have to type sudo /opt/COMODO/post_setup.sh, went through the long and boring licence agreement but then I got this message in the end:

Build the RedirFS kernel modules for real-time protection...

Then

linux kernel source or linux kernel headers for your current kernel version 3.8.0-35-generic can not be found.

Please install the kernel source or kernel headers for 3.8.0-35-generic, then run this script again.

make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules
make: *** /lib/modules/3.8.0-35-generic/build: No such file or directory.  Stop.
make: *** [all] Error 2
make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules_install
make: *** /lib/modules/3.8.0-35-generic/build: No such file or directory.  Stop.
make: *** [install] Error 2
FATAL: Module redirfs not found.

RedirFS kernel modules installation failed.

The cmdagent is not running!
$Starting cmdagent: start-stop-daemon: unable to start /opt/COMODO/cmdagent (No such file or directory)
The cmdagent failed to start!
The cmgdaemon is not running!
$Starting cmgdaemon: start-stop-daemon: unable to start /opt/COMODO/cmgdaemon (No such file or directory)
The cmgdaemon failed to start!

COMODO Antivirus is successfully configured, you can start it from Menu or Desktop.

So I cannot run the program.

What can I do?
What does this all mean and what can I do?

I'm new to this so please make this simple.

But there is soution:

1) You can get this driver "redirfs,avflt,dazuko -- kernel 3.18 or lower" needed from here:

http://www.bondoffamily-net.com/~kinta-chan/techknow/DownLoad/DownLoad.html

2) Go to folder where you downloaded the driver:

sudo mv driver.tar /opt/COMODO/driver.tar

3) Then change directory

cd /opt/COMODO

4) Install it
sudo ./post_setup.sh
(Please be carefull at end of licence you NEED to accept with Y and then you can add email address, and choose Language 8)

5) Restart cmdavd
/etc/init.d/cmdavd restart

6) Reboot if must

7) RIGHT CLICK on System Tray icon and click

Antivirus Security Level
On Access

DONE!!!

i run ubuntu 13.10 64bit and this worked for me.
check the 4 steps that kinta-japan suggests:

http://forums.comodo.com/comodo-antivirus-for-linux-cavl/onaccess-scanner-not-working-t86061.0.html

hope it helps!


How do I add a user to the "sudo" group? In /etc/sudoers I see this:

# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL

So how do I add a user to that sudo group?

sudo usermod -aG sudo <username>

The a is very important. Without it they'll be removed from all other groups. You will need to either restart your shell/terminal or log out and back in for this to take effect.

See also:

How can I add a new user as sudoer using the command line?

Use usermod. Add the sudo permission with the following command:

usermod -aG sudo <your username>

Please note that you'll have to use the root account to do this or use another account that has sudo permissions. If you don't have access to another account for some reason and you don't know the root password, you'll need an Ubuntu (or another Linux distro) live CD and then you'll need to chroot into your Ubuntu filesystem and run the above command from inside the chroot.


how to disable gnome lock screen curtain in ubuntu 17.10? I have disabled the screen lock which requires a password (settings->privacy) and I have activated the screen blanking which switches off the display (settings->power->blank_screen).
But when I want to activate the dark display and touch a key, the display is switched on but there is the picture from the lock screen which I have to remove by hitting escape key. A password is not required. How can I get rid of this lock picture? (It is the same that is used for the screen lock).

I have a workaround for this.

Uninstall or disable light-locker in autostart.
Install xscreensaver
On the XScreensaver settings screen unselect screen locking.
On the advanced tab tick power management enable and set 0 for standby after and check Quick power off in blank only mode.


How to play a sound when laptop gets unplugged? My laptop unplugged stands 1 minute. Previous week my laptop cable, started not connecting good with the laptop.

I would like to play a certain sound everytime it gets's unplugged so I can hurry and connect them good.. Anyone?

As explained in this answer, you have to:

cd into your home folder and create the directory .local/share/sounds:

cd && mkdir -p .local/share/sounds

cd into the newly created directory:

cd .local/share/sounds

place the desired sound inside the directory, renaming it as power-unplug.wav (for example in this way):

ln -s /usr/share/sounds/alsa/Noise.wav power-unplug.wav

test the event with:

canberra-gtk-play -i power-unplug

I suppose that, at this point, you have to logout and log back in to have the event work properly. Try it and see if it works. You can find more events and sound names here.

#!/usr/bin/env python

import commands
import pynotify
from threading import Timer

def battery_check():

    rem = float(commands.getoutput("grep \"^remaining capacity\" /proc/acpi/battery/BAT0/state | awk '{ print $3 }'"))
    full = float(commands.getoutput("grep \"^last full capacity\" /proc/acpi/battery/BAT0/info | awk '{ print $4 }'"))
    state = commands.getoutput("grep \"^charging state\" /proc/acpi/battery/BAT0/state | awk '{ print $3 }'")

    percentage = int((rem/full) * 100)

    if state == "discharging":
        pynotify.init("Battery Alert!")
        notification = pynotify.Notification("Battery "+state,str(percentage)+"%","/usr/share/icons/gnome/32x32/status/battery-low.png")
        notification.show()

    timer = Timer(300.0,battery_check)
    timer.start()

if __name__ == "__main__": battery_check()

Download here.


How to check Internet Speed via Terminal? Instead of going to sites like speedtest.net, I want to check my current Internet speed from the terminal on Ubuntu. How can I do it?

I recommend the speedtest-cli tool for this. I created a blog post (Measure Internet Connection Speed from the Linux Command Line) that goes into detail of downloading, installing and usage of it.

The short version is this: (no root required)

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

Output:

Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Comcast Cable (x.x.x.x)...
Selecting best server based on ping...
Hosted by FiberCloud, Inc (Seattle, WA) [12.03 km]: 44.028 ms
Testing download speed........................................
Download: 32.29 Mbit/s
Testing upload speed..................................................
Upload: 5.18 Mbit/s

Update in 2018:

Using pip install --user speedtest-cli gets you a version that is probably newer than the one available from your distribution's repositories.

Update in 2016:

speedtest-cli is in Ubuntu repositories now. For Ubuntu 16.04 (Xenial) and later use:

sudo apt install speedtest-cli
speedtest-cli

You can also try http://dl.getipaddr.net

They use curl (which is a well known command line utility) to run a speed test.

In short

wget https://raw.github.com/blackdotsh/curl-speedtest/master/speedtest.sh && chmod u+x speedtest.sh && bash speedtest.sh


What device should I put as the 'device for boot loader installation' Right now, I am installing Ubuntu to dual boot on my PC. So, I am at the 'installation type' screen. I have already made a swap, "/", and "/home" partitions (after shrinking the volume of my hard drive). So, now the only field left to fill out is the 'device for boot loader installation' field. I have a boot SSD and a general storage HDD. Where should I tell it to put the boot loader? Thanks!

device for boot loader installation

Pick the ssd. Generally it would be sda.

Install the bootloader on the partition where you have the Linux /boot folder. Since you are not using a separate boot partition, I'd install it on the partition where you assigned for root (/).

For EFI system, Ubuntu will add an EFI boot entry in your EFI partition and allow it to load the bootloader install on your root partition. This is the most flexible setup. And Ubuntu can be booted from windows if you hold down shift key when you select the restart from the menu. Don't overwrite tha main disk header if you want to keep windows happy and/or keep using EFI secure boot.

For BIOS system, you will need to use Chain booting. You can chain boot from Windows boot loader for non-EFI system using some tools from EasyBCD, non-commercial use is free I believe. Or you can chain boot from grub. This is when you need to install grub on your main disk MBR header. This may update some windows setup, so I won't recommend this unless you have windows in legacy boot mode.


Permissions issues with mounting remote server into a specific folder I'm doing the following to mount a remote server to a specific path on my server:

sshfs user@remoteserver.com:/backup/folder/ /home/myuser/server-backups/

However when I mount the server the folder permissions change (they become 700), and when I test my rsnapshot.conf file I get the following error:

snapshot_root /home/myuser/server-backups/ - snapshot_root exists \
         but is not readable

What am I doing wrong ? should I mount the remote server with another user ?

On the backup server make a directory to put the backups in

mkdir /home/patrick/backups

On your vps

Add your user account to the fuse group

sudo usermod -a -G fuse patrick

Edit the /etc/fuse.conf file and uncomment or add the line

user_allow_other

make a mount point for sshfs and connect to it

mkdir /backups

sshfs patrick@backup.tld:/home/patrick/backups /backups -o allow_root

You should now have a /backups directory that you can use rsnapshot with on your vps.

Set this up on Raspberry Pi (admittedly different distro) but I had the same problem with permission denied. -o allow_other added to the end of the mount call worked a treat.


How do you resize the standard Ubuntu Desktop inside of Virtualbox? So I've installed Ubuntu inside of Virtualbox, and I resized the window of Virtualbox to be full-size, but the Ubuntu Desktop stays the same standard size. How do I make the width of Ubuntu stretch 100% across the Virtualbox window?

Inside the virtual machine, install the virtualbox-guest-dkms, virtualbox-guest-utils and virtualbox-guest-x11 packages. These "guest additions" include a video driver that will do what you ask, plus a mouse driver that interacts with the host system so you don't have to use the host key to "uncapture" the mouse; it just works when you're on the virtual machine's window.
There are 2 ways to do this:

From the VirtualBox top menu choose Devices, Install guest additions, then wait for a mock-CD ROM to appear and run the install from there, or

just type
sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

(personal recommendation: the second (apt-get) option is very simple and quick).

Once you have installed the VirtualBox Extension Pack (scroll until you see the Extension Pack section) use host+G or the menu option under View > Auto-resize Guest Display.

NOTE: The Extension Pack version must match the version of VirtualBox.


System tray icons disappeared after upgrading Ubuntu I have many applications with tray icons like davmail, hardware monitor. I miss this feature on Ubuntu 14.04. Does anyone have a solution?

There are some tools like Skype indicator, but I need a general solution for this problem so that I can add application icons to the system tray.

You may need to do two things:

1. Install the sni-qt libraries.

Install sni-qt  (click on the link), or with sudo apt-get install sni-qt sni-qt:i386 from the terminal, and then restart Skype. The tray/panel icon should now be back!

  The reason this step is required is because sni-qt is installed automatically by the Ubuntu repository Skype package, but NOT by the Skype deb you directly download. Once Skype 4.0 is in the Ubuntu repos, you can install from there and this will no longer be necessary.

2. You may also need to whitelist the indicator

We don't know why, but for some systems this additional step is required before the indicator will show (thanks to Bruno Pereira!)

Steps:

Install the package dconf-tools (click on the link), or from the terminal with sudo apt-get install dconf-tools
Open dconf editor from the Dash (or dconf-editor from terminal):

On the left sidebar, use the triangles to navigate to  desktop > unity >
panel. On Ubuntu 12.10 you instead need to navigate to com > canonical > unity > panel. Double-click on the orange [JavaEmbedded...] part on the right, and add ,'skype' to allow the Skype indicator to show, as below:

Press Enter, close dconf editor, logout and login -- your indicator should now be back!

I had the same issue.  Here is what I did to correct it.

Open Terminal

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
sudo shutdown -r now


OOM killer not working? For what I understand, when the system is close to have no free memory, the kernel should start to kill processes to regain some memory. But in my system this does not happen at all.

Suppose a simple script that just allocates much more memory than the available in the system (an array with millions of strings, for example). If I run a script like this (as a normal user), it just gets all the memory until the system completely freezes (only SysRQ REISUB works).

The weird part here is that when the computer freezes, the hard drive led turns on and stays that way until the computer is rebooted, either if I have a swap partition mounted or not!

So my questions are:

Is this behavior normal? It's odd that an application executed as a normal user can just crash the system this way...
Is there any way I can make Ubuntu just kill automatically those applications when they get too much (or the most) memory?

Additional information

Ubuntu 12.04.3
Kernel 3.5.0-44
RAM: ~3.7GB from 4GB (shared with graphics card).
*

$ tail -n+1 /proc/sys/vm/overcommit_*
==> /proc/sys/vm/overcommit_memory <==
0

==> /proc/sys/vm/overcommit_ratio <==
50

$ cat /proc/swaps
Filename                Type        Size    Used    Priority
/dev/dm-1                               partition   4194300 344696  -1

From the official /proc/sys/vm/* documentation:

  oom_kill_allocating_task

  This enables or disables killing the OOM-triggering task in
  out-of-memory situations.

  If this is set to zero, the OOM killer will scan through the entire
  tasklist and select a task based on heuristics to kill.  This normally
  selects a rogue memory-hogging task that frees up a large amount of
  memory when killed.

  If this is set to non-zero, the OOM killer simply kills the task that
  triggered the out-of-memory condition.  This avoids the expensive
  tasklist scan.

  If panic_on_oom is selected, it takes precedence over whatever value
  is used in oom_kill_allocating_task.

  The default value is 0.

In order to summarize, when setting oom_kill_allocating_task to 1, instead of scanning your system looking for processes to kill, which is an expensive and slow task, the kernel will just kill the process that caused the system to get out of memory.

From my own experiences, when a OOM is triggered, the kernel has no more "strength" enough left to do such scan, making the system totally unusable.

Also, it would be more obvious just killing the task that caused the problem, so I fail to understand why it is set to 0 by default.

For testing, you can just write to the proper pseudo-file in /proc/sys/vm/, which will be undone on the next reboot:

echo 1 | sudo tee /proc/sys/vm/oom_kill_allocating_task

For a permanent fix, write the following to /etc/sysctl.conf or to a new file under /etc/sysctl.d/, with a .conf extension (/etc/sysctl.d/local.conf for example):

vm.oom_kill_allocating_task = 1

First of all I recommend the update to 13.10 (clean install, save your data).

If you don't want to update change the vm.swappiness to 10 and if you find problems with your ram install zRAM.


How to pin Eclipse to the Unity launcher? How can I pin eclipse indigo 3.7 I have 'installed' at /opt/ to the taskbar?

I have tried launching eclipse and right-clicking to choose the 'keep in launcher' option. But when I click that icon, after closing eclipse, it doesn't start eclipse.

I have already looked at How do I add Eclipse Indigo to the launcher? but no answer worked for me. (Mod note: The answers from this thread are now merged into this one)

For 11.10 and newer

First, create a .desktop file to eclipse:

gedit ~/.local/share/applications/opt_eclipse.desktop

Then, paste this inside (dont forget to edit Exec  and Icon values):

[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=** something like /opt/eclipse/icon.xpm **
Exec= ** something like /opt/eclipse/eclipse **
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=Eclipse

After that, open that folder with nautilus:

nautilus ~/.local/share/applications

If you want to use this launcher outside dash/launcher (ex: as a desktop launcher) you need to add execution permission by right clicking the file and choosing Properties -> Permissions -> Allow execution,
or, via the command-line:

chmod +x ~/.local/share/applications/opt_eclipse.desktop

Finally drop opt_eclipse.desktop to launcher.

If not using a *.deb file, your software is not included in menus or the launcher.
The easy way:
Just start Eclipse from /opt and look for an icon appear in Unity launcher (the sidebar). Right click and check "Keep in launcher".


Error: unknown filesystem. Grub rescue. Insmod normal not working I just installed Ubuntu Gnome 13.10 and after a reboot I got Error:unknown filesystem. Grub rescue.
I have tried :

set root=(hd0,6)
set prefix=(hd0,6)/boot/grub
insmod normal

But I get an error at the last one I get this error: Error: no such partition.

I also tried to update grub from a live cd but when I enter: sudo mount /dev/sda5/mnt i get this:

-mount: can't find /dev/sda5/mnt in etc/fstab or /etc/mtab.

Can someone help?

First, sudo mount /dev/sda5/mnt won't do anything because /dev/sda* is a block device and doesn't have a folder in it because...it isn't a folder.

This happened to me.  Boot to the LiveCD again and use:

cat /proc/partitions

to figure out which drive to choose (hopefully you know what size it was).  Then set your grub to the correct root() drive.

To mount it in the LiveCD use

cd ~ && mkdir systmp && sudo mount /dev/*DISK* systmp

Report back with results, of course.

I'm sorry I took so long for me to reply. The problem was that I did not pay enough attention while I was trying to mount the boot partition. My partition is sdab5, not sda. Thanks all for your help!


Ubuntu 13.04 left click not working after a while only left click of touchpad and usb mouse not working right mouse click works.....Hp Pavilion dv6000

This is a bug found in Ubuntu.
First open the terminal and type :

  sudo add-apt-repository ppa:raof/aubergine
  sudo apt-get update
  sudo apt-get upgrade

On completion of the update restart your computer and done!

Another solution
Install the deb file from the following link.

For x86 systems : http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/pool/main/x/xserver-xorg-input-evdev/xserver-xorg-input-evdev-udeb_2.7.0+git20120504.f28507e8-0ubuntu0sarvatt~precise_i386.udeb

For x64 systems : http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/pool/main/x/xserver-xorg-input-evdev/xserver-xorg-input-evdev-udeb_2.7.0+git20120504.f28507e8-0ubuntu0sarvatt~precise_amd64.udeb


Arc Theme on Ubuntu 16.04 looks weird I just installed Arc theme on Ubuntu 16.04 using version for ubuntu 15.10 (that's what's available on creator's website: http://software.opensuse.org/download.html?project=home%3AHorst3180&package=arc-theme)

Here's how it looks on my setup:

I activated this theme using Unity Tweak Tool.

Firstly in Nautilus the left panel looks weird - it should also be transparent.
Secondly every window gets a little thicker just below titlebar on both sides.

Do you know if there's a way to fix it? I really like this theme, probably best available.

Hello follow the guide manual guide in https://github.com/horst3180/arc-theme
I was having the same problem but its solved now.

O.k., after downloading using the command:

git clone https://github.com/sagarpanchal/arc-theme-ubuntu.git

In my home directory I started Nautilus as sudo and copied the 3 folders inside arc-theme-ubuntu named arc, arc-dark and arc-darker and changed to the /usr/share/themes directory and pasted them there. Then started the tweak tool and changed to arc and now it looks right.


Install Ubuntu touch on x86 tablet Is there any way to install Ubuntu touch on an x86 tablet? Some images are available for download over there http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/pending but I don't know if I can somehow download and install them on my tablet.

I am afraid (or hope so?) that all the answers I found so far, searching for the same question, are simply off topic.

Because x86 tablets are NOT ARM devices, those should be regular PCs with some Intel CPU.
The only points to answer, should be how to get GRUB in, and whether certain hardware has its drivers.
The rest should be the same on tiny 7" x86 tablets, as on any standard desktop - with touch screen, which is just a kind of mouse.

So the partial answer is, NOT ubuntu-touch - do not search for images for ARM CPUs, when yours is Intel x86 (and 64-bit).
What is missing is "howto" make that device boot GRUB (perhaps 32-bit EFI?) on certain tablets, and install Ubuntu - "normal" PC Desktop version.

Well, and onscreen keyboard for touch devices, is part of  Ubuntu Desktop, its name is "Onboard". And light desktop environments (xfce4, Xubuntu) may be preferred on tiny devices, to avoid slowdown..

Step 1:

With Ubuntu installed on your PC, ensure you have the universe archive enabled. This is a software repository which is probably commented out – you need to remove the # which precedes it in the file /etc/apt/sources.list

You can find detailed information on how to add repositories here

With Ubuntu universe archive enabled, now you can install the ubuntu-device-flash package – the main tool for installing Ubuntu Touch - as follows.

Step 2:  (you can skip this if you’re already running 14.04 as the tools are already included).

You’ll need tools in the Phablet Tools PPA in order to install Ubuntu for devices. These are included in 12.04 Precise onwards. On your PC, press Ctrl+Alt+T to start a terminal.

Add the Phablet Tools PPA by typing (at the $ prompt): sudo add-apt-repository ppa:phablet-team/tools

On Ubuntu 12.04, add the Ubuntu SDK Release PPA by typing: sudo add-apt-repository ppa:ubuntu-sdk-team/ppa

Update your system to use the latest packages by typing: sudo apt-get update

Install the ubuntu-device-flash package by typing: sudo apt-get install ubuntu-device-flash

For help with the ubuntu-device-flash tool type: man ubuntu-device-flashYou can type q to exit.

Step 3:

Install phablet-tools package by typing: sudo apt-get install phablet-tools

List its tools by typing: dpkg -L phablet-tools | grep bin

Note that you can show a tool’s help by adding –h. For example: phablet-config -h

Step 4:You need to enable Android Developer Mode on your device. To do this, head to Settings and tap About phone (or About tablet) then about. Now tap Build number seven times and you will see a pop-up saying you are now a developer.

You will now have a new menu in Settings called Developer options. Go in here and tick the box next to USB Debugging.  Enabling USB Debugging allows you to send commands to your USB connected device from the terminal.Step 5:

Connect your device via a USB cable to your PC running Ubuntu. You’ll be prompted in Android to authorise it. To check the connection is working, type (at the prompt) adb devices

You should see your device listed with a series of numbers and letters. If your device isn’t shown, try first typing: adb kill-server

Step 6:

If you haven’t already done so, now is the time to back up your Android apps and data. Also, note down your device type and build ID because you will probably want to reinstall Android later (you’ll have to download the factory image and use the adb and fastboot tools to install it).Step 7:

To install Ubuntu, you need to unlock your device’s bootloader. This process wipes the phone or tablet.

To do this, type at the prompt (as a reminder, hit Ctrl+Alt+T to open a terminal): adb reboot bootloader Now unlock the bootloader by typing: sudo fastboot oem unlock

You’ll see a warning on screen. To change from no to yes, use the volume rocker, and to select the option, press the power button.

Now reboot the device by typing: fastboot reboot

You will be taken through the initial setup. Don’t worry about entering much information as you’re about to remove Android completely by installing Ubuntu.

Step 8:

Power off your device using the power button.

Reboot into the bootloader by using the correct physical button combination for your device For example, the combination for the Nexus 5 is to hold down the volume up, volume down and power buttons simultaneously.

Install Ubuntu by typing: ubuntu-device-flash --channel=devel --bootstrap

The installation should happen automatically with no input from you. It will take a while – the image is initially downloaded to the ~/.cache/ubuntuimages folder on your PC before being transferred to your smartphone or tablet.

To begin with, Ubuntu is a ‘recovery’ image which you device will boot from. Then, Ubuntu is installed as an OS in its own right. On the next reboot, you should see Ubuntu running.

Step 9:

After installing Ubuntu, you can head to Settings > Updates to get the latest version, and choose whether or not updates are installed automatically.


How to set the fully qualified domain name in 12.04? I tried adding

dns-domain domain.com

to /etc/network/interfaces with no luck. When I run

hostname -d

I get an empty string

Edit /etc/hostname and add your unqualified hostname:

boson

Edit /etc/hosts:

sudo vi /etc/hosts

Add an entry of your desired hostname by replacing boson.dev.local boson where boson.dev.local is the fully qualified hostname and boson is hostname.

127.0.1.1       boson.dev.local boson

Restart the hostname service:

sudo service hostname restart

Test your configuration by opening a terminal and enter the below commands:

hostname

This should output boson

hostname -f

This should output boson.dev.local

Hope this helps.

Fine! You may follow the instructions given below

sudo vim /etc/hostname

Then, tap on the I key and use the arrow keys on your keyboard to navigate the text area; Next, enter the hostname of your choice and to save & exit, tap the Esc key, on your keyboard, followed by these keystrokes: :, w, q, and, finally, Enter.

If it exists, edit the file /etc/default/dhcpcd and comment out the SET_HOSTNAME directive, by executing:

sudo vim /etc/default/dhcpcd

Then, insert the # symbol at the beginning of the line that begins with SET_HOSTNAME=, as shown, below:

#SET_HOSTNAME='yes'

Finally, execute:

sudo service hostname restart

You may also need other reliable source for the complete settings. After you finished the settings you can check the domain details at WhoisXY.com where i checked the whois informations.


Error when installing Ubuntu 20.04 in VirtualBox I'm trying to set up Ubuntu 20.04 on Oracle VirtualBox 6.1.6. During the installation, I got the following error message:

The installer encountered an error copying files to the hard disk:

[Errno 5] Input/output error

This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk.
It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed,
to clean the CD/DVD drive lens (cleaning kits are often available from
electronics suppliers), to check whether the hard disk is old and in
need of replacement, or to move the system to a cooler environment.

I downloaded the file from the official Ubuntu website and multiple times, but none of the files works. I also verified the iso using echo "e5b72e9cfe20988991c9cd87bde43c0b691e3b67b01f76d23f8150615883ce11 *ubuntu-20.04-desktop-amd64.iso" | shasum -a 256 --check, but it doesn't do anything.

I had this issue as well after I had enabed hyper-v on windows 10.

To fix it I, made sure I disabled hyper-v by doing the following.

Open 'Turn Windows features on or off' (search for that in the start menu)
Untick hyper-v, Windows hypervisior platform and virtual machine platform.
Start the command prompt as an administrator. (type cmd in the start menu, right click 'command prompt' and select 'run as administrator')
Run the following command bcdedit /set hypervisorlaunchtype off

After a restart it seemed to install and work.

Credit to u/SquareVehicle on r/virtualbox who suggested the bcdedit command

You can use VirtualBox 5.2 instead.
I installed VirtualBox 5.2 and then I was able to install Ubuntu 20.04 on my mac. I had the same issue with VirtualBox 6.1.


Hotcorners keep being disabled It bugs me a lot that one of the best features of unity; hotcorners, are disabled by default. I use Unity Tweak Tool to activate hotcorners, with the upper left corner activating the workspace switcher and upper right corner activating expo.

The issue I have is that the hotcorners seem to randomly turn off either during a session or for new sessions.

In order to reactivate them, I have been launching Unity Tweak Tool, turning hotcorners off then on again, and the feature then works.

I notice a couple of work-arounds for older versions of Ubuntu but am unable to comment on those threads because apparently, I don't have enough rep!

Any advice on how to solve this issue please?

I had a similar issue using UTT. I found Window Snapping and Hot Corners didn't play nicely together. In my case, Hot Corners overrode my Snapping settings and disabling it allowed my Window Snapping preferences to persist. Try disabling Hot Corners.


LibreOffice always shows recovery process at startup due to failing recovery items LibreOffice always starts with the recovery process for me now. It has a number of 'documents to recover' for which recovery fails. I have no need for these documents anymore. How to tell LibreOffice to give up?

Great! I tried to recreate this issue and now I can't remove the failed recovery screen.

The way to fix it is to hit cancel on the recovery screen, instead of trying (and failing) the recovery (source). Works for me.

Make it simple..
Please choose the cancel button and close the file..
After that it won't force you to go through the recovery process..


How to change color of top bar in Gnome 3.8 I have updated to ubuntu 13.04 and install gnome 3.8. I have some questions how to customize it. It now looks like this:

What confusing me:

I can't find how to change color of top bar, I found how to change theme for windows, but it didn't affect on top bar.
Some app have app bar both on top and bottom bar (on screenshot - its Firefox). I want top bar have no app bar.
It seems for me that after gnome 2 in 3.8 there is less usefull space for window, I dodn`t know what exactly wrong, but may be in previous version there were not so many bars?

For not having a 'Appbar' at the top in certain Applications, you can use

https://extensions.gnome.org/extension/354/maximus/

But you have to change the config file
in

~/.local/share/gnome-extension/.../..json

and enable Gnome 3.8 Support. Then you can enable a Whitelist / Blacklist.


How do I install Python 3.6 using apt-get? I've tried the normal way, sudo apt-get install python3.6, but... well... that didn't work.

So, how would I go about it? (I'd preferably not build it on my own)

I'm using Ubuntu 16.04.

Ubuntu 14.04 (Trusty) and 16.04 (Xenial)

If you are using Ubuntu 14.04 or 16.04, you can use Felix Krull's deadsnakes PPA at https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6

J Fernyhough's PPA (at https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6) used to be an alternative option, but he has shut it down to protest against (ab)use.

Ubuntu 16.10 and 17.04

If you are using Ubuntu 16.10 or 17.04, then Python 3.6 is in the universe repository, so you can just run:

sudo apt-get update
sudo apt-get install python3.6

After installation for Ubuntu 14.04, 16.04, 16.10 and 17.04

To invoke the Python 3.6 interpreter, run python3.6.

Ubuntu 17.10, 18.04 (Bionic) and onwards

Ubuntu 17.10 and 18.04 already come with Python 3.6 as default. Just run python3 to invoke it.

First, follow some of the other answers to install Python 3.6 or 3.7. Then, if want to install PyPi packages such as OpenEXR through pip you may get some errors. Some of them (e.g. for OpenEXR's PyPi package) might get resolved by installing Python development package for your newly-installed Python. This can be done using the followings:

sudo apt-get install python3.6-dev

or

sudo apt-get install python3.7-dev


touchegg gestures on desktop I am trying to use three finger scrolling on the desktop, but it is not responding. It only works when i am holding the cursor on a app or the plank. Can i edit something in the config file to change this?

Assuming you are using the gnome-shell you can configure it to Have file manager handle the desktop. This way the desktop is managed by nautilus and your gestures should be recognized.

The easiest way to configure this is to use Gnome Tweak Tool.

sudo apt-get install gnome-tweak-tool

Launch Gnome Tweak Tool from the Gnome Shell menu. It will be called Advanced Settings. Then, click on the Desktop button. Enable the option that says "Have file manager handle the desktop. Now, any files placed in the Desktop folder inside your home folder should appear on ther desktop.

As I'm lazy the former paragraph was taken from:
https://askubuntu.com/a/105988/233113
Just changed the formatting and stripped the image.

If you want to use (three finger) scrolling to switch desktops, I remember there was a setting someday, I recommend using the touchegg action called CHANGE_DESKTOP. If you use SCROLL it will scroll on any windows.

if you are using a touchscreen, might be an upstream based bug: http://libcoding.wordpress.com/2013/11/02/issue-with-touchpad-in-ubuntu-13-10-in-xps-12/comment-page-1/#comment-22


Why do package versions get obsoleted and become unavailable? We are building docker images based on Ubuntu xenial (I know EOL 04/21) and we were using curl=7.47.0-1ubuntu2.14 and openssh-server=1:7.2p2-4ubuntu2.8 and both are now unavailable.
The curl package is now curl=7.47.0-1ubuntu2.15 and the ssh-server openssh-server=1:7.2p2-4ubuntu2.10. I am wondering why this is and how the two original packages have just become unavailable?
Is there a way I can still get a hold of the old packages if need be? If so, where?

Let's use the rmadison package database query and http://changelogs.ubuntu.com to find out why those packages were superseded.
Let's look at curl first:
$ rmadison curl | grep xenial
 curl | 7.47.0-1ubuntu2    | xenial           | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 curl | 7.47.0-1ubuntu2.15 | xenial-security  | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 curl | 7.47.0-1ubuntu2.15 | xenial-updates   | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x

Aha: See how both -security and -updates are both pushing 2.15? That means it was likely a security patch. For specific details, let's take a look at  https://changelogs.ubuntu.com/changelogs/binary/c/curl/7.47.0-1ubuntu2.15/changelog

curl (7.47.0-1ubuntu2.15) xenial-security; urgency=medium

SECURITY UPDATE: curl overwrite local file with -J

debian/patches/CVE-2020-8177.patch: -i is not OK if -J is used in
src/tool_cb_hdr.c, src/tool_getparam.c.
CVE-2020-8177

-- Marc Deslauriers marc.deslauriers@ubuntu.com  Wed, 17 Jun 2020 09:21:55 -0400

Now let's look at openssh-server:
$ rmadison openssh-server | grep xenial
 openssh-server | 1:7.2p2-4           | xenial           | amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 openssh-server | 1:7.2p2-4ubuntu2.8  | xenial-security  | amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 openssh-server | 1:7.2p2-4ubuntu2.10 | xenial-updates   | amd64, arm64, armhf, i386, powerpc, ppc64el, s390x

See how -updates has a higher version? That means the new package is likely a bugfix instead of a security patch. Let's see what https://changelogs.ubuntu.com/changelogs/binary/o/openssh-server/1:7.2p2-4ubuntu2.10/changelog has to say:

openssh (1:7.2p2-4ubuntu2.10) xenial; urgency=medium

Fix deadlock when AuthorizedKeysCommand produces a large output.
(LP: #1877454)

d/p/authkeyscommand-deadlock-01.patch: Make sure to call fclose(2)
and assign NULL to the file handler used to read
"Authorized{Keys,Principal}Command" directives.
d/p/authkeyscommand-deadlock-02.patch: Consume entire output
generated by the command pointed by
"Authorized{Keys,Principal}Command" in order to avoid sending a
SIGPIPE to the process.

-- Sergio Durigan Junior sergio.durigan@canonical.com  Wed, 13 May 2020 10:12:28 -0400

Q: Is there a way I can still get a hold of the old packages if need be? If so, where?A: Here is a useful source pkgs.org however it is to be used at your own risk.


Ubuntu 18.04 gnome-shell in login crash loop with libmutter-2 I have a problem with the login with GNOME3 (3.28.4) since one day ago. I have Ubuntu 18.04, my default desktop is GNOME. At some point, without any change in my configuration files, I could not login with GNOME anymore (only my Unity desktop works). I checked the journalctl and the problem seems to come from libmutter-2. At each boot I find two error messages:

gnome-shell[3310]: segfault at 0 ip 00007f9975efb184 sp 00007fffcdb207b0 error 4 in libmutter-2.so.0.0.0[7f9975e9b000+159000]
gnome-shell[3321]: segfault at 0 ip 00007f7e14ba6184 sp 00007fff5d8eccf0 error 4 in libmutter-2.so.0.0.0[7f7e14b46000+159000]

I tried already reinstalling gnome-shell, mutter, libmutter-2-0, I also tried removing my gnome-shell configuration files, etc. I also tried the usual other suggestions that are given (.Xauthority, gdm3 reconfigure, reinstall, restart) but this looks like the problem is from mutter. The only similar case I found was https://gitlab.gnome.org/GNOME/mutter/issues/190 but was solved.

Has anyone had a similar problem? Does anyone know how to solve this? Thank you!

I messed up with mutter today and could not login from the GUI.
I do see .xsession-errors file under my home directory. You may want to check if you have that file.


How can I run samba? I have server running Ubuntu 10.10. Never used samba before, as I never had windows machines, but now I need it.

So I did: apt-get install samba smbfs smbclient.

Packages are installed, but I have no idea how to configure it. All howtos I found on the net relate to /etc/samba/something.conf, where I don't even have /etc/samba directory.

The only config I found is /etc/default/samba, which contains (aside from comments) only:

RUN_MODE="daemons"

All I want is to be able to have access to some directories on the Ubuntu machine from Windows, nothing else.

I'm not too sure about setting Samba up on a server but the steps listed here worked for me to allow two Ubuntu pc's to share files with Windows pc's on my network.

Or you could simply use Webmin which is a web-based admin tool.


I downloaded an EPUB file, how can I get it from Ubuntu to my IPad? I am travelling tomorrow and I have some PDF's and e-books I want to read on my IPad.

I have downloaded an EPUB file to my Ubuntu computer. I want to know how to sync files in Ubuntu with an IPad or how I could store files on the IPad from Ubuntu.

I tried using Ubuntu One but it just gives me the option of "Open in IBooks" which does not appear to be working.

I would use Calibre.  It is an awesome and easy to use Library management system.  You can install it as follows:

sudo apt-get install calibre

I haven't used it with iPod/iPad but I use it with my Android phone and Kindle all the time and it is great.

EDIT:

I might also add that the iPad driver is still experimental, so you may encounter a few bugs.  It is better than nothing though

Thanks to Kenneth for suggesting adding the following link which helps greatly!

http://manual.calibre-ebook.com/faq.html#how-do-i-use-app-with-my-ipad-iphone-ipod-touch

You can also spin up a simple http server (i.e. python -m SimpleHTTPServer in the directory where you have your documents), then open the directory in Safari on your iPad. You should be able to see the files there and import them into iBooks.


Ubuntu 14.04.3LTS 64-bit - apt-get update error , Hash Sum mismatch apt-get update error. The following links result in a Hash Sum mismatch. Scared of following any other answers because all of them seem to be unique for every person's chosen mirror.

Are these obsolete?
If they are how do I remove them?

W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages  Hash Sum mismatch
W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages  Hash Sum mismatch
E:Some index files failed to download. They have been ignored, or old ones used instead.

EDIT: Same problem occured when i completely removed ubuntu 14.04 and freshly installed ubuntu GNOME 14.04. Answer below.

Ok found a solution to my problem

in the file "/etc/apt/sources.list" i just commented out these two line:

deb-src http://extras.ubuntu.com/ubuntu trusty main
deb http://extras.ubuntu.com/ubuntu trusty main

it fixed the issue and now apt-get update finishes with no errors but i still don't know if this is the correct way of fixing this issue.


How can I recover my hard disk data that got erased when I tried to setup Ubuntu? I tried to install Ubuntu in my laptop that had windows 7 and I chose 'erase partition' as I was thinking it will erase the C partition only so as to make it the Ubuntu drive .After restart I found the whole hard disk mounted as one partition with no data .So is there any way to return back my data or is it impossible?

You can do restore your deleted data(mostly).

first i advise you not to do anything on the harddisk now.

All you need is a recovery software. for me i advise you to use r-linux.

It's too late. It isn't going to be recoverable. It has been formatted there is simply no way to get it back, this is why we recommend a backup before you start.


Why is my network manager so slow to start? Ever since I installed 10.10, the network applet stays with a red exclamation point for about 10 seconds. I don't know why this is happening. Please help me, this is very annoying! I didn't have this problem when I was with 10.04.
EDIT: I should maybe mention the indicator appears, but it says that there are no network available. Only after the aforementioned 10-15 seconds does it detect all the networks.
EDIT 2: This question is not answered! I have tried with another computer, and the network manager is already loaded upon login, so I know it's a bug. Please help!
EDIT 3: I have the same problem with my power indicator, actually...
EDIT 4: The problem is back once again. I have counted: it takes a full 15 seconds to load after my desktop.
EDIT 5: I have filed a bug report in Launchpad here. Can ANYONE help me?
EDIT 6: Still nobody?

I believe this may be an inadvertent feature of Ubuntu 10.10 by where the loading of the wireless driver is done after the GUI to decrease bootup time. If you'd prefer you can think of it as either everything takes 30 seconds to startup, or the GUI appears in 20 secs and the wireless comes 10 secs afterwards. Hope that helps!

The network manager used by Ubuntu is flawed. KDE's network manager (would be Kubuntu or so) can use various backends like wicd, which is what I recommend to do: remove the network-manager (search related packages with Synaptic and remove them all) and install wicd.

This error is well known, often reported on Launchpad and constantly ignored by the Ubuntu developers. They used a specifically patched version (I think they wanted to integrate some of the Ubuntu One/Social Gwibber stuff into one Gnome Applet). Anyhow... it's not useable.


vncserver grey screen ubuntu 16.04 LTS Greeting.
I am on ubuntu 16.04 LTS. It is an amazon EC2 instance
I got grey screen upon installing and starting the vncserver
I try many suggestion regarding this issue but still cant get it work....
Thanks for the help

My logfile:

Xvnc Free Edition 4.1.1 - built Feb 25 2015 23:02:21
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40300000, The XFree86 Project, Inc
Tue Jul 19 03:03:37 2016
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on port 5901
 vncext:      created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
Tue Jul 19 03:03:44 2016
 Connections: accepted: 0.0.0.0::61550
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)
Tue Jul 19 03:03:50 2016
 VNCSConnST:  Server default pixel format depth 16 (16bpp) little-endian rgb565
Tue Jul 19 03:03:51 2016
 VNCSConnST:  Client pixel format depth 8 (8bpp) colour-map

my xstartup

#!/bin/sh
# Uncomment the following two lines for normal desktop:
 unset SESSION_MANAGER
 exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

I had the same issue on Ubuntu 16.04 LTS (64bit). I updated ~/.vnc/xstartup file to look like below, worked successfully for me.

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

Reference: https://www.linode.com/docs/applications/remote-desktop/install-vnc-on-ubuntu-16-04

I finally got this working from vnc4server by "apt-get install xfce4", and found a working xtartup here (the rest of the tutorial was irrelevant for my needs, e.g. "apt-get install xfce4-*" was unneccessary):
http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-vnc-on-ubuntu-16-04.html

#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
startxfce4 &

I've more or less concluded getting gnome to work in vnc is a non-starter.