Ubuntu 17.10 boot stuck at message "Started NVIDIA Persistence Daemon" after installing nVidia 384.90

Switch to Discrete Graphics on BIOS

Lenovo P51, UEFI BIOS Version N1UE40W, NVIDIA Quadro M1200 Mobile, Ubuntu 17.10, nvidia-384 installed from software-properties-gtk:

Hit Enter at boot time
Press F1 for BIOS setup
Config

Graphics Device
Select Discrete Graphics (Default was hybrid graphics)

Security

Secure Boot
Secure Boot
Select Disabled (Default enabled). If I don't do this, the NVIDIA driver simply gets ignored (and the boot problem does not happen either)

Press F10 to save settings and exit boot menu

I think this makes the battery last less, but I'd rather have a desktop :-)

I also noticed that the problem is not reproducible every time. If I power cycle a few times, I also see the following behaviours:

immediate computer restart during boot
once everything actually worked

Then check that the GPU is actually being used: How do I check if Ubuntu is using my NVIDIA graphics card?

Possible launchpad bug for this: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1714881


Place the script you want to run in the /etc/init.d directory and make the script executable.

chmod 755 myscript

Once that is done create a symbolic link in the run level directory you would like to use, for example if you wanted to run a program in the graphical runlevel 2, the default runlevel for Ubuntu, you would place it in the /etc/rc2.d directory. You just cannot place it the directory, you must signify when it will run by indicating the startup with an “S” and the execution order is important. Place it after everything else that is in the directory by giving it a higher number.

If the last script to be run is rc.local and it is named S99rc.local then you need to add your script as S99myscript.

ln -s /etc/init.d/myscript /etc/rc3.d/S99myscript

Each backward compatible /etc/rc*.d directory has symbolic links to the /etc/init.d/ directory.


Defining multiple interface definitions in /etc/network/interfaces and /etc/network/interfaces.d

My hint comes from the stack trace in https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1235169. See #1 comment. You can see below /etc/network/interfaces then /etc/network/interfaces.d.

read_interfaces_defn(..., '/etc/network/interfaces'
Reading directory /etc/network/interfaces.d
Parsing file eth0
read_interfaces_defn(..., 'eth0') failed in directory '/root'
Parsing file eth1
read_interfaces_defn(..., 'eth1') failed in directory '/root'
Parsing file eth2
read_interfaces_defn(..., 'eth2') failed in directory '/root'
Parsing file eth3
read_interfaces_defn(..., 'eth3') failed in directory '/root'
Parsing file eth4
read_interfaces_defn(..., 'eth4') failed in directory '/root'
Parsing file lo
read_interfaces_defn(..., 'lo') failed in directory '/root'
run-parts --verbose /etc/network/if-pre-up.d
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/postfix
run-parts: executing /etc/network/if-up.d/upstart

Also from the stack trace here https://github.com/mitchellh/vagrant/issues/1092 you can see that it will complain for duplicates.

/etc/network/interfaces:17: duplicate interface
ifup: couldn't read interfaces file "/etc/network/interfaces"


I'm trying to figure out if canon MF743cdw will work with ubuntu?

I believe that you are looking for the list of printers that is at OpenPrinting

The MF743cdw is not listed, but the MFxxx series of printers is under the 'paperweight' or 'mostly' supported sections of the table.  Canon itself does not seem to produce a linux driver for this printer.


You need a .jwmrc file in your ~/ (home directory)

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

has a few examples.  Keep in mind the WHOLE interface must be configured by hand. You actually had successfully logged into the JWM, but with no config there was not even a panel or menu, etc....  You can also download the .jwmrc file from puppy linux (I really like his setup).  You always have to manually add programs to your menu file (unless something has changed in the past couple years) Enjoy!


How to disable Remmina Remote Desktop automatic shortcuts?

I had the same problem. My solution was to use Windows-Key on my keyboard to deactivate the shortcuts. With Windows-Key + F it seems to can be activated again. Try it.
Additional: The Num-block (NumPad) is working/active only if the Num-Button/Key is deactivated.
I hope it helps.

Regards
Alexej


I'm getting this error when I generate a new rails application

This issue usually occurs with old versions of rubygem.
You can try updating it by running

gem update --system --source http://rubygems.org/

and after that

gem update

source.


Try these commands:

sudo apt-get remove --purge darktable
sudo add-apt-repository ppa:pmjdebruijn/darktable-release
sudo apt-get update
sudo apt-get install darktable; sudo apt-get autoremove


Try this:

Right click on TF2 in your library → Properties → Set Launch Options
If you only have optirun, enter: optirun %command%

The above did not work for me and I had to set the launch options as

LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 optirun %command%


How to use the Command-line Parameters to select then change a group of filenames

This is a task more suitable for regular expressions. Here I use regular expressions with awk ( since I am not familiar with rename command and perl regex, yes - shame on me ). Basic idea is that we take filename, get rid of all the numbers ( assuming you are pretty good at keeping up your own nomenclature and there will be no numbers after P- part).
Filenames are provided as command line arguments, can be typed one by one or used with wildcard as I've shown here. Then we read in the new number from user interactively, and stick that new number for each cropped filename.

$ ls
16115P-barfoo.h  16115P-foobar.c  16115P-foobar.md  updateNames.sh*
$ ./updateNames.sh 16115*
Enter new number for all specified files:
17121
17121P-barfoo.h
17121P-foobar.c
17121P-foobar.md
$ cat updateNames.sh
#!/bin/bash

if [ $# -eq 0  ];
then
    echo "<<< Error: no arguments provided"
    exit 1
fi

echo "Enter new number for all specified files: "
read NEWNUMBER
for file in "$@";
do
  BASE="$(echo "$file" | awk -F '-' '{ gsub( /[[:digit:]]/,""); print }')"
  echo $NEWNUMBER""$BASE
  # uncomment this line for actual copying
  # cp "$file" $NEWNUMBER""$BASE
done

$


Ubuntu 17.04 cannot detect Realtek RTL8812AE Wireless

Update the BIOS of the motherboard solves the problem...


I found a simple solution:

Open 'Network Settings'
Choose 'Connect to a Hidden Network'
For Network Name, put the name of the network (in my case is was 'Gostinnyi dvir')
For Network Security, choose 'WPA & WPA2 Personal'
Then just type in password.


By mistake exectuted "sudo chmod -R -x * && sudo chmod -R +X *" command

You have removed execution-rights (and thereby access to) all directories and eventually files that where executable.

Start by giving back exec to directories:

find . -type d -exec chmod +x {} \;

If you had any executable programs, then for each of these do:

chmod +x filename

The +xin the commands above gives execute rights to all (user, group and others - the three different access levels in a linux/posix filesystem)). If you for some reason needs to restrict access to only user or user+group you can replace +x with u+x or ug+x to achieve this.


Running a command at startup not working (due to network not being up when the code was run)

I think you need to add your script in rc.local all scripts run as root.

Edit rc.local:

sudo nano /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
python /home/ubuntu/Desktop/UDP_Server.py

exit 0

To save and exit with nano press Ctrl+X.


An error occurrend while adding files to archive

Make sure you have read rights to the entire directory or use sudo.

One thing you could do is this....

sudo -s

Then do:

tar -zcvf  /home/yourusername/var_www.tar.gz /var/www

I don't want to assume too much or give you too many options; so try this first and reply with any errors or success.  =)


you can try over here. Remove first your actual version of transmission.
http://packages.ubuntu.com/lucid-updates/transmission


USB 3.0 memory stick fails with "SEL for device-initiated U2 failed"

It sounds very weird, but try inserting flash drive very slowly into the port. Helped for me.
Source: https://bugzilla.redhat.com/show_bug.cgi?id=1295579


Make sure that you have a drive defined in VirtualBox.

In VirtualBox Manager window, click on Settings, and then click on Storage

Under storage Tree click on the CD icon, and then choose a CD drive to use with VirtualBox.


The source can be ... or an X display specification.

xkbprint :0 -o xkbprint_output.ps


Ctrl+Alt+F2 still gets you into a non-graphical environment.


How to PIN virtualbox-ext-pack (6.1.6-1) [multiverse] to not be upgraded

You already have all the elements from https://packages.ubuntu.com/focal/virtualbox-ext-pack page.
To create pin-file you can use single command below:
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-vbox-ext
Package: virtualbox-ext-pack
Pin: version 6.1.6-1
Pin-Priority: 1337
EOF

It will lock virtualbox-ext-pack package at 6.1.6-1 version forever.


How do I write french accents in Ubuntu 20.04

There are some handy packages to manipulate each key and mouse button.
For the packagesxmodmap xbindkeys xdotool and xte are popular.
sudo apt install x11-xserver-utils
sudo apt install xbindkeys
Edit ~/.xbindkeysrc add lines below.  (if there's no such file xbindkeys --defaults > $HOME/.xbindkeysrc to create one.
"xdotool key U00e9"
 AltGr+e+release

"xdotool key U00e8"
 AltGr+w+e+release

Save this file and
pkill -f xbindkeys && xbindkeys
execute this command to apply changes.
Now then, AltGr+e should type é and AltGr+w+e type è.
But I am afraid that I haven't tested this. I am not sure this works or not.

I love using Compose key and its combinations.
How to get letter "ć" with the dead keys?
It depends how often you need an accent letter, if it's only once in a week then I recommend
Control+Shift+U and type a hexdecimal number (00e9) then Space, you get é


You should file a bug report. Instructions here.

A simple workaround is to add this line into your .profile which will run every time you log on. If you don't want to set it to 50% volume, you can adjust your volume level you want it, and then check to see what it is by running:

alsa-mixer

Then, to test it out, play some music, and run the next line of code. You can play around witht the % just to make sure it's working for you.

amixer set Master 50%

The next line is supposed to keep the volumes at your prescribed levels, but I've found that it doesn't always work.

sudo alsactl store Master 50%

So, to make it set every time you log in, add it to your .profile

echo 'amixer set Master 50%' >> ~/.profile


Just installed ubuntu 14.04 but after restart it wont boot

At the very top of boot repair info you posted it says you have two disks

/dev/sda (apparently your hard drive)
/dev/sdb (apparently your USB stick)

/dev/sda has an EFI boot partition and /dev/sdb has an MBR boot loader.

Check boot device

Boot your computer and go to BIOS by pressing one of:

F1
F2
DEL
ESC
F10

And make sure you are booting from your hard disk.

Check EFI partition

According to
Ubuntu UEFI documentation, the EFI System partition should have a 'boot' flag. According to the boot repair info you posted, your partition does not have it.

To fix: boot from Live USB and run gparted. From there you can edit your partition table and add the 'boot' flag.


One solution would be to run a proxy on the server which is providing the openvpn connection.
E.g.:
Your openvpn network is on the 10.0.0.x subnet and your openvpn server does have the ip 10.0.0.1. Then you could run a tinyproxy instance listening on 10.0.0.1:8080.
Then you openvpn client just have to set the proxy (in Firefox, IE, ...) to 10.0.0.1:8080.


Try to update as follow, this should update admin password to passpass

update users_field_data set pass='$S$EplZajxeAARcsuUmCMaXmM42DZmgxfp59psLWH5rOakPZqPwGpSQ' where uid=1;


If you can ping 8.8.8.8, but can't ping google.com. It seems to be problem with your nameservers.

You can check it here: /etc/resolv.conf This filecontains the list of nameservers use your system.

If it is your problem, you could create/edit this this file: /etc/resolvconf/resolv.conf.d/tail. And add there some public nameservers. For example:
nameserver 8.8.8.8
nameserver 8.8.4.4

This file allows you add this public nameservers to the end of the /etc/resolv.conf.

File /etc/resolvconf/resolv.conf.d/head does the same, but adds nameservers to the top of the /etc/resolv.conf.

After editing tail or head file, you should reboot your system in order to implement this changes.


If you don't need assistance, you might want to consider:

sudo apt-get remove orca
sudo apt-get remove gnome-orca
killall orca

I say this from the unpleasant experience of accidentally triggering it on several occasions. It is a sledgehammer approach but I have absolutely no use for it.

If you want to keep it but it's starting on boot now, short of hunting through the application to look for the off-switch, consider this question too.

Also note that the package name is transitioning from gnome-orca to orca. I'm leaving both above for the duration of supported releases.


Error of broken packages of nvidia-cuda-dev while installing elasticsearch

Try running this command:
sudo apt install cuda-toolkit-9-1

It works for me.


Right now, you are facing, in fact, two problems, not one. Firstly, you need to save those files, and secondly, you need to make that PC to boot again.

For your first problem, I think that an emergency solution would be a live stick. That means that you buy an USB stick, you go to one of your friends, you buy him a beer and a good book to keep him busy, and you use his PC to create a live USB stick (that means that you have a Linux distro in your pocket). Then, you boot your own PC from that USB stick, go to your files, save them in online in cloud (Google Drive or Dropbox), or on another stick.

And as for your second problem, here is my suggestion. I had the same problem. If you can, try to undust your PC and check out your cables. Maybe your hard drive is not connected very well, and your system simply cannot see it. Otherwise, I think it would be wise to take it to the service for a check. It may be a hardware-related problem.


After a while, I managed to figure it out. Yes, it's very much like enabling lz4 compression in zswap.
Recalling how to enable lz4 compression:

sudo su
echo lz4 >> /etc/initramfs-tools/modules
echo lz4_compress >> /etc/initramfs-tools/modules
update-initramfs -u

I did a similar procedure to enable z3fold:

sudo su
echo z3fold >> /etc/initramfs-tools/modules
update-initramfs -u

Pass zswap.zpool=z3fold into the kernel paramaters, and z3fold should be up and running.


When i was troubleshooting my Wayland crashes i discovered within /var/log/syslog that it was gdm crashing on me.

i had the following log entries

Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): SDC (DFP-1): connected
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): SDC (DFP-1): Internal DisplayPort
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): SDC (DFP-1): 1440.0 MHz maximum pixel clock
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0):
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): LG Electronics LG ULTRAWIDE (DFP-0): connected
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): LG Electronics LG ULTRAWIDE (DFP-0): Internal TMDS
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): LG Electronics LG ULTRAWIDE (DFP-0): 600.0 MHz maximum pixel clock
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0):
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): SDC (DFP-1): connected
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): SDC (DFP-1): Internal DisplayPort
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): SDC (DFP-1): 1440.0 MHz maximum pixel clock
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0):
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-2: disconnected
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0):
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-3: disconnected
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-3: 330.0 MHz maximum pixel clock
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0):
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-4: disconnected
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-4: 1440.0 MHz maximum pixel clock
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0):
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-5: disconnected
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0): DFP-5: 330.0 MHz maximum pixel clock
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (--) NVIDIA(GPU-0):
Apr 27 08:59:46   /usr/lib/gdm3/gdm-x-session[4965]: (II) NVIDIA(0): Setting mode "HDMI-0: nvidia-auto-select @2560x1080 +0+0 {ViewPortIn=2560x1080, ViewPortOut=2560x1080+0+0}"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "38"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "41"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "42"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "43"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "44"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "45"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "46"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "47"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (**) Option "fd" "45"
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:67
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:65
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:68
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:70
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:71
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:64
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:72
Apr 27 08:59:50   /usr/lib/gdm3/gdm-x-session[4965]: (II) systemd-logind: got pause for 13:69

then i ran

apt-get remove gdm && apt-get install lightdm

This log entry from syslog was also written in my Xorg.0.log also

This is just a work around for me, i must have issues running Wayland on Geforce 1070GTX.


My apt-get update is taking too much and finally error?

Update should be using your chosen Malaysian mirror, NOT us.archive.ubuntu.com (US default mirror).

Open Software Center from the launcher (looks like a shopping bag), or press Alt+F2 and type software-center, press enter. Go into Software Sources and make sure it is set to a Malaysian mirror (enter your password when prompted). Then try updating again.

Linked Question:

How do I change which mirror I get updates and software from?


How to install windows 7 to portable hard disk from ubuntu 14.04

You mean install windows 7 to a portable hard disk from an ubuntu 14.04 system?

Under the Ubuntu system if you install qemu you can run the Windows 7 installer as a virtual machine with the Ubuntu system acting as the host machine. With qemu you can pass the physical portable hard drive as the Windows 7 guest machine's hard disk and after the install you'll have an external drive you can boot Windows 7 off of.

First Install qemu:

sudo apt-get install qemu-kvm qemu

Identify the disk for your portable hard drive:

sudo fdisk -l

Launch the windows 7 installer in a Virtual Machine and pass the portable hard disk (Read my Note before running the command):

sudo qemu-system-x86_x64 --enable-kvm -m 2048 -hda /dev/sdb -cdrom win-installer.iso

NOTE: the above command makes some (potentially dangerous) assumptions. It assumes your portable hard disk is recognized as "/dev/sdb" make sure you substitute the correct one so you don't overwrite the wrong drive. (use the disk identifier not the partition number. For example you wouldn't use /dev/sdb1). It also assumes you can safely allocate 2G of RAM to a Virtual Machine and you have a windows7 installer iso image called "win-installer.iso". Ensure you substitute the file names and drive identifiers with the correct value. ALSO, make sure your portable hard drive is NOT mounted on the Ubuntu host machine at the time of running this command.

After following the windows install process and you safely shut down the Virtual Machine you can then plug the portable hard drive into a physical machine and boot off the drive into your windows installation. Anticipate potential issues regarding drivers when going from a virtual machine to a physical machine or switching physical machines.


Is umount performed automatically during a reboot?

I'm not entirely sure on reboot command, however I do know for sure that shutdown -P now will perform automatic umount on system shutdown.

References aren't provided. But you can just trust strangers on the internet.

EDIT: Just found this reference, maybe more strangers agreeing with me will provide you with more confidence.


Ubuntu on tablet can move mouse, but can't click

In my particular case the usbhid kernel module was not automatically loaded.

I added it into the /etc/modules file to load it on boot and it works now.


Turns out I installed the driver incorrectly, I found the following procedure to repair:

From the grub menu>advanced settings>recovery mode, then after a loading screen pick root.

cd /

to enter the main directory

sudo fsck -Af -M

to fix a disk error preventing me from editing files with a read-only error

mount -o remount /

to reload

rmdir -rf tmp

to delete the folder where it was trying to save but couldnt,
then go run the driver

cd home/(user name)/Downloads

to get into the directory

./(filename)

it should recreate the directory and install correctly, if not just do

cd /

and

mkdir tmp


Repair/Reset Hard Disk - don't mind losing data

Given that it is a Dell model there should be instructions on the web somewhere... I did the following on my old Inspiron 17R Special to get it going after I revamped its hardware. In terms of release dates they are almost identical so the steps involved are most likely identical

Intel Smart Response

Setting the quick start.


Installing Cloud9 on Ubuntu 14.04 - Cannot find module

Ran into the same issue. Here's how I fixed it:

For whatever reason, the default install script seemed to fail to add a number of the modules.  I iteratively added the modules as errors referred to their absence by running npm install nameofmodule (in your case 'connect') then attempting to start c9 again.

Eventually this resulted in the c9 IDE starting but more references to missing modules being generated. I repeated the above, Ctrl + C killing the ide, installing the module and relaunching until I got to what appears to be a fully functional state.

Web browsing to the IDE and taking action results in output to the console you launched the IDE from so keep an eye on that for any more missing modules once you are up and running.


Ubuntu 18.04.1 - suspend - how's it supposed to operate?

You don't hold the power button until the suspend option appears.

You push the power button once and the window panel menu appears.

Then you click and hold the power icon on the window panel.

Optionally you can hold the Alt key when hitting the power icon (the down arrow) in the top bar, not the physical button.


Ubuntu 18.04 stuck at loading screen (Wayland disable fix not working)

For my system it was not related to wayland. After I installed my nvidia card driver problem got fixed.
Enter via recovery mode and install nvidia driver if you have nvidia driver card.


Using /usr/local/bin/mpd instead of /usr/bin/mpd

It turns out that changing $MPDCONF to /etc/mpd.conf fixed the problem. What is weird is that this line was working fine with /usr/bin/mpd


enable hibernation for HP Pavilion dv6 laptop with Ubuntu 13.04

I have somehow solved the issue. I will leave this question up in case it helps someone in the future.

I ran the commands that Braiam suggested (which I doubt solved the issue). I booted under Windows later, hibernated under Windows (which has never been a problem). When I started back up, I got the blue screen of death. After rebooting into Linux, I then re-ran the original solution to the hibernation problem which hadn't worked before. This time it did work!

I have no idea why.


Check this Thread http://ubuntuforums.org/showthread.php?t=2127935 hope it helps.

also; you may need to have a look on http://manpages.ubuntu.com/manpages/precise/man1/virt-sysprep.1.html


I have seen that using LVM during the install can cause this kind of problem in some Windows 7 environments.

If you used LVM to partition Ubuntu, try partitioning it without using LVM.

It should not really be of any difference, but for some reason it seems to cause this kind of problem with certain hosts.


Node.js server silently fails with Upstart

The issue turned out to be the way I was writing the Node.js web app code, using paths relative to the web app script that broke when run by upstart.

I added __dirname + "/", and the silent failures became quiet successes.


Edit /etc/lightdm/lightdm.conf with root permissions:

gksudo gedit /etc/lightdm/lightdm.conf

Add the following line to the end of the file:

greeter-show-manual-login=true

I'm not sure if you wanted to actually disable the guest account too. Judging from your question, it sounds like you might, so I'm including that too You would add this line to that same file to do that:

allow-guest=false

Then just save the file. I don't remember if you have to reboot the machine, or just log off for this to take affect.


Problem booting Ubuntu after removing Windows

The warnings and errors concerning a corrupt/invalid GPT (GUID partition table) pertain to a 2 GiB drive, so probably neither the hard drive nor the SSD, and can be safely ignored. Unfortunately that doesn't explain why Boot-Repair doesn't fix the boot loader.

To resolve your issue, I recommend a manual re-installation of Grub, which will be slightly more complicated than depicted in the answers to that question because of logical volume management on your system.

If you don't know what that is or how to deal with it, I recommend that you re-install Ubuntu without logical volume management (LVM), as it is an advanced option and causes more problems than it resolves in simple setups managed by inexperienced administrators.


Maybe you install grub on installation flash drive. Than you remove it so OS can't boot? Insert pen back into PC, reboot. If success do sudo grub-install /dev/sda. Then try to reboot without flash pen. Or do something else about flash drive.


wireless not showing up in network manager applet

First of all, are you connected to the internet? If so, try clicking System>Administration>Aditional Drivers

This will bring up non open-drivers. This worked for my wife's computer. I'm not really sure which cards require this or not, but worth a short in my books.


What is the default data directory for mongodb if we install that in amazon ec2

When you are searching a file in your filesystem while you are running Ubuntu a very easy way to find it is to do the following:

Update the database with your files (may be a bit slow, depending on when it run the last time automatically from your system):

sudo updatedb

Search for the corresponding file (super quick):

locate mongodb.conf

The config file name has recently change, now use locate mongod.conf (no more "b") (or just locate '*mongo*.conf', if you aren't sure).

Note: In the latest mongodb versions, the configuration file has been renamed to mongod.conf


In my system, the .desktop is located here: /usr/share/app-install/desktop/groundcontrol:groundcontrol.desktop. To find it on your system, use

sudo updatedb
locate groundcontrol | grep .desktop

To start the program, hit Alt+F2 and then write lp-groundcontrol


Ubuntu 18.04 - Unable to locate package qt-sdk

The qt-sdk package included the development libraries for Qt4. You can install these in 18.04 using the following:

sudo apt install libqt4-dev


VMware player: make command gives warning clock skewed

That's not an error, per se, it's just make letting you know that some of the files have a timestamp newer than the current system time.  This happens when you copy files from the host onto the VM and the two clocks are out of sync (specifically, the VM system time is 'slower'/less than/earlier than the host's system time).

It's weird that touch doesn't make the warning disappear, though.  You can play around with the -t option to touch and see if a specific timestamp makes the warning go away:

   ` -t STAMP
          use [[CC]YY]MMDDhhmm[.ss] instead of current time`


I can-t use Alt Gr key to type symbols, and also some keys do what they're not supposed

Keyboard layouts need to match the hardware not the software / OS language.

Just change the layout to your country's specifications in settings -> keyboard -> layouts.

US-English keyboard has the @-symbol at shift+2, see here https://en.wikipedia.org/wiki/British_and_American_keyboards


Wrong Keyboard map on Qt apps running over Wayland server

I just installed kate, which is a qt text editor, on Ubuntu 17.10, and have no problem to use the Spanish keyboard layout when typing.

Possibly you have spotted some kind of Wayland bug, and then it should be reported as such.

Considering that Ubuntu 18.04 will be shipped with Xorg sessions enabled by default, and not Wayland, you may want to simply start logging in to 17.10 using Xorg from now on as a workaround.


How can I optimise a server for a Low Latency application

First and foremost, I think you should install and use the linux-rt kernel. This kernel is patched and allows nearly all of the kernel to be preempted, with the exception of a few very small regions of code ("raw_spinlock critical regions"). This is done by replacing most kernel spinlocks with mutexes that support priority inheritance, as well as moving all interrupt and software interrupts to kernel threads.

  Preemption is the act of temporarily
  interrupting a task being carried out
  by a computer system, without
  requiring its cooperation, and with
  the intention of resuming the task at
  a later time.

Read A realtime preemption overview. This will allow you to understand how things work, something that will enable you to fine tune the kernel for your particular application.

There's also RTLinuxFree developed by Wind River Systems which also has a commercial counterpart if you have money laying around.

For linux-rt I recommend reading the RT Wiki

Maybe your application supports RTAI?


Configure Ubuntu 20.04 server on RPI4 to turn off external HDMI backlight after inactivity timeout

It appears that the boot configuration files are now located in /boot/firmware/*
See /boot/firmware/README for more info
See this page for clues.
According to this and this the hdmi_blanking=1 option, placed in /boot/firmware/usercfg.txt, should enable the desired mode once it's implemented...


If you read the error properly, you will get clue about the problem and that is how you can get it solved.

The last part of the error message is: mount: unknown filesystem type 'exfat'. First of all it tells us this HDD was being mounted as exfat so it has nothing to do with ntfs. It also simply means your system does not recognize this file system.

If you are sure that the file system of the drive is exfat, you need to install exfat-fuse and exfat-utils using this command:

sudo apt-get install exfat-fuse exfat-utils


kernel panic occured after installing wifi driver

I found this solution, and worked perfectly on a Lenovo g40-30 so i guess it should work in other lenovo pc...

quote:

for one time test:

sudo rmmod ideapad_laptop

for working after reboot:

echo "blacklist ideapad_laptop" | sudo tee -a /etc/modprobe.d/blacklist-ideapad.conf

found it in: Wifi Not Working On Ubuntu 14.04 Lenovo G 50-30

but I don't know if you'll have to unistall the module you installed. Try it, or try to update your kernel, then the solution I found.


Kubuntu is doing weird sound even after reboot every 15 seconds or so

It is hard to tell over the static but for me it sounds like one of the default pidgin sounds.

It could also be the systembell.

To Further debug you sound you could kill the existing pulseaudio server, with pulseaudio -k. And launch
 pulseaudio -vvvvv

It could be that you have any kind of IM running in background? Is there anything visible running in your messagetray?


How do you uninstall Dualboot from Windows XP And Ubuntu 14.04

Sluggish(your opinion) . I use debian and have used ubuntu, i don't find it that sluggish.
                To answer your question.
Easybcd is tool that you can use, it's freeware.
Caution: Use it properly, you might end up corrupting your system.

Go to your windows, download and install the tool and you can remove GRUB as default bootloader to windows bootloader.
Use any disk partition software remove the disk partition that contains ubuntu.
You're completely free of ubuntu.

NOTE: Try ubuntu/debian for sometime, you'll think windows is boring.


If you've been starting graphic applications from the terminal using sudo, that's what probably caused your problem. Always use sudo -H.

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type:

sudo mount -o remount,rw / # remount the disk as rw
cd /home/your_username # change directory
ls -al .*thority* # list some files

You should see something like this...

-rw------- 1 your_username your_username 407910 Nov  2 08:56 .ICEauthority
-rw------- 1 your_username your_username     58 Jun 23  2017 .Xauthority

If it DOES NOT show -rw------- then...

sudo chmod 600 .*thority* # change file protection

If it DOES SHOW root root then...

sudo chown your_username:your_username .*thority* # change file ownership
reboot # reboot the computer

Reboot and see if you can log in.

Update #1:

We created a new "Guest" account, and it logs in fine. That confirms that there's something in the original account's home folder that's causing the login loop.


Why does my script return a syntax error?

Your problem is right here:

root@alex:/home/alex# sh pb.sh

shopt is a shell builtin (see type shopt). /bin/sh isn't bash on Ubuntu, but a compatibility shell called dash. Dash doesn't have shopt.

Since the first line of your script is the shebang line (#!/bin/bash) you can just run your script like this:

./pb.sh

and it should work fine. You may need to set the file as executable by running:

chmod +x pb.sh


this solution worked for me sudo aptitude update then sudo aptitude upgrade


Unfortunately, all software (including Live USB creators) contains bugs. I assume this is an issue with Pendrivelinux (which I experienced to be very buggy.)

Give UNetBootin a chance. It is the best and safest Live USB creator I ever used, any I tried lots of them...

(And don't be afraid of UNetBootin's boot menu, as some people reported to me...)


ubuntu 16.04 : getting signature by key uses weak digest algorithm (sha1)

Finally i have the answer for my own question, may be that is a bad idea but now i'm able to do everything without any warning messages.

I have reinstalled Ubuntu 16.04 and then installed PHP, Apache, and phpMyadmin without any problem. Seems like i had messed up with unity systems by running some random command.


You need to Download the Driver from The Brother Web Site

To check if you running 32bit or 64bit.
run this command

uname -a

Result for 32-bit Ubuntu:

  Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

whereas the 64-bit Ubuntu will show:

  Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
  if you are running a 32Bit version of Ubuntu.

run these commands if you are on 32bit

wget http://download.brother.com/welcome/dlf100975/libsane-dsseries_1.0.5-1_i386.deb

sudo dpkg -i --force-all  libsane-dsseries_1.0.5-1_i386.deb

if you are running 64Bit run these commands.

wget http://download.brother.com/welcome/dlf100976/libsane-dsseries_1.0.5-1_amd64.deb

sudo dpkg -i --force-all  libsane-dsseries_1.0.5-1_amd64.deb

Brother Scanner driver How to Install


Is there a way to get ‘Fuzzy Search’ in GNOME Shell’s Applications Screen?

There is a bug report or feature request open to add fuzzy search to GNOME Shell, please help if you can to get this helpful feature back to Ubuntu: Application search algorithm (g_desktop_app_info_search()) should use fuzzy matching
You can get fuzzy search for APPS (only) with the Fuzzy App Search GNOME Extension. It is a great start, hopefully the fuzzy search feature will be expanded in the future (in whatever way).
Source: OMG Article "add fuzzy search to GNOME Shell"


How to get chromium with vaapi on ubuntu 20.10?

According to this article here:
https://www.linuxuprising.com/2020/12/chromium-and-ungoogled-chromium-web.html
The Chromium Flatpak available on Flathub has VAAPI enabled. I just tested it and it did not work for me though. However maybe it'll work for you. Even if it does not work right now for you, I'd keep an eye on the Flatpak. I left a comment of my experience on their bug tracker here: https://github.com/flathub/org.chromium.Chromium/issues/35


IPV4 Connectivity isn't working, IPV6 working fine

(Q) Do you think that IPv4 isn't working because of ping using IPv6 address?
The format of the ping command I think should be:
ping -4 google.com
# or
ping 216.58.206.238

When DNS is used to resolve google.com, and both IPv4 and IPv6 addresses are available, the OS based on the stacks enabled and user/app preferences decide on using IPv6 unless IPv4 is "selected".
Since you have an IPv4 address and you can ping something/anything ping 192.168.1.1 means that your IPv4 stack is working. IMO.
The output of ifconfig (thanks for including it) says your local IPv4 address is 192.168.1.26.  So if you pinged 192.168.1.1 which is your router than your stack is working (most likely).
Try fixing the ping command as suggested above or just try ping 216.58.206.238 to eliminate the DNS lookup.
Also try
traceroute 215.58.206.238

NOTE: I needed to install traceroute using sudo apt install inetutils-traceroute before I could run that.
Traceroute shows you the network routers used to reach your destination.  If more than one show up then your IPv4 is working and there is a problem with routing.  (I'm perhaps oversimplifying).
Update your question by adding the output of these commands and let everyone know what happened, and we can take the next steps.
I'll continue to update this answer based on what I see in your question.
And I see you are brand new to StackOverflow, so welcome aboard.


Ubuntu Failed to install and now I don't know which partition it's on so I don't have access to my other 500GB

Disk 1 partition 3 is the partition that according to you, Ubuntu is holding hostage. You can safely delete this and get the space back. But as you have the EFI system partition in the middle, you will have trouble combining it with the D: partition. There are workarounds. For example, you can do this with the Easeus Partition Master Paid version. You can find a safe crack if you try. (I found a safe one from YouTube.) You can also delete the EFI system partition (after finding whether it is safe to do so with Microsoft Community and/or Microsoft Community Advocates.) and combine the partition with D:. Another way to use that space is to assign a new drive letter like E: and use it as a separate partition.


/boot partition out of free space on standard install of 13.04

Try to use apt-get autoremove and see if that removes some of the older kernel packages.

If that does not work, I would suggest you do what I've had to do before, find the kernel you're on now, that's working fine, then use apt-get purge <name_of_older_kernel_package> on the packages for the older kernels.

This will remove all of those older kernels that you are not booting to any longer and may no longer be needed.


Is there a way to change the system font completely?

The font settings are stored in gconf and can be changed easily with gnome-appearance-properties. They can also be changed using gconf-editor or the commandline-tool gconftool-2.
If you want to change the fonts of the login-screen you have to run these tools as the user gdm like this:
sudo -u gdm dbus-launch gnome-appearance-properties

In some cases this doesn't work and you have to go a more complicated way:

Log out (so that you are on the login screen)

figure out what displaynumber the login screen has by pressing Ctrl+Alt+F7(F8,F9). If the login screen is on F7 its number is 0, on F8 it is 1, ..

change to a blank terminal with Ctrl+Alt+F1 and log in with your user. Now run the above command like this (with the correct DISPLAY):
sudo -u gdm DISPLAY=:0 dbus-launch gnome-appearance-properties

now change back to GDM and you should see the appearance properties dialog where you can make any changes you like (background, too).


How to Drop-In replace MySQL with MariaDB?

It turned out to be as simple as:

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mariadb-server

This won't break your phpmyadmin, or any webapp, as long as you say no, when asked if you want to delete your database and you use the same credentials you used for you mysql-DB. Also back up your data before doing this.


Any experience with turtl? unable to remove it

It looks like turtl is installed with npm if that's how you installed it, that's how you uninstall it.
npm uninstall turtl

Sources:
https://github.com/turtl/desktop/blob/master/README.md

https://docs.npmjs.com/cli/uninstall


Java programs don't repaint GUI after Ubuntu update

Not going to help much, but just tried to use SweetHome3D on my laptop and it exhibits the same behavior. Worked few weeks ago.

Ubuntu 18.04.02 LTS / Gnome, Lenovo X230.

Then again, SweetHome3D works with my desktop which has nVidia graphics.

Something Intel related?


How to install Netgear N-300 UAB adapter WNA3100 on Ubuntu 12.04

Thanks for the tips and advice. I spent 3 hours on the problem and finally gave up with the Netgear USB Wifi adapter. I'm done struggling with Netgear hardware on Linux.

I drove to the closest PC shop and bought an Edimax EW-77IIUAn 150 Mbps Wireless USB adapter. It worked out of the box - No installation whatsoever :-) I plugged it in, and Ubuntu immediately detected it and connected to my wireless network.

Sometimes it's just not worth the trouble to get around driver issues.

UPDATE

For compatible hardware it's a good idea to look at these sites:

Ubuntu Friendly (though it's by system rather than part)
Ubuntu hardware support page

For wireless cards you can go directly to the wireless support page.


Is qml from the terminal supposed to work on OTA-10.2

You cannot run qmlscene from the terminal like that. Applications are run under confinement.

Also, you should not set the device root filesystem to read/write mode. It will only result in problems with updates in the future.


How to restrict access to a NTFS partition to a standard (non-admin) user?

Open fstab file as using

gksudo gedit /etc/fstab

You should add line in /etc/fstab file as follows,

/dev/sda7   /media/EXTRA    ntfs-3g noauto,uid=XXX,unmask=7 0   0

Here XXX is my user id. You can find yours with id command and /dev/sda7 is the partition I want to restrict access to.
Create a folder named EXTRA in /media/ as follows,

sudo mkdir /media/EXTRA

Now whenever you login you need to mount it as,

sudo mount /dev/sda7 /media/EXTRA

Done!

Explanation:
If a particular partition contains a VFAT or NTFS filesystem and you only wish to be able to access it yourself, it's pretty simple:

Include the options "noauto", "uid=XXX", and "umask=7" in fstab line and remove the "user" and/or "users" options if they appear there now.

This means that at boot time the system will come up with that partition unmounted, and only you (operating as root, using sudo presumably) can mount it.

Once mounted, it will be owned by your unprivileged user (assuming that that user's uid is XXX, which is given to the first user created at install time in MDV installs - check with the "id" command run as that user, and adjust fstab accordingly) and
will be inaccessible to all other local users.

To mount your restricted 4 partitions by issuing mount command four times is a boring task. To cut that boring task, I have written a shell script:

#!/bin/bash
#Mount Unmount secret partitions now with choice of partition
function checkPartitions(){
    local state=$1
    local dev=$2
    case $state in
    "unmounted")
        mount | grep -q $dev
        if [ $? -eq 1 ]; then
            echo $dev
        fi
        ;;
    "mounted")
        mount | grep -q $dev
        if [ $? -eq 0 ]; then
            echo $dev
        fi
        ;;
    esac
}

function safeUnmount() {
    local dev=$1
    mount | grep -q $dev
    if [ $? -eq 0 ]; then
        echo "Device $dev found. Unmounting now"
        sudo umount $dev
        if [ $? -eq 0 ]; then
            echo "Device $dev unmounted successfully."
        else
            echo "You are not root??"
        fi
    else
        echo "Device $dev is already unmounted."
    fi
}

function safeMount() {
    local dev=$1
    mount | grep -q $dev
    if [ $? -eq 1 ]; then
        echo "Device $dev not found. Mounting now"
        sudo mount $dev
        if [ $? -eq 0 ]; then
            echo "Device $dev mounted successfully."
        else
            echo "You are not root??"
        fi
    else
        echo "Device $dev is already mounted."
    fi
}

echo -e "What you want to do? \n 1. Mount Secret Partitions \n 2. Unmount Secret Partitions"
read -p "Enter your choice :" choice

case $choice in
1)
    echo -e "You want to Mount your secret partitions"
    echo "-------List of Unmounted secret partitions-------"
    checkPartitions "unmounted" "/dev/sdaX1"
    checkPartitions "unmounted" "/dev/sdaX2"
    checkPartitions "unmounted" "/dev/sdaX3"
    checkPartitions "unmounted" "/dev/sdaX4"
    anythingelse="y"
    #echo -e "\n"
    while [ $anythingelse == y -o $anythingelse == Y ]; do
        read -p "Which partition should be mounted?" partNum
            safeMount "/dev/sda"$partNum
        read -p "Do you want to mount any other partition? [y/n]" anythingelse
    done
    ;;
2)
    echo -e "You want to Unmount your secret partitions\n"
    echo "--------List of Mounted secret partitions--------"
    checkPartitions "mounted" "/dev/sdaX1"
    checkPartitions "mounted" "/dev/sdaX2"
    checkPartitions "mounted" "/dev/sdaX3"
    checkPartitions "mounted" "/dev/sdaX4"
    anythingelse="y"
    #echo -e "\n"
    while [ $anythingelse == y -o $anythingelse == Y ]; do
        read -p "Which partition should be unmounted?" partNum
            safeUnmount "/dev/sda"$partNum
        read -p "Do you want to unmount any other partition? [y/n]" anythingelse
    done
    ;;
esac

Replace /dev/sdaX with your 4 partitions.

Save as secret-mount-unmount.sh and then issue a command

chmod +x /path/to/file/secret-mount-unmount.sh

Double click the file and then hit Run in Terminal and proceed.


How to close a named pipe (thereby enabling it for cat)?

It is that once the contents of a FIFO have been consumed, they won't remain in the FIFO. Thus, it is not possible to print all the contents of a FIFO later (only those that weren't consumed would remain).

The only way to know what was being sent to the FIFO is to print the same thing to a separate file (possibly overload the stream insertion operator <<).


Is it safe to remove extra GRUB2 entries from updated Kernel versions?

If the new version of the kernel is working and you dont notice any glitches compared with while you were using the previous one you are more than welcome to remove previous installed kernel images.

There are a few posts on the site that might help you with it, you can also use the suggested GRUB customizer:

Removing old kernel entries in Grub
How to delete kernel entries in the Grub 2 menu whose kernels are removed?

Have a look at those for help. Normally I always leave the latest and the latest -1 versions installed, just in case.


You can always look it up, which is just what I do.

Using your example of wanting to install an email server, I would open Google and search

set up email server ubuntu

With that search, the first result is this DigitalOcean article, titled "How To Install and Setup Postfix on Ubuntu 14.04." (Also exists for 16.04) Now I know that the email server on Ubuntu is most likely called Postfix, and I also have a guide on setting it up.

Now, maybe I don't like DigitalOcean for whatever reason, or maybe I'd just prefer a StackExchange Q&A, because those are easier to read for me. With that in mind, I'd search

set up email server ubuntu

And voila: How do I set up an email server?

That contains a very detailed answer on setting up a mail server on Ubuntu, using the mail-server package. One result below that question is this one: simple method to install a mail server

It provides yet another method for setting up a mail server.

What you really, really, really need to do when using Ubuntu (well, anything really) is look it up. I could say there's no index that lists all the packages for different mail servers, but there is; it's called The Internet. Use this index to your advantage. Package names can be weird, which is why using a search engine can be very beneficial.

If it turns out you can't find what you're looking for, ask here, as you have just done. Chances are, it already has an answer and will be closed as a duplicate (I'm seeing more and more of those lately, and this question is very likely one as well), but there's nothing wrong with that, especially if you get your answer. In fact, duplicates help others as well, as your question might show up to different search terms than the question it is a duplicate of.


AMD Switchable Graphics (HP Probook 4530s-specific) - any way to enable?

I think that this answer (and the answer linked, that is this one) should solve your problem, installing the latest Ati proprietary driver from their website. There is a step-by-step guide on how to do that.


As far as I remember I had the same problem.
I can't remember if I could or could not see my laptop in my mobile device, but I do remember having some connectivity issues.
What worked for me was to install "Bluetooth Manager". This solved my problems.
I think that you install this app with the command: sudo apt-get install blueman.
I hope this helps...


Here's Reader:
http://www.liberiangeek.net/2012/10/install-adobe-reader-in-ubuntu-12-10-quantal-quetzal/
As for google chrome, or "Chromium" I suggest trying it like you probably already have before from the terminal;

 Sudo apt-get install chromium

 When it asks for your password it will say the username of the account which the expected password belongs.
Note: Your password will not be displayed as you type.
However it will be received by the terminal.
As for Flash, and hopefully to fix the initial problem, Try this;
 From The Terminal
Sudo apt-get purge software-center

Then,..

Sudo apt-get install software-center
 That will remove and re-install the software center hopefully sorting out any issues its having. Then procede to search for "Flash Player" and I'm sure you get it from there... Anyway I'm new at all this also so I know how frustrating it can be. Let me know if it works for you.


How to remove Ubuntu when I installed on wrong hard drive?

You don't. If there is nothing to save from the ssd/hdd just reinstall. Install on the ssd should take a mere 15 minutes anyways.

During installation: format the hdd and mount it to a mount point. Create a / with the whole 120Gb --or-- a roughly 30Gb-ish and remainder for /home/. Keep your personal files outside /home and on the hdd so when you need to reinstall you can assume contents on / are safe to delete.


Try the full path of tlmgr, i.e.
sudo /usr/local/bin/tlmgr install book

Adjust the path to your setting.


Numerous issues with embedded objects in LibreOffice after upgrading to 16.04

There's an excellent chance that your problem was caused by the upgrade from 14.04 to 16.04.  An operating system is a complex beast, with thousands of components, and Ubuntu runs on a staggering variety of hardware configurations; it's impossible for the writers of the upgrade script to test the script against all the variations of hardware and software found in the field before releasing it.  The upgrade script seems simple and convenient, but it causes lots of problems, and unfortunately many people don't seem to know how dangerous it can be.  (Don't feel bad, I learned the hard way too.)

I'm sure that you'd prefer a targeted fix that neatly solves the problem, but if the root of the problem is a flawed OS installation, then you might be forced to use a blunter instrument: wiping the hard drive, and installing 16.04 from scratch (after backing up all your important files, of course).

Here's the outline of how to do it:

In a terminal, do aptitude search '~i!~M' > ~/top-level-packages-before.txt.  (You'll need the aptitude package, if it isn't installed.)  This creates a file containing a list of all the installed packages, not including dependencies.  (Kudos to this answer.)
If you don't have /home in its own partition, back up the entire /home hierarchy.  Also back up /etc/X11/xorg.conf, if it exists, and /var/www if you use your computer as a web server.
If you dual-boot another OS, then boot to an Ubuntu install DVD or USB stick, choose "Try Ubuntu", run GParted, and use it to delete the Ubuntu partitions (except the partition that mounts /home, if /home has its own partition).  If you're not dual-booting then skip this step, because the Ubuntu installer needs to see how the computer boots.
Install Ubuntu.  Use the installer to wipe out any partitions from the old Ubuntu installation that weren't wiped already, except the partition that mounts /home, if /home has its own partition.
Copy your important files from the backup to the new installation.  Unfortunately lots of programs pollute your home folder /home/<username> with junk (type Ctrl+H in Nautilus to see the hidden files and folders; that's where most of the junk is), and copying old config files blindly can cause problems, so you should probably just copy what you need, rather than restoring every last file.
Install aptitude if it isn't installed, and do aptitude search '~i!~M' > ~/top-level-packages-after.txt.  Restore ~/top-level-packages-before.txt that you created in the first step, if you haven't already.  Do diff ~/top-level-packages-before.txt ~/top-level-packages-after.txt to compare the two files, or use diffuse (kudos to this answer) to discover which packages were installed previously that aren't now.  Consider installing those packages.

The gist of this answer is borrowed from this Ubuntu forums thread, which has more information.  Good luck.


Docking windows on the left or right of the screen

I am still searching for a convenient method, but I found a workaround.

It is possible to use xprop to set the necessary properties to make any window behave like a docked panel. This worked with Slack and is compatible with most window managers.

Reserve 300px on the right side of your screen.

xprop -f _NET_WM_STRUT 32c -set _NET_WM_STRUT 0,300,0,0
Click on the application's winow

Move and resize your window into that space.
(Optional) Make the window always-on-top, hide it from the taskbar, and from Alt+Tab (but it also kills keyboard input for some reason)

xprop -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_DOCK
Click on the app's window

Consult the freedesktop.org documentation. Perhaps there are more/better options that could be set to get a 100% correct result. I also don't know how to set these options automatically.


Ubuntu 20.04 setting PREEMPT_RT - Loading initial ramdisk

Grub's "initrd" could not load ramdisk image. The problem was solved by installing and configurating of systemd-boot.


Please search for "L200" and install that driver. According to the latest comments in the Ubuntu Forums thread on that topic this driver should work.


As stated in your message Gen6+ requires Kernel 3.6 or later is your problem. So you are trying to use software that is too new for your operating system. You can check the kernel you are using with

uname -a

See the table of releases at the bottom of the wikipedia page about our releases:

Version Kernel
12.04   3.2 or newer
12.10   3.5
13.10   3.11
14.04   3.13

It is possible to install the 3.6 kernel in 12.04 but better would be to install 14.04.


Go to the shell again by pressing CTRL + ALT + F1, log in and create a new user:

sudo adduser <username>

Once created, reboot.

Log in with the newly created user. If it works, go to the "User Accounts" window and delete the old one.

Hope it helps,

Regards


Ubuntu 20.04 DNS 100% Packet loss. Able to connect to LAN but not WAN

Technically you are unable to ping, which is ICMP not DNS. It could be that your router is in "AP isolation" or "Client isolation" mode which prevents communication between clients on the network. Check your router for a setting named something like that and disable it.
What happens if you try ping www.google.com if it starts pinging an IP address, then you do not have a problem with DNS.


New to Ubutu trying to play Linux version of Saints Row the Third and I get an error message

Try playing w/o the steam overlay

EDIT: At the request of Andrea, here is my response to your comment:

The problem that your error message indicates is that Saints Row 3, a 32 bit application, is trying to load the 64 bit steam overlay. To disable the steam overlay, do both of these things to make sure: -Go into Steam (top left corner of window) > Settings > In-Game > Uncheck the "Enable the Steam Overlay while in-game" box. -Right click on saints row 3 in your library and click properties, then uncheck the same box. If it still doesn't work after this, confirm that the error message is the same as before. If not, please post it, if so, tell me and I will try to help.


How can I disable sticky edges in ubuntu 17.10

Disable "Auto Hide the Dock" to allow the mouse to move freely between displays.

According to this bug report, GNOME (which is used in Ubuntu 17.10 by default) doesn't have a Sticky Edges setting, but setting your dock to auto-hide does cause the mouse to linger at the edge until the dock reveals itself.


Eeepc Ubuntu 14.04 Problems: Video, audio, screen flicking and suspend failure

use these values to try to solve

Screen is flickering, shaking: edit or create /usr/share/X11/xorg.conf.d/00-modesetting.conf and add

Section "Device"
    Identifier  "gma500_gfx"
    Driver      "modesetting"
    Option     "SWCursor"       "ON"
EndSection

Video doesn-t work, is very slow and impossible to see anything: edit or create /usr/share/X11/xorg.conf.d/00-modesetting.conf and add

Section "Device"
    Identifier  "gma500_gfx"
    Driver      "modesetting"
    Option     "SWCursor"       "ON"
EndSection

Audio doesn/t work either, it jumps: edit or create /etc/pulse/default.pa change

load-module module-udev-detect

to

load-module module-udev-detect tsched=0

Once the pc go to sleep I can't restart, without shutting down and turning on again.

edit or create /etc/pm/config.d/gma500 add

ADD_PARAMETERS='--quirk-vbemode-restore'

I hope you solve with this.
Keep on gma500 with linux has poor performances.

Good luck!


Configuring 12voip with a sip softphone in Ubuntu

same problem with me. i tried x-lite 2.0 for linux with Ubuntu 10.04. it works much better than any softphone from the repositories with ubuntu 12.04. also, try zoiper voip phone. that also requires 10.04.

Also try QuteCom from the repositories.


shell script to conditionally add apt repository

I ended up writing a function to deal with ppa repositories.

add_ppa() {
  grep -h "^deb.*$1" /etc/apt/sources.list.d/* > /dev/null 2>&1
  if [ $? -ne 0 ]
  then
    echo "Adding ppa:$1"
    sudo add-apt-repository -y ppa:$1
    return 0
  fi

  echo "ppa:$1 already exists"
  return 1
}

I wonder if there is some more elegant way.


Google Music streaming music slowly on chromium

For what i have search you can put the tab in the background and let it keep playing, and it will change the CPU numbers.

Another info using chromium will use more FPS to do play, because it's using html5, against flash things are really different.

html5 is 60 fps, flash is 30fps.

Try as well clean up the cache sometimes.


Does these HDD free space values look normal? Is there something wrong with my system?

It shows as less because hard drive *manufacturers usually measure size in steps of 1,000. (1 kilobyte = 1,000 bytes, 1 megabyte = 1,000 kilobytes. 1 gigabyte = 1,000 megabytes.) So, according to these manufacturers, a 500GB drive would be 500,000,000 bytes.
However, operating systems (with the exception of Mac OS) measure storage in steps of 2¹⁰ (1024), so 1 kilobyte would be 1,024 bytes instead.
This means that the hard drive will actually have less capacity according to the OS than what is advertised by the manufacturers. Manufacturers have done this since very early in the IT industry's history, to save money and make their drives seem larger than they actually are. Combine this deception with the lost space upon formatting, and you get proportionally less total space than the manufacturer advertises.
On top of this, operating systems take up some space for their system files, leaving the user with even less.
;-)


How to enter password only once in a bash script needing sudo

You should instead make the user do the call of using sudo as sudo script. just check if the script is being run as root, if not ask for it

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root, use sudo "$0" instead" 1>&2
   exit 1
fi

Don't try to capture the password of your users.


Netplan with 2 NICs each connected to a different gateway

Edit:  Unfortunately, my own answer is incorrect after further testing.

The way the below is setup, it's still routing all traffic destined for an external IP (internet traffic) through the eth1 device which is not want I wanted.  I needed traffic routed out of each NIC respectively.  So, if eth1 needs to get out to the internet, it needs to send those packets out of the gateway that is directly connected to eth1.  Likewise, if eth2 needs to get out to the internet, then it also needs to send its own packets to the directly connected gateway that is connected to eth2.

I ended up dumping Netplan and went back to standard networking tools (ifconfig and /etc/network/interfaces) and setup a routing table/policy that does want I want. I'll never go back to Netplan.  They made it way too complicated for what should be simple stuff.  I spent days trying to get Netplan to work only to give up on that abortion of an abstraction layer.  I'm leaving my incorrect answer below for documentation.

**** Wrong answer below ****

So it appears this seems to work:

ethernets:
eth0:
  addresses:
    - 192.168.2.2/24
  routes:
   - to: 0.0.0.0/0
     via: 192.168.2.1
     metric: 100
     table: 101
  routing-policy:
   - from: 192.168.2.0/24
     table: 101
eth1:
  addresses:
    - 192.168.22.2/24
  gateway4: 192.168.22.1
  nameservers:
    addresses: [192.168.22.1]

I was attempting to list a gateway4 for each NIC stanza and that was incorrect from what I've been reading.  One must setup static routes to 0.0.0.0/0 for the other NICs/subnets attached directly to different gateways.  You only need one gateway4 listing if you do it this way.

Hope this helps someone else in the future (or me when I need to set this up again a few years later and will have forgotten it).


Put your signature on a blank piece of paper.
Scan the paper.
Use GIMP to create a .png file with your signature in black on a transparent background.
Export the .png file and save it in a secure location.

Now every time you need to sign a document, open it in GIMP or LibreOffice Draw. Also open the signature file and insert it in the desired place.


howto install Joomla 2.5 on root on ubuntu server 12.04

http://www.allaboutlinux.eu/joomla-2-5-3-on-ubuntu/4/

How to install Joomla 2.5.3 on Ubuntu


You will need to do more then that.

sudo mv /home/new_user /home/new_user.bak
sudo cp -R /home/old_user /home/new_user
sudo chown -R new_user:new_user /home/new_user

Log into the new user account. If all is working, delete the backup

sudo rm -rf /home/new_user.bak


In command line run:

locate -b org.freedesktop.login1.policy

The found file is /usr/share/polkit-1/actions/org.freedesktop.login1.policy.
In the file, near line

<action id="org.freedesktop.login1.suspend">

check these:

<defaults>
    <allow_any>yes</allow_any>
    <allow_inactive>yes</allow_inactive>
    <allow_active>yes</allow_active>
</defaults>

(Source)


Loading Ubuntu onto a second hand IBM server

First of all, and on a personal experience but with IBM x345, its BIOS identifies the CD as removable device and it isn't capable of booting from USB until you do a BIOS update to the latest available (and wish that the latest BIOS supports USB boot) you can find it in this link http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-53061

For USB, I would recommend the Universal USB Installer for making the bootable USB and use the Ubuntu Server x64 as well (most recommended as it will have better compatability to the server hardware, and you can install any GUI later as you wish)
If not possible, just try to burn the ISO file on a CD and use it instead of USB.


Since we are after 22nd April you should do the following to upgrade 20.10 to 21.04
Open Software & Update. Go to the Updates tab. Select ‘Notify me of a new Ubuntu version’ and change it to ‘For any new version’. This will tell the package manager to look for the Ubuntu 21.04 release details.
Open a terminal and type the following commands:
sudo apt update
sudo apt upgrade

Once both the commands are complete, open the ‘Software Updates’. And you will see a prompt to Upgrade to Ubuntu 21.04.
Now click on the Upgrade button and follow the on-screen instructions. The upgrade process takes time, so be patient and wait until it finishes. Make sure you have stable internet connectivity for the entire upgrade process.
Alternatively, you can also run the below command to force the upgrade process.
sudo do-release-upgrade -c

reference


Install jetbrain's CLion
It's requires payment after 30 days though but it's worth it.
It's what I am using to develop beginner Swift since I am very new to the language (Less than a week).


Gparted -Ubuntu Is Using all of my disk and will not allow resizing. For Dual Boot

Have you tried repartitioning using a Gparted live USB? I have had issues resizing active partitions in the past but using a live USB has always worked for me.


Can not install Wine 1.4 on Ubunru 12.04 running on a iBOOk G4

Taking a look at the specifications for your machine I note that it uses a PowerPC processor.

Fundamentally PowerPC is not compatible with Intel x86 at a binary level.

And as you can see here Wine supports Intel based MACs but not PowerPC.


This is the imergv.py script, in Python, that does just that. Imagemagick is required.
Note that before running the script, you need to cd into the directory with the images. Some image viewers suited to view large images are Viewnior, Nomacs and Gwenview. The script will generate some tmpfXXXX.png images and a file called output.png with the end result.

#!/usr/bin/python

import os

f = os.popen('/bin/ls -1')
fil = f.read()
arfils = fil.split("\n")
arfils.pop()
num = 0
tot = 0

for snc in arfils:
f = os.popen( "/usr/bin/identify -ping -format '%w %h' " + '\"' + snc + '\"' )
    rslt = f.read()
    woh = rslt.split(" ")
    intvl = int(woh[0])
    tot = tot + intvl
    num = num + 1

avg = tot // num

#resize images
num = 1
allfil = ""
for snc in arfils:
    nout = "tmpf" + str(num).zfill(4) + ".png"
    allfil = allfil + nout + " "
    convcmd = "convert " + '\"' + snc + '\"' + " -resize " + str(avg) + " -quality 100 "
    convcmd = convcmd + '\"' + nout + '\"'
    #print convcmd
    f = os.popen(convcmd)
    num = num + 1

mrg = "convert -append " + allfil + "output.png"
f = os.popen(mrg)


This has been covered in a related post on Unix&Linux:

  The execute bit (x) allows the affected user to enter the directory, and access files and directories inside

An example:

$ chmod -x test_access/
$ cd test_access/
bash: cd: test_access/: Permission denied

This also prevents from creating/removing files:

$ rm test_access/new_file
rm: cannot remove 'test_access/new_file': Permission denied
$ touch test_access/another_file
touch: cannot touch 'test_access/another_file': Permission denied

The execute permission actually should be called "access" permission, since when there is no x bit set on file or directory, it results in EACCES error. You can see that when performing strace bash -c 'cd test_access/

chdir("test_access")                    = -1 EACCES (Permission denied)

On the lower level, this particular permission in stat.h standard Unix library is defined as

  S_IXUSR

  Execute/search permission, owner.

Where search of course refers to directories. Note that reading what directory contains is covered by the r bit in the permissions.  Thus, I can still ls the directory, but cannot navigate there if there's no x bit but there is r bit:

$ ls -ld test_access
drw-r--r-- 2 admin admin 4096 Jan  4 15:18 test_access
$ ls test_access
test_file

If you look at strace output for rm and touch, you'll soon find out that these commands also use variation of stat() and openat()  syscalls, which also return EACCES

Side note on ls

Note that on Debian systems with default /bin/bash as user's interactive shell, ls is often an alias to ls --color=auto. Where that's the case, you will see an error such as this:

$ ls test_access
ls: cannot access 'test_access/test_file': Permission denied
ls: cannot access 'test_access/new_file': Permission denied
new_file  test_file

$ ls -l test_access
ls: cannot access 'test_access/test_file': Permission denied
ls: cannot access 'test_access/new_file': Permission denied
total 0
-????????? ? ? ? ?            ? new_file
-????????? ? ? ? ?            ? test_file

The reason behind that lies in the POSIX definition of EACCES:

  [EACCES] Permission bits of the file mode do not permit the requested
  access, or search permission is denied on a component of the path
  prefix

Specifically, if you run strace ls --color=auto test_access/ you will see that ls attempts to perform lstat() system call to determine the directory entry type, which is where the EACCES occurs


The missing indicator icons were due to my own mistake: I confused the "notification area" applet with the "indicator applet". I added the three different versions of "indicator applet" which only show the volume indicator, if anything at all.
However the "notification area" applet is the correct thing to add.

This applet now also shows the keyboard indicators like I want.

UPDATE: turns out that I have the same problem on a different computer now. Notification area is there but no keyboard layout indicator.
Back to square 1.


Best graphics card for running two monitors with Unity

Here
is a list of supported video cards by Ubuntu. I'd definitelly recomand nVidia due to ATI cards having sometimes driver issues in Linux environments.
Happy shopping.


Increased VDI size but chages are not visible in the virtual machine

Because the disk is expanded, but partition is not going to expand automatically. Boot from your ubuntu iso, and use gparted to expand your partition.


Ubuntu installation - partitions not found

If you set during installation Replace Windows with Ubuntu, than all the files on your system were deleted.

You can try use some data recovery programs but you may not succeed to recover all of your data.


12,10 ubuntu on usb for my thinkpad r50e

Is your CPU 32-bit or 64-bit? The i386 version of Ubuntu is for 32-bit CPU's and the amd64 version is for 64-bit CPU's. Make sure you have the correct version and if you're not sure then go with 32-bit!


VMWare 15 Error on Ubuntu 18.4 - Could not open /dev/vmmon: No such file or directory

Accepted answer is ok but doing it a little better formatted and reordered steps, added expected feedback etc.
The OP has some info for VirtualBox which gives confusing errors if you don't have it.

This problem essentially happens because of secure boot which does not allow kernel modules to load without being digitally signed with a trusted certificate. So we need to create a trusted key and use it to sign the newly compiled modules vmmon and vmnet.

These instructions have been tested for VMWare 15 and Ubuntu 18.04 up to 19.04.

Install VMWare
Run this

sudo vmware-modconfig --console --install-all

You'll see that there are issues with monitor and net, thas ok.
Generate a key

openssl req -new -x509 -newkey rsa:2048 -keyout VMWARE15.priv -outform DER -out VMWARE15.der -nodes -days 36500 -subj "/CN=VMWARE/"

You'll see info that it did it ok.
Use this key we just generated to sign the two kernel modules.

sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./VMWARE15.priv ./VMWARE15.der $(modinfo -n vmmon)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./VMWARE15.priv ./VMWARE15.der $(modinfo -n vmnet)

This does not give any feedback
Check that signatures are applied correctly.

tail $(modinfo -n vmmon) | grep "Module signature appended"

You should get Binary file (standard input) matches
Now we make this key trusted by importing it to machine owner key (MOK) management system with the command below. Here you can read more about MOK’s job in Linux.

sudo mokutil --import VMWARE15.der

This will ask you for a password, enter some new password a bit long like 1515vmware. Reenter same password.
Reboot, When reboot you should be presented with a menu with blue screen background, you have to make your way to enroll the key and enter the password you just created, this happens only once, then continue to boot.
To test the driver / module installed correctly enter the command

mokutil --test-key VMWARE15.der

You should get VMWARE15.der is already enrolled and that means VMWare should be working.

All credits to OP.

Notice: I've found out that after some Linux updates which involves the kernel (or something like that) this fix stops working and you have to do all the steps again to get it working again. (No need to re-install vmware)


How to make custom refresh rate stay saved?

After reading 113 blog posts, SO questions, and other attempts at solving this problem, my refresh rate was still lost on reboot.

From there I combed through man pages and played with dozens of utilities. During that process I discovered the following one-liner works on my 64 bit machine with a GTX 760.

xrandr --output DVI-D-0 --mode 1920x1080 --rate 144

This targets the device connected via DVI-D-0, sets the resolution to 1920W by 1080H, and forces a refresh rate of 144 Hz.

To determine the value for --output, run the following command

xrandr -q

Which will display information like the following.

You can see the second to last entry is where I found the device name, as well as supported settings.

I call this script from "Startup Applications" to ensure that it runs immediately following log in. I'm not 100% happy with that solution, because the screens flickers immediately after entering my password. If you can live with that (I can), then this solves the issue.


Why Ubuntu 12.04 is shipped with Libre Office?

LibreOffice is exactly the same as OpenOffice.

However, OpenOffice became the property of the company Oracle when Oracle bought Sun Microsystems that oversaw the development of OpenOffice. Some people fear that Oracle might make changes that go against the philosophies of open source software.

LibreOffice was created by taking the exact same code as OpenOffice, and releasing it under a name that was not owned by Oracle.

So, to answer your question from the point of view of usage, there is no advantage or difference in terms of using the OpenOffice or LibreOffice... at least, not yet, as, so far as I know, Oracle has no significantly changed it. Ubuntu decided to use LibreOffice simply because the developers did not want to be connected to Oracle.


how to check if official Debian/Ubuntu apt repositories are enabled in /etc/apt/sources.list?

Tested with 16.04 Ubuntu headless

cat /etc/apt/sources.list

You should see something like

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial universe
deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

Usually the repositories with the description main are the official supported repositories.


Radiance theme customization in Ubuntu: edit Window decorator and all!

It was that I missed to make some edits in the files /usr/share/themes/Radiance/gtk-2.0/gtkrc and /usr/share/themes/Radiance/metacity-1/metacity-theme-1.xml; which I edited to specify the colours that I wanted for the windows decorator. (But still unable to fix the colour of tab-bar of the Chromium browser.)

Altogether I've made changes in the files:

/usr/share/themes/Radiance/gtk-2.0/gtkrc,

/usr/share/themes/Radiance/gtk-3.0/gtk.css,

/usr/share/themes/Radiance/gtk-3.0/settings.ini,

/usr/share/themes/Radiance/metacity-1/metacity-theme-1.xml, and

/usr/share/themes/Radiance/gtk-2.0/apps/chromium.rc

Here's a snapshot of my custom colour palette which includes most of the changes that I made in the colour values in the files mentioned above:

(Note: the info_fg_color and info_bg_color values shown above is not a very good match.)

This is what my Ubuntu desktop with the modified Radiance theme looks like:

Edit: "...all fixed but the Chromium Web Browser's tab bar!" [solved]

To modify ChromeGtkFrame (which I referred to as Chromium Web Browser's tab bar) colour changes had to be made in the /usr/share/themes/Radiance/gtk-2.0/apps/chromium.rc file; where I used the colour value #e2e2e2. Here's what Chromium window now looks like:

Courtesies to the helpful comments/answers from vasa1 for getting the problem is fixed.


How do I change color profile via terminal commands?

from man colormgr

[..]

DESCRIPTION
       This manual page documents briefly the colormgr command.

       colormgr allows an administrator to view and change color profile to device mappings.

[..]

List all devices, eg:

$ colormgr get-devices
Object Path:   /org/freedesktop/ColorManager/devices/cups_HP_Color_LaserJet_CP1514n
Owner:         root
Created:       Mai  9 2015, 07:57:21
Modified:      Mai  9 2015, 07:57:21
Type:          printer
Enabled:       Yes
Embedded:      No
Model:         HP Color LaserJet cp1514n
Vendor:        Hewlett Packard
Serial:        socket://192.168.2.160
Format:        ColorModel.MediaType.Resolution
Scope:         temp
Colorspace:    rgb
Device ID:     cups-HP_Color_LaserJet_CP1514n
Profile 1:     HP_Color_LaserJet_CP1514n-RGB..
Profile 2:     HP_Color_LaserJet_CP1514n-Gray..
Metadata:      OwnerCmdline=/usr/sbin/cupsd -l

and get a profile with

$ colormgr device-get-default-profile cups-HP_Color_LaserJet_CP1514n
Object Path:   /org/freedesktop/ColorManager/profiles/HP_Color_LaserJet_CP1514n_RGB__
Owner:         root
Format:        ColorModel.MediaType.Resolution
Qualifier:     RGB..
Colorspace:    rgb
Scope:         temp
Gamma Table:   No
System Wide:   No
Profile ID:    HP_Color_LaserJet_CP1514n-RGB..

set a profile with:

colormgr device-make-profile-default cups-HP_Color_LaserJet_CP1514n /org/freedesktop/ColorManager/profiles/HP_Color_LaserJet_CP1514n_Gray__

check with:

$ colormgr device-get-default-profile cups-HP_Color_LaserJet_CP1514n
Object Path:   /org/freedesktop/ColorManager/profiles/HP_Color_LaserJet_CP1514n_Gray__
Owner:         root
Format:        ColorModel.MediaType.Resolution
Qualifier:     Gray..
Colorspace:    gray
Scope:         temp
Gamma Table:   No
System Wide:   No
Profile ID:    HP_Color_LaserJet_CP1514n-Gray..


Keeping emacs from splitting the window when openning multiple files

The following code works for me (add into ~/.emacs):

(add-hook 'emacs-startup-hook
          (lambda () (delete-other-windows)) t)

The emacs-startup-hook is run after loading the init file and processing the command line, so all files have been loaded and opened; calling delete-other-windows leaves just one of them visible (normally the last one given on the command line).

Note: you might also need to customize inhibit-startup-screen and set it to t for the above to work.


Installing ubuntu onto my 13 year old PC

Ubuntu 12.04 LTS should work fine, except for GUI 'features' which will be partially disabled. I would not try 12.10 (or 13.04), other than as an experiment (that may need to be undone).

You need to fix the keyboard, but using Tab should work for now. I assume you need this key to work in BIOS.


sudo service status message missing in ubuntu 15.04

Ubuntu 15.04 and above are using systemd, however still SysV init supported.

To start, stop, restart, status check:

systemctl <action> <prog>

Eg:

root@mylenovo:~# systemctl status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: active (running) since Sel 2015-11-10 20:45:33 MYT; 8min ago
     Docs: man:cupsd(8)
 Main PID: 710 (cupsd)
   CGroup: /system.slice/cups.service
           ├─710 /usr/sbin/cupsd -l
           ├─789 /usr/lib/cups/notifier/dbus dbus://
           ├─790 /usr/lib/cups/notifier/dbus dbus://
           ├─791 /usr/lib/cups/notifier/dbus dbus://
           ├─794 /usr/lib/cups/notifier/dbus dbus://
           └─796 /usr/lib/cups/notifier/dbus dbus://

Nov 10 20:45:33 mylenovo systemd[1]: Started CUPS Scheduler.


Recompile Linux Kernel of Ubuntu 18.04 with patch for Intel display drivers

Solution I got from the related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=105887

Install necessary packages for Kernel compilation and download Ubuntu Kernel patches:

sudo apt install git flex bison bc libssl-dev gawk libudev-dev ocl-icd-opencl-dev libpci-dev libelf-dev python2.7 libncurses-dev fakeroot kernel-wedge binfmt-support ksh lsscsi binfmt-support libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libsepol1-dev libattr1-dev libblkid-dev libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libselinux1-dev libsepol1-dev uuid-dev debugedit libarchive13 libdw1 liblua5.2-0 liblzo2-2 libnspr4 libnss3 librpm8 librpmbuild8 librpmio8 librpmsign8 rpm rpm-common rpm2cpio spl-dkms

git clone --depth 1 --single-branch --branch v4.17.2 git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack v4.17.2

cd v4.17.2
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0001-base-packaging.patch
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0002-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0003-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0004-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0005-debian-changelog.patch
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0006-configs-based-on-Ubuntu-4.17.0-3.4.patch

Download the patch from https://patchwork.freedesktop.org/patch/229363/ and rename in i915.patch. Apply all patches:

patch -p1 < 0001-base-packaging.patch
patch -p1 < 0002-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch
patch -p1 < 0003-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch
patch -p1 < 0004-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch
patch -p1 < 0005-debian-changelog.patch
patch -p1 < 0006-configs-based-on-Ubuntu-4.17.0-3.4.patch
patch -p1 < i915.patch

Make Kernel config from current Kernel config:

yes "" | make oldconfig

Disable ZFS if it's not required:

Set do_zfs = false in debian.master/rules.d/amd64.mk

Build Kernel:

make deb-pkg
# find the debian package files first
dpkg -i $KERNEL_DEB_FILES

The drivers seem to be part of kernel-HEADER packages, so it should be sufficient to install these.

After installing the Kernel Debian packages, update Grub:

sudo update-grub

Set the new Default Kernel in Grub settings and update grub again:

sudo vim /etc/default/grub

My HDMI problems are gone now.


Bluetooth does not have execute permissions, cannot start

Found the answer!

I went into terminal and did sudo nautilus, went into the 'usr/sbin' and changed the permissions of "bluetoothd" to allow executing and change the group from root to my group.

Hope this helps anyone else with similar problems!


The command section is documented at https://snapcraft.io/docs/build-snaps/metadata and essentially needs an entry for each executable your application contains.


Can't boot Windows 7 after Ubuntu 14 install

What did you do during the installation?

Do you still have a windows partition on that disks? You can use the live cd/usb access gparted and check it out.


That depends. If you have two original Xbox 360 drives you can clone one to the other and everything should work just fine.

Using a regular 2,5" drive in an Xbox 360 does not work. Unless you have a drive that can be "hacked", e.g. you copy the "security sector" with a DOS tool onto the drive's firmware so that the Xbox 360 detects it as a legit drive.

No, this is not about modifying the Xbox firmware for warezing games (you're console might not get banned, but it's possible).
Yes you need a DOS boot disk/drive and a machine that boots legacy. Try to avoid FreeDOS if you're unsure, because I found other programs for modifying firmware that really rely on DOS boot disks the way Windows 9x creates them.

I have 2 "hacked" drives and backup one to the other using dd without issues. (Just dd'ing to the other drive didn't work.)

I'm not sure if linking to a certain site that provides the tool and sectors for different disk sizes (including a list of compatible disks) is legal. Search for terms like Xbox 360 hddhackr and stay away from typical download fraud. Using standard drives with the Xbox One seems to be easier.

Note: dd puts a lot of stress on a drive. If you have a failing drive, try to copy only the necessary data through the Xbox user interface onto USB storage first if that is possible.


Gnome Screenshot Copy Clipboard not working on Ubuntu 20.04

Please try with
CTRL + Shift + ImprPant
In my case, the solution is in configuration > key combinations > search the command and update the key combination.
Currently, I take a screenshot area with shift + imprPant and it is working for me!


IBus client for GNU Emacs: Installed, but how do I start it?

I had a good look at the situation again today (more that 2 months later)... as I've mentioned in the comment above (and repeated here)..

I managed to get it working (although it does has a minor(?) issue with Devanagari script, where it repeats the last character of a word when I press space after the word (temporary workaround: Left+Right+Space) .. I hope to eventually sort it out somehow).... The main problem seemed to be a mismatch between the way Emacs (ibus-el) expected to switch IBus on/off, and how IBus (native) expected it.

There may have been some other issue(s) involved in getting Emace ibus-el running, but the nett result is that it does work :)


Such a firewall does not exist on Linux. The netfilter/IPtables firewall system cannot filter applications.

Ubuntu users have been asking for the creation of a program that can filter applications and log internet connections. Currently, there is suggestions and discussion about possibly using AppArmor coupled with IPtables to fulfill this need. You are welcome to participate in the discussion and advocate for the creation of this kind of software. You can sign up and learn more about the discussion list here: https://lists.ubuntu.com/mailman/listinfo/Ubuntu-devel-discuss


User www-data in custom group does not give other user write access

There are different ways to go:

chmod 775
If I understood you correctly, the user www-data is part of the group john. So in this setting this user can also write to your directories.
chown www-data
You can also transfer the ownership of your directories to www-data. Now obviously www-data can write. However in this setting the user john can't write.
Use POSIX ACLs
ACL stands for access control list. Using this mechanism you can give additional users additional rights, i.e. write for www-data. See this answer for a description: How to make a directory with permanent permissions different from default


You can assign this command below to a custom shortcut, it will always try to open a new tab in an already open Firefox window, if possible:

firefox -new-tab about:newtab

See How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?) (especially this answer for a GUI method) if you don't know how to set custom shortcuts.


QtCreator how to install "Uncrustify" C++ Beautifer?

Well, turns out this is an issue for the C++ Beautifier plugin in general rather than "Uncrustify" in particular, and a Qt Creator version-too-old.

The files required are Beautifier.pluginspec and libBeautifier.so.

Although I was being directed to the "Beautifier" Help from the Qt Creator Version 3.0.1 which gets installed from the Ubuntu 14.04 LTS Software Centre, Beautifier support was only introduced at Qt Creator 3.1 --- though that is hard to discover from web searching.

So at Ubuntu 14.04 LTS, either Beautifier is simply not available by default, or you can go replace the shipped 3.0.1 Qt Creator with an Open Source 3.1+, or maybe just pick those 2 files out of a 3.1 distribution/installation and see if they work OK under 3.0.1.


Script works when using "run in terminal" not when using "run"

In your script make sure you set up all environment variable you need, and specifically make sure you set the PATH variable.


According to https://answers.launchpad.net/launchpad/+question/266806:

  Launchpad won't generate a signing key for your PPA until you've
  uploaded a source package to it. Many users create PPAs without ever
  uploading anything, so we avoid cluttering the keyservers until we
  know the key will actually be used.

Looking at the build details for your PPA at https://launchpad.net/~unixinfo/+archive/ubuntu/openshell/+builds?build_text=&build_state=all, I noticed that none of your builds succeeded.  Therefore, there is no signing key for your PPA because I suspect that you need at least 1 successful build.

P.S.: I am assuming that "uploading a source package" means successfully building your package. If this is wrong, please let me know. In any case, having no successful builds also makes the PPA fairly pointless :).


Here you go Ken Van Dine did it:
http://blogs.gnome.org/kenvandine/2010/01/12/xchat-indicator/


How to change key bindings for switching workspaces in gnome3?

Finally I've found a solution.

It appears, that you need to manually edit settings with the dconf-editor (dconf-tools package).

To edit workspace keyboard binding one should use dconf-tool and edit settings under path org -> gnome -> desktop -> wm -> keybindings.

The syntax for keybindings is the same as in other Gnome editions and the same as displayed in "System Settings->Keyboard->Shortcuts".


Steam installation fails under Ubuntu 16.04

This is a bug in the new software app. Try using the terminal to install your application with sudo dpkg -i new_app.deb. If you see messages about missing dependencies, than also enter the command sudo apt-get install -f


Selecting rows from csv for a particular day in bash script


Wi-Fi only works after waking MacBookPro7,1 from sleep

I had the same problem. Here's what I did to solve it:

Went to /usr/lib/pm-utils/sleep.d/ and looked for a script related to wireless or networking; there I found 60_spa_suplicant.
Copied that script into /usr/lib/pm-utils/power.d.
Modify this copied script (in power.d), removing the conditionals and keeping the instructions of what happens on wake-up. In my case, there was a CASE statement, so I removed all its lines except for "$WPACLI resume".

By the way, I'm running Xubuntu 18.04 on my mid-2010 Macbook Pro.