What do the fields indicate

06:47:41.060885 IP  > .us-west-2.compute.internal.ssh: Flags [.], ack 144, win 256, length 0
06:47:41.779943 IP .us-west-2.compute.internal.ssh > : Flags [P.], seq 144:208, ack 1, win 284, length 64

The first field is the time when the packet arrived, as hour:minute:second, with "second" being seconds and fractions of a second.

The second field is the protocol running atop the link layer - IPv4, in this case.

For IP packets:

The third field is the IP address or host name of the host sending the packet, along with, for TCP and UDP packets, the source port.  The first packet came from  port 12601, and the second packet came from ip-.us-west-2.compute.internal's ssh port (port 22).

The fourth field (separated from the third field with a ">" character, indicating the direction of the packet, i.e. it's pointing to the right, so the packet is coming from the third field to the fourth field) is the IP address or host name of the host receiving the packet, along with, for TCP and UDP packets, the destination port.

"Flags [...]" is the TCP segment flags.  "P" is the Push (PSH) flag, so the first packet doesn't have any flags set (other than ACK), and the second one has the Push flag set.

"seq" is the sequence number in the packet and the sequence number that the next data after that packet would have.

"ack" is the acknowledgment number in the packet.  tcpdump shows sequence and acknowledgment numbers relative to the initial sequence number by default.

"length" is the length of the data in the TCP segment.

  how do you confirm there is an issue with the traffic

By knowing what issue you're looking for and seeing whether it's present.  Tcpdump doesn't dissect all protocol layers, so it might not show issues at all layers.  Wireshark might show more information, but, again, you'd need to know what sort of issues could be present and how to identify them.


Struggling to get Kodi running on Ubuntu Server 14.04.2

fglrxinfo needs an X display running the fglrx driver. Assuming you have that, if you're trying to run fglrxinfo over SSH or from a TTY it won't have a DISPLAY environment variable set so you'll need to specify it manually, like so:

DISPLAY=:0 fglrxinfo

Assuming the display is :0.


I accidentally formatted my hard disk containing ubuntu partition

In case we had not written to the accidentally formatted drive we are able to fully recover partitions with

TestDisk


If you have this issue as well, try mounting your drive using the following command:
sudo mount -o uid=$(id -u),gid=$(id -g),umask=0000 /dev/sda1 ~/src

Source: this answer.


How to install Mattermost desktop application

Unofficial, community-driven .deb packages are available for Ubuntu
  and Debian-based systems.

  Download the latest version of the Mattermost desktop app:

mattermost-desktop-4.1.2-linux-amd64.deb # 64-bit systems

  or

mattermost-desktop-4.1.2-linux-i386.deb # 32-bit systems

  At the command line, execute one of the following commands depending on the package that you downloaded:

sudo apt-get install -y ./mattermost-desktop-4.1.2-linux-amd64.deb # 64-bit systems

  or

sudo apt-get install -y ./mattermost-desktop-4.1.2-linux-i386.deb # 32-bit systems

  The following NEW packages will be installed: mattermost-desktop
  To run Mattermost, open the Dash and type mattermost, then click the Mattermost icon.

Source: Desktop Appllication Install Guides – Mattermost 5.1 documentation


I believe the warning is harmless. The possible missing firmware is for brand-new Kaby Lake CPU (kbl in the file name), and you have a previous-gen Skylake CPU (which makes use of firmware with skl in the file name).

I have an even older CPU, and I get two such warnings (one for kbl firmware, the other for skl firmware), with no ill-effects that I can detect.

Do you have a particular problem with your CPU/GPU, or are you simply worried about the warning?


Perhaps the windows server are no longer accepting smbv1.
Try adding
    client min protocol = SMB2
    client max protocol = SMB3
in the global section of smb.conf. Then restart smbd

Your chrome browser test will not work. By typing file:///something you are trying to access a file on you local file system, not a web server. Apparently you don't have a file named like your server on your computer.

Using ping you should omit // in front of names/ip-addresses
Try ping serveraddress


Since .exe installation creates a single file to run Ubuntu it can reduce the performance comparing to the direct HDD partition. But you won't notice much difference as it's being used to test websites.

When you install Ubuntu with exe it modifies the Windows bootloader so you can simple change with

http://neosmart.net/EasyBCD/

Hope this answered :)


I suggest booting to recovery console and running

mount -o remount,rw /
apt-get purge nvidia*
apt-get install nvidia-331
reboot

If this does not help, I suggest upgrading kernel from recovery

mount -o remount,rw /
apt-get install linux-generic-lts-vivid

It looks that there is some compatibility problem with the standard nvidia package. Run this

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-352
sudo add-apt-repository -r ppa:xorg-edgers/ppa

and reboot.


The connection between domain names (such as localhost) and IP addresses (such as 127.0.0.1) is made in /etc/hosts (or in your local DNS server). I think the configuration error is that you can't make Apache listen on a domain name (e.g. localhost), but you must use an IP address.

To make Apache listen on a domain name, you have to configure a VirtualHost (see the apache docs for an explanation).


LibreOffice impress - turn off toolbar auto hides upon activating images

After some googling and reading, I realize this is a context-sensitive toolbar and it is not possible to disable its auto-hide behavior. The simple trick to prevent the flinch is to insert a customized dummy toolbar, which by default is context-insensitive, before the "line and filling" in the same row. This way, even if the "line and filling" toolbar disappears upon clicking a picture in the slide, the GUI won't flinch as the customized toolbar works as a placeholder. Furthermore, you can add tools you need to your customized toolbar so you still have access to them even if the "line and filling" is gone.


Finally solved this issue by issuing the default options for fstab with some minor tweaks.

Instead of

UUID=a14cb5de-4a9f-44bb-a59f-63c2dedc4950 /mnt/Data ext4 uid=1000,gid=1000,umask=0022,sync,auto,rw 0 0

I instead went with the defaults with the exception of nosuid and nodev for suid and nodev

UUID=a14cb5de-4a9f-44bb-a59f-63c2dedc4950 /mnt/Data auto rw,nosuid,nodev,exec,auto,nouser,async 0 0

The 'dmesg' output did give a hint that it was a user issue. I guess the user isn't loaded yet into the system so that's why the gid wasn't recognised? Anyway, thanks Jos for the hint that led to me resolving the issue.


Please use command 1:

sudo dmidecode -t 17 or dmidecode -t memory

output for command 1:

# dmidecode 2.11
SMBIOS 2.6 present.

Handle 0x000E, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x000D
    Error Information Handle: No Error
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 2048 MB
    Form Factor: SODIMM
    Set: 1
    Locator: M1
    Bank Locator: Bank 0
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1334 MHz
    Manufacturer: 830B
    Serial Number: DBC8287D
    Asset Tag: 1012
    Part Number: NT2GC64B8HC0NS-CG
    Rank: Unknown
---------------------------------------
output command 2

# dmidecode 2.11
SMBIOS 2.6 present.

Handle 0x000D, DMI type 16, 15 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: None
    Maximum Capacity: 16 GB
    Error Information Handle: Not Provided
    Number Of Devices: 4

Handle 0x000E, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x000D
    Error Information Handle: No Error
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 2048 MB
    Form Factor: SODIMM
    Set: 1
    Locator: M1
    Bank Locator: Bank 0
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1334 MHz
    Manufacturer: 830B
    Serial Number: DBC8287D
    Asset Tag: 1012
    Part Number: NT2GC64B8HC0NS-CG
    Rank: Unknown

Handle 0x000F, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x000D
    Error Information Handle: No Error
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: SODIMM
    Set: 1
    Locator: M2
    Bank Locator: Bank 1
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1334 MHz
    Manufacturer: 0198
    Serial Number: A30EEB39
    Asset Tag: 1044
    Part Number: 9905428-012.A00LF
    Rank: Unknown

Handle 0x0010, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x000D
    Error Information Handle: No Error
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: SODIMM
    Set: 1
    Locator: M3
    Bank Locator: Bank 2
    Type: DDR3
    Type Detail: Synchronous
    Speed: Unknown
    Manufacturer:
    Serial Number:
    Asset Tag:
    Part Number:
    Rank: Unknown

Handle 0x0011, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x000D
    Error Information Handle: No Error
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: SODIMM
    Set: 1
    Locator: M4
    Bank Locator: Bank 3
    Type: DDR3
    Type Detail: Synchronous
    Speed: Unknown
    Manufacturer:
    Serial Number:
    Asset Tag:
    Part Number:
    Rank: Unknown


Is the Dell Universal Pairing USB receiver supported?

May I suggest a workaround?

I ran into this problem with a new Dell Wireless keyboard (WK717) and mouse (WM527). These devices have 3 wireless connection options:

via dell universal receiver
bluetooth
bluetooth

The doc doesn't say what is the difference between the two bluetooth modes.
With my Dell Precision 7530 (Ubuntu), I can connect both keyboard and mouse
via bluetooth (2 only). When pairing the keyboard, I had to enter a numeric pairing code. After that the keyboard was not working at all, but the mouse works fine.

I managed to get the keyboard to work eventually, but this required the help of a MacBook Pro where I plugged the Dell Unifying Receiver and had the keyboard in mode 1. On the Mac, a keyboard dialog opened prompting me to type the key immediately to the right of the left Shift key and then to type the key immediately to the left of the right Shift key. After that, the keyboard was fully functional on the Mac.

Finally I plugged the Dell Unifying Receiver into my Ubuntu laptop.

Now, the keyboard works just fine. Note that I didn't attempt to install Solaar: The Linux devices manager for the Logitech Unifying Receiver since the Dell Unifying Receiver is different from the Logitech Unifying Receiver.


That looks like a Dockerfile RUN directive that you posted.  If you are building docker images and have a file local to your machine that needs to be copied into the docker image, then you need to add the Dockerfile COPY directive:

COPY <src file> <dest>

For you, that would be

COPY zips.json /tmp/zips.json

Which would copy the zips.json from your Host file system into the container image at the /tmp/zips.json location.

The COPY directive must be added before the RUN directive. You also need to remove the wget portion from the run directive.


Unity is broken after upgrading to 12.10 (Optimus laptop)

On my Dell XPS 15z (Optimus graphics), I had the same problem. I managed to get the computer working again by completely removing all the nvidia drivers. (For me, it was not enough to simply remove xorg.conf; instead, the nvidia drivers had to be completely uninstalled.)

This is what I did: note that you can open a terminal by pressing ctrl+alt+T

sudo apt-get purge nvidia*
sudo rm /etc/X11/xorg.conf
sudo dpkg-reconfigure xserver-xorg

then rebooted.

Of course, this is not ideal, because the nvidia graphics is completely useless, but it will give a working desktop.


I would think the easiest way to go about multiple card setups is to generate an xorg.conf with each card individually and tweak 'ServerLayout', 'Device', and 'Screen' sections combining both generated confs.  Rename what you have to so they don't walk all over each other.


I can't understand why you are going to compile hplip from source.

Official hplip page says:

  HP PhotoSmart 3210
  Min. HPLIP Version - 0.9.5 |

All you need is to install hplip from repository (3.14 and up):

sudo apt-get install hplip-gui

After installation you can launch HP utility from terminal as hp-toolbox or from GUI as HPLIP Toolbox. It does not need proprietary plugin.


How do you enable tap-to-click via command line?

Xmodmap is of no help here. Xmodmap controls physical-to-logical mappings of buttons and keys, not the physical process that generate events in the first place.

The tool for this kind of options is xinput. The property name depends on your touchpad model, it may be something like

xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0

Run xinput list to see the names of available devices and xinput list-props "the device name" to list properties of a device.

See also Dynamic Input Configuration with xinput on the wiki, and some examples.


How can I watch a video with subtitles dynamically switched on based on the language people are currently talking in the video?

That requires the existence of a subtitle set with the "forced" flag. Those subtitles are always shown when no other subtitle is selected. Alas, this cannot be achieved with a configuration option in the video player, since it requires an appropriately configured subtitle stream.


These network interface names are specifically designed to be persistent and predictable, and not change even if you reinstall your operating system.  If this is a physical machine and the device name changed without you moving network hardware within the machine, this sounds like a serious issue that warrants a bug report against the kernel

If this is a virtual machine, then something may have changed in the configuration of your hypervisor, which may be out of your control.

Normally there is no reason to specially handle the possibility of a device name changing because it's not supposed to happen.  But netplan does allow you to apply configuration based on matches other than the device name using a device match section.  This lets you match on properties such as mac address, or even apply your settings to any device matching a device name glob (such as eth*  or en*) which can be useful if you know you will only have one network device but can't be sure its name won't change.


Which version of Ubuntu is the most stable in a dual boot with Windows 8?

I was wondering what is currently viewed as the best version of Ubuntu to run alongside Windows 8.

There is no relation between "best version of Ubuntu"  and "Windows 8" to run alongside eachother. The 2 are separate entities and GRUB is the software that deals with booting any 2nd or more operating systems present on your system.

Regarding Ubuntu to use...

The latest long term support for Ubuntu is 12.04
The latest normal release is 13.04.

Either works and both are stable. So does and is any other official derivative and so does and is any older still supported release.

I do not see any problems with any of the releases for Ubuntu to cause trouble with a dual boot setup. The only issues you will face are related to UEFI and Windows. Ubuntu is not an OS that restricts you using the operating system :)


Will UEFI boot with EFI partition + MBR partition table work (instead of GPT)?

It's theoretically possible to use an MBR partition table in an EFI-mode boot; however, almost nobody does this, so it's poorly tested. Also, in my own (brief) tests with this method, it seems to produce more problems related to boot loader naming and NVRAM entries (as managed by efibootmgr in Ubuntu). Thus, it's not something I recommend. The saying "if it ain't broke, don't fix it" probably applies to your case -- you say you'd "like" to convert to EFI-mode booting, but you've provided no reason for this. In the absence of such a reason, I'd say it's inadvisable to do the conversion, since nothing's "broke."

Also, if you set up an EFI-mode boot from an MBR disk, I can't promise that future Ubuntu updates will like it. It's conceivable that the Ubuntu installer or update process would choke, possibly creating serious problems down the line. OTOH, it all might go just fine. That's part of why "untested" in this context translates to "you probably don't want to try this" -- there are just too many unknowns, both now and in the future.

That said, if you must do such a conversion, you can certainly try it with an MBR partition table. If you run into problems with NVRAM entries not "taking," you should then do an MBR-to-GPT conversion. Alternatively, you can just plan to do the conversion from the start. See my Web page on the subject for details. Note that partition table data structures are actually quite simple, and the conversion requires no changes to filesystems. Thus, the odds of a catastrophic failure are quite low. If you use gdisk, a problem is most likely to turn up when the program loads the MBR data structures and converts in memory to GPT. At this point, you'll be warned, or at least be told of the problem if you do a disk verification (v in the main menu), so you can abort the operation before writing anything back to disk. OTOH, no partitioning operation is entirely risk-free, and if a problem does occur, it can be catastrophic, so having backups is wise.


How can I recover data from a clicking/dying external drive?

In case the drive holds important data that need to be rescued:

  Stop using the drive

Any drive access will further worsen the hardware defects and thus decrease the likelihood of being able to recover data. If the data are vital we should let professionals do the job.

Having said this, we can try to rescue the drive content from an image copy of the data that in the best case we have obtained with a last read access e.g. with ddrescue. This should not be done from a virtual machine (boot a live system instead). See also the following questions and answers here:

How to recover data from a failing hard drive?
External hard drive failing, is backup recovery possible?
Recover files from NTFS drive with bad sectors


I think the closest you can get is SolusOS Patched Nautilus as seen here:

Install SolusOS Patched Nautilus In Ubuntu 12.04 ~ Web Upd8: Ubuntu / Linux blog

In brief, you can install and start using it by entering these commands in terminal:

sudo add-apt-repository ppa:webupd8team/experiments
sudo apt-get update
sudo apt-get dist-upgrade
nautilus -q


How to run my CPU at a given percentage?

You could use matho-primes for simulating high CPU usage and cpulimit tool to set maximum CPU load. Example:

cpulimit -l 50 matho-primes 0 9999999999 > /dev/null &

which should use 50 percent of CPU.

source: http://blog.scoutapp.com/articles/2014/11/04/restricting-process-cpu-usage-using-nice-cpulimit-and-cgroups


This blog item can not be a coincidence: same system, same error. And also with audio-cds.
And it is even a bug too. To help fix this please log on to Launchpad and add yourself to the "This bug affects 8 people. Does this bug affect you?" group.

The solution from the blog:

Open Nautilus
Edit
Preferences
Media
"Never prompt or start programs on media insertion"

and audio cds play as normal. That person is using VLC. If this does not work for Banshee/Rhythmbox (or whatever you use): try VLC.


How can I quickly and cleanly kill a print job?

From the command line?

lpstat -o|more

will show a list of pid numbers and then...

cancel {pid number}

You might need to turn the printer of to have the printer cancel what is already in its memory.


gedit not working in ssh session: Autolaunch error: X11 initialization failed

ssh session normally do not forward (i.e., make available) the X11 connection on the other side.

ssh -X (or better ssh -Y) will enable remote graphical clients to open windows locally.

This does not work:

[romano:~] 130 % ssh zzzz
Last login: Sun Feb 22 21:35:08 2015 from XX.YY.ZZ
[romano@zzzz:~] % gedit

(gedit:11225): Gtk-WARNING **: cannot open display:

But this will work:

[romano:~] 1 % ssh -Y zzzz
Last login: Wed Feb 25 14:51:25 2015 from localhost
[romano@zzzz:~] % gedit
[romano@zzzz:~] % exit

Consider however that the connection can be slow --- the X protocol is not efficient over slow networks. And sometime the connection can "linger", waiting for all the graphical connections to die.

You may try to use a terminal mode editor (like nano, vim, emacs or much other) in that case.


cannot boot windows 10 after fixing ubuntu boot problem

First disable hibernation and Fast Boot (if present) in your Windows 10 installation.
Boot into Windows, open command prompt as administrator and execute command:

powercfg /h off

To disable Fast Boot open Control Panel (the old version - not the modern design),
select the Energy Settings, enable show hidden settings and uncheck Fast Boot.

Shutdown the machine (do NOT reboot) completely.

Then reinstall the GRUB bootloader to your Ubuntu installation.

Boot from the Ubuntu install media - then  open a terminal and execute:

sudo mount /dev/sda5 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda

Note : sda = disk | sda5 = system partition ... (taken from your pastebin output).

Now you should be able to select the operating system to boot from GRUB boot menu.


How to type Sinhala in LibreOffice Writer?

Open the terminal and type the below command

sudo apt-get install ibus-m17n m17n-db m17n-contrib

Give root password when prompted.

Open dash and search for Text Entry and open it. You will get a window like the one below.

Click on the + button on the lower left side and start typing sinh... till you get the entries in the window below.

Select Sinhala;Sinhalese(Wijesekara(m17n))(IBus) and click the Add button on the bottom. Now you can see the selected one was added to the Input sources list. You can toggle those input methods from the menu bar icon or by pressing Super+space bar

Now you can type Sinhala anywhere.


Yes, in theory this is possible, as long as you make sure that neither service is running at the time of the copy/paste, and the new server is the same version as the old one. However, as you are well aware, it is not the recommended way.


You didn't say which version of Ubuntu Server that you're running, or what FTP server software you're using, but answers to this question, which I discovered with a web search for "Ubuntu ssh root", say that root access via ssh is disabled by default in Ubuntu Server 14.04.  It's probably also disabled in your version.  You can enable it by editing /etc/ssh/sshd_config.

However, it should be mentioned that there are excellent security reasons to not allow logging in remotely as root.  You're probably better off logging in with your usual user name, and using su to do things that require root privileges.

I imagine that you tried FTPing files out of desperation, but if you can get in via ssh then scp is generally a more flexible way to copy files over.


First thing is to make sure that you have both installation medias, and that your system is set to boot from CD.  If you don't download 12.04LTS  and 10.04

As far as installation goes, I would recommend that you install 10.04 first, just so 10.04's older grub version won't replace 12.04's newer version.

As far as sharing goes, read below:

  The only two partitions that it is really safe to share are /home and
  swap. Swap data is temporary anyway and not expected to survive
  between reboots, so a common swap partition makes a lot of sense.
  Running a separate home partition is a good idea, because your data
  survives reinstallation, but it can be a little tricky to share /home
  between two distros. Because of differences in program versions, and
  possible conflicts of user IDs, it's not a good idea to share a home
  directory between two distros, so you're better off using one home
  partition but a different home directory on that partition for each
  distro.

  You can either use a different username with each distro, or use the
  same name but a different directory. The convention of using
  /home/username as the home directory is just that, and is only a
  default setting, not a requirement. If your username is bryan, you
  could have home directories of /home/bryan-ubuntu, /home/bryan-studio
  and so on. Each distro installation is a separate entity: you cannot
  share installed program and library files between two. Some distros
  modify programs to suit their own needs, and it is very rare for them
  to update versions at exactly the same time.

  You could share /boot in theory, but it can be a lot of work to set up
  and maintain, and a separate /boot partition is not really necessary
  with modern hardware. Using the number of partitions per distro that
  you are using is sure to exceed the partition limits of the system
  before long. You have a couple of options here. The simplest is to
  have a single root partition for each distro, plus common swap and
  home partitions. Each distro is then a self-contained entity within
  its own partition. A more flexible option, especially if you want to
  run multiple distros, is to use the Logical Volume Manager (LVM). This
  would entail having a small /boot partition for each distro plus a
  large partition given over to LVM. This would then contain logical
  'partitions' for the various distros, as well as /home and swap.

  The advantage of this approach is flexibility, volumes can be created,
  resized and removed on the fly, which is useful when experimenting.
  Many distros have an option to use LVM during installation. There is
  another option when experimenting with different distros:
  virtualisation. You can install VirtualBox on Ubuntu and create
  virtual machines within that for any distros you would like to
  experiment with. Only when one convinces you that you want to use it
  long term do you need to worry about partitioning the disk to install
  it.

Source: http://www.tuxradar.com/answers/589


package libprocess-cpp-dev missing in 18.04

Required package exists for trusty (14.04LTS), xenial (16.04LTS), artful (17.10) and cosmic (18.10) Ubuntu releases.

Ubuntu supports upgrade from LTS release to next LTS and next nonLTS and from nonLTS to next release.

Since bionic (18.04) is LTS release it's cleaner to use packages from previous LTS release due to support time.
Look into /etc/apt/sources.list and chose minimal number of repositories to use from xenial:

deb http://hr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://hr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

then duplicate those lines and replace bionic with xenial:

deb http://hr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://hr.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://hr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://hr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

You could use artful or cosmic release, but using cosmic would upgrade installation.
This way system behaves like it's xenial upgraded to bionic.


Installing an Epson XP-435 printer on Ubuntu 19.10

Download a driver from http://download.ebz.epson.net/dsc/search/01/search/searchModule

Then add the printer again a normal way, it should pick up the correct driver.


Ubuntu won't recognize my video card and shows white screen with unintelligible characters

I'm having the same issue with my Dell OptiPlex GX150 PC.  Still trying to find a solution; but, I did find a temporary workaround; i.e., when the system is booting up, if you watch the screen (and be quick with the hands), just take the option to startup in safe mode.  You'll be given some options, just take the option to fall out to the boot prompt.  Graphics are just fine there; but you'll have the same issue next time you boot up in normal mode, until we can figure out a fix.


To set up the cronjob for yr present non-root user, do in terminal:

$ crontab -e

The above will open yr (non-root) user's crontab with his/her default editor.

Alternatively, to do so for the root crontab, but with yr present (presumably non-root) user environment parameters (default editor, etc.):

$ sudo -i crontab -e

In yr opened crontab, enter a new line:

0 01 01 * * /bin/tar -cvpz --exclude=/bckupftp --exclude=/ser --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys / | /usr/bin/split -d -b 750m - /bckupftp/backup$(/bin/date +\%Y\%m\%d-\%H\%M\%S).tar.gz

(I did not check the validity of yr tar cmd.)

Note that:

crontab uses a 24-hour clock, military style: 15 means 3pm, 03 means 3am, etc.
the above cron entry runs at 01:00 o'clock the first day of every month. In terminal , do: man crontab for more info on crontab formats.
in crontab, it's a good habit to prefix cmds with their full path. To find the full path of any non-built-in cmd, do in terminal $ which <cmd>.  Thus the tar cmd becomes /bin/tar, split becomes /usr/bin/split, etc..
as soon as you save the newly edited crontab, the cron job becomes effective. No need to reboot, log out and back in, or restart whatever service.
when saving yr bckup file(s), the time stamp has the following format YYYYMMDD-HHMMSS.  If you need it to be more precise, try replacing %S with %s in yr crontab entry.
I am certain (meaning "with 100% probability") you can find all the above explained in great details in AU, SE at large as well as in other fora. Remember that StartPage is yr friend.


GNUPG, GPG, PGP, GPG4WIN, OpenPGP difference

PGP is Pretty Good Privacy, a standard of asymmetric encryption.
GPG is GnuPG.
GnuPG is GNU Privacy Guard, a realisation of PGP.
GPG4Win is GnuPG recompiled for windows (and if i'm not mistaken it also has some extra applications to make it easier to work).
OpenPGP is another realisation of PGP.


I installed the ip2788 driver. It works with iP2850 too. Ubuntu 14.04.


Teamviewer cannot install on 13.10 - no teamviewerd

After some apt-get upgrades during the last days, this seem to be fixed by now:

sudo service teamviewerd start

starts the deamon now and I can start teamviewer after that


How to use combining sequences to produce multiple codepoints

One way is to use a modified layout where a key is dedicated to type the "combining dot below" (U0323). (It's a bit surprising to me that such Compose combinations worked before zesty.)


You can do the following:

Unlock the Bleachbit application for your unity launcher
Type in the terminal sudo gedit /usr/share/applications/bleachbit.desktop
Search for the label "Icon" (at the end of the file)

Edit the field to add the path to your new icon and save it.

eg: Icon=/home/my/new/icon.png

Then launch the application en lock it to the launcher with the new Icon.

Regards.


How to delete random n files from directory?

find /uploads -maxdepth 1 -type f -name "*.jpg" -print0 | \
        head -z -n 1000 | xargs -0 rm

The find command finds any files (-type f) named *.jpg (-name "*.jpg") in the directory /uploads and does NOT recurse into subdirectories (-maxdepth 1) (which it usually does). It then prints the filenames with \0 as a separator in-between. This is necessary as the filenames might contain weird characters (like spaces and such).

That output is fed into the head command. It reads the first 1000 "lines" (-n 1000) which are separated by \0 (-z).

Eventually these 1000 "lines" (=filenames) are fed into xargs which as well expects the "lines" to be separated by \0 (-0) and then executes rm with all those 1000 lines as parameters.

If you just want to preview the result, change the command to

find /uploads -maxdepth 1 -type f -name "*.jpg" -print0 | \
    head -z -n 1000 | xargs -0 echo rm

i.e. replace xargs … rm with xargs … echo rm. Maybe also replace the 1000 with 10 for the preview.

Disclaimer: I don't know how the files printed by find are sorted, but at least it is not some apparent attribute (like name or age) and looks random. If you really want to pick 1000 random files, you would need to insert a sort -R to sort randomly (again with -z for the \0 delimiter):

find /uploads -maxdepth 1 -type f -name "*.jpg" -print0 | \
    sort -z -R | head -z -n 1000 | xargs -0 rm


here's a newer version of vlc that may have the issue fixed:

sudo add-apt-repository ppa:videolan/master-daily
sudo apt-get update
sudo apt-get install vlc

Also, if you still experience issues, it may help to go to software-center, add all the extra, universe, contrib, etc repos, and then:

sudo apt-get install ubuntu-restricted-extras


I downloaded ruby on rails, but it says it isn't installed.

Try and do the following, it might work:

Open a terminal and type:

sudo apt-get install curl

Then

//In order to install RVM

curl -L get.rvm.io | bash -s stable --auto

reload the bash profile:

. ~/.bash_profile

install the following packages:

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 \
libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison  \
subversion pkg-config

Now install Ruby:

rvm install 1.9.3

then type:

rvm use 1.9.3

make it default:

rvm --default use 1.9.3-p327

Finally install Rails:

gem install rails -v 3.2.9


Unable to install Ubuntu on hp dv6-7003tx

Since you already have Win-7 installed and have dedicated a proper partition for Ubuntu, simply follow the steps given below:

While installation, choosing Install alongside Windows boot manager is safe, but please do take note of everything to avoid messing your hard disk. If you are in any doubt, stick with Something Else option only.
Take help of the dual boot Windows and Linux link to properly perform the installation process in a step-wise manner.

P.S - Do create Swap partition as well. It won't impact your working in any way possible.

Once you have installed Ubuntu (following the above link properly), start with the process of setting up the grub menu:

Boot into Windows OS
Combine Windows + r keys together and type cmd to open command prompt
Type bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi and hit the Enter key

P.S - No admin right is required to perform the above-said operation.


Stretch/Distortion. I have a large monitor, and it makes Ubuntu look so ugly

Your problem is coming from the fact that while intel supports Linux well, they don't do the same with resolution on Linux (I know from experience). It is frustrating but I'm not sure if you can work around it. Possibly adding something to the xorg.conf file to set a custom resolution could do it, but in the past I've had rather mixed results (sometimes it works, sometimes it doesn't).

Your best bet (may) be to use the latest Ubuntu version when it's available (11.04 is out now, but 11.10 will be here soon). Newer drivers might_just_work with a higher resolution.

On your 12" system you won't have that problem btw.


Simply open any working terminal that you do have, and enter:

sudo apt-get install gnome-terminal

You should be good to go!

You can also see this thread
How to set custom keyboard shortcuts from terminal?
as to how to set a custom key command, so that CTRL + ALT + t opens the terminal or program you choose, specifically, gnome-terminal.

So, for example, if you later choose to use lily-term or xfce4-terminal or something else, you may also change that keyboard shortcut/ command to open that terminal emulator, instead. In addition, you may set other commands to open other programs, such as super + e to open the file manager, or CTRL + a to open Audacity, etc, so long as those commands are not already in use.

Good luck!


Since You need to resize sda3 and then move the free space next to sda2 to make sda2 bigger, you're going to have to move partitions around. This can cause problems, but I did it a few times with no real issues.

I did it by resizing my partition from the left to give free space on the left, but that meant for me that I had to move a ~800GB partition, including the free space. That took forever.

You have smaller partitions, but I think the following would be the quickest, easiest and safest way.

Start out by downsizing sda3 so that the free space following is the amount of space you want to add to sda2.
Then, you'll have to move sda3 over so the free space is on the left of sda3 and the right of sda2.
Resize sda2 to take up that free space.
Apply the operation. (It's going to take some time, but since you have an SSD and small partitions, I'd estimate an ETA of less than 2 hours.)

Hopefully, you won't have any problems. Just definitely do this from a LiveCD or Gparted CD and not from an OS booted on the drive.

If you need any more help, just comment.


It depends on how you installed it.

If you installed it using apt, you can uninstall it using $ sudo apt remove <PACKAGE> command.
Also if you dont know the package name, its possible to find it using $ dpkg --list | grep ds9 (replace ds9 with some other possible keywords)
If you installed it from published source, you can read the README of project. usually there's a something about Uninstall.

PS: According to official tar.gz of project (downloaded from here), it seems no installation instruction required, and if so, no uninstallation required too! just delete downloaded file.


Is it possible than my user disappears from sudo?

Yes

It is a common mistake that happens to many people. you probably missed -a flag in your command :)

This is the right command

sudo usermod -a -G vboxusers username

and this is probably what you typed (-a keeps all your previous groups)

sudo usermod -G vboxusers username


Installing Ubuntu on Acer Chromebook 13?

From reading your post, I don't think that post mentioned pressing Ctrl+L. The post mentioned pressing Ctrl+D and later on mentioned running the command curl -L -O http://goo.gl/s9ryd; sudo bash s9ry (by typing it on the command line and confirming with Enter)


Control compiz zoom from the command line

You can control Compiz via DBus, and there is even a helper python script to make it easier.

Example usage of the compiz-send.py script:

hello@world:~$ python compiz-send.py ezoom zoom_out_key

This will zoom out if you are using the Enhanced Zoom Desktop plugin.

More Examples.


It is a huge bug in Ubuntu. mokutil and MokManager can only sign your own modules if you have MB which support uefi. Older MB under Ubuntu 16.04 which do not support uefi cannot sign modules with mokutil and MokManager. You will get always a responds like EFI variables are not supported on this system or similar.

It is claimed that the signing is just enabled by the kernel for uefi MB. I'm sorry but this is wrong. This is also shown e.g. by these kernel parameter:

CONFIG_MODULE_SIG=y
CONFIG_MODULE_SIG_ALL=y
CONFIG_MODULE_SIG_UEFI=y
CONFIG_MODULE_SIG_SHA512=y
CONFIG_MODULE_SIG_HASH="sha512"
CONFIG_EFI_SECURE_BOOT_SIG_ENFORCE=y
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
CONFIG_CHECK_SIGNATURE=y
CONFIG_SIGNATURE=y

As I said this are the kernel parameter for a non uefi MB which don’t make sense, especially CONFIG_MODULE_SIG_UEFI=y.

You have to recompile the kernel and switch off the signing options. They can be found by grep -v ^# /boot/config-$(uname -r) | grep _SIG. Especially CONFIG_MODULE_SIG and CONFIG_MODULE_SIG_ALL should be set to n. However, this has a clear disadvantage because you have to put the kernel update on hold and you’ll have to recompile every new kernel. It’s frustrating.


Unsubscribe Ubuntu One Folder doesn't work

Have you tried unsubscribing from the Ubuntu One web interface?

Go to one.ubuntu.com/files/ and under My synced folders there is a list of the folders outside of ~/Ubuntu One that you have synced. Click on the More link next to the folder you want to stop syncing, and then click the Stop syncing this folder link.


After upgrade to 16.04, I can't add network Printer

I would recommend you check the cups status using either

#: systemctl status cups

or

#: service cups status

if cups isn't running yo can try and manually run it to see if it makes a difference, if cups isn't available maybe try installing it or reinstalling it

#: apt install cups


Why won't Ubuntu use the memory I have left on my PC?

Likely because Ubuntu and Windows are each in their own partition. Your Windows partition has 500GB free, your Linux partition has 2GB free. If you want more space on your Linux partition then you are going to need to shrink down your Windows partition using a partition manager like gparted and reassign that space to your Linux partition.


/b/,~8 matches lines starting with a line containing b and continuing until a line is reached whose line number is a multiple of 8

From man sed:

  addr1,~N
   Will match addr1 and the lines following addr1 until the next line whose  input line number is a multiple of N.

Examples

This prints any line which contains 5 and all following lines up to and including the next line whose line number is a multiple of 8:

$ seq 14 | sed -n '/5/,~8 p'
5
6
7
8

This prints from a line containing 14 to the next line whose line number is a multiple of 8:

$ seq 22 | sed -n '/14/,~8 p'
14
15
16

This deletes all lines starting with a line matches 5 and ending with the next line whose line number is a multiple of 8:

$ seq 10 | sed '/5/,~8 d'
1
2
3
4
9
10

Similar but different

This prints the fourth line and every eigtht line thereafter:

$ seq 22 | sed -n '4~8 p'
4
12
20

This prints a line matching 4 and the next three lines which follow:

$ seq 13 | sed -n '/4/,+3 p'
4
5
6
7


Superkey-Left-Drag for "move Window" on Ubuntu 16.04?

On your Ubuntu 16.04, go to System Parameter -> Keyboard -> Shortcut and  just change in Window the shortcut of "Move window" with your shortcut

By default, this shortcut is Alt + F7 on Ubuntu 16.04


OK. It took some trial and error. But the solution that worked finally is to launch hamster-indicator This puts an icon in the top panel. You can click the icon to look at how much time has elapsed on the current task. Moreover, on completion of the time specified, now there is a notification, too.

Auto-starting it is as easy as putting a .desktop file in .config/autostart folder.

HTH.


Future Warning with gdebi while installing some packages


Need a playlist creator for linux that will do relative paths

Open terminal

cd /your/folder/
find . -name '*.mp3' > playlist.m3u

Might need to tweak regarding other file extensions than mp3.
The quotation marks are needed to escape the results


How do I use gnome trash for files in different partition?

When you delete a file on a removable storage device, GNOME automatically creates a trash folder at the device's root. If your user ID is 1000, it will create a file named /data/.Trash-1000. When you go to the Trash place in Nautilus, you see an amalgamation of all the trash folders for your user on all the filesystems that are connected.

It sounds like this one is a permissions issue. GNOME is trying to create the trash folder at the device's root, but perhaps your user only has access to individual files under the root. The easiest way about this is to make the thing more accessible. In a terminal, try sudo chmod 777 /data to make the root of your data drive editable to any user. Alternatively, you can do sudo chown yourname /data for a similar effect.


Why is my wireless very unstable, even after trying Wicd?

You need to get an updated driver, with an internet connection do:

sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential git dkms
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.9
echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf

Reboot


It once happened to my and the problem was that my CMOS battery ran out of juice.
It could be something else for you but this looks like a possible cause


Meld: associate file extension with language syntax highlighting

Meld uses the Gnome project's GtkSourceView component for syntax highlighting.

In order to change the file associations, edit the following file:

/usr/share/gtksourceview-3.0/language-specs/cpp.lang

Edit the "globs" section under language/metadata/property and add ;*.tpp

<property name="globs">*.cpp;*.cxx;*.cc;*.C;*.c++;*.tpp</property>
                                                 ^^^^^^


Check the jenkins upstart configuration file /etc/init/jenkins.conf.

Verify that the path for JAVA_HOME is correct.  On a fresh install, it may look like /usr/lib/jvm/java-default (or default-java), however, if you've used apt-get to install the java 6 jre, the directory is actually /usr/lib/jvm/java-6-sun


Will GNOME3 offer a panel interface or just the Shell?

gnome-panel still exists and is still maintained as far as I know. It's still going to be popular for distributions and people that don't want or need the newer shells right now. I can't see this changing in the immediate future, at least until one of the newcomers has proven themselves significantly "better".

Using it is mostly just configuration and most distributions will offer you the choice between options on log-in. That's certainly the case in Ubuntu; you're offered a "classic" desktop which should be panels as usual.


This was my mistake; in the course of fixing some uid issues with an earlier release of genie, I took a dependency on runuser and since I develop primarily on Debian, didn't notice that this broke Ubuntu 18.04 compatibility.

Mea culpa; mea maxima culpa.

Since removing runuser -w from genie would cause regressions, my current recommendation for pre-19.04 Ubuntu is to use genie -c bash instead of genie -s where necessary; an imperfect workaround, but one which should work in most cases. I have documented this in the genie README.

Alistair, genie maintainer


I want to know when a running process will terminate. How can I watch it?

Run this:

while kill -0 <PID>; do sleep 1; done; echo "Process finished at $(date +"%F %T")."

Or you can make a bash script. wait-for-death.sh:

#!/bin/bash

if ! kill -0 $1; then
    echo "Process $1 doesn't exist."
    exit 1
fi

while kill -0 $1; do
    sleep 1
done

echo "Process $1 finished at $(date +"%F %T")."

Then give it execution permission:

chmod +x wait-for-death.sh

and run it passing the process' PID:

./wait-for-death.sh <PID>


Convert a (txt|srt) document from Western(ISO-8859-15) to UTF-8

You can use iconv:

If the file is named chapter1.srt, then run:

iconv -f iso88591 -t utf8 chapter1.srt > outputfile.srt

and it will create the file, although it'll have a different name. If you move them out into another directory, then you can easily pipe them back in.


Turbo Boost might only be achieved using a Windows OEM OS with a certain set of software installed. If you find this software, DO NOT install it in wine, as horrid mistakes and/or errors could happen. Otherwise check the BIOS menu and see if the setting is there.


I ran sudo add-apt-repository ppa:maas/2.7, making the new MAAS packages available by apt. Followed by apt update and upgrade. It just works fine.
For new installations you can use snap, but upgrading existing installations using apt should be fine as far as I know. It's always a good idea to take a backup of the database first.


cryptsetup: ERROR:sda5_crypt: maximum number of tries exceeded

Well, you have to figure out the right password or reinstall...

I hit a similar problem with my first encrypted installs a long time ago:

when I entered the key phrase for the disk during install the keyboard was actually still using a default QWERTY layout,
but when I enter the key phrase during boot, the keyboard uses my expected AZERTY layout.

So while I thought I entered ZERO (keys 2,3,4,9 on the top row of AZERTY)(*) the system got WERO (keys (keys 2,3,4,9 on the top row of QWERTY). So in AZERTY mode I have to enter WERO to unlock.

Since then, when I install, I pick a layout-agnostic key phrase (such as TYPO), and later change the key to something possibly AZERTY-sensitive but more secure.

Of course if you have a QWERTY keyboard the matter is different... but an overlooked CapsLock or NumLock could put you in a similar situation.

(*) passwords have been changed to protect the innocent.


Are you using wireless? If you are:

See if you can get a better connection with WICD.
Hidden SSIDs and hardware access lists are still problematic, as well as WPA
Try proprietary Broadcom drivers from Synaptic>Repositories>Additional Drivers
Use ndiswrapper and a windows driver


How to create docker image with specific name

The problem was I hadn't added myself to the docker group so 'docker run ...' failed.

see https://docs.docker.com/engine/installation/linux/ubuntulinux/ and add yourself to a docker group using this:

sudo groupadd docker
sudo usermod -aG docker $USER


First, check to see if the interface sees your home network by scanning:

sudo iwlist wlan0 scan

Second, this card does not do N speeds. If your router defaulted to N only, this card may not list it as available in the Network Manager icon. Please check the router. I recommend auto B, G and N. http://i.stack.imgur.com/KBFbn.png

What channel is your router set to? If 12, 13 or 14, some regulatory domains only allow channels 1 through 11. Check your regulatory domain:

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:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Finally, I suggest you click the Network Manager icon, select Edit Connections and delete your current connection. Force NM to start fresh.


Ubuntu 16: Confusion regarding Python 2.7 and Python 3.x

Try to run the following:

pip --version

Here is the output I get. Notice Python version mentioned within parenthesis.

pip 19.3.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)

To illustrate further, you have pip for Python 2.x and for Python 3.x. The following is output excerpts from apt-cache searches on my Ubuntu box:

python-pip - alternative Python package installer
python3-pip - alternative Python package installer - Python 3 version of the package

So, if you have installed both above you can run pip for Python 2.x and for Python 3.x:

pip2 --version
pip 19.3.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

pip --version
pip 19.3.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)

Notice how pip on my box defaults to pip3 (the output in the last line is the same as the first output in the beginning of this answer.)

Hope this helps you.


How to simply point my localhost(127.0.0.1) to my /home/user/ dir?

To test your FTP program you could simply use the sftp protocol and point it to your localhost.

For example, in nautilus you would go to Connect to Server and enter the location sftp://localhost. Just enter your login info and you will be automatically taken to your home directory.
Now, this also applies for the usage of your ftp program. Make sure it supports sftp.


Step by step guide to install web Apps Feature in Ubuntu 12.04 with screen-shots and steps till end


Convert a string of characters to ascii values

Hmmm... may I ask why you want to do this? I would personally probably do the reverse, 'causr I'm more fluent in letters than in decimal codes..

However, let's rephrase your problem cl to more precisely define the goal:
- you have in a table a column of ASCII chars in the range A-Z (or is it also lower case?)
- you want each character to be translated with its decimal cvalue over one space and 3 digits

Bash has a powerful string / char replacement, eg

zz=CABXAB;echo ${zz//A/' 065'}


How to restart Vino (or my Desktop Environment)?

For anyone that will end here from search engine :)

With information from here:

vino CLI

I managed to restart vino server from another VNC connection on Ubuntu with following commands:

pkill vino
/usr/lib/vino/vino-server --display=:0.0


The Lenovo API for advanced power management (APM) is extremely poor. I went through 3 Lenovos with Ubuntu and Fedora distros and it was never 100% reliable. It recognizes the lid being closed occasionally when you get it up and running. Even suspend/resume was iffy.

Even my Desktop works 90% of the time. There are many causes and they all need to be tested, mine happens to be the Video Driver.

Consider:

Graphics Drivers
Virtual Machine Kernels
Advance Power Management (As already mentioned)
WiFi drivers (Sleep mode on driver)

Lots of things you need to test out, sometimes one of these will work, but most of the time its the fault APM API's, especially in Lenovos case.


Here is how to do it manually:

Procedure when using Linux

When starting up your PC, you should find the Grub menu, which is responsible for launching Linux. Select the entry you want to use, press the E key and a menu will appear (depending on the version used).

title       Ubuntu 7.10, kernel 2.6.22-14-generic

root         (hd0,5)
kernel       /boot/vmlinuz-2.6.22-14-generic root=UUID=a8a39729-9d2a-425b-b84b-ecc5c7dad104 ro quiet splash
initrd         /boot/initrd.img-2.6.22-14-generic
quiet

Using the arrow keys, go the line beginning with the word "kernel" and press E again.

Be aware that you are editing the line, which defines the path to your Linux kernel (core). At the end of the line, add the following command:

maxcpus=1

The end result should be:

kernel  /boot/vmlinuz-2.6.22-14-generic root=UUID=a8a39729-9d2a-425b-b84b-ecc5c7dad104 ro quiet maxcpus=1

Note: que ro, quiet and maxcpus are the parameters sent to the core when starting up Linux.

Press the B key to start Linux.

Source: http://ccm.net/faq/616-multicore-cpu-how-to-disable-a-core


Right click your ubuntu-*.iso > Open with Disk Image writer
Choose your usb drive and click Start Restoring... and follow the instruction.


You cannot install mongodb using:

apt-get install mongo

You need to execute following command to install mongodb on linux:

sudo apt-get install mongodb-server


I finally figured it out.  Go to that directory and enter this code.  It will place .mp3 after everything regardless if it's an mp3 or not.

find . -type f -exec mv '{}' '{}'.mp3 \;


Xubuntu 18.04
I don't use Xubuntu much but the little magnifying glass is under File in Thunar 1.6.15 and works without any further steps:

Ubuntu 18.04
One has to install thunar and catfish. Even after installing catfish, the search option doesn't appear.
To fix this,

open Edit > Configure custom actions

Click on the + sign to open a new child window

In the tab titled Basic, enter Search for files in the Name box

In the Command box, enter catfish --path=%f or choose something from the command parameters provided

Then open the Appearance Conditions tab. In there, enter * as the File Pattern and tick the appropriate choice below Appears if selection contains:
Click OK. Close the Custom Actions window.
The next time you open Thunar, you should see the option to Search for files when you click on File in Thunar's menu bar.

More reading: https://docs.xfce.org/xfce/thunar/custom-actions

Edits:

I've noticed a couple of cases in which Catfish didn't list all the relevant files. This was both in Xubuntu and Ubuntu. I'll make a separate question about that.

As rubo77 suggested in a comment, searchmonkey is a suitable alternative.


When this happens to me, it is usually because I have added an error into my ~/.bashrc.

For me the solution usually goes like this:

Hit Ctrl-Alt-F1 to get to console
Log in there
Open the file ~/.xsession-errors in your favourite editor:

nano ~/.xsession-errors

Go to the bottom and see what was the last error that made the login fail.
Now edit ~/.bashrc or whatever file is causing the error, and fix it.
Ctrl-Alt-F7 or F8 to get back to the graphical login screen, and try to log in again!


How to install RSS reader NewsFlash (successor to FeedReader)?

Make sure you have flatpack and Flathub repository support on your Ubuntu system, otherwise install it according to the quick setup guide.
Then you can install the flatpak from:

The Software App
From Flathub
A terminal with the command: flatpak install flathub com.gitlab.newsflash

If you trouble to scrape a page:
If you want a specific site to work well with the scraper you should look into "full text feed" config files:
https://github.com/fivefilters/ftr-site-config#how-to-write-a-site-config-file
They are small text files containing xpath rules how to extract article content from a single specific site. Since you can fine tune them they usually work best. Only difficulties are sites which are badly structured and make it hard to define which elements contain the content and when the site updates its layout / design.
These files can be dropped into ~/.var/app/com.gitlab.newsflash/data/news-flash/scraper_data/.
Restart the app to read the new config files.
Source: Gitlab bug report.


How to X11 forwarding through ssh in 15.10

You need to enable X-Forwarding in the SSH server configuration, in
/etc/ssh/sshd_config

It should look like:

X11Forwarding Yes

Uncomment any comments before this line.

After restarting the SSH Server everything should works fine.


How do I keep the cursor in the middle of the console?

As far as I know, there is no way to keep it ever in the middle, since text output also goes there.

Rather, we can bring it back at the top (but not stay there):

clear


Snapshot tools record the desktop at its running resolution. If you need a higher resolution picture then you will need to increase your screen resolution. If you have a small screen, consider using a virtual machine (as its virtual screen can be larger than your host monitor).

Steps:

Step #1:

Click on the "cog" in the top right corner of your screen, and choose "system settings".

Step #2:

Click on "displays".

Step #3
Use the resolution options to pick a higher resolution (if available), and then click "apply".


Howto create a new C++ based Ubuntu touch project in Ubuntu SDK?

I too had the same problem. Its actually related to the permissions. Try to lauch utouch using the 'sudo'. Hope It would help if its the same as mine


Failed to install MariaDB on Ubuntu 14.10

It seems you have artifacts from mysql-client library used by another application. I suggest to do

sudo aptitude search libmysql | grep '^i'

This will display the installed versions of libmysql which you could try to remove one by one with apt. It may be possible that one of your installed applications might be dependent on said version and forcefully remove itself in the process.


I just got around to upgrading from 16.04 to 18.04 today and ran into the same issue. It seems that I had some settings from some older software that I stopped using but never removed from the .xprofile. Anyhow, long story short, I simple mv .xprofile .xprofile_BAK and restarted which happened to remove the errors. You will need to figure out exactly how to migrate things over from that .xprofile if you need them migrated, other than that you can live without it.


This is what I know:
eth0.1 is used for tagged vlan (IEEE 802.1Q) and has to be enabled in the kernel. It adds a VLAN tag to the Ethernet protocol. The VLAN Tag includes for example priority handling of Ethernet messages.

eth0:1 is called virtual interface and has has not to be enabled in the kernel.

This is what I think:
The virtual Interface does not add a VLAN Tag to the Ethernet protocol. Therefore it is more like eth0 just with a differet IP adress.


Ubuntu 16.04 LTS IRQ kernel panic at shutdown - Alienware R7 desktop

Go to the BIOS settings.

Switch off Secure boot.
Enable Legacy boot mode.
Raid option must be switch on.

In my case I use restart for poweroff ^_^.

With default poweroff method I always get kernel panic.


How to see the full file name on the Lubuntu Desktop?

In default PCManFM in 1.0.0, the behavior was "Showing full filename in desktop and all windows opened in PCManFM".
But, this has been patched by Ubuntu. Ubuntu shows full filename in the all windows opened in PCManFM and shows truncated filename on the deskop. This was confirmed by lstranger in here (sourceforge.net). Ubuntu retained the older full filename in the PCManFM's windows
The full filename is wrapped now in PCManFm 1.0.1.
This also is going to be changed in the latest release i.e 1.0.2.
In the latest version, it will show the filename according to the icon size also.So, if you have 54 sized icon, the file name will be longer. (source)
Also a tooltip will be shown for the full filename when hovered over them. (source)
Note, this behaviour is same for the windows opened in PCManFM's window and the desktop
For recent changes in PCManFM, Have a look at their blog.
Solution:
As a solution, I suggest you to get the PCManFM from the git repository and compile it yourself. In this way, You will at least get  the tooltip and bigger file name's with bigger icons. Good luck.


Swap partition is larger than Ram but Hibernate not working

Try this way.

sudo apt-get install hibernate

After that just type in terminal sudo hibernate This way work for me


How to use the package libreoffice-systray?

It seems that the option has been completely removed from version 6.1 onwards. However, in version 6.0.7.3 (which is available in the bionic main repositories) it can be enabled.

The libreoffice-systray package creates an enable systray Quickstarter checkmark in tools > options > LibreOffice > General

You can enable the checkbox, and add libreoffice --quickstarter to the startup applications.


Why doesn't ls combined with awk show exact sizes?

The problem is that MAWK (the AWK variant installed on Ubuntu) by default prints integers bigger than 2147483647 (231-1) in scientific notation:

% awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

compiled limits:
max NF             32767
sprintf buffer      2040
% printf '2147483647\n' | awk '{x += $1; print x}'
2147483647
% printf '2147483648\n' | awk '{x += $1; print x}'
2.14748e+09

You could use printf with a format specifer instead of print*:

printf '2147483648\n' | awk '{x += $1; printf "%.0f\n", x}'

% printf '2147483648\n' | awk '{x += $1; printf "%.0f\n", x}'
2147483648

In your case:

ls -lR | grep -v '^d' | awk '{total += $5} END {printf "Total:%.0f\n", total}'

ls -lR |
    grep -v '^d' |
    awk '
        {
            total += $5
        }
        END {
            printf "Total:%.0f\n", total
        }
    '

That will force AWK to print total in decimal notation instead of in scientific notation.

However, on another note, you should never parse ls.

A more sensitive way to do that would be using find + stat:

find . -type f -exec stat -c '%s' {} + | awk '{total += $1} END {printf "Total:%.0f\n", total}'

find . -type f -exec stat -c '%s' {} + |
    awk '
        {
            total += $1
        }
        END {
            printf "Total:%.0f\n", total
        }
    '

*%.0f is a trick to make printf print numbers bigger than 2147483647 (231-1), which when using %d as the format specifier would always print as 2147483647. The limit of %.0f is that one will start losing precision after 9007199254740992 (253), if that's ever a concern (thanks to Rotsor for the useful information).


You can use OS-Uninstaller is a small graphical tool to perform a clean and quick uninstall of any operating system (Windows, MacOS, Ubuntu, other Linux distribution..) of your computer.

To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update; sudo apt-get install -y os-uninstaller && os-uninstaller

For more info, and options visit OS-Uninstaller

Source:Ubuntu


I don't think this is expected behaviour, at least going by the manpage description. It looks like apt-cache pkgnames does not include:

missing packages (those named in the dependencies, conflicts, etc. of other packages, but which don't exist in the repository)
packages which are exclusively for something other than the default architecture
pure virtual packages
and possibly other things.


check the OS routes after connecting to the WiFi router, this check can be done with this command ip route the result should be something like this

if your output does not look like this, "Remember the numbers can change", then check your router configuration specifically the country set.


Click packages are the new packaging format used in Ubuntu Touch, and by Ubuntu 14.10, on the desktop version of Ubuntu as well.

Some of the features they provide are:

Simplified packaging for the developer. The Ubuntu SDK can automatically create Click packages of your Ubuntu Touch apps. If you want to create your own, the format is very simple, consisting of two files, manifest.json and <app-name>.json.

The manifiest.json file is the actual package definition and looks like this:

{
    "description": "Your tasks, every device, everywhere. Create and synchronize tasks using Ubuntu One, and connect to your boards in Trello.",
    "framework": "ubuntu-sdk-13.10",
    "hooks": {
        "ubuntu-tasks": {
            "apparmor": "ubuntu-tasks.json",
            "desktop": "ubuntu-tasks.desktop"
        }
    },
    "maintainer": "Michael Spencer <sonrisesoftware@gmail.com>",
    "name": "com.ubuntu.developer.mdspencer.ubuntu-tasks",
    "title": "Ubuntu Tasks",
    "version": "0.5"
}

The <app.name>.json file is the security profile for your app and looks like this:

{
    "policy_groups": [
        "networking"
    ],
    "policy_version": 1
}

To build your package, you can either use the Ubuntu SDK or by running

click build .

You can find more information about packaging your app here.
The ability to run under confinement. What this means is that the app is prevented from doing bad things. It can only access its own private directory and access features that the user allows the app to use. This means that Click packages are very safe and the review process for publishing them is much simpler.

Once you've packaged your app, you can submit your application to the Click App Store. The review process is vary simple and will be completed usually within a few hours. Once reviewed, your app will be available for installation from any device running Ubuntu Touch.

Would they make Debian packaging easier?

Yes and no. Debian packaging is completely different. However, if your app is made with the Ubuntu SDK, you don't need to use Debian packaging and can instead use Click packaging, which is much easier to use and much safer for the end user.

Here are some useful links for more information:

Why is my Ubuntu Touch app not visible in the Ubuntu Software Center?
Where do I submit applications written for Ubuntu Touch?
What is the naming convention for click packages?
The official documentation for Click packages


Ubuntu 20.10 5.8.0-1013-raspi aarch64 (Raspberry Pi 4) where are the w1 modules?

I've been investigating the early adopter 21.04 ubuntu release and that has the missing modules and they work.
My conclusion is thus that Ubuntu 20.04 doesn't support 1-Wire on the raspberry pi and that support is coming in 21.04.


How to optimize sata hard disk in ubuntu 12.04?

If your computer use involves accessing lots of files, I would suggest you mount your HDD with "noatime" option. You will see significant improvement because not every file-read will be written to filesystem.

So, in your /etc/fstab add this:

UUID=24d75db7-ceca-40f7-ac21-979870a15ad6 /               ext4    noatime,errors=remount-ro 0       1

Hope this helps any.


I wrote a little Bash function using mainly awk to process the output of ls and append git branch names to directories, if they are part of repositories.
Installation:
To install the function, simply copy the line below and append it to the end of your ~/.bashrc file. You have to source .bashrc after that or restart the shell session for the change to take effect.
lg (){ ls -alF "$@"|awk '{match($0,/^(\S+\s+){8}(.+)$/,f);b="";c="git -C \""f[2]"\" branch 2>/dev/null";while((c|getline g)>0){if(match(g,/^\* (.+)$/,a)){b="("a[1]")"}};close(c);print$0,b}';}

After that, you will have a new command lg available that behaves like the default ll alias (actually ls -alF), but with the appended current git branch.
Example usage:
Here is some example output, not the branch names in braces behind git1/ and git2/:
$ lg
total 48
drwxrwxr-x 12 bytecommander bytecommander 4096 Aug 26 14:48 ./
drwxr-xr-x 74 bytecommander bytecommander 4096 Aug 26 15:30 ../
drwxrwxr-x  6 bytecommander bytecommander 4096 Aug 26 14:43 git1/ (master)
drwxrwxr-x  7 bytecommander bytecommander 4096 Aug 26 14:42 git2/ (develop)
drwxrwxr-x  4 bytecommander bytecommander 4096 Aug 26 14:45 no-git/
-rw-rw-r--  1 bytecommander bytecommander    0 Aug 26 14:42 regular-file

The lg command still accepts all kinds of arguments, just like ls does. You can e.g. run lg -h, lg ~/projects, lg .. etc.
Updates:

Fixed issue with filenames containing spaces or starting with #.

Known bugs and drawbacks:

The output will not be colored unlike the default ls output (e.g. directories are blue, executables green, symlinks cyan, ...).
It can not handle file names with newline characters in them. They will be displayed, but no branch info is shown.
The ls output will always be correct and display information about the path you specify as argument (if any, otherwise current directory as default). However, the branch information for the ./ and ../ entries is always relative to the current working directory, not the specified directory.
If you run this inside a repository, every subdirectory will also get the branch appended. The function does not distinguish between repository root directories and any repository subdirectories.

If you encounter more problems or happen to know a solution for one of the listed issues, feel free to leave a comment.


OpenMP g++ option missing while compiling, with -Wall you should see this message:

warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
       #pragma omp parallel
 ^

In command line, add -fopenmp

g++ -fopenmp -Wall openmp_test.cpp

Using Geany:

Create a new project
Go to Project → Properties → Build tab
Add -fopenmp to C++ compile & build commands, respectively:

g++ -fopenmp -Wall -c "%f"
g++ -fopenmp -Wall -o "%e" "%f"

Reference: Wikipedia - OpenMP


Ubuntu 12.04 transmission-daemon and zfsonlinux: bad file descriptor and corrupt pieces

It turned out transmission-daemon has a bug, after verify it can show a torrent as 100%, but still fail when trying to read it. What makes the issue worse is that it reports Bad file descriptor on downloading torrents, not the bad one. After strace-ing it, I figured I always got bad file descriptor on the same file, no matter what it reported, so I removed that torrent and everything works fine. There's more information on the transmission trac page.


The issue is there in Ubuntu 17.10. Solved it by running the following command:

xhost +local:


What happens if you delete the root user?

You can't delete an user if there are processes currently running as that user, which in the case of root, is always.
You could manually delete the entries in /etc/{passwd,shadow,group}, but
depending on the settings in /etc/nsswitch.conf, there might be alternate sources of the root account, so things will continue to work. If you then remove the alternate sources in /etc/nsswitch.conf so that only these files are used (by keeping only compat):

passwd: compat
group: compat
shadow: compat

Then things will start to break:

$ sudo -i
sudo: unknown user: root
sudo: unable to initialize policy plugin

It might even lead to an unbootable system; you'll have to go back and fix with a live USB or single user mode.


In /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

Just comment the xfce-panel section.


Bluetooth problem Lenovo-Z50-70 (Atheros QCWB355)

The bluetooth might work after installing these https://github.com/lwfinger/rtlwifi_new/archive/master.zip

https://github.com/lwfinger/rtl8723au_bt/archive/troy.zip

See RTL8723BE Bluetooth does not work


What configuration does "Additional Drivers" corrupt?

Please Remove all lock files by running this in Terminal:

sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock

You will need to be connected to the internet.


Until you find a better way, you should be able to set the brightness by editing /etc/sysfs.conf

Have a look in /sys/class/backlight to see what is there. I have (a symlink) intel_backlight but it could be radeon_b10 or something else depending on your hardware. In any case, inside it you should find a file called brightness which contains only a number that represents the current brightness. Make a note of the number! To change this value first make sure you have this package:

sudo apt install sysfsutils

then open the conf file with a text editor

sudo nano /etc/sysfs.conf

at the end of the file add a line like this:

class/backlight/intel_backlight/brightness = 4000

replace the path with the path to your brightness file (starting with class and no /), and replace 4000 with whatever number you think the brightness should be - my max brightness is 7812, so 4000 would make it about half as bright. Save the file and exit, then reboot. You will have to use trial and error to find the right brightness this way.

Here's where I learned how to do this


Running shell script to open two terminals and run commands in them

#!/bin/bash

a=/absolute/path/frontend
b=/absolute/path/backend

if [[ ! -d $a ]] || [[ ! -d $b ]]; then
   echo "panic! path not found"
   exit 1
fi

cd $a
ng build

cd $b
symfony server:start


There are a few things that can cause this. If you usually have an HDMI device attached, such as a monitor, and now it’s not attached, you will need to plug the monitor in again, go into your audio settings, then choose your notebook as the output. From there you can disconnect the HDMI device again.
Otherwise, you may need to apply some changes to the PulseAudio settings. What do you see when you type lspci -nnk | grep -A2 Audio into the terminal?


May be the case that your pen-drive may not be bootable, try format it once and add ubuntu distribution using 'Universal USB Installer' and go to boot/setup screen and make boot preference as 'boot from USB'


Basic USB/USB wireless mice normally work (still have to find one that doesn't).

If the mouse is a gaming/special mouse, it depends. Most of the time it will just work as a normal mouse or will require quite a lot of configuration, unless the manufacturer explicitly support Linux. Said in other way, the additional buttons will probably be recognized by the system, but they are not normally assigned to anything, and if the manufacturer does not provide info, configuring them will be a bit of a pain.

You can see something in the Ubuntu Community help and in the (as ever) nicely and complete Arch wiki help page (most of it will work in Ubuntu too, but you have to adapt conf files locations and so on).

If you think of a specific mouse, you can ask (please --- another) specific question to see if anyone with the same model has solved the thing for you.


Welcome to the modern age of browsers. 250MB is not a lot for a browser (on any platform).

If the computer is freezing it suggest two things:

You're running out of RAM, and
You have an insufficient swap partition. Swap is disk space where Ubuntu can move things from memory temporarily.

Those two together would cause all sorts of horribleness.

The easy and best solution is to spend $15 on another stick of RAM. Somewhere around 2GB should give you a solid (aka don't really have to worry about RAM) desktop experience.

Other than that, rebooting into a Live CD and adding some swap space is the only real option: https://help.ubuntu.com/community/SwapFaq#How_do_I_add_more_swap.3F But you need to appreciate that swap is a thousand times slower than RAM. Don't rely on it.


How to convert .ts file into a mainstream format losslessly?

Matroska (MKV)

This will stream copy (re-mux) all streams:

ffmpeg -i input -map 0 -c copy output.mkv

The -map 0 option is used to include all streams. Otherwise it will use the default stream selection behavior which would only result in one stream per stream type being selected. Since Matroska can handle most arbitrary streams I included -map 0.

MP4

This will stream copy (re-mux) all streams:

ffmpeg -i input -map 0 -c copy output.mp4

If your inputs formats are not compatible with MP4 you will get an error.
Your player/device may not support all arbitrary, less common, or legacy formats even if they are supported by MP4.
If in doubt re-encode to H.264 + AAC as shown below.

This will re-encode the video to H.264 and stream copy the audio:

ffmpeg -i input.ts -c:v libx264 -c:a copy output.mp4

The next example will re-encode both video and audio:

ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4

Lossless H.264 example:

ffmpeg -i input.ts -c:v libx264 -crf 0 -c:a copy output.mp4

Lossless files will be huge.

See FFmpeg Wiki: H.264 for more info.


How to prevent opening of a terminal window when a "Show In Folder" action is selected for the downloaded file?

you could reinstall nautilus as below;

sudo apt-get  install nautilus

Nautilus is default file manager. maybe it removed accidentally.


Is the pm-suspend command equivalent to the GUI suspend option?

Seems they are the same, I did a little test to prove that they are the same command

I executed the following command

sudo chmod -x /usr/sbin/pm-suspend

To disable the execute bit and when you select the sleep from the menu the screen goes black, but it does not suspend.

Then renabling it

sudo chmod +x /usr/sbin/pm-suspend

The sleep will work from the menu.


Dual Boot Mac El Captain along with Ubuntu 14.04

rEFIt has been abandoned since 2010. I created a fork of it, called rEFInd, which I'm actively maintaining. It's not strictly necessary to use either program, but one or the other (and especially rEFInd) can be helpful.

The main "gotcha" with OS X 10.11 ("El Capitan"), compared to earlier OS X releases, is the new System Integrity Protection (SIP) feature, aka "rootless." This is a security feature that's supposed to make it harder for inexperienced users to cause their systems to self-destruct, or for malware to take control of the computer. This has the undesirable side effect of making it harder to install and use some types of low-level software, including third-party boot managers like rEFIt and rEFInd. In brief, you must disable SIP. Doing this is described on quite a few pages, such as this one and this one. After you install rEFInd, you can re-enable SIP.

There are about a bazillion sites that describe how to install Ubuntu on a Mac. Try to find one that's relatively recent. Also, be aware that it's possible to install Ubuntu in either BIOS/CSM/legacy mode or in EFI mode. The latter is almost always preferable, but a lot of guides (especially older ones) describe the former -- often without properly describing the difference. See this page of mine for basic information on what the Compatibility Support Module (CSM) is and why it's problematic. (That page is geared more towards UEFI-based PCs than Macs, but it's still pretty applicable.)

In broad strokes, I recommend you:

Boot the Ubuntu installer into "try without installing mode."
Open a Terminal program window.
In the Terminal, type ubiquity -b. This will run the Ubuntu installer, but -b tells it to not install a boot loader. If you follow advanced installation options, be sure to use ext4fs as your filesystem. Do not use a separate /boot partition unless you use LVM, RAID, or an encrypted root (/) partition. You may need to shrink your OS X partition to make room for Ubuntu (or you can do that before you start).
When you're done, reboot, but hold down Command+R to boot into the OS X recovery environment.
Launch a Terminal window and type csrutil disable to disable SIP.
Reboot. The system should boot OS X normally.
Install rEFInd.

At this point, when you reboot, rEFInd should appear and give you options to boot either OS X or Ubuntu. Chances are both will work; but if you used a separate /boot partition, you'll have to hit F2 or Insert twice rather than Enter to boot Ubuntu. In the resulting screen, you must add ro root={whatever} to tell the kernel where your root (/) filesystem is; {whatever} is a description of that location, as in /dev/sda7 or /dev/mapper/ubuntu-root. After you boot, running the mkrlconf.sh script that comes with rEFInd should obviate the need for adding the root= option.


How do I install GNOME Tweak Tool in Kubuntu 17.10?

It's already installed, however gnome tweak tool won't help you much, if you are using plasma you should tweak your stuff from system settings.


How to disable the notification for additional driver

I've found :

jockey-text -m free

Which will make suggestions only for drivers with "free" license. This solves my case (because drivers suggested aren't free), but doesn't fix the "How to disable all notifications?".


How to monitor folders visited by a user?

Install inotify-tools and you can play around with inotifywatch and inotifywait. The first logs all activity, the second breaks on certain activity. Both work well but obviously which you want depends on what you're doing.

A simple bash to show the first operation inside a directory is:

$ inotifywait -r .
./path/to/ OPEN file.ext

Note if it's a big dir, setting up all the listeners takes a while.

For better scripting access, look at pyinotify or just look at the C headers for inotify-tools.


Dissapeared cursor after install Ubuntu 14.04

I had the same problem in Ubuntu 14.04 and solved following the instruction in this post http://itsfoss.com/invisible-mouse-cursor-ubuntu-1310/ :

Open a terminal Window (CTRL + ALT + T)
Execute the following command:

gsettings set org.gnome.settings-daemon.plugins.cursor active false

Hope it helps :-)

Regards


LDAP client login only works after logging out of local account

I ran the commands below based on this guide

sudo apt-get install ldap-auth-client nscd
sudo auth-client-config -t nss -p lac_ldap

This differed from the commands I ran based on our internal documents. Seems to work now, so I'm going to move on. Thanks for the input.


The repository isn't added properly to the APT sources. Have you been editing the sources.list file manually? Please don't do that!

As you can see APT now tries to fetch

http://ppa.launchpad.net/ubuntu-wine/ppa/dists//ubuntu/main/binary-i386/Packages

instead of (correct):

http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/saucy/main/binary-i386/Packages

Please use the add-apt-repository utility next time to add PPAs. I suggest to remove the repository from your sources.list for now and re-add the repository:

sudo rm /etc/apt/sources.list.d/ubuntu-wine-ppa_-saucy.list
sudo add-apt-repository ppa:ubuntu-wine/ppa

Then run

sudo apt-get update

again and it should use a working URL.


In the file /usr/share/gnome-bluetooth/pin-code-database.xml add the line:

<device oui="DC:7E:AA:" type="mouse" name="Microsoft Designer Mouse" pin="0000"/>

just below the line:

<device oui="7C:1E:52:" type="mouse" name="Microsoft Touch Mouse" pin="0000"/>

Information about the bluetooth connections for bluez version 4 is stored
in files in directory /var/lib/bluetooth/.
The basic problem with 14.04 is that the link key may not be added to the
linkkeys file when the mouse is paired, so the connection is not really
complete.  The pairing (for version 4) should create entries in the "names"
and "trusts" files, and an entry with a link key in the
/var/lib/bluetooth/<host bt addr>/linkkeys file.  The mouse address entries
do get created in the "names" and "trusts" files, but not in the "linkkeys"
file IF IT IS NOT ALREADY PRESENT.   To fix the problem, add the line
yourself (even the example line with an improper hex key), and it should be
properly maintained in future pairings.

Example line:

C0:33:5E:01:8A:AC DEADBEEFDEADBEEFDEADBEEFDEADBEEF 4 0

The file is root only rw, so either become root to edit or unprotect,
edit, reprotect it.

Bluez version 5 uses a totally different location:

  /var/lib/bluetooth/<host bt addr>/<mouse address>/info

and different file for storing the link and other information.


How can I dual boot Ubuntu 20.04 and Windows 10 on Dell XPS 15 9500 (Seperate SSD)?

For the second SSD slot, there is no screw or casing. I bought this from Amazon, which seems to work really well.

BIOS was able to detect the second SSD, but Windows was not showing it. I used 'Disk Management' to create a full-partition on SSD. (unnecessary?)

In BIOS, changed the setting to AHCI. Windows does not boot once you change it, however, you can boot in safe-mode. Once you boot in safe-mode, you can boot in the normal mode next time.

Create a Bootable USB for Ubuntu.

Install Ubuntu to your second SSD! I had no problem so far. (If Ubuntu does not recognize WiFi, disconnect charger and restart. Don't know why but happened only the first time.)

This might help to increase battery life for Ubuntu.

F2 is for BIOS | F12 is for Booting Options


FS mounted as RO on boot after upgrade to 15.04

Once you're sucessfully logged on to Ubuntu. Open a Terminal (Ctrl+Alt+T)  followed by:-

sudo nano /boot/grub/grub.cfg

Edit the line that looks like

linux /boot/vmlinuz-x.x.x-xx-generic root=xxx\xyz ro xxx-options

to

linux /boot/vmlinuz-x.x.x-xx-generic root=xxx\xyz rw xxx-options

This file is generated from the files present in /etc/grub.d and therefore you'll need to edit this each time you update or make changes to grub.


How do I changed the language used by the Gnome spell checker?

The spell checker is based on your Locale - if you switch it to en_CA (or en_GB if en_CA is not available) you should be more Canadian like spellings.

Get a list of installed languages with the following:

locale -a

You can view your current selected locale with:

locale

Once you've selected the one which best suites you - you can update it here:

sudoedit /etc/default/locale

Be aware if an entry from locale -a ends with .utf8 it needs to be entered as .UTF-8 in the default locale.

After you make those changes you'll need to reboot for them to apply.


Making a live USB with persistent storage

I have an IBM T-42 Thinkpad too, and Lubuntu 32-bit works with the boot option forcepae.

I suggest that you install mkusb according to the following links,

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent

Then, with mkusb installed, you can create a persistent live drive with all current versions of Ubuntu (also 64-bit versions for newer computers).

See also the following links for more details,

how-do-i-make-a-persistent-live-usb-of-ubuntu-16-04

unable-to-boot-ubuntu-live-usb-flash-drive-with-casper-rw-persistent-partition

Edit: After a debugging dialogue, a bug was found and squashed. The problem was some confusing data due to a floppy drive (a bug that only affects very old computers).

A new version can be installed via the following commands

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get dist-upgrade

The current update (2017-04-03) installs mkusb version 12.0.9


Apache server - domain name return "404 Not Found"

Your web server's configuration is OK. To access certain host via host name, instead of IP-address, you must have pre-configured Domain Name Service / Server (DNS). There is two solutions:

1st. If you want you can configure yours own DNS which you can use in your local network. Here you go the manual - look at Primary Master configuration.

2nd. You can buy (register) a domain name from any DNS provider. This domain will be accessible from the Internet. For example I bought one from host.bg - there has a promotion of .info at the moment.

In this case you will need a (public) static IP-adress or pre-configured Dynamic DNS (DDNS), which will connects your dinamic IP-adress with the domain name.

I've made short survey and I found that domain zbytki.cz is registred from someone - hope that is you.

When I checked with $ nslookup zbytki.cz it returns: ** server can't find zbytki.cz: NXDOMAIN.

So the domain is registered but is not configured to work with certain (static) IP address.


I had the same problem (Ubuntu 11.10 oneiric).

I installed GNOME Tweak Tool:

  sudo apt-get install gnome-tweak-tool

It showed up as "Advanced Settings" in the menu (Dash home). I ran the tool and I started playing with some options, most likely the one that did the trick was: Theme-> Buttons Have Icons.

Hope this helps.

Juan


How do I partially suppress the command-line output of zip?

zip -q -T -m output *.png  && echo "success" || echo "failure"

should work too, alternative to the solution, given in the comments.

It works like this: If the first commmand (zip ...) succeeds, the following combination with && can succeed too and is performed. But if the first part fails, then the whole combination will fail, and the &&-part is skipped, but an or-combination is successfull if one of both is successful, so the ||-part is performed.

You aren't interested in the combined result (true/false), but in the side-effect: a status feedback.


That's because probably you're trying to install a 32-bit on a 64-bit system.
Try this-

linux32 ./setup.sh


Selling Used Laptop with Fresh Ubuntu Install. How to make it boot into config screen on first boot?

OEM Install? Yes.  When a recipient boots for the first time they are directed to the system setup wizard, to set location, keyboard layout, user name, and other specifics. You may wish to read this discussion of OEM installs and recovery reimaging.

When I refurbished desktops and laptops at Freegeek in Portland yahrens ago, every machine sold through their Thrift Store or which went out the door to schools, non-profits, and other destinations was OEM-installed, and Freegeek (though a very worthy 501(c)(3) not-for-profit) was not a manufacturer.

NOTE

Latest Ubuntu or LTS?  If you use the 'latest' the recipient will need to upgrade in July to get support here, as 19.10 is EOL then.  It would be a kindness to the recipient to install 18.04 LTS, which does not reach the end of community support until April 2023.


(From comment above by Michael K):

  You can use the lpr command. You can print multiple files using e.g.
  lpr * in a folder. If the order is important, you could write a shell
  script which prints the files e.g. ordered by filename, if lpr does
  not do that automatically. Hope this helps


Simple CLI to append one file to the end of another

As far as I know, the simplest way would be:

cat file2.txt >> file1.txt

Reference: Appending Redirected Output.


no network in ubuntu13 when virtal box is configured with bridged adpater

It seems that your system is outdated (NOT BROKEN) so you might update your OS and re-install VirtualBox using the official repository. Making a NEW VM is recommended as the version may be a bit different, just backup the HDD if necessary and while making a new one, use the HDD.

This is my recommended solution:

Open a REGULAR Terminal and Launch these commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install dkms

Open a ROOT Terminal and type nano /etc/apt/sources.list

In here paste (NOT REPLACE) this text:

deb http://download.virtualbox.org/virtualbox/debian trusty contrib
deb http://download.virtualbox.org/virtualbox/debian saucy contrib
deb http://download.virtualbox.org/virtualbox/debian raring contrib
deb http://download.virtualbox.org/virtualbox/debian quantal contrib
deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free

Then in NORMAL Terminal:

sudo apt-get update
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Then INSTALL:

sudo apt-get install virtualbox-4.3

Enjoy!


After creating a symlink from PlayOnLinux steamapps to Windows steamapps, should games appear as installed in Steam?

They should be there. Try deleting everything EXCEPT steam.exe and steamapps and launch Steam.  It should pick them up.
But a warning.  Some games really really hate simlinks.  For example Portal 2 and Call of Duty: Modern Warfare 3 will not work with simlinks.  I forget exactly why.  There are other games that I haven't mentioned (or run into). So you'll have to watch out for that.
Half-Life
Half-Life 2
both work with simlinked steamapps.  It is really a touch and go.  You have to see what games work and what games don't.


Universe and multiverse software sites for Ubuntu 12.04 LTS

I'm assuming you're asking how to enable repositories that are not enabled by default.

Open a terminal. Run

sudo gedit /etc/apt/sources.list

This will open sources.list in gedit as root so that you can make changes.

Any line in this file with a # is "commented", which means that it's interpreted as a comment and will not be loaded. If you see a part of the file you want to uncomment, you could change it from:

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

to:

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

In the second option, the lines are uncommented and will be loaded by any programs reading from these sources (like the software center). Remember that you have to save the file after making these changes, then close gedit and the terminal and try finding your program again.


Choppy USB mice on just one of USB ports

Could this be a hardware problem? There are several USB port problems reported on different Lenovo models, see for example the links listed on their user forum.


Delete, Remove or Uninstall the package firefox-globalmenu

Unity appmenu integration for Firefox
This package provides an extension which adds support for the Unity
appmenu to Firefox


According to this thread the arm emulator is not currently in a stable state - it is slow and prone to locking up. They recommend using the i386 emulator instead.

It appears the basename: missing operand error itself is not critical. It is probably the next thing it's trying to do that is not succeeding, or stuck in an infinite loop.


AutoKey question: How can I hold down a simulated keypress while holding down the key combination?

This is not possible with a high-level keyboard macro tool such as Autokey. You should remap your broken key using more low-level tools. xmodmap is installed by default, and allows to modify the keymap. For guidelines on how to proceed, see the excellent answer of Kevin Bowen, Xev and xmodmap, to the question How can I change what keys on my keyboard do? here on Ask Ubuntu.


Please check /etc/X11/xinit/xinitrc, /etc/X11/Xsession and the files in /etc/skel.

I assume that you have ruled out any user specific configuration files by creating a brand new user and logging in as that user.


best is to click on the left side of scroll bars always :D

Also they should implement a Snapping feature, once the scroll bar is snapped then there should be indication/color change


Are you sure that you've got enabled your calendar(s) in the left pane of Thunderbird's calendar tab? I.e. clicked the calendar(s) in the list so that they got a thick next to them.

Because what you describe I see with my calendars too, when I haven't enabled them in the left calendar list. Of course then also in the right pane where the days are visible, no calendar entries are shown, just the days. That's why (here) the print dialoge shows only an empty preview pane then.

Probably this would be too easy, but sometimes we oversee the little things.