Nautilus connect to server in Ubuntu 14.04 fails to connect to iSeries V5R4

I've recently had this issue. You can fix it by using the smb.conf file from a freshly installed 13.10 machine and put it in place of the one on the 14.04 machine under /etc/samba/smb.conf.

Here's a link to the file you need on launchpad librarian

After you do this, it's also a good idea to connect to the share via IP address instead of by computer name.

Here's the entire script just in case:

#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
# A well-established practice is to name the original file
# "smb.conf.master" and create the "real" config file with
# testparm -s smb.conf.master >smb.conf
# This minimizes the size of the really used smb.conf file
# which, according to the Samba Team, impacts performance
# However, use this with caution if your smb.conf file contains nested
# "include" statements. See Debian bug #483187 for a case
# where using a master file is not a good idea.
#

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes

#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = user

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
#   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
#   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home director as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# The following parameter makes sure that only "username" can connect
#
# This might need tweaking when using external authentication schemes
;   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#   cdrom share is accesed. For this to work /etc/fstab must contain
#   an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#   is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom


How to show all files created on a specific date?

To show all files created on 16/05/2015:

sudo find / -type f -newermt 2015-05-16

Now to see attributes such as owner, modification date, permissions easily use ls -l command:

sudo find / -type f -newermt 2015-05-16 | xargs ls -l

Thanks to muru note: same result can be achieved with:

sudo find / -type f -newermt 2015-05-16 -ls

Read this for more information on what ls -l means.

UPDATE
To sort easily use -t option with ls (from newest to oldest)

sudo find / -type f -newermt 2015-05-16 | xargs ls -lt

If you want a reverse sort (from oldest to newest)

sudo find / -type f -newermt 2015-05-16 | xargs ls -ltr

And you can pipe it to tee to output in Terminal and in a log file too.


To my mind, the most powerful command-line ftp client is undoubtly lftp.

it allows one to use standard shell command over the ftp wire
It provides up/down queue for long operations


Desktop doesn't show up as an option when I try to change directories

If you are Italian the Desktop is called "Scrivania". Anyway if you open your terminal you have to type:
$ ls -al

The command ls means "list"
-a means show the hidden files and directories
-l it show also the permissions
In this way you can see all the file and directories in your home directory. The "dir" command come from Dos.


Small comment: I have the same problem on 4.5.0 kernel and XPS 9350. Still didn't find a solution. However, probably you don't need to reboot the whole system.

sudo service network-manager restart

should do the trick (as also proposed in the aforementioned question). It is although still annoying.


Listing files which will be installed by .deb

You can list the contents of a deb file by running

dpkg-deb --contents package.deb

dpkg-deb can show a whole lot of information about a deb package. You can see the other options by running dpkg-deb --help.

Unfortunately, you can't determine what files a Makefile will install. However, you can install to a temporary directory by setting the DESTDIR variable. Note that this works well mainly on Makefiles generated by autotools ie. the ./configure script. For example:

cd sourcecode-1.2
./configure --prefix=/usr           #Just the usual compiling stuff
make
mkdir /tmp/installedfiles           #Create a temporary directory for the files
make DESTDIR=/tmp/installedfiles install

That last make line will install the files in /tmp/installedfiles. You can then see the files that would be created, although those files and directories will all be relative to the prefix specified in the configure script. In other words, /tmp/installedfiles/bin/mainprogram would be installed as /usr/bin/mainprogram.

I hope I answered your question :)


How to parallelize dpkg for large dkms packages?

The environment variable CONCURRENCY_LEVEL (e.g. CONCURRENCY_LEVEL='16') is recognized. A lot of modules (e.g. zfs) take > 70 % of the time to configure and/or to clean previous builds so that the parallelization with CONCURRENCY_LEVEL appears minimal. configure can't be sped up in general.


Can't access hard disk partitions when Dual booting Windows 10 with Ubuntu

The instructions at this link helped me solve my problem.

https://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/


How do I remove the customized icon from only one (or maybe more) app

With some fiddling around, I just found out how to easily do it. No commands.

If you have this same problem, know that we don't really have a "PROBLEM", because just deleting everything with the specific app's name from the icon theme folder will work...

BUT you have to delete the "icon-theme.cache" file and logout (or change to another icon theme and back to the one you're customizing) to see the changes apply.

I know I just answered my own question, but if you are trying to do the same, there you go.


New version of gnome-initial-setup causes Java problems

There is a known bug with the openjdk atk wrapper, so it's not really a gnome problem. The openjdk bug says it was introduced in openjdk9, though a google search shows it as early as openjdk8. The bug has been closed, with a external classification, requiring the ATK to be re-engineered as a service.

The workarounds are either comment out the assistive technology line in the accessibility properties file, as you stated, or add the wrapper to the classpath

export CLASSPATH=/usr/share/java/java-atk-wrapper.jar

The openjdk bug reference is https://bugs.openjdk.java.net/browse/JDK-8204862


There are a few ways you could approach this, but you can add www-data to that group like so:

sudo usermod -a -G AndSpecialSFTPGroup www-data

As far as "Is it the right way to do this?" Like I said, there are many ways to accomplish this, but it's similar to asking me what's the best way to arrange your desk. In many facets of IT, development, and OS, there are choices left up to preference.

This is the way I prefer to handle permissions like this because if I screw something up, I can easily remove the user from the group again. You might like using chown to give all the files to www-data, or something else altogether.

My way is a right way to do this, which is why I most likely won't get flagged for being subjective, but there are other ways. (Like I mentioned chown, create another user, chmod to change the permissions overall, etc...)


Error while trying to dual boot Ubuntu alongside Windows 8

Case 1: Installing on HDD (/dev/sda).

What you have stated in your question is correct.

You can't have more than 4 primary partitions.

Since 4 primary partitions have already been alloted to Windows, you are unable create any Partition for Ubuntu. Ubuntu can be installed on Logical Partitions, so if you can free at least one of the Primary Partitions from Windows, you will have the ability to create multiple Logical Partitions on it, one of which can be alloted to Ubuntu.

From your description, I can see there are two Recovery partitions for Windows. I am not sure about how Partitions for Windows 8 work, but my best bet would be that one of those Recovery Partitions is redundant, one of which you should be able to remove.

But, before doing any changes to your Windows Partitions, I advise you to get to know the Partition Layout of Windows 8 and their respective uses, and then start.

Case 2: Installing on SSD (/dev/sdb)

If you don't want to mess around with your Windows 8 install, you can just select /dev/sdb in your install menu which should be your SSD.

So, you will now have Windows 8 on your HDD and Ubuntu on your SSD. But now, every time you boot, you will have to choose whether to boot from HDD or SSD.


Connecting hdd containing ubuntu to another pc

Such stunts are a bit risky, especially when you update the GRUB boot loader or update the EFI partition on the any of the computers (the old one or the new one), and you don't know what you are doing. This will not result in any data loss. But the drive will not be bootable on the new computer if the EFI entry is not added for this drive. And if the EFI partition for the old computer is present on this drive, then that computer will be unbootable.
However you will be able to access the data from this drive like a normal external hard disk, but natively only from another Linux based OS, but not impossible for Windows.
In the worst situation, this drive will be unbootable, but the data will not be lost unless you format it. There are softwares that will recover data from a formatted disk too.


I can not get 'motion' working... seems to ignore changes to .conf file

Well, for one thing, if there is a file called motion.conf in your current directory (when you run the motion commmand) or there is a ~/.motion/motion.conf file, then motion will use those in preference to /etc/motion/motion.conf

worth checking those other files do not exist?


Wifi signal strength jumping to full, speed to near 0

You have installed a wrong driver. Connect to the internet by wire and run

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer


How to reinstall UBUNTU from dell BIOS revision A10

If you've just received your laptop is there anything on it that you want to keep? It may be easier to start again and install the latest ubuntu (14.04) from scratch. You'll get an option to use the whole disk in the installer.


Is dh-make the standard way to build debian packages?

You can create Debian packages in several ways. dh- tools are helperscripts to aid you in creating the correct directory structure and files. dh-make is the most basic one, yet has a lot of heuristic and works well with software using the GNU autotools (the ./configure, make, make install ones). It will do a lot of work for you.

Then you can use debuild to create a source and binary package.

"Your way" is just building from binary files. This is unwanted, as you can't build for other distributions (releases) or architectures. Also, Debian/Ubuntu requires to have a source package in order to be included in the repositories (along a lot of other requirements and guidelines). See for more information the links @saji89 povided. I also suggest you to download packages and inspect how they're put together, using apt-get source packagename.

Update

You mentioned later in a comment you're packaging a Java application. The Debian wiki on Java packaging mentions this:

  Use of javahelper is not actually required, however implementing the
  required policy elements without javahelper is quite difficult, so it
  is assumed that you will be using javahelper.

So, I suggest to start reading about how to package using javahelper and DH, or the alternative to DH: CDBS.


Is there an app to remove tag write protection on audio files?

There are several alternatives for mp3tag but it seems to run well enough using Wine under Trusty Tahr so perhaps try this? I found that the Trusty repository Wine failed but a newer copy from this PPA worked absolutely perfectly with mp3tag:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.8 winetricks

Then download the newest mp3tag from the website and install by double clicking on the downloaded archive. Results on my system:


The issue with Firefox has been reported as a bug on Launchpad. You can view the bug report and find some potentially useful comments regarding this issue on this page

As for the over-active GPU issue, you'll want to install the AMD Catalyst driver, which does an infinitely better job managing power consumption on RadeonHD cards and includes a utility (Catalyst Control Center) to manage the switchable graphics and set GPU-specific power management settings. To install the driver, just follow the step-by-step directions on this page. Note that these directions are intended to be used to download Catalyst version 12.4 -- this version works well, but is now a couple of versions behind. If you want the latest version of the driver (12.8) instead, you can still follow these directions and simply replace all instances of "12.4", "12-4", etc. with "12.8", 12-8", etc.

If something goes wrong, or if for some reason you don't like the Catalyst driver and want to remove it and revert back to the default driver, follow the directions on this page (specifically answer #2, posted by bioShark).

Finally, when it comes to installing software, check out this page for a good overview of various methods and this video for a tutorial on using the Ubuntu Software Center.


How to fix “Error: unknown filesystem. grub rescue>“

You'd need a live disk running Ubuntu or any Linux variant.

After such, follow the commands here to mount the necessary drives and chroot into the directory.

For the CHROOT PROCESS

See this article

I've highlighted the commands you can use in the window below:

sudo mount -t ext4 /dev/sda6 /mnt/ubuntu

Confirm that sda6 is your current root partition.

sudo mount /dev/sda1 /mnt/ubuntu/boot

Check if this drive is your windows boot partition

Then follow up and mount the other required filesystems

sudo mount -t proc none /mnt/ubuntu/proc
sudo mount -o bind /dev /mnt/ubuntu/dev
sudo mount -o bind /sys /mnt/ubuntu/sys

Follow up to chroot here using this:

chroot /mnt/ubuntu /bin/bash

You should get into another window screen with a terminal window

COMMANDS TO FIX FILESYSTEM MAPPINGS

Run the following to fix your issue

sudo grub-install /dev/sda
sudo update-grub

That should fix your GRUB issues for you automatically with the default filesystems containing your various operating systems.


Shortcut for iotop in the Unity taskbar?

You can create a shortcut and start a terminal with a command foocommand like that:

gnome-terminal -x foocommand

If you e.g. want to run iotop use:

gnome-terminal -x iotop


Ubuntu 15.10 crashed on MSI GE 60 2PC (nouveau driver bug, 'GPU stuck')

Nouveau is actually crashing, it is unstable as hell. On msi GT70 I just managed to install nvidia-prime and bumblebee. I strongly recommend this as you have Optimus on your laptop.

To do so, try to boot in rescue mode on ethernet and follow these :

Bumblebee Intel+Nvidia on 15.10 blackscreen issue

I have manage to make this work https://www.kubuntuforums.net/showthread.php?69190-Bumblebee-Nvidia355&p=381043

1. install nvidia-355 and nvidia-prime

2. select intel driver in nvidia panel and logout

3. install bumblebee only (not bumblebee-nvidia)

4. edit as needed /etc/bumblebee/bumblebee.conf
line22 KernelDriver=nvidia
replace nvidia-current by nvidia-355

5. /etc/bumblebee/xorg.conf.nvidia
uncomment BusID "PCI:01:00:0"
as described here https://askubuntu.com/questions/29044...vices-detected,

6. you can now boot under intel card and use optirun and primusrun. It is working for me so far, test with primusrun glxinfo

Another option is just tu install nvidia-prime and nvidia-352, or if you want the last nvidia driver you can use sudo apt-add-repository ppa:graphics-drivers/ppa to get nvidia-355 from this ppa.


How can I change the screen resolution on Ubuntu 12.04?

My wife's profile was doing something very similar (resolution was smaller than it should be and I couldn't fixed it through system settings). I executed rm ~/.config/monitors.xml and logged and back in and it was fixed.

I haven't seen any negative effects, but if you decide to do this realize it might scramble something else. I don't know what else might use this file.


Virtualbox not seeing any usb devices in the usb filters settings

This may help you access the USB devices in your guest OS hosted in Ubuntu
First install dkms :

sudo apt-get install dkms

Next install Gnome-System-Tools

sudo apt-get install gnome-system-tools

Now launch the application - Users and Groups. If you're using unity you can do this by tapping the Super key and type user then click Users and Groups icon to start up the User Settings.
Click Manage Groups, find vboxusers, click properties, add your own user name and any other desired users to the vboxusers group. Click Ok.
Next you'll have to log out (sudo restart lightdm if you're using this DM) and back in. Now start VirtualBox and proceed with adding the USB devices.


Working setup

Install following packages.

sudo apt-get install xinetd tftpd tftp

Create /etc/xinetd.d/tftp and put this entry

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}

Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot

sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot

Restart the xinetd service.

sudo /etc/init.d/xinetd restart

My suggestion is to move to tftpd-hpa

sudo apt install tftpd-hpa

After instalation edit conf file

sudo vi /etc/default/tftpd-hpa

file must contain something like this

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -c"


KVM only supports VNC, not RDP.

The documentation you saw that mentions RDP is libvirt, which is a general purpose library which supports multiple types of virtual machine - including KVM, Xen, KXC, OpenVZ, VirtualBox, VMWare etc.

RDP is a mentioned in the documentation because some of the VMs do support it, but not all - eg VirtualBox uses RDP but KVM does not.


What are the pros and cons of each USB disk format?

I'll need to research this some more, but I'm going to guess that the following is not totally inacurrate:

Master Boot Record (MBR)- the most common, this is highly compatible, and can be used for making a Live USB, among other things. Most hard disks are formatted like this.
GUID Partition Table (GPT)- is used for very large (more than 2TB) hard drives. It is newer than MBR and the two are not compatible. This may not be the right choice for 1TB external hard drive. See http://en.wikipedia.org/wiki/GUID_Partition_Table.
Don't partition - the rough equivalent of rubbing a magnet on the side of a drive, but with a much lower risk of damaging the drive. Not recognized in Windows. Can't use NTFS.
Apple Partition Map (APM) - Is a legacy format introduced with the 680x0-based Macintosh II in 1987. The format was also used in PowerPC Macs.  Apple switched to GPT with Intel's Extensible Firmware Interface (EFI) in 2006 for Intel-based Macs. see Apple Technical Note TN2166 "The Road to GPT" section for more details.

If anybody knows about the GUID Partition Table, or knows what the purpose to the Apple Partition Table is, feel free to edit it in to my answer. ;)


Where to put configuration to turn off multicast snooping on bridges?

The answer is it's not true.  You can't put an essential configuration control in /etc/network/interfaces despite the comments in the /etc/network/if-pre-up.d/bridge.

Just do something ad-hoc.


Using just JavaScript:

OnClicked {
    checkbox.checked = !checkbox.checked
}


I believe one needs to send the drive a SCSI START STOP UNIT command to shut it down. You may have some success using the sg_start command, e.g.

sg_start --stop /dev/sdc


I can't open a program in WINE, it says that "the archive is corrupted" what do I do?

The problem you are probably having is that Ubuntu is trying to open the exe with the Archive Manager instead of with Wine. To fix this, just find the file in the file manager, right click on it, go to "Properties", click on the "Open with" tab, click on "Wine Windows Program Loader" and click on "Set as default". The exe files should now open with Wine when you double click on it.


Ubuntu 18.04 Bluetooth and Wireless soft-blocked after restarts

Since there were a lot of other problems with GNOME apart from this one (e.g., suspend wasn't working, icons didn't appear), I use again UNITY instead of GNOME. It is easy - during login, you can choose. There is a little cog wheel next to "Sign-In" that allows you to select "Unity", "Ubuntu (Gnome)", "Ubuntu on Wayland", or "Plasma (KDE)".
Update
After updating to 20.04, I had problems with Unity (the taskbar was not working properly, the search function did not retrieve any files/programs), so I gave Gnome a second chance. Et voila, this time, everything worked out-of-the-box.


How to boot Ubuntu after installing Windows using BootCamp

You might want to try out this software EasyBCD on windows. Its a recommendation only but it helped me when I faced the same situation as yours.
After that you might want to run boot - repair when you get to boot in Ubuntu and then remove EasyBCD.
Here are the detailed instructions:

Download EasyBCD from here

Install EasyBCD in your Windows Partition.

Now, run EasyBCD as an administrator.

Next, click on "Add New Entry".

Next, Click on 'Linux/BSD" under "Operating Systems" then select "GRUB 2" under "Type:", type a name according to your choice and click "Add Entry".

Now, click on "Edit Boot Menu".

Now, according to your OS priority select your OS and press the up button and set it "Default - Yes" by ticking in the appropriate box.

And finally "Save Settings" and reboot. You will get the menu for your linux and on pressing enter you will get the GRUB menu to your linux OS.


How can I fix the dull colors I am getting in Ubuntu 19.04 Terminal?

GNOME Terminal 3.32 (debuted in Ubuntu 19.04) changed the default of the "Show bold text in bright colors" option to disabled. As another answer nicely shows you, one possible fix is to revert that setting.

However, this change was intentional and is going to stay the default. There's a legacy confusion about the meaning of the 1 (or 01) in the escape sequence you showed. The standard (ECMA-48 § 8.3.117) says "bold or increased intensity", so it's not clearly defined, and both the old (bold and bright) and the new (bold only) behaviors are conformant. There exist now other means of picking any of 16 million colors, yet no unambiguous option for "bold". Our aim is to separate these two, and make 1 stand for "bold" only.

\e[01;32m in your prompt used to switch to green text (32) and make it both brighter and bolder (01). On the other hand, this approach doesn't allow you to combine the darker shade with bold typeface. With gnome-terminal's new behavior this limitation isn't there anymore.

Numbers 90–97 can be used for the bright colors as foreground ones, and 100–107 as background ones. These switch to the brighter counterpart without making them bold.

So here's my recommendation that points towards the future, with the clear separation of these two orthogonal properties.

Leave the checkbox at its new default state, disabled. Decide what colors and attributes you want to have in your prompt, and modify it accordingly. If you want to have a bright color, replace 32 with 92, 34 with 94 etc. With the new behavior, this influences the brightness but not the boldness. Independently from this, if you want a bold typeface, keep the 01, if not, remove it. With the new behavior, this influences the boldness but not the brightness.


You can't start a GUI app on boot because it needs to be attached to a graphical session, the graphical session is only setup after you login.
You could set it up to start when you login:

System -> Preferences -> Start applications

Add whatever command is required to start it, if it needs admin privilegs you may need to change your /etc/sudoers configuration so that you can start the app with admin privileges without asking for the password.

Update1:
You can check how to edit the sudoers configuration at:
https://help.ubuntu.com/community/Sudoers
There is an example there on how to allow to use the shutdown command without a password.


There's something wrong with the files in your usb, namely, the 'boot' file.
Reformatting your usb and creating it again should fix it.

If it doesn't, try using some other boot disk creator like Rufus or UNetbootin.

http://rufus.akeo.ie/

http://unetbootin.sourceforge.net/


These commands should fix it, thanks to The Intelligent Human,(Steam doesn't start. LibGL error) and kisak-valve (https://github.com/ValveSoftware/steam-for-linux/issues/5249)

rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
LD_PRELOAD='/usr/$LIB/libstdc++.so.6' LIBGL_DRI3_DISABLE=1 steam

Finally, run the command steam and it should launch and begin updating.


We see several defects in your system from your supplied paste. Let's fix them and see if there is any improvement.

You've made changes to the file /etc/network/interfaces that are incorrect and, indeed, harmful. Please correct them:

sudo nano /etc/network/interfaces

Correct the file to read:

auto lo
iface lo inet loopback

Save (Ctrl+o) and exit (Ctrl+x) the text editor.

Next, there is no Ubuntu module named '8265':

sudo rm /etc/modprobe.d/8265.conf
sudo rm /etc/pm/sleep.d/config

Next, you haven't any rtl8723be device:

sudo rm /etc/modprobe.d/rtl8723be.conf

Next, ant_sel is not an available parameter for asus_nb_wmi:

sudo rm /etc/modprobe.d/asus_nb_wmi.conf

Next, you have overwritten the needed wording in iwlwifi.conf. Please amend the file:

sudo nano /etc/modprobe.d/iwlwifi.conf

Change it to read:

# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system.  When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

Save and close as above. I have omitted the parameters you added, namely 11n_disable=1 and disable_msix=1, as I doubt highly that they are useful here.

For the same reason, please do:

sudo rm /etc/modprobe.d/iwlwifi-opt.conf

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Since you are having trouble with just your own access point and none others, we suspect the settings in the router. Here are some tips that I suggest you implement in your router.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I recommend a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Reboot the computer and tell us if there is any improvement.


Xorg on Ubuntu 18.04 LTS crashes frequently when playing videos

I'm not sure if it's the best fix but hope it helps someone.

The crashes stopped coming after I made these 2 changes:

uninstall easystroke
change /usr/share/X11/xorg.conf.d/20-intel.conf to

Section "Device"
  Identifier  "Intel Graphics"
  Driver "Intel"
  Option "AccelMethod" "sna"
EndSection


Ubuntu 13.10 does not detect the touchpad on Samsung Ativ 8

I use an Samsung ATIV 8 (Samsung ATIV Book 8 870Z5E X04) and with ubuntu 14.04 LTE x64 Desktop my touchpad works even nicer than in Windos 7. Gestures are amazingly fluent and reliable like paning around a page up/down/diagonal with one ore two fingers.

You might want to try it with the newer ubuntu version.


Ubuntu 14.04 LTS and AR9485 Wireless Network Adapter

Mixed mode is a bad plan. Many devices do not like the idea. You may get away with it with Windows 7 because "you can configure a profile using various methods (wpa-aes, wpa-tkip)" but "many devices don't like when you have both WPA-TKIP and WPA2-AES configured in a WLAN"

Source: Scott Fella on this page. Since it appears he's a Cisco Tech and Cisco purchased Linksys a while back I know I believe him.


How to install PHP-FPM on Clean Install of Ubuntu 18.04 Server

It appears that it is not enabled by default on the server edition at least. Not surprised. Just not used to that since I have been running the desktop version for years.

sudo add-apt-repository universe


New user having installed ubuntu 18+, but fan is going crazy

The scan is unable to run properly and you are receiving the error "Operation not permitted".  This is most likely caused by secure boot being enabled.  Ubuntu 16.04 - how can I disable Secure Boot?


Just login into ubuntu and run a tool like gparted where you can delete Windows's partition.
After that you've to edit /boot/grub/grub.cfg and delete windows's entry
Just like [this tutoria][1] say

[1]: https://help.ubuntu.com/community/HowToRemoveWindows#Further Operations


The answer was provided from a link mentioned by the OP in a comment. The following is an excerpt from it:

  Turns out that I needed to edit the /etc/group file and add videouser
  user to the audio user group of users who are allowed to have audio
  while the root login is in session.  The line should like like this:

# cat /etc/group|egrep -i "audio|pulse"
audio:x:63:videouser,root
pulse:x:474:videouser,root
pulse-access:x:473:videouser,root

  after editing from:

# cat /etc/group|egrep -i "audio|pulse"
audio:x:63:
pulse:x:474:
pulse-access:x:473:

  and sure enough, there was sound.  However, the pulseaudio still
  showed the error.  Appears a reboot is in order.


That web address (127.0.0.1) is for the CUPS printer control panel on your own computer, it is not a real website.

You shouldn't need to do that in Ubuntu. You should be able to set it up from the system settings GUI, by just entering the printer's IP address when asked.

More details, including screenshots:

How to connect to a WLAN printer?


Why debuild warns about "ignoring deletion of file"?

This is intentional behaviour: packaging is not supposed to modify the contents of the upstream distributed tarball except in a scripted manner.

If you must remove the file for licensing reasons, you will need to modify the orig.tar.gz directly, and then use this as the basis for your packaging.  In this case, it is common to rename the upstream tarball from e.g. "program-1.2.3.tgz" to "program-1.2.3+ds.orig.tar.gz", with the "ds" indicating that the original source is modified for packaging.

If you are not required to remove the file, but prefer to have it removed such that the build completes successfully, it is recommended to remove it in the clean: rule in debian/rules.  If using debhelper, this is most easily achieved using dh_clean by adding the relative path of the file to debian/clean.  The dh_clean(1) manpage has more information about this tool.


custom-symbolic icons for places in nautilus

Probably not, as it results in this error:

 Error setting attribute: Setting attribute standard::symbolic-icon not supported

You can list the writeable attributes of a folder/file (e.g. $HOME, the users's home directory) by running:

 gvfs-info -w $HOME

for this I get:

Settable attributes:
 standard::symlink-target (bytestring)
 time::access (uint64, Keep with file when moved)
 time::access-usec (uint32, Keep with file when moved)
 time::modified (uint64, Copy with file, Keep with file when moved)
 time::modified-usec (uint32, Copy with file, Keep with file when moved)
 unix::gid (uint32, Keep with file when moved)
 unix::mode (uint32, Copy with file, Keep with file when moved)
 unix::uid (uint32, Keep with file when moved)
Writable attribute namespaces:
 metadata (string, Copy with file, Keep with file when moved)
 xattr (string, Copy with file, Keep with file when moved)
 xattr-sys (string, Keep with file when moved)

For the standard folder icon, this is set by metadata::custom-icon (or whatever), which comes under the metadata name-space. Any other attributes that aren't listed are not writeable - including standard::symbolic-icon. N.B. creating metadata::symbolic-icon or similar and restarting nautilus seems to have no effect either

Sources/More info

man gvfs-info
GFileAttribute may be helpful - linked from man page


The Samsung NP910S5J notebook is a one of the laptops in the Samsung Series 9. According to the official Ubuntu Samsung Series 9 documentation:

  All essential features of Samsung Series 9 laptops work out of the box on Ubuntu 14.04.


Why is my dualboot system asking for "grub"?

Don't know if this is going to help, but that screen shows up whenever my bootloader is broken for whatever reason
Don't know how to fix it though, I restore from a system backup


Error in Ubuntu SDK while writing an app for 14.10

I usually see that error as well. However it is just a warning and if you have the kits configured as explained at developer.ubuntu.com then your app should run on the Nexus 4 without any issue.


Why does Chrome not stay as the default browser in Xubuntu 13.04?

The underlying problem is reported here:

https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/902661

Chrome and Chromium do not play nicely in the xfce4 environment, and will corrupt the xfce4 settings for web browser in Preferred Applications. Simply tell Chrom{e,ium} not to ask you any more, then set the default settings through Settings Manager > Preferred Applications.


Lenovo Y500 Dual Booting Ubuntu and Windows 8: Stuck on Purple Screen

[SOLUTION - Dual Boot Windows + Ubuntu]

I got my ubuntu working, but there are some things wrong with it.
First, because it's a Lenovo Y500, not all the drivers need will be
   automatically download or even be available so some things won't
   work (i.e. ethernet port, brightness adjust, unity?, etc).
Second, hibernate works half the time, still don't understand what
   causes it to work/fail.  Suspend does not work for me at all
   (suspend works, but can't wake up correctly)
So if you are considering using Ubuntu, I would recommend against
choosing the Lenovo Y500, at least for now.
Now the solution (starting from Windows only):

Go to BIOS upon startup F2
Go to the Security menu and turn off Secure Boot
Go to the Boot menu and change boot mode to Legacy AND choose to
boot UEFI first
Save changes and restart
After restart, select to boot (F12) into the Ubuntu system via USB
or CD.
Select Try Ubuntu (both times).
Then install Ubuntu normally with the install program, but DON'T
restart.
After the installation, do Boot Repair:
https://help.ubuntu.com/community/Boot-Repair and select the
recommended option.
After boot repair is finished you can restart and you should be able
to get into Ubuntu and/or Windows

The KEY, I found after trying for two days, is to set Boot Mode to Legacy, BUT boot UEFI first and Legacy Second.

Hope this saved you guys from hours of pain.


Is there a tool that can automatically power off monitor on inactivity?

I think that you can use XScreenSaver.

After you install it, make the following selections:

See more details about how to install and configure in my answer here.


systemd ExecStopPost not running if ExecStartPre fails?

It appears that oneshot services don't call ExecStopPost on failure. This link discusses it https://bugzilla.redhat.com/show_bug.cgi?id=1353039.

The relevant post being

  ExecStopPost is executed only when unit transitions from running state
  (even when unit is killed) or when Main PID exits successfully while
  in activating state and service is not of forking type.

  Difference is that in case of oneshot service while configured
  ExecStart actions are executing, service is still in activating state
  and not running. However in case of simple service, systemd
  immediately transitions service to running state, systemctl doesn't
  block and exit 0 is returned even when ExecStart fails (i.e.
  ExecStart=/bin/false). Thus oneshot service must exit cleanly in order
  for ExecStopPost to be called. AFAICT, option RemainAfterExit doesn't
  have an impact on ExecStopPost.

The solution ended up being adding an OnFailure to invoke the necessary items which would have been called in ExecStopPost


Append line numbers at end of each line in the file

The awk program stores the current line in variable $0 and the record number ("line number") in NR. This command will print the lines with a line number appended:

awk '{ print $0, NR }' yourfile.txt

For prepending line numbers, there also exist the nl command ("number lines of files"):

nl yourfile.txt


How to set and limit my resolution to 640x480

To set your resolution to 640x480. Open a terminal and write:

   xrandr -s 640x480


Extracting part of a specific column in text file

Using sed:

sed 's/.*:\(.\{4\}\).*/\1/' in > out

s: asserts to perform a substitution
/: stops the command / starts the pattern
.*:: matches any number of any character until the last : character and a : character
\(.\{4\}\): matches and groups 4 occurences of any character
.*: matches any number of any character
/: stops the pattern / starts the replacement string
\1: backreference replaced with the first captured group
/: stops the replacement string / starts the pattern flags

Sample output on the example file:

% cat in
ffmj0010.09o:FFMJ MARKER NAME
ffmj0020.09o:BRMU MARKER NAME
% sed 's/.*:\(.\{4\}\).*/\1/' in > out
% cat out
FFMJ
BRMU


How to run gsettings for another user Ubuntu 18.04.2 LTS

The issue here is related to Why should users never use normal sudo to start graphical applications? i.e. that by default, sudo does not change $HOME to that of the target user.

You can change that using the -H (--set-home) option:

 -H, --set-home
             Request that the security policy set the HOME environment
             variable to the home directory specified by the target user's
             password database entry.  Depending on the policy, this may
             be the default behavior.

So

sudo -Hu someuser dbus-launch gsettings set org.gnome.desktop.screensaver lock-enabled false


After installing Oracle Java 8 how can you update?

You probably installed Oracle Java from WebUpd8 PPA.

They did not update java to the latest release yet. You can do it manually.

Download JDK from Oracle Site. You will need Linux x86 tar.gz file for 32-bit Ubuntu or x64 tar.gz file for 64-bit.
Copy this file to /var/cache/oracle-jdk8-installer.
Extract contents of the tar.gz archive to /usr/lib/java-8-oracle directory.

This is enough if you previously had Java installed from that repository.

I hope they will update it soon.


What is your host series? Precise? Trusty? It's likely that the default series does not match so it's trying to deploy the incorrect charm type.

Try: juju deploy --to 0 cs:precise/juju-gui if it's precise or "cs:trusty/juju-gui" if it's trusty.


Getting scanning function for Canon imageClass (MF220 Series) printer to work

I have a canon imageclass 227dw. Driver 350. Connected to my WIFI.  Like you, the printing works but not the scanner.
After trying many scanning programs, different solutions and even ubuntu distros, etc. I simply couldn't make it work. I kept getting the error message scanner not found or unable to make the connection.

Here is my "fix", which is just plain luck but works for me.

I bought a Brother dcp-1617nw because I do need a scanner, so I downloaded ALL the drivers from brother page, even the .386

then I run this in a terminal window:

sudo apt-get install libusb-0.1-4

after that, I installed each one of the .deb files just by double-clicking. I then tried to test the Brother scanner in a simple scan and... Voila! the canon scanner now works! ...now I have 2 scanners working.. lol

Why? How? I have no idea, but it worked for me.  Something that the Brother drivers install makes the canon scanner work.

After this, I did the exact same thing for all my other computers and it works flawlessly in each one of them.

BTW, for me, the ONLY way I can make the canon printer work is by going to localhost: 631 (cups)(works in firefox, not in chrome), deleting the preset canon printer and adding the first canon printer on the list.
****Also, for me*** the only way my canon printer can work, is by installing the drivers in a terminal by typing:  sudo ./install.sh  and then follow the instructions, when asked to register the printer I say No, then use the cups interface I told you before.

I hope this weird solution works for you too!


Why are memory statistics in top and htop different?

If you subtract the buffers and the cache usage from the memory used shown by top, you get 15544012 - 3668284 - 92876 = 11782852 = ~ 11506.7*1024, which lines up with the value htop shows.


How to get openconnect to unmount a partition when VPN closes?

I confirmed that a script in /etc/network/if-down.d/ does not appear to get called at all when disconnecting from an openconnect vpn.
However /etc/network/if-post-down.d/ does get called so you can put your script there.  Make sure the permissions on your script are 755.


Service not avaliable Unity3d error in Kubuntu

I tried the same command with this other path:

/lib/x86_64-linux-gnu/libresolv.so.2

And now it works. Hope it will be useful for someone!

(I still don't know why I have this lib repeated so much, I suppose they are different compilations, for 32, 64 bits, aren't they?)


Neither can I boot from a live version of Ubuntu with a USB stick saying there is no bootable device even by disabling all other disks but the USB stick.

This is a serious problem as not only your hard drive might be damaged, but also your motherboard. Disabling all drives but the USB should definitely get you to boot on the live USB if nothing else. If Ubuntu then did not find the hard drive, it could be broken, but as of right now there might be something seriously wrong with your motherboard because it wont even boot from USB.

Try another USB port and another USB drive for good measure, and make sure you're really asking the computer manually boot from the USB drive (usually called "boot device selection" on one of the F-buttons on boot). If this does not work, your computer is likely broken. Look into repairing it or buying a new one.


Unable to mount drive with NTFS partitions anymore

Ubuntu is capable of reading and writing files stored on Windows formatted partitions. These partitions are normally formatted with NTFS, but are sometimes formatted with FAT32. You will also see FAT16 on other devices.

You must do a manual configuration to be able to mount your NTFS partititons :
here is the link for solution : https://help.ubuntu.com/community/MountingWindowsPartitions


Preseeding Dual boot dual hard drives Ubuntu 18.04.1 LTS

Ok I got round this myself so I'll post what I did in case anyone else needs it.
In the preseed I was able to use a partman early command that queries the attached disks for their total size and then uses awk to extract the name of the drive:

d-i partman/early_command string debconf-set partman-auto/disk /dev/"$(lsblk -lnb | awk '$4==256060514304' | awk '{print $1}')"


Xubuntu 20:04 (focal): IPKernelApp|Error|No such comm target registered|jupyter.widget.version

I found a workaround and so am answering my own question...

I suspect the problem was that conflicting versions of jupyter-core were installed but I cannot prove this assertion, even when I asked the same question on Launchpad.

My solution was to uninstall all the pip3 and apt components and to delete my local configuration files. Next I installed MiniConda and created appropriate environments for my purposes using Conda. Now everything works perfectly.

(BTW: When using Conda, I recomment using separate environments for each project. If something goes wrong, it is easy to delete and start again and there seems to be less chance of conflicting binary files.)

Marv


Dell XPS 13 9360 Dualboot Windows 10 and Ubuntu 16.04

DUALBOOT Windows & Ubuntu on Dell XPS 13 9360

Big thanks to @oldfred for help!

Short answer: Dell XPS 13 2016 (intel i5 9360, KabyLake) has SATA operation in RAID mode, which doesn't work for Ubuntu. You need to change it to AHCI. Also disable secureboot so you can see usb and install it. You may need to add usb in boot sequence as option. In Windows you need to disable fastboot so Ubuntu can recognize partitions correctly.

This is for future reference for me and all of you Dell XPS 13 9360 owners. I'm using BIOS version 1.2.3. Ubuntu 16.04. Windows 10. Dell XPS 13 9360 manufacture date: 11/2016. It may or may not work on your setup.

Long answer/steps to take you through it:

Setting up Windows and bios:

If you have installed Windows already and maybe you should. Do a
recovery USB-stick.(minimum 16Gb USB-stick, I used 32GB stick).
Update BIOS, if link doesn't work, Google: "Dell XPS 13 9360 drivers"

Setting up live-ubuntu USB

Download Rufus and Ubuntu.
Use Rufus to add Ubuntu in the USB (min 6-8GB?) (another USB than the one with recovery): choose UEFI option.

Installing Windows in AHCI mode

Restart, open bios(F2) when DELL logo comes up.
Change secure boot disabled: BIOS->Settings->Secure Boot->Disabled.
Change Sata Operation to AHCI: BIOS->Settinsg->System Configuration->SATA Operation->AHCI.
Click "Apply"-button at bottom right in bios.
If Windows loads you're golden, if not select: more options, and somewhere in there is "restore with default settings" or something in those lines.

You may try to install Windows with your recovery USB too. (you may need to add the usb to boot sequence in BIOS)

Now if your Windows starts up, you need to do one more thing so Ubuntu can recognize partitions correctly.

Disable fastboot in Windows: Power Options->Choose what the power buttons do->Change settings that are currently unavailable->uncheck "Turn on fast startup"

Installing Ubuntu

You may need to add USB to boot-sequence if it doesn't load when you restart with ubuntu-USB on laptop: go to BIOS(F2 on dell logo)->Settings->Boot Sequence->"Add Boot Option"-button, add name and choose option with usb in File System List, not the one with "Pci"-in the name.. click "OK".
Select in Boot Sequence your usb and move it all the way up with the arrow buttons, so it boots first.
Then, in BIOS, click "Apply" and "Exit". This will restart your laptop.
Now you should boot up in grub like environment, select "try ubuntu".
Open Gparted, resize biggest partition so we can fit Ubuntu. Make at least 20GB for Ubuntu. I did 50GB.
Run the Ubuntu Installer. Do your configurations, select all update options. Choose the option with "along side Windows".

Now you should have Windows and Ubuntu on your laptop!

You can go to BIOS settings and set the option "Ubuntu" in boot
sequence first so you start up in grub.

UPDATE:

I've updated to BIOS 1.3.7 few days ago. Seems to work fine.
If you have problems with trackpad palm recognition in Ubuntu, update your Ubuntu or try this: https://medium.com/@patrickmmartin/dell-xps-13-9360-journey-to-linux-trackpad-fix-a2d9b551d291
If you still are in Safe mode in Windows, try this: http://www.pcworld.com/article/3085034/windows/how-to-get-out-of-windows-safe-mode.html

UPDATE 2:

I've updated to BIOS 2.3.1 and everything seems to work fine. Though same problems exists that I've found before:

touch-pad gets uncontrollable after a long time of use in Ubuntu.
Windows shuts down itself unexpectedly sometimes for unknown reason, going blue-screen.
Windows shutting itself down after no use, gets error shutting down.
usb 2.0 devices don't work correctly, like external-SSD and such. Though I got Logitech's Unifying USB receiver working after installing their software. Unifying receiver works fine in Ubuntu.

I think errors in Windows might be due to incompatibility with grub-launcher or dual-boot itself. As of now, if you want trustworthy experience in Windows side, I don't recommend dual-boot.

EDIT:

Dell released a guide to make a dualboot for Windows and Linux on Dec. 2017, that might be very helpful:
http://www.dell.com/support/article/nz/en/nzdhs1/sln301754/how-to-install-ubuntu-and-windows-8-or-10-as-a-dual-boot-on-your-dell-pc


Can you tell SCP to cancel [as opposed to renaming] if file is present?

No. It is not possible. SCP is simple tool and automatically overwrites files in destination. You will probably need to put together some rsync command to achieve that.


ImportError: No module named six in Ubuntu 20.04 LTS

In Ubuntu 20.04, python2 support is removed https://wiki.ubuntu.com/FocalFossa/ReleaseNotes

Therefore, now you can not install "python-pip" using "apt" and you are getting the error E: Unable to locate package python-pip

However, I think you can use miniconda to install a specific version of python, then you should be able to use pip in its virtual environment.


Upgrade 11.10 to 12.04, no applications in launcher, no shutdown menu

The answer got from here

  None of these fixes worked for me. But after more searching:

rm ~/.cache/software-center -R

  worked like a charm. I did need to run:

unity --reset &

  afterwards though, for the changes to take effect within dash, but the
  software center just started working straightaway.

The disadvantage: you need to reset your unity-related shortcuts

Some users found that it was not necessary to reset unity with its associated loss in shortcuts. A restart of X was sufficient.


How to force installation of kernel updates when using apt-get upgrade?

you're looking for

sudo apt-get dist-upgrade


Logitech MX Master is lagging in Ubuntu, but not in OS X or Windows

I had this issue of a glitching mouse during usage. The mouse was connected via the Unify-dongle and it had connections problems leading to occasional reconnections when the dongle was placed near another used USB3 port. I stumbled over this post which explained that there was an issue with leaking USB3 frequencies interfering with the unify-dongle. My solution was simply to move the dongle further away from those leaking usb ports. Hope that helps.


Cant find 7Zip after installation Mythbuntu

I found that I had to also install xarchiver:

sudo apt-get install p7zip xarchiver

Then run xarchiver (should be in the Accessories menu) and 7zip will be a format available.


Ubuntu 16.04 has experienced an internal error

Those are error-reports send to the developers of Ubuntu. Just wait until there comes an update. Run

sudo apt update
sudo apt upgrade

To check for and install updates.


This is working in gnome-terminal + vim on Ubuntu 14.04:

Firstly, set the bash setting as the end of ~/.bashrc file like this:

if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then
    export TERM=xterm-256color
fi

Next, set the vim setting at the end of ~/.vimrc file like this:

if $COLORTERM == 'gnome-terminal'
  set t_Co=256
endif

You will need to load a new terminal to see these have an effect. You may run the python script to test is the bash setting has taken effect and then testing vim's support, which I believe was the core issue above:

Install a 256 color vim theme by downloading the script and saving it to ~/.vim/colors/inkpot.vim and enable it with this command:

:colo inkpot

You should see a theme which when tested locally does not change when gnome-terminal's colours are changed. You can make these themes permanent by adding the command to your .vimrc file.

More information about vim colours can be found on their website.


Alt-Tab works only for the current active application on 14.04 gnome+metacity

Answering to myself, I finally managed to change the shortcuts using the dconf-editor, the shortcuts are stored in the key folder: org.gnome.desktop.wm.keybindings.


hardinfo network interface bit rate vs speedtest-cli : how calculated, why the difference

On my system, hardinfo reports the speed at 866.7 Mb/s. This is the same as reported in the terminal command iwconfig:

wlp3s0    IEEE 802.11  ESSID:"GBR5"
          Mode:Managed  Frequency:5.745 GHz  Access Point: xx:2B:B0:DC:45:xx
          Bit Rate=866.7 Mb/s   Tx-Power=22 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=60/70  Signal level=-50 dBm
          <snip>

This tells me that I am connected to my wireless router that supports 802.11ac speeds. That means that, in a laboratory setting with no radio frequency interference, no bluetooth, no lighting dimmers, no microwaves and, probably a mu-metal shield over the room, with my computer sitting right next to the router, it is theoretically possible to achieve 866.7 Mb/s speeds.

However, we all live in the real world. There is a lot of radio frequency interference in the real world, including other wireless access points, some of which are on the same frequency as ours. Here is what my wireless card sees right now:

IN-USE  SSID   MODE   CHAN  RATE        SIGNAL  BARS  SECURITY
        GBR1   Infra  1     195 Mbit/s  74      ▂▄▆_  WPA2
*       GBR5   Infra  149   405 Mbit/s  69      ▂▄▆_  WPA2
        MC1    Infra  11    130 Mbit/s  57      ▂▄▆_  WPA2
        nx2.4  Infra  11    195 Mbit/s  47      ▂▄__  WPA1 WPA2
        MC5    Infra  153   195 Mbit/s  35      ▂▄__  WPA2

Because we don't sit right next to the router, speeds go down as we get farther from the router. As you see above, I am actually sending and receiving to GBR5 at a maximum of 405 Mb/s.

So far, we have only learned about the connection from the computer to the router. We are also interested in the connection from the router to the internet service provider (ISP), to the internet and return. The command-line tool speedtest-cli is one of many ways to test this. It selects a nearby server, typically provided by your ISP, downloads a package and uploads a package and measures the time elapsed and reports it.

This will be influenced by the TCP/IP overhead, typically 4-5%, whether the internet connection is shared or dedicated (https://www.telappliant.com/blog/difference-shared-and-dedicated-internet/) and, if shared, how many of your neighbors are on line at the time.

In short, hardinfo tells us what is theoretically possible and speedtest-cli tell us what has actually been achieved in the real world.


Can I build on a shelf to store working copies of multiple websites

Is this possible without being a Ubuntu Guru?

Yes. Ubuntu in this is just the OS hosting the tools you need. The initial setup for apache and your network might be a bit difficult the 1st time. But nothing a bit of googling or searching on AU can not fix.

You need (and probably know this but just in case) ...

Apache config to host the websites. A setup with virtual hosts. It is probably a copy of the virtual hosts of the live system. Pretty basic if you are already into Apache.
something (like ssh/scp/rcp) to copy software over. We tend to use rcp to remote copy software between systems.
Probably MySQL for the data. You can use the my.cnf from the live system to set up your test system. Replication is a nifty feature: if you replicate your live data to your test system (live as master, test as slave) you can test your system on a copy of the live data. Example as we use it: live is master, slave #1 is used to do the heavy sql queries on and slave #2 is a backup in case the master is unreachable. And from slave #2 we also create the daily backup (so the active live system is not burdened with it).

Besides that you can also use workbench to copy over complete databases from live to your test system. This is nothing fancy.


This is possible by editing the metacity file of the theme you're using. Open up terminal and type

sudo gedit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml

Where gedit is your favorite text editor and Ambiance is your theme.

Near the top of the file, under general window layout, you'll see something like this:

  <distance name="left_width" value="1"/>
  <distance name="right_width" value="1"/>
  <distance name="bottom_height" value="1"/>

Those numbers indicate the thickness of the borders around windows. In order to get rid of the borders, change the three numbers to 0.


How can I batch compress and decompress Monkey's Audio In Ubuntu?

No, mac does one file at a time, so you have to work around it.

Assuming the files you want to encode/decode are in specific folders, or sub-folders, and not arbitrary paths, you can do it with a combination of find, sed and xargs.

For example, to encode all WAV files in a specific folder and all its subfolders, with the output files simply having the APE extension, using the fast -c1000 preset, you would type:

find ~/path/to/folder -name *.wav | sed 's/....$//g' \
   | xargs -I MACFILE mac "MACFILE.wav" "MACFILE.ape" -c1000

Explanation:

find finds all files with the wav extension in and under the given path, and outputs them.

You can use `pwd` (with the backticks) as shorthand for the current folder.
Add the argument -maxdepth 0 to stick to the current folder only and not go into subfolders.

The sed expression deletes (i.e. replaces with "blank") the last four characters of each filename returned by find, which is the extension .wav or .ape
xargs feeds each filename piped in to the mac command.

The -I MACFILE tells xargs to replace each occurrence of MACFILE with the input (filename); this way we get files with proper extensions and not .wav.ape, etc.

To decode within the current folder only, and output to a custom folder, for example:

find `pwd` -name *.ape -maxdepth 0 | sed 's/....$//g' \
   | xargs -I MACFILE mac "MACFILE.ape" "/home/ryan/decodes/MACFILE.wav" -d

  Note: find is one of those utilities that are almost limitless (see man find). With the right -exec and -printf options (and maybe more), find may alone be sufficient without needing the sed and xargs, and I'm sure someone will point that out :) . But I find this easier to explain and understand.


In Ubuntu 18.04 and 18.10, you will need to use the Terminal to fix this...

Open the Terminal

Enter the following command and press the Enter key.
gsettings reset org.gnome.nautilus.window-state start-with-sidebar

If this does not work, use the following command and press the Enter key.
gsettings set org.gnome.nautilus.window-state start-with-sidebar true

In Ubuntu 20.04 and newer, this can be fixed using the GUI...

Open the File browser (Nautilus)
Click on the "Hamburger" menu at the right of the header bar.
Select Preferences
On the "Views" tab, make sure "Show sidebar" is selected.


Ubuntu installation - the attempt to mount a file system failed

Just don't mount Windows, get rid of /windows and proceed, or quit the installer and start again.

This worked.


Can't boot into any Live USB - Black screen

This problem could be solved by disabling the Secure Boot option and booting in legacy mode.

This answer is written just to give the questioner the possibility of marking the problem as solved. If anybody can and wants to improve this post by adding additional detail, please do it. That's the purpose of a community-wiki answer.
@norbertpy: Please accept this as answer!


How to backup/clone Windows creating a recovery image using Ubuntu

Here's the VeryEasyWay™ to do this:

download the CloneZilla Live CD,
boot it
follow the device-image manual to do the imaging. A disk-to-image will compress the disk image before writing it so the entire space taken up by the image itself will be far less then the allocated space on the disk itself!
store the image of the disk you created in your cloud together with the image of the CloneZilla Live CD! (Just in case a future version of CloneZilla would not be able to restore it)
Only to be super-safe: keep the CloneZilla CD and the HDD you backed this up to in your bank safe just in case that your cloud software doesn't exist any more in the future and your house burns down afterwards...  ;-)


You want to set up port forwarding on your router, and forward port 22 of router to port 22 of your machine. People connecting to the router ( piblic ip ) of your home network will be forwarded to your home computer. As this setting varies from router to router, i cannot provide an example. Refer to your routers user manual


Boot Ubuntu from external USB HDD on Retina MacBookPro 2015

Well, kind of stupid but I managed to make the external USB HDD boot.
Ubuntu installs the EFI boot files under "EFI/ubuntu" by default, simply rename it to "BOOT", and copy "grubx64.efi" to "bootx64.efi" then everything works as expected.

According comments from @RodSmith, above solution works as EFI/BOOT/bootx64.efi is the fallback name where EFI finds a bootloader.

It could be very useful if someone can explain Apple EFI behaviors in details.


What is virtuoso-nepomuk and how much harm could I do by uninstalling it?

Apparently it some sort of powerful SQL thing. I am not sure what exactly. However in this case the problem was that it was a leftover file in /etc/init.d/ that famously gets in the way of upgrades. I moved it with sudo mv /etc/init.d/virtuoso-nepomuk ~ which stuck it in my home folder to be dealt with later.


Ubuntu 13.04 hangs at grab after upgrading

I have had this problem before.  First thing you could try would be to try the recovery mode if you can see the grub menu at all.  If you can't see the grub menu, create a live cd/dvd of ubuntu, and then use the chroot commannd to change to the root of your ubuntu installation on your harddrive, and then use the update-grub and it should configure your grub.cfg file correctly and then you should be able to boot.  If this does not work, read a little bit about the grub2 documentation (just google it), because you can get a grub prompt and interactively change your configuration that way as well.


TP-Link AC600 driver on Ubuntu 16.04 LTS x64

Figured out my own answer.

edited /etc/NetworkManager/NetworkManager.conf
and changed managed=false to managed=true

But I don't know how to blacklist the Atheroes AR9485 internal wifi module.

Can't find it in the lsmod

$ sudo lsmod
Module                  Size  Used by
ctr                    16384  0
ccm                    20480  0
drbg                   32768  1
ansi_cprng             16384  0
rfcomm                 69632  0
mt7610u_sta           892928  0
rtsx_usb_ms            20480  0
memstick               20480  1 rtsx_usb_ms
bnep                   20480  2
nls_iso8859_1          16384  1
asus_nb_wmi            24576  0
asus_wmi               28672  1 asus_nb_wmi
sparse_keymap          16384  1 asus_wmi
arc4                   16384  2
snd_hda_codec_hdmi     53248  1
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
ath9k                 143360  0
kvm_intel             172032  0
ath9k_common           36864  1 ath9k
ath9k_hw              466944  2 ath9k_common,ath9k
snd_hda_codec_realtek    81920  1
kvm                   536576  1 kvm_intel
snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
ath                    32768  3 ath9k_common,ath9k,ath9k_hw
irqbypass              16384  1 kvm
mac80211              737280  1 ath9k
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
aesni_intel           167936  5829
snd_hda_intel          36864  5
snd_hda_codec         135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
snd_hda_core           73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
snd_hwdep              16384  1 snd_hda_codec
cryptd                 20480  2916 aesni_intel,ablk_helper
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
cfg80211              565248  5 ath,ath9k_common,ath9k,mac80211,mt7610u_sta
uvcvideo               90112  0
joydev                 20480  0
input_leds             16384  0
ath3k                  20480  0
serio_raw              16384  0
btusb                  45056  0
snd_seq_midi           16384  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
videobuf2_vmalloc      16384  1 uvcvideo
btintel                16384  1 btusb
videobuf2_memops       16384  1 videobuf2_vmalloc
hid_multitouch         20480  0
snd_seq_midi_event     16384  1 snd_seq_midi
lpc_ich                24576  0
videobuf2_v4l2         28672  1 uvcvideo
bluetooth             520192  30 bnep,ath3k,btbcm,btrtl,btusb,rfcomm,btintel
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
v4l2_common            16384  1 videobuf2_v4l2
videodev              176128  4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2
snd_rawmidi            32768  1 snd_seq_midi
media                  24576  2 uvcvideo,videodev
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
mei_me                 36864  0
mei                    98304  1 mei_me
snd                    81920  21 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
ie31200_edac           16384  0
shpchp                 36864  0
soundcore              16384  1 snd
edac_core              53248  1 ie31200_edac
mac_hid                16384  0
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
rtsx_usb_sdmmc         28672  0
rtsx_usb               24576  2 rtsx_usb_sdmmc,rtsx_usb_ms
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  3 hid_multitouch,hid_generic,usbhid
nouveau              1495040  1
i915                 1208320  5
mxm_wmi                16384  1 nouveau
ttm                    98304  1 nouveau
i2c_algo_bit           16384  2 i915,nouveau
drm_kms_helper        139264  2 i915,nouveau
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
psmouse               126976  0
ahci                   36864  3
fb_sys_fops            16384  1 drm_kms_helper
r8169                  81920  0
libahci                32768  1 ahci
drm                   360448  9 ttm,i915,drm_kms_helper,nouveau
mii                    16384  1 r8169
wmi                    20480  3 mxm_wmi,nouveau,asus_wmi
video                  40960  3 i915,nouveau,asus_wmi
fjes                   28672  0


Ubuntu 12.04 installation input/output error

Input/Output error usually means that the drive has failed to read or write correctly. Are you sure that your HDD is good, and not dying?


I found the answer to the problem! I uninstalled all XFCE stuff using the terminal command found at this page: Remove XFCE. It completely fixed the problem! Headphone is back, and the theme went back to normal!

Thanks for the help anyway!


xfreedrp does not work with dual screen?

So I think it is some issue with how xfreerdp parsing the command.
I fixed the issue with:
xfreerdp /v:ip.of.target.pc /u:user /multimon -f /fonts --plugin


Reinstall software after installation of newer version Ubuntu

On #1, to get a list:

sudo dpkg --get-selections > software_list

To reinstall the list on a new installation:

sudo dpkg --set-selections < software_list
sudo dselect

On #2, you need to know where configuration files are located. (Backup the files in /etc and your home directory at least).

On #3, yes it is possible. Yet, later you could find out how to install a missing application, though another repository, possibly.


How to use the update function in 'rhash'

The rhash manual states (emphasis mine):

  -u, --update

  Update  hash  files  specified  by  command  line.   The program
            calculates and appends hashes to the updated hash  file  in  the
            format  specified  by  formating options.  Hashes are calculated
            for those files from the same directory as the hash file,  which
            are yet not present in it.

So, the output is added to /checksum/these/files and not to /checksum/these/files/checksum.md5. The /checksum/these/files/checksum.md5 file is created by the --output option but since you're using -u which means "update the original file", no output is printed there.

For example:

$ date > file1
$ date > file2

$ md5sum * > hashes
$ cat hashes
909b1419ee961b556e0013929d8b667e  file1
a6de9f219de32fec651e62e3c457169e  file2

$ rhash -r -u --md5 hashes --output=new
Updated: hashes

$ cat hashes
909b1419ee961b556e0013929d8b667e  file1
a6de9f219de32fec651e62e3c457169e  file2
d41d8cd98f00b204e9800998ecf8427e  new
$ cat new
$

As you can see above, the file new was created before the rest of the command was run, so it was included in the hash check. Since there was no associated hash for new in hashes, a line was appended to the hashes file.

On a more general note, please don't use sudo when it isn't needed. If you really do need root access to modify /checksum/these/files, remove the sudo from the script and run the script itself with sudo: sudo /path/to/script.sh.


To completely remove ROBLOX open a Terminal window (CTRL + ALT + T) and run:

sudo apt-get purge roblox

The purge command will (from manpage):

Purge is identical to remove except that packages are removed and
purged (any configuration files are deleted too).


Installing gfortran and mpich for a new Ubuntu user

If you install Ubuntu 16.04, it should be this simple to install mpich3.2 and gfortran 4.5 with GCC 5.3:

Open a terminal

Run the following command:

sudo apt-get install gfortran mpich gcc-5


Partial installation of redis-server causes apt-get to hang

My solution was to kill all redis-server processes, and try the remove again.

ps aux | grep redis

And use kill <pid> or kill -9 <pid>.


Are there any standard UI / UX / design principles or guidelines for building Ubuntu apps?

Mobile
There are now :)
All Ubuntu apps designed to run on mobile devices should follow the App Design Guides


Unable to install librocksdb5.8 on 19.10

You need to enable the Universe repository to get this package. However, 19.10 uses version 5.17 instead of 5.8.

Run the following commands to enable the Universe repository and to install the package on Ubuntu 18.04:

sudo add-apt-repository universe
sudo apt update
sudo apt install librocksdb5.8

Run the following commands to enable the Universe repository and to install the package on Ubuntu 19.10:

sudo add-apt-repository universe
sudo apt update
sudo apt install librocksdb5.17

In the future, you can search for packages using the apt-cache search command like in this example:

apt-cache search librocksdb

Alternatively, you can also search for packages at packages.ubuntu.com to locate packages. This will also indicate which repository to use.


Yes. you can format ubuntu drive to ext4 using tools like minitool.

During installation, you can choose to install alongside Windows or install instead of Windows. If you install alongside Windows, something like this will appear:

 OR

you can just make some free space in windows and start your ubuntu installation.Choose to install alongside windows and ubuntu will be installed in the free space.


Ubuntu 16.04; unable to set Static IP Address

Your network mask should not be 255.255.255.255 it should be 255.255.255.0 (I think). The format of the network mask is 255 for any network numbers (if that makes sense) and 0 for the host.

I think your file should be:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# auto enp4s0
# iface enp4s0 inet dhcp

# Static IP Address Assignment
auto enp4s0
iface enp4s0 inet static
address 192.168.1.200
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4


How to access the grub boot menu in order to generate bootchart?

If you want to do this once you can press e to edit the boot line and add the required entry manually.

If you want a permanent entry you need to edit the file

sudo gedit /etc/default/grub

add the entry at the end of  GRUB_CMDLINE_LINUX_DEFAULT and issue

sudo update-grub

the line should look like

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash init=/lib/systemd/systemd-bootchart"

to update the changes.


Just got the same error: foreman command not found.
I managed to succeed removing my gem with:

sudo gem uninstall foreman

And re-install it back with rvm.

rvm gem install foreman

Good luck!


You can boot using a Live USB and modify the /etc/modprobe.d/blacklist.conf file.

Just add the module you don't want to load, e.g.

blacklist ieee1394
blacklist ohci1394
blacklist eth1394
blacklist sbp2

You can also blacklist modules from the bootloader.

Simply add modprobe.blacklist=modname1,modname2,modname3 to your bootloader's kernel-line parameter list.

For information on how to edit the boot parameters, go here: How do I add a kernel boot parameter?.


Ubuntu One storage was discontinued in April 2014. This was for various reasons.

However, Ubuntu One still exists as a way to sign into Launchpad.net, Ubuntu Discourse and here, Ask Ubuntu. It also enables recommendations on the Software Centre.

To sign in, open the Software Centre by searching the dash for it. Then click the "Turn on Recommendations" button and it will open the sign up window.

Here you can sign up / in to Ubuntu One. However it is not a requirement, and if you don't want to, simply click the orange x in the top left of the window.


Ubuntu with Unity needs more CPU-Power and RAM.
Your system has not enough ressources to run Ubuntu and Unity smoothly.

Maybe you have a better experience with Xubuntu or Lubuntu, which are made for systems with less performance.


Ubuntu not connecting to internet but is connected to lan

"I don't want to worry you for nothing but I just saw your router model in the news: arstechnica.com/information-technology/2018/05/… May be try a reset of the router and update the firmware ??" – solsTiCe

Resetting the router managed to work. Not really sure though why.


How to make Ubuntu 20.04 ask for password only at log in?

Open gnome settings and go to the Privacy tab. From there, go to "Screen Lock" and enable/disable whatever setting you want (in your case, disable "Automatic Screen Lock" and "Lock Screen on Suspend").


Ubuntu Studio 14.04 - login profile pic cannot be changed

Take the picture you like (jpg and png should work). Make it small (121x150). Copy it to .face in your home directory (~/.face), if the directory doesn't exist, create it.

The system will recognize it as the user account icon next time you log in.


You have to download ubuntu mate to install it (you cannot upgrade from normal 16.04 to MATE 16.04)

Download from https://ubuntu-mate.org/download/


Yes, this is possible. VirtualBox can virtualize an operating system that already exists on a physical partition.

However, this is not recommended. When you installed Ubuntu, it configured everything based on the hardware it found during installation. When you load it in the VM, it will find all sorts of other hardware and may need massive reconfiguration.

That being said, you can find a tutorial that does something very similar to what you are trying to do here: http://www.neowin.net/forum/topic/784138-howto-boot-existing-ubuntu-partition-using-virtualbox-inside-windows/


How do I submit a bug to launchpad without internet

The page that you linked has instructions under the headers Filing bugs when offline or using a headless setup and Filing bugs manually at Launchpad.net:

Filing bugs when offline or using a headless setup
In the event that you have an issue with your internet connection,
want to file a bug for another system, or have trouble reporting from
a headless setup, you can still do this using apport.
For a bug report about a crash, copy over the .crash file created in
the /var/crash folder to the new computer. Then report it from the new
computer via a terminal:
ubuntu-bug FILENAME.crash

For a bug report about any other issue, from the computer with the
problem execute the following at a terminal:
apport-cli -f -p PACKAGENAME --save FILENAME.apport

Copy this over to the new computer. If filing a new report, execute
via a terminal:
ubuntu-bug FILENAME.apport

Please do not attach the .apport or .crash file to the report, as this
is not the same as performing the above mentioned steps.
Filing bugs manually at Launchpad.net
If for some reason you cannot file a bug using the Apport tool you can
file one via Launchpad's own bug report
form. When
doing so it is best if you have determined which package it should be
filed against. Read 'finding the right
package' for guidance
or use Launchpad's package search
feature. We don't recommend this method
for most bug reports because they will likely be missing crucial
information, use ubuntu-bug if you can!
To file a bug against a specific package you can also use a URL like
the following:
http://bugs.launchpad.net/ubuntu/+source/PACKAGENAME/+filebug?no-redirect

where PACKAGENAME is the name of the source package about which you
want to file the bug report.
In the event that you want to request a piece of software be packaged
for Ubuntu please follow the instructions in the wiki.


xrandr: screen cannot be larger than 1680x1680 (desired size 3360x1050)

I had the same issue and discovered that I had to extend the height as well as the width to make it work (thanks to ThomasKl's edit to his answer for this question).

Try

Virtual 3360 3360

in the Display subsection.


Try the following:

$ sudo apt-get install php-pear php5-dev
$ sudo pecl install pecl_http
$ sudo echo 'extension=http.so' >> /etc/php5/apache2/php.ini
$ sudo service apache2 restart

To verify it's installed run the following command

$ php -m | grep http

You should see http in the output.


How can I switch user in a shell and use the existing gnome display session?

If you want to allow user bob to access your existing X session from
the command line, you can enter these commands at the terminal prompt:

xauth nextract - $DISPLAY | sudo -u bob xauth nmerge -

Thius uses the xauth command to
extract the authentication information for the current user (first
part of the command, before the |) and then merge it into user
bob's $HOME/.Xauthority file.  Note that it requires
/etc/sudoers to be configured so that you are allowed to run
commands as user bob (this is the default if you're the admin user
on a Ubuntu box).

You can then switch to user bob with su -l.

Alternatively, you can issue these separate commands:

xauth nextract - $DISPLAY > /tmp/xauth.temporary.file
su -l bob -c 'xauth nmerge - < /tmp/xauth.temporary.file'
rm /tmp/xauth.temporary.file

Note that:

1) the temporary file must have permissions such that user bob can
     read it (which often means that any user on the system can read
     it);

2) there is a time window during which any user that can read the
     temporary file can get access to your X display.

Therefore, it is better to use the sudo approach as it does not have
these downsides.


How do you set the timezone for crontab?

I had a similar problem on Trusty (14.04). Solved it by setting machine's timezone then restarting cron service

sudo dpkg-reconfigure tzdata - follow the instructions to select Region/Country
sudo service cron restart
timedatectl - Verify your date settings


Stuck in grub command line during installation

Boot ubuntu from live cd once again and try to reinstall grub.

You can use Boot-Repair for this job.


You need to format the volume for lvm and import it into your volume group.  Assuming the partition in question is /dev/sdb1 and your volume group is named vg:

sudo pvcreate /dev/sdb1
sudo vgextend vg /dev/sdb1


The "~/" is the current user's home directory
(usually /home/user for a normal user or /root for
the root user). The 'ls -la' part is a command named
'ls', which is used to list the contents of a directory,
with the switches '-l' '-a', that tell ls to show the
permissions of each file/directory (-l) and include hidden files and directories in the list (-a).

'ls -la ~/' basically means "list all the files and directories (including the hidden ones) in the current home directory and show their permissions".


How to exclude files like 'unitydashlegalseen' from syncing in Grsync?

Ok, actually it is pretty easy, the answer is in the official Grsync forums: http://opbyte.freeforums.org/exclude-from-backup-won-t-work-t192.html

Create a file called "exclude.txt" in the hidden folder /home/username/.grsync
I did this via right clicking the specific folder in Nautilus and created a new file from the pop up menu. This way I avoided the problems described in the above thread where the problem seemed to be that it had been created with LibreOffice.
Open the file with gedit and put in the paths you want to exclude from syncing. I put in these two:
.local/share/Trash
.cache/unitydashlegalseen
In the Grsync select the correct Session and then go to Advanced Options/Additional Option where you put in the command linking to your exclusion list (as seen in the second screenshot in the above mentioned forum post):
--exclude-from="/home/username/.grsync/exclude.txt"
Mind to delete already synced files (listed in the exclusion list) on the remote location if you do not want them to be there (otherwise they remain as they have been before excluding them - e.g. with VirtualBox images this would save a lot of hard disk space on the remote location).


You can take a look at https://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardOutput=

If I understand the question correctly you want the service outputs status to tty / console? Remember that when a service is started systemd take care of default file descriptors.

You can use a file to store the status and query it there.


How to prevent monitor from blinking when I press backspace in the terminal?

How to prevent the monitor from
  blinking when you press backspace when
  there's no text left to delete in the
  terminal?

It is called as visual Bell.
You can disable this feature.

Xterm Terminal : Xterm How to disable the visual bell.

Gnome Terminal : Select edit from the menu bar and edit the profile of the terminal to disable it.

    Edit -> Current Profiles... -> Terminal bell

Turn on window flashing: In System -> Preferences -> Sound, Change the Visual alert setting to Flash window.

Note: For other terminals, search as disable visual bell terminal name in google search box.


How can I create a custom shortcut to a website on my Desktop?

Here's an example for creating a shortcut to askubuntu.com

Create the following text file:

[Desktop Entry]
Name=Shortcut to askubuntu.com
GenericName=askubuntu
Comment=ask the community for help
Exec=chromium-browser --incognito askubuntu.com
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/myusername/path/to/my/icon
StartupNotify=true

and save it to ~/.local/share/applications/ as askubuntu.desktop

the ~/.local folder is in your home directory. Unhide it by pressing ctrl+h in your file browser.

Right click the file and choose Properties and then go into the Permissions tab and select allow executing as program

Now you should be able to double click the file and drag and drop it wherever you want it to be.

Note: if you don't need a icon for your shortcut you can just delete the

icon=...

line

if you want one, you gotta download one...


apt-get command error. Error while loading shared lib libstdc++

I fixed it installing the gcc-5-base before install libstdc++6. For some reason the apt-get dist-upgrade stopped in this package.

For those who facing this error, try to find the dependencies of your package in http://packages.ubuntu.com/ and check the exact version of them using $dpkg -l . if the version is different, update manually using #dpkg -i .

I hope have helped!


How do I make sound automatically mute after returning from hibernation or suspend?

The directory /etc/pm/sleep.d/ contains scripts that are run when the system is suspended, hibernated, resumed (ie, comes back from suspend) or thawed (comes back from hibernation).

So, your script should be placed in this directory, to be called on these events. The first argument to the script (ie, in $1) will be the action that is being performed (ie, one of suspend, hibernate, resume or thaw). Your script can be run on the resume and thaw actions to mute the volumes accordingly. Take a look at some of the existing scripts there for examples. The documentation for these hook scripts is in the pm-action manpage.

As for the muting itself: I'd suggest using alsactl to save the 'state' of the muted configuration to a file (eg. /var/lib/alsa/asound-muted.state). When the script is run, it can invoke alsactl to restore from this saved state:

alsactl -f /var/lib/alsa/asound-muted.state restore <card-id>

Alternatively, you can use amixer to set the value of a specific volume control to zero:

amixer -c 0 sset PCM,0 0

— however, the arguments to amixer will depend on your specific sound hardware configuration.


Your system is running out of memory. Either add more memory or work out which processes that uses up memory, f.ex. your java process, and reduce the amount of memory used.


How to list GRUB's "menuentries" in command-line?

Using awk

awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg

gives you a full list of all menu entries in grub.cfg.


There are many causes for this freezing, most of them related to Graphic Card.

System Setting >> Software & Update >> Additional Driver >>

Try X server.

This may solve the problem.


How do I install proprietary AMD drivers for a Radeon HD 6870M / Integrated Intel hybrid graphics?

Not sure if my problem is releated but its worth checking. I have a HP Eny 6 1006sa sleekbook that has an AMD A6-4455M APU with Radeon HD 7500G Discrete-Class Graphics. For a fresh Ubuntu 12.10 install  I additionally installed the fglrx video graphics drivers, on reboot I log in and would get just a desktop wall paper image with no Unity desk top. Unity also fails to start from the command line.  This was very repeatable. I looked at the package dependencies for the Radeon fglrx drivers and checked they were all present using Synaptic. I noted two Kernel packages were missing. Installing these packages following a fresh 12.10 install, enabled trouble free install of the fglrx and then fglrx updates graphics drivers. The two kernel packages missing were:

linux-generic  3.5.0.17.19
linux-headers-generic  3.5.0.17.19

see: http://www.divnut.com/Ubuntu/Screenshot_12p10_install_vrs_manifest.png

Haven't logged this as a bug yet as I'm not sure what to log it against, still investigating.


Firefox not playing videos on Ubuntu 20.04.4 LTS

Bro, a solution for your problem takes no more than one line :)
sudo apt install ffmpeg

That's all! After restarting your firefox browser the changes are applied and the browser plays any video content you wish.
P.S. I lost 2 annoying days searching the web for solution, trying different approaches, rolling back changes, reinstalling browser and so on, and try to imagine my face when this single line appeared the solution.