Errors when performing fsck on encrypted partition in recovery mode

Boot the Ubuntu Desktop CD or go to recovery mode,

Install lvm2 and cryptsetup,

  sudo apt-get install lvm2 cryptsetup

load the cyrptsetup module :

  sudo modprobe dm-crypt

Decrypt your file system,

  sudo cryptsetup luksOpen /dev/hda5
  crypt1

Get the live CD to recognize (activate) your LVM :

  sudo vgscan --mknodes sudo vgchange
  -ay

Run fsck,

  fsck /dev/mapper/

Answer was found here.


As you said in your comments, you used this answer and therefore the PPA ppa:eugenesan/ppa, but you should not use it:

  Packages in this a nd related PPAs are for personal use only.   They
  developed specifically for several custom environments and may not
  work for you.

To check your problem I have installed the PPA and had some unpleasant side effects.

Therefore purge the PPA via

sudo ppa-purge ppa:eugenesan/ppa

and install smartgit via the steps below

Download the latest version here

either the deb file or the tar.gz, the result is the same

Now you have to decide. Use the deb or the tar.gz

Use the deb file

Install the deb file via

sudo dpkg -i smartgit-7_0_0.de

or

Use the tar.gz file

Extract the archive in /opt

sudo tar xf smartgit-generic-7_0_0.tar.gz -C /opt

Install the desktop file with the command

/opt/smartgit/bin/add-menuitem.sh

That's all

Start SmartGit via your Launcher, in my screenshoot GNOME Shell

You can check for updates in SmartGit via

Help > Check for new Version ...

;)


Partitioned external hard drive: where are my files?

You may have originally done a WUBI installation, in which case Linux was installed to a file in the Windows filesystem (normally C:\ubuntu\disks\root.disk). I'm not sure of the format of this file, but if it's a simple image file, you should be able to mount it as a loopback device. For instance, if you mount your former Windows C: partition at /mnt/windows, you could try:

sudo mount -o loop /mnt/windows/ubuntu/disks/root.disk /mnt/oldubuntu

(You will have to have created both the /mnt/windows and /mnt/oldubuntu directories before doing this.)


Is it possible to install a "For Purchase" package using apt-get?

Do I have to use the Software Center to install a non-free package?

Software Centre performs 2 distinct functions.  You can look up applications, and then install or remove then.  But, it is also invoked by default (as a GUI method) to install .deb (or Debian) files.

So NO, you could use some other method (there are many) or install a .deb package in a non-GUI manner.

 1. Can I make a purchase using apt-get?

Typically the 'software key' is separate from the software.  You only need a PPA to apt-get from.  You may then type in, install, or retrieve the software license (or key) to fully enable the software.

Some software in partially functioned without a license, others are fully functional for 30 or 60 days.

 2. How about if already made the purchase
and I want to re-install the software.
Can that be done with apt-get?

That simply depends on whether there is a PPA, and if the license is separate.


Depending on the size and fragmentation of the lost file it could be possible to recover it, as when a partition is formatted, a tiny fraction of the available space is actually overwritten.

Use photorec and

choose the same partition the file was on
select File Opt and check to look for zip files (*.odt files are in fact zip files)
choose Whole to analyze all data, not just "unallocated" data

Then you will be presented with all zip files photorec has found. There is no way to grep the files directly as they are compressed, but you can use zipgrep as shown below. Or, as no filenames will be retrieved, you'll have to open each one and check.

To automate the search change directory to the retrieved files use zipgrep to find a word or a pattern, for example like this (it will show all files with the pattern pattern in them):

cd retrieved_files
for F in *; do zipgrep -q pattern "$F" && echo $F; done


How to prevent package removal upon upgrade to new Ubuntu version?

On servers, you should always review the upgrade process and which packages are being offered for removal.

Ubuntu's upgrade process usually doesn't remove packages for no reason. Possibly it was due to dependency issues with other packages. Unfortunately, without access to logfiles it's not easy to find out the specific reason why your packages have been removed. Depending on the mechanism you used to commence your upgrade, you should find logfiles in /var/log documenting the upgrade process.


12.04 Dual Boot w/ Windows 8 hangs at purple screen. Black screen in recovery. Please help!

Some newer Intel need this instead of nomodeset.

Asus i3 with Intel graphics:

acpi_osi=Linux
video=1280x1024-24@75

or whatever native resolution is


Java applets crashing in 14.04 and 14.10

Apparently openJDK is broken in 14.04 (& 14.10). This problem is fixed by installing oracle java 7:

    sudo add-apt-repository ppa:webupd8team/java -y
    sudo apt-get update
    sudo apt-get install oracle-java7-installer

To allow FireFox to run the applets you also need IcedTea Java Web Start:

    sudo apt-get install icedtea-netx-common

PS I also installed icedtea-netx and that did not work. Only icedtea-netx-common worked for me (Ubuntu 14.10).

Everything works now!


How to stop leafpad from throwing error "can't save config file - /home/pi/.config/leafpad/leafpadrc"

Turns out it is an ownership issue with that particular file.

These two commands fixed it:

sudo chown pi ~/.config/leafpad
sudo chown pi ~/.config/leafpad/leafpadrc

It is now completely gone.

The best part is now it remembers where it was in the desktop when it was last closed.


This is not a real answer, it's a frame challenge.

If you don't have multiple clients, squid will offer few, if any, benefits over browser caching.

Browsers cache content, but the cache is local to the browser. Squid shares it cache among clients. As long as you have few clients, this doesn't really make sense.

In addition, most traffic those days are TLS. Caching this with squid requires configuring certificates to allow squid to read traffic. The browser, on the other hand, is able to cache TLS content without any configuration.

What you should do is use some kind of ad and script blocker in your browser. Those can reduce the amount to download significantly.


Good text editor or other software for storing structured information?

Libreoffice calc and most other spreadsheet software can save and read .csv files which can be saved as a .txt and can be opened in any text editor.

From the Wikipedia page on CSV files:

  A comma-separated values (CSV) (also sometimes called character-separated values) file stores tabular data (numbers and text) in plain-text form. Plain text means that the file is a sequence of characters, with no data that has to be interpreted as binary numbers. A CSV file consists of any number of records, separated by line breaks of some kind; each record consists of fields, separated by some other character or string, most commonly a literal comma or tab. Usually, all records have an identical sequence of fields.

.csv files actually predate computers so that's your best bet given all your requirements.


Reserved block count:     1310720
Free blocks:              1311973

When a file system is created, 5% of all blocks are reserved for the super user (for writing logs etc.)

If this disk is only for storing files (and e.g. doesn't contain /var/) you can set this to 0% (or you may keep 1% just in case):

$ tune2fs -m 0 /dev/sda5


Failled to partition error during installation

Your picture failed to post as of this moment, but I assume Windows must have written some form write-protection to prevent any other Operating Systems from being installed, otherwise, it may be that the options you chose for installation were off. If you do not mind posting those, that would be helpful.
I've yet to see a hard drive that has meet a partition limit, so I assume it's either an option set by Windows, however unlikely, or one of your installation options needs to be tweaked.

I recommend trying it this way; on the page where you partition your drive:

Choose the disk drive you wish to install it on, that being the larger disk of the ones listed -- most likely listed as sda.
Create a new partition from the free space used with Windows, though this could be risky and will require you to verify drive C:\ upon the next Windows boot, and set its partitioning to consist of either NTFS (compatible with Windows) or EXT4 (Not accessible from within Windows)
Make sure to set that as the root directory that ubuntu will be install to.
At the bottom, it asks for the drive where the bootloader is installed and offers a drop-down list. This needs to be the sda drive from before.

From there, you shouldn't need to do much else, so start the installation and watch for errors.

If you want your windows bootloader back instead of grub2, run a program called EasyBCD (the Non-Commercial Version), found here:
https://neosmart.net/EasyBCD/


How to install gitversion on Ubuntu 18.04.4?

Yea. The GitVersion doc on installation is somewhat blur for linux distros. Well, answering your question above i think I figured it out. Move the gitversion binary generated after the tar -xvf gitversion-ubuntu.18.04-x64-5.3.7.tar.gz to /usr/local/bin. See complete installation steps below:
wget https://github.com/GitTools/GitVersion/releases/download/5.3.7/gitversion-ubuntu.18.04-x64-5.3.7.tar.gz
tar -xvf gitversion-ubuntu.18.04-x64-5.3.7.tar.gz
sudo mv gitversion /usr/local/bin

Also the gitversion tool works only on git initialized directory. Happy semantic versioning!!!


Does Ubuntu work on the Asus F552CL-X211H?

I have almost the exact same laptop, if not exactly the same (for what is worth about compatibilty, i.e. the wifi and bluetooth adapters: ASUS F552C).

Everything worked out of the box in Trusty, Vivid and Wily, except the wifi and the bluetooth adapters, which are both easily installable by installing git and running a single command;

First, install git:

sudo apt-get install git

Then clone the GitHub repository for the wireless and bluetooth drivers and install the drivers using this command:

git clone https://github.com/neurobin/MT7630E.git; cd MT7630E; sudo bash install


VirtualBox 5.0 crashes on Ubuntu 16.04 LTS every time on kernel 4.13

I think you are using old 5.0 version. Virtual box have released version 5.2.6 with fixes for new Linux kernel version like 4.13.

Kindly consider to manually download and install the same:

https://www.virtualbox.org/wiki/Linux_Downloads

You can refer the changelog of 5.1 and 5.2 from below link:-

https://www.virtualbox.org/wiki/Changelog-5.1

https://www.virtualbox.org/wiki/Changelog


VirtualBox - Failed to open a session for the virtual machine. No error info

This was solved by disabling 3D acceleration in Settings > Display > Extended Features.

This problem occurred with an integrated Intel HD Graphics 4000 GPU on a Intel Core i5 3570K.


All threads in a Java process share almost all memory.  Each thread will have a local stack which is usually less than a megabyte.  As you see all the relate threads show the same memory utilization.  The 60 related processes showing 3.7% memory utilization might be using 3.8% of available memory.


Add a line

dependencies = qemu

to your project's .quickly file. Replace qemu with a comma-separated list of whatever packages you need as  dependencies.


Normally speaking, Moonlight would do the job. However Eurosport (amongst others) employ a  layer of DRM that Microsoft have not published technical documentation for. If they did, the DRM would likely be rendered completely useless as anybody could write an application that decoded their customers' streams.

In the future there might be the possibility of a binary-only distributed plugin that contains the DRM decryptor but this relies on Microsoft to both release the technical specs under NDA to Mono devs and then agree a licensing term that allows redistribution.

The Mono devs probably have enough technical know-how to reverse-engineer the DRM but they'd probably find their patent-protection contract torn and then a nice little lawsuit to follow. Marinated in a DMCA broth (Novell is US-based).


DISCLAMIER: I AM NOT AN OPENSTACK EXPERT. THE FOLLOWING IS MERELY AN OPINION AND MAY BE OUTDATED OR COMPLETELY INCORRECT. IN NO WAY CAN I BE HELD RESPONSIBLE FOR CONSEQUENCES IN USING THE CONTENT BELOW.

Multi-Hosting

Having networking services running on every node will have its advantages and disadvantages.

Many different networking redundancy possibilities are possible including multi-hosting.

Multi-Hosting requires adding an IP on the VM network to each host in the system, and you'll probably get a slight performance decrease on the compute host.

It's also possible to combine this with a hardware gateway to remove the need for your compute hosts to gateway, and they'd only need to DHCP and NAT for VMs.

Another noted disadvantage of Multi-Hosting is the additional uses of IP's in a subnet.

Take a look at this document for more info.

In my opinion, it's probably a good idea to multi-host.

RAID

The Openstack documentation recommends you do not use RAID, the reason being that Swift is very write-heavy and performs very poorly with most parity-based RAID (e.g. RAID 5 or the more complicated RAID 26).

Don't forget to backup your data, of course!

Openstack-Networking vs. Quantum/Neutron

Openstack-Networking seems to be a more mature stack in terms of time in the field and resources for learning.
Quantum/Neutron seems to be designed to be more extensible and easier to manage.
Quantum/Neutron does not support multi-hosting and will not in the future.
I really can't give an honest opinion, as I have personally worked with neither and cannot easily find a good discussion on the two. I'd say go with the one your team is comfortable with and provides the options you need.

Distribution of Resources

I really can't help as much as I would want here. I'd give this article a read, and ping the IRC Channel.

Installing with MAAS and Juju

Ubuntu provides a tutorial for Ubuntu Cloud Infrastructure installation with MAAS and Juju.

CPU: Intel vs. AMD

I cannot find any good information whether AMD or Intel is better for Openstack. Based on the absence of information on the subject, I would think there's very little disadvantage. The Openstack Documentation refers to both AMD and Intel chips in a similar fashion.

The page only states that AMD-V is required, and the Opteron 6300 specifications page states it does.

On the topic of hyper-threading, it will double the logical cores, and that may be good. It's recommended you stress-test both configurations to see which is faster.

More Help

Ask Ubuntu may not have been the best location to ask these kinds of questions.

Try these places if you have questions or want a professional opinion:

Openstack IRC Channel
Openstack Q&A
Openstack Mailing Lists
Openstack User Groups
Server Fault


Can't get past the Ubuntu loading screen when installing

When you boot the disc you should see some other options for booting up, such as no acpi, no USB, no graphic installation, etc... I believe they are available by hitting the F1-F6 keys on Ubuntu boot discs.

Try different combinations of installation options, and see what happens. Also, if you manage to run an installation without the fancy loading image you will be able to see what's the actual error on the console.


Does my graphics card share RAM with the CPU? How to find this information in Ubuntu?

Both AMD and Intel have introduced CPUs and motherboard chipsets which support the integration of a GPU into the same die as the CPU. AMD markets CPUs with integrated graphics under the trademark Accelerated Processing Unit (APU), while Intel markets similar technology under the Intel HD Graphics and Iris brands.Wikipedia

Modern Intel processors can have either Intel HD Graphics, Intel Iris integrated GPUs, or hybrid AMD Radeon Vega M graphics.

Intel HD Graphics are the more common version of Intel integrated graphics. According to Graphics Cards: Integrated vs. Dedicated website:

An integrated graphics processing unit (GPU) doesn't use its own RAM; it utilizes the system's memory instead. For modern Intel processors having integrated graphics, at any given time the GPU can access between 1 and 5 percent of the available memory. This percentage varies depending on the size of task, especially if you're multitasking or playing a game.

Unlike Intel HD Graphics GPUs, Iris integrated GPUs have a small amount of onboard memory to help speed them up.

Hybrid AMD Radeon Vega M graphics is connected to 4GB of second-generation High Bandwidth Memory (HBM2).

Some AMD Ryzen CPUs do not have integrated graphics. You need a discrete GPU for Ryzen CPUs that don't have a G suffix.


I may be wrong, but maybe this PPA can help ?
Looks like it uses bohoomil fontconfig-ultimate


Regarding your audio-output (Volume N/A):

Change the content of your mpd.conf, located at /home/Username/.mpd/mpd.conf to:

music_directory    "/home/nathan/music"
playlist_directory "/home/nathan/.mpd/playlists"
db_file            "/home/nathan/.mpd/mpd.db"
log_file           "/home/nathan/.mpd/mpd.log"
id_file            "/home/nathan/.mpd/mpd.pid"
state_file         "/home/nathan/.mpd/mpdstate"

audio_output {
      type  "pulse"
      name  "mpd pulse-audio-output"
}

audio_output {
      type  "alsa"
      name  "mpd alsamixer-output"
}

audio_output {
type               "fifo"
name               "fifo_visualizer"
path               "/tmp/mpd.fifo"
format             "44100:16:2"
}

After that open a terminal window and type mpd + enterkey, followed by ncmpcpp + enterkey, then hit 8key, to enter the Outputs window (see screenshot), where you then can either choose mpd pluse-audio-output or mpd alsamixer-output.

One of those two should actually work for you!!

Now for your other problem (It won't dectect my music): Please refer to one of the many guides to set up mpd/ncmpcpp properly: 01 | 02 |03.

If you come across any problems during the setup procedure please edit your original question and specifically add the information there!! GL


Ubuntu Trusty - corresponding Debian release? Wheezy or Squeeze?

squeeze is way too old for Ubuntu 14.04. If you must, use wheezy. I'd recommend against it altogether and ask the maintainer for a Ubuntu release.


System crashes (screen doesn't get updated) when playing 'heavy' videogames

Looks like it's a bug triggered in nVidia driver (looking in /var/log/kern.log):

Aug  9 07:27:25 scv kernel: [  420.064006] BUG: soft lockup - CPU#0 stuck for 23s! [valley_x64:3006]
Aug  9 07:27:25 scv kernel: [  420.064008] Modules linked in: dm_crypt pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) parport_pc ppdev rfcomm bnep bluetooth binfmt_misc ext2 snd_hda_codec_hdmi snd_hda_codec_realtek arc4 uvcvideo videodev v4l2_compat_ioctl32 snd_virtuoso snd_oxygen_lib snd_mpu401_uart psmouse snd_seq_midi snd_seq_midi_event ath9k snd_seq snd_hda_intel snd_hda_codec sp5100_tco snd_hwdep i2c_piix4 mac80211 snd_rawmidi asus_atk0110 snd_pcm k10temp ath9k_common serio_raw ath9k_hw ath nvidia(P) edac_core edac_mce_amd cfg80211 snd_timer snd_seq_device snd soundcore snd_page_alloc mac_hid wmi lp parport usbhid hid pata_atiixp r8169 firewire_ohci firewire_core crc_itu_t pata_via
Aug  9 07:27:25 scv kernel: [  420.064044] CPU 0
Aug  9 07:27:25 scv kernel: [  420.064045] Modules linked in: dm_crypt pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) parport_pc ppdev rfcomm bnep bluetooth binfmt_misc ext2 snd_hda_codec_hdmi snd_hda_codec_realtek arc4 uvcvideo videodev v4l2_compat_ioctl32 snd_virtuoso snd_oxygen_lib snd_mpu401_uart psmouse snd_seq_midi snd_seq_midi_event ath9k snd_seq snd_hda_intel snd_hda_codec sp5100_tco snd_hwdep i2c_piix4 mac80211 snd_rawmidi asus_atk0110 snd_pcm k10temp ath9k_common serio_raw ath9k_hw ath nvidia(P) edac_core edac_mce_amd cfg80211 snd_timer snd_seq_device snd soundcore snd_page_alloc mac_hid wmi lp parport usbhid hid pata_atiixp r8169 firewire_ohci firewire_core crc_itu_t pata_via
Aug  9 07:27:25 scv kernel: [  420.064066]
Aug  9 07:27:25 scv kernel: [  420.064068] Pid: 3006, comm: valley_x64 Tainted: P           O 3.2.0-51-generic #77-Ubuntu System manufacturer System Product Name/M4A88TD-V EVO/USB3
Aug  9 07:27:25 scv kernel: [  420.064072] RIP: 0010:[]  [] _nv003210rm+0x47ff/0xaf83 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064186] RSP: 0018:ffff8801d068bbf8  EFLAGS: 00000296
Aug  9 07:27:25 scv kernel: [  420.064188] RAX: 0000000000000045 RBX: 0000000000070004 RCX: 0000000000000008
Aug  9 07:27:25 scv kernel: [  420.064189] RDX: 0000000000070004 RSI: 0000000000000000 RDI: ffff88020f0d0008
Aug  9 07:27:25 scv kernel: [  420.064191] RBP: ffff8801f355ae78 R08: 0000000000070004 R09: ffff8801f355aea0
Aug  9 07:27:25 scv kernel: [  420.064192] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
Aug  9 07:27:25 scv kernel: [  420.064193] R13: 0000000000000246 R14: 0000000000000000 R15: ffff8801f355ae80
Aug  9 07:27:25 scv kernel: [  420.064195] FS:  00007f38536a1740(0000) GS:ffff88022fc00000(0000) knlGS:0000000000000000
Aug  9 07:27:25 scv kernel: [  420.064196] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug  9 07:27:25 scv kernel: [  420.064198] CR2: 00007f383abe46b0 CR3: 000000020755d000 CR4: 00000000000006f0
Aug  9 07:27:25 scv kernel: [  420.064199] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Aug  9 07:27:25 scv kernel: [  420.064201] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Aug  9 07:27:25 scv kernel: [  420.064202] Process valley_x64 (pid: 3006, threadinfo ffff8801d068a000, task ffff88021d5a1700)
Aug  9 07:27:25 scv kernel: [  420.064204] Stack:
Aug  9 07:27:25 scv kernel: [  420.064208]  ffff88020f0d0008 0000000000000045 ffff88020f0d0008 0000000000070004
Aug  9 07:27:25 scv kernel: [  420.064212]  0000000000000003 ffffffffa037e450 0000000000000001 0000000000000001
Aug  9 07:27:25 scv kernel: [  420.064214]  ffff88020f0d0008 ffff88020c7f4008 00000000beef0003 ffffffffa037e63d
Aug  9 07:27:25 scv kernel: [  420.064216] Call Trace:
Aug  9 07:27:25 scv kernel: [  420.064287]  [] ? _nv005265rm+0x116/0x1b9 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064353]  [] ? _nv005084rm+0x14a/0x1ed [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064407]  [] ? _nv010822rm+0x127/0x1cb [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064461]  [] ? _nv010828rm+0xec/0x111 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064495]  [] ? _nv000771rm+0x28ca/0x2b89 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064530]  [] ? _nv000738rm+0xe23/0xe59 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064564]  [] ? _nv000771rm+0x73/0x2b89 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064598]  [] ? _nv000697rm+0x26/0x147 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064633]  [] ? _nv000803rm+0x2dd/0xa05 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064667]  [] ? rm_ioctl+0x76/0x100 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064702]  [] ? nv_kern_ioctl+0x15e/0x490 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064735]  [] ? nv_kern_unlocked_ioctl+0x21/0x30 [nvidia]
Aug  9 07:27:25 scv kernel: [  420.064739]  [] ? do_vfs_ioctl+0x8a/0x340
Aug  9 07:27:25 scv kernel: [  420.064742]  [] ? do_munmap+0x1f3/0x2f0
Aug  9 07:27:25 scv kernel: [  420.064744]  [] ? sys_ioctl+0x91/0xa0
Aug  9 07:27:25 scv kernel: [  420.064747]  [] ? system_call_fastpath+0x16/0x1b

I'm trying nVidia drivers version 304.88 and so far seems fine...


ubuntu 13.10 with windows 7, 32 or 64 bits for 6gb of ram in AMD processor 32 bits

No if your processor is 32bit you must use the 32bit operating system and applications on it. Windows will not support PAE so you will be limited to 4gb of accessible ram, but many versions of the linux kernel available in distro repos have PAE built in, and by default the Ubuntu 32bit kernel comes with PAE out of the box so you will have access to all 8gb while using the linux install so you should not be worried about that.


Problems Installing Ubuntu 13.10 Alongside Windows 7 - gpart shows unallocated space

It is entirely possible that your disk has stray GUID partition table data (in this case, Windows will actually still boot happily, recognizing the disk as only MBR). Is your Windows installed in legacy BIOS mode?

To confirm this, from the Ubuntu Live Desktop environment, open a Terminal and install gdisk (ensure you have network connectivity):

sudo apt-get install gdisk

Then list partitions that are on the GUID partition table:

sudo gdisk -l /dev/sda

Chances are, it might have come up empty. In that case, you will need to preserve the MBR and drop the stray GUID partition table identifier entirely:

sudo fixparts /dev/sda
w

More information here: http://www.rodsbooks.com/fixparts/


The udevadm invocation probably comes from the /etc/init/udevtrigger.conf Upstart script.  It executes udevadm settle, which just sleeps until the udevd daemon says it has finished setting up the device nodes for your hardware.  So the fact that it is sleeping is not an indication of a problem.

The primary purpose for running this command during startup is so that an Upstart event is generated when it completes.  For example, the Upstart script for the printing subsystem is set to start after the udevtrigger script completes, since it needs access to the device nodes of the configured printers.

The other tools you mention act in similar ways: they sleep until some event has occurred and then return.  The wait-for-root tool is used to wait until the device holding the root file system is ready, and modprobe would be waiting until the kernel has finished loading a given kernel module.


I got a laptop which has pre-installed Windows 8.1 and I am now using Ubuntu 14.04 with Windows 8.1 in dual boot mode.

If you are going to install Ubuntu 14.04 , I will say it is prefereable to install Ubuntu in (U)EFI mode because of problems specified in this thread.

You can find out which Boot mode you are using from these articles.

article1
article2
article3

If you still have doubt and open BIOS and find out which entries are listed in (U)EFI mode and legacy mode.
UEFI mode:

Legacy mode (option 3 is for windows OS):


This can be easily achieved on thunar and xfce4-terminal File manager.

(It can also be achieved on Nautilus and xfce4-terminal, but you will have to install filemanager-actions. I have explained both)

On Thunar, click on edit->Configure custom actions...

Create new action by clicking on + and fill as given below.

Give the command as:

xfce4-terminal --tab --working-directory=%f

Set an icon of your choice.

In Appearance Conditions tab, check Directories.

and Save.

You should get it on your right click menu:

NOTE: Doing similar steps on Nautilus with filemanager-actions for gnome-terminal creates a new window instead of new tab. But it works fine with xfce4-terminal.

For nautilus:

Install  filemanager-actions

sudo apt install filemanager-actions

Open filemanager-actions

Create a new action.

Choose an icon, check all those options.

set path as xfce4-terminal

and parameters --tab --working-directory="%d"

and save.

It should show up on your right click menu like this:

If you want this behavior to be the default, you can achieve it my setting alias for gnome-terminal as gnome-terminal --tab in your /etc/bash.bashrc or ~/.bashrc.


POP desktop : What is this 'gjs' process which taking up so much memory and cpu?

gjs is the Gnome JavaScript engine that plugins run on.

So, is this some wrong reporting,

Unlikely. It probably is using up 99% cpu but the fans only become active of a temperatur threshold is reached. Could be a decently coded piece of softwate.

or is it that the gjs is indeed killing my cpu?

Ehm, what do you mean by "killing"? Using 99% is not "killing" a CPU. It is using your CPU.

Should I leave pop-desktop environment being a 8GB RAM+512GB SSD system?

That is asking for opinions and for you to decide. Mind that gjs is probably part of any default gnome (3) desktop. Budgie does not have it.


Deb package created using fpm but giving error while depackaging

You should follow these steps, may work for you.

1) .deb file install in root path only so root path command: sudo su

2) then find the your your .deb file in which folder

3) using ls command show the particular folder files.

4) then find your .deb package file.

5) deb package command as dpkg -i ./your_file_name then Enter

6) may be work for you. I am install virtualbox.deb file in my ubuntu(LInux-14.04v).


Can I install openstack cloud software on my ubuntu 12.04 lts machine?

There is official documentation from OpenStack

OpenStack Installation Guide for Ubuntu 12.04 (LTS)


Mount samba share at login using startup script (not fstab)

Okay, I managed to solve this on my own (with the help of others). The underlying problem was, as I suspected, the fact that I was trying to run a command that required root privileges without supplying a password. I solved this problem by following the instructions in the thread "How do I sudo a command in a script without being asked for a password". The long and short of it is, I created a shell script called "script-mount-samba-share.sh" that contains nothing other than a single line with the mount command that I want to run:

mount -t cifs //centaroo.local/Me /media/Me -o uid=scott,gid=scott,credentials=/home/scott/.smbcredentials,iocharset=utf8,sec=ntlm,file_mode=0600,dir_mode=0700

Then, I changed the file's ownership to root:root and changed its permissions to 700. Next, I set up sudo to allow running that script without entering a password, and then I changed the "Command" field in Startup Applications Preferences > Edit Startup Program to "sudo /home/scott/script-mount-samba-share.sh" (without the quotes), and voila. Next time I rebooted and logged in with my user, the Samba share mounted without my lifting a finger. I also tested that when I reboot and log in with a different user, the Samba share does not get mounted, which is what I want.

The only minor catch that I'm now trying to overcome is, when I'm already logged in and then switch users to someone else, my Samba share still shows up in the left hand nav bar in Nautilus, which makes sense as it was mounted when I logged in with my own user, but I don't want the mounted share to display in Nautilus for the other user, so my next task is to figure out how to make that part happen.


Problem with brightness settings with Acer Aspire One D255E in 12.04

Easy fix. In the terminal:

gksudo gedit /etc/default/grub

You will find this line in the new opened window:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save and close the window and type this in the terminal:

sudo update-grub

Then reboot. Rejoice :)


How to customize the login message on Ubuntu 14.04.3 LTS

To customize the pre-login message, such as to create a login banner, you need to edit /etc/issue file.

To customize post-login messages, you can edit some of the files in /etc/update-motd.d. Such files as 00-header and 10-help-text in that directory are safe to edit.

Another possibility is to add a custom function/command to your .bashrc  at the end of the file.

For instance, I have the following function defined at the top of my .mkshrc file :

 testTTY(){

  isTTY=$(tty | awk '{if ($0~/\/dev\/tty.*/) {print "true"}else{print "false"}}')

  if [ "$isTTY" = "true" ]; then
    printf "You are in virtual console\n"
    printf "current disk usage is"
    df
  fi
}

And I call the function at the end of .bashrc with just testTTY. As you can see from the code, the function determines if I logged in into TTY or not, and if it is TTY, it shows appropriate message and output of dfcommand


How to enable virtualization on Lenovo Z500?

That's a really hard question.

A little hint : sudo modprobe kvm_intel


I was able to solve it ultimately. Thanks to the last post by @pomsky.

My kernel version was 33-generic so i downgraded my kernel to 4.13.0-46-generic as it was the last available. And now wifi is working fine in Ubuntu 18.4.1 LTS.

I performed rest of the steps too, i.e upgrading to the latest rtlwifi_new and setting ant_sel=2. But at the end needed a kernel downgrade.

Thank you for your help


Can I configure the Unity launcher to appear on both of my monitors?

There is currently no way to display the launcher on each screen but work is going to be done in the 12.04 cycle to support multi screen usage better:

https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/742544
How do I subscribe to a bug?


Using ddrescue to recover hard drive - Don't know if image is being created

Execute

add-apt-repository ppa:hamishmb/myppa
apt-get update
apt-get install ddrescue-gui -y

It might make your life easier. /dev/sdX are block devices, you tried to copy disk-to-disk.

Also try

sudo apt install testdisk
testdisk /dev/sdX

And use the file recovery utilities in there.


Leoxsys USB WiFi device not deteting in ubuntu

Open a terminal Ctrl+Alt+T.
Change to the extracted directory: cd ~/Downloads/Realtek\ Ap\ Adapt/driver/Linux. (You have to replace this by the path on your system)
Allow the installer to be executed: chmod +x install.sh
Run the installer as root: sudo ./install.sh

If any errors occure, add them to your question, if you can't fix them on your own.


Accomplishment Viewer not displaying Ask Ubuntu badges

This sounds like you are running the 0.1 release of Ubuntu Accomplishments. You can check by clicking the About dialog in the Help menu. It should 0.1 in there.

Ask Ubuntu Accomplishments will be in the 0.2 release which comes out next week.


This appears to caused by a bug in gdm3: Bug #1758512 "No virtual terminals (CTRL+ALT+F?) when no user logged in; erratic behaviour when user logged in."

I'd recommend going to that link and clicking the button to mark yourself as affected by the bug.


scp directory from remote ubuntu desktop to virtual machine

Well, I feel like you don't need the wildcharacter. As long as you give the path of your directory, it will include all the files on it. Moreover you haven't defined your username for the okeanos VM( user@snf-xxxxx) and I am not sure if the syntax of the path you are using is correct (if you have the folder in your root directory you should use /project)

If your don't feel comfortable with the command line and the scp command, try to use a file transfer tool with a user interface.
WinSCP is great for windows. For your mac you can try Cyberduck https://cyberduck.io/


You can get the necessary packages installed once again by reinstalling the Ubuntu desktop system. To do that, open a Terminal window and run the following command
sudo apt install --reinstall ubuntu-desktop

Then reboot your system.


How can I open a file if it crashes while I'm away?

If you want a command YOUR_COMMAND to always be restarted when it exits, simply put it in a loop, like

while true; do YOUR_COMMAND ; sleep 5 ; done

Note that I added a 5 seconds delay between the command's end and its restart. You can abort the loop by pressing Ctrl+C in the terminal where it runs.

If you want the loop to only restart your COMMAND if it terminated with an exit code other than 0 (which should indicate an error/non-successful run), as @KonradRudolph suggested, you can do it like this:

while ! YOUR_COMMAND ; do sleep 5 ; done

Note that YOUR_COMMAND must exit with status 0  to end the loop or with status != 0 to get restarted when you use this structure.


when running playonlinux I get the error "PlayOnLinux cannot find 7z."

Simply open the software centre, search for 7z, click on 7zip, and click install; to make it even easier click:

and then click on the


Run

apt-cache show firefox | grep Version

to get a list of available Firefox versions. On my 14.04 it results:

Version: 32.0+build1-0ubuntu0.14.04.1
Version: 28.0+build2-0ubuntu2

Next tell APT exactly which version to install:

sudo apt-get install firefox=28.0+build2-0ubuntu2

Next you have to tell APT not to upgrade to the newer version again. According to https://askubuntu.com/a/18656/22865 there are many ways to do it, I chose:

sudo apt-mark hold firefox

Once you want to let go of your Firefox 28 and follow the usual releases again, just do:

sudo apt-mark unhold firefox
sudo apt-get upgrade

Alternatively, you can list the available versions with:

apt-cache policy firefox

PS: Firefox stores all its settings in the ~/.mozilla folder. This folder is not changed by above commands, so all your settings should persist. If you want to be on the safe side, backup you settings before you downgrade:

cp -ra ~/.mozilla ~/.mozilla.backup


When is the Hebrew/Arabic Ubuntu font due to be implemented?

The only expansions of the fonts have been ready to go in for the Ubuntu 11.04 release are Light (+Italic) and Medium (+Italic).  It is unlikely that any of the other expansions will make the release.  Remember that Ubuntu the operation system uses time-based releases, but Ubuntu the font family uses quality-based releases.  Yet like (in theory) all of the other components in Ubuntu, it is about taking the best that is available at the time of the freeze and polishing that.

Proportional Light and Medium (four fonts) work fine on MS Windows, Mac OS X and via Google Webfonts we have an issue that somewhere, probably in FontConfig/Qt is not parsing the weight of Medium correctly on Ubuntu.  Medium is between is between Regular and Bold, and Light is lighter than all of the rest.

Ubuntu Medium - Bug #744812 "FontConfig/Qt stack choke on Ubuntu Medium font meta-data (No medium in Inkscape and too bold in Qt apps)"

The Ubuntu Monospace consists of a further four fonts.  There are currently blocked on deciding whether they should be the same height as the proportional fonts:

Ubuntu Mono - Bug #727733 "Technical: Mono: discern level of scaling to fit in terminal cell"

The Semitic fonts (Arabic/Hebrew) are expansions of the main four fonts (not be separate .ttf files).  These are at the engineering stage, the beauty of Arabic means that it needs to flow from one letter to the next using various OpenType features and this has required more effort.  On the Hebrew side the reception of the design has not been as clear-cut as for the Arabic, so Hebrew may end up taking longer.  A Hebrew sans-serif font is very hard to get right, and there's no point releasing it until it's clear that it's definitely better than the other libre fonts out there covering Hebrew.  Both Hebrew and Arabic represent vowels sounds/cantillation marks as diacriticals placed around the characters:

Arabic - Engineering stage, still needs hinting
Hebrew - Make take longer to finalise the design, before hinting

Although the Semitic fonts were originally scheduled/hoped to come out at the same time, it's possible that the Arabic additions may be earlier if they end up being ready first.

Feedback

One of the hardest part is knowing who can provide feedback on a given script/language.  One of the most useful things you could do is assemble a contact list of people who have the skills to test the fonts and are definitely willing to give feedback (positive or negative) after doing so to improve the final result.

It would be useful up to the mailing list or beta team so that it's easy to keep in contact and know when new parts are available, or proceeding through the phased testing process:

Ubuntu Font Family mailing list
Ubuntu Font Family Interest Group (beta test team)

Anything else

Hope that helps.  Making a typeface and its fonts takes a really long time!  Is there any specific that you had in mind which I've missed above, or which I can try and get answers for?  Please do let me know!


How did you install composer? There are (at least) two ways to install composer: using apt install or by downloading and running composer-setup.php.
Can you try to re-install it?

You can try composer clear-cache to clear the package cache and see if this solves your problem.
If not, you can rename the settings and global packages directory (on my system this is the ~/.config/composer directory). You'll lose all your settings and globally installed packages but you can always reinstall them or revert to the old directory.


Set animated (video or gif) background for Lock Screen in Ubuntu 14.04 LTS

Slideshow on your lock-screen can be easily achieved using MDM. To install it do (from noobslab):

sudo add-apt-repository ppa:noobslab/mint
sudo apt-get update
sudo apt-get install mdm mdm-themes


What files do I need in my home to login in to unity?

Very bizarre situation you have their. My best advice to this would create a new user from TTY1 (terminal) using the command adduser.

sudo adduser newuser

If you are able to login with the newuser account, then just copy the files out of /home/newuser into your home folder. Also, if you have to copy the files as root, make sure you correct the file ownerships.

sudo cp -a /home/newuser/. /home/myname/
sudo chown -R myname:myname /home/myname


Such errors usually indicate that some files on the Live CD/USB are corrupted. Since you use a USB, the files may have been corrupted while downloading. If you don't have the .iso image, please download it, and then check its integrity.

You'll have to check you memory using a memtest. Also, check the .iso image using instructions here: https://help.ubuntu.com/community/HowToMD5SUM

You can download the image using the live USB. Boot from the USB stick and select "Try Ubuntu". Open Firefox and go to download the .iso, but make sure you download it to another USB stick or hard disk and not to any of the live CD's home folder directories, to ensure you don't run out of RAM and crash.

Alternatively, you could use the bittorrent downloads using this guide to make sure you don't get any data flaws.


different value for free space in GUI and df -kh

One program is showing the free space in decimal (10^9) gigabyes (GB), the other is showing it in binary (2^30) gigabytes (GiB); 128 GiB = 137.4 GB. For df you can specify whether you want decimal or binary units:

$ df -h . # -h requests binary units
Filesystem                 Size  Used Avail Use% Mounted on
/dev/mapper/Serverax-Home  9.3G  420M  8.4G   5% /home

$ df -H . # -H requests decimal units
Filesystem                 Size  Used Avail Use% Mounted on
/dev/mapper/Serverax-Home   10G  440M  9.0G   5% /home

See man df for details.


Recover files without an extension after deleting them with a BASH command

See the DataRevovery.

Next time, when you do such loops always add echo as a first command. After you see what you are about to do, remove the echo, and rerun. It's a common mistake - sorry.


Open Nautilus as a new tab in an existing window

I wrote a bash script and a launcher for that.

First, create the file:

mkdir ~/bin && gedit ~/bin/nautilus-ctrl-t.sh

Then paste the following, and save:

if [ "$(wmctrl -xl | grep "nautilus\.Nautilus")" == "" ]; then
    nautilus "$1" &
else
    #Save old clipboard value
    oldclip="$(xclip -o -sel clip)"

    echo -n "$1" | xclip -i -sel clip
    #wmctrl -xF -R nautilus.Nautilus && xdotool key "ctrl+t" "ctrl+l" && xdotool type "${1}" && xdotool key Return
    wmctrl -xF -R nautilus.Nautilus && xdotool key ctrl+t ctrl+l ctrl+v Return

    #Restore old clipboard value
    echo -n "$oldclip" | xclip -i -sel clip
fi

Then run the command:

sudo chmod u+x ~/bin/nautilus-ctrl-t.sh

Now, to create the launcher file, run this command:

gedit ~/.local/share/applications/Nautilus-Ctrl-t.desktop

Paste the following, and save:

[Desktop Entry]
Type=Application
Name=Nautilus-Ctrl-t
Comment=Launches Nautilus if not yet, otherwise opens a new tab in it
Categories=FileManager;GNOME;
Icon=/usr/share/icons/gnome/48x48/apps/system-file-manager.png
Exec=/bin/bash -c ~/bin/nautilus-ctrl-t.sh
Terminal=false

Log out, or restart to update the application list and you're done.

Try that. Hope it helps.

UPDATE

Added a location as a script parameter

UPDATE 2

Replaced xdotool type with  xclip

UPDATE 3

Cleaned up the process by adding numbers. Added mkdir command. Updated the first "if statement" because if nautilus is managing the desktop, it will have a pid, but no active window, so better to use wmctrl. Added quotes around the first argument in case there are spaces. Changed the icon for nautilus to be system default in the .desktop file.


What's difference of apt-get and aptitude?

aptitude is supposed to be a user level program whereas apt-get is supposed to be used by higher level programs. It just turns out apt-get is easy to use so people just use it instead of the higher level managers like aptitude and synaptic.

aptitude is more user-friendly because it adds a layer of abstraction away from apt-get, apt-cache etc..; apt-get is more user-friendly than dpkg for the same reason. It's really down to the user's knowledge and what works best for them. aptitude and apt-get use the same repositories.  Let it be clear that aptitude does not itself run apt-get apt-cache etc.. I merely mean to point out that aptitude is a higher level package manager.

The levels of abstraction:

aptitude - High level of abstraction
apt-get, apt-cache, etc.
dpkg - Low level of abstraction


Download and install without a cd on a microsoft windows xp desktop machine

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows may help you for making bootable usb. Then you must restart your pc for starting Ubuntu setup. Also you must set usb as first boot hardware on bios (http://pcsupport.about.com/od/fixtheproblem/ss/bootorderchange.htm).


Kernel is the core of your OS. Every OS has its kernel (Windows, Mac,etc.). You cannot have any system running without it.
See here for more info:

What is kernel?

Webopedia

Ubuntu is based on linux kernel. The latest Ubuntu 14.10 was released with Linux kernel 3.16 version.But just like other parts of the system the kernel gets updates from Canonical, too.

An average user doesn't have to bother about kernel. It is already built-in the system and gets updated when you update your system from time to time.


Dual boot :Windows 7 partition deleted after Kubuntu 14.04 install...Weird!

There is another option in the installer, the last one, called Something else. Select this option and manually format/mount any new or already existing partition (including NTFS partitions). This variant will do nothing automatically, only what you want.


GRUB is extremely slow - 1 second per key input

Grub seems to have problems with high resolutions on certain systems. Setting grub to use a lower resolution fixed the input lag for me.
To do that edit the grub config file: /etc/default/grub
Look for the line GRUB_GFXMODE and change it to a suitable lower resolution for you system. E.g. in my case:
GRUB_GFXMODE=1280x1024x32,auto

Finally run update-grub as root to write the config changes.
Note: the resolution you choose must be supported on your system. To check them boot into grub, hit 'c' to get to the grub command line and type videoinfo to list the supported modes.
Ideally change the GFXmode as above so that it includes fallback resolutions if something goes wrong and add 'auto' (the default) at the end of the list. E.g. something like
my_preferred_resolution,low_fallback_resolution,auto where each resolution is width x height [x depth]


Use UbunuOne Share instead of YouSendit as Thunderbird filelink

UbuntuOne support in Thunderbird Filelink is under development in Bug 744037 - Add UbuntuOne support for Filelink.

As you can see in the bug report, it is planned to land in Thunderbird 15, and you can already test it and give feedback by using Earlybird.


Maybe you hadn't updated the repositories just yet, my Ejen Ngo (Ejen Ali fan and Ubuntu user). OH I get it - there is a command for updating the repos - 'sudo apt-get update'. You type in that command, give yourself admin privileges to update the repo and all of that should be eradicated. Hope it helped!! :)


Ubuntu Software application loader doesn't work

This works:
From terminal (CTRL-ALT-T)

sudo apt-get autoremove gnome-software
sudo apt-get purge gnome-software ubuntu-software
sudo apt autoremove
sudo apt install gnome-software ubuntu-software

rebooted pc

then invoked the updater from the terminal again

gnome-software

scary for a novice, but it worked for me!


All the necessary parts are installed by default in Ubuntu desktop versions. You can check:

modinfo cfg80211
modinfo mac80211

If you get any information at all, the parts are there. They will only be invoked as a dependency of some wireless driver and will then appear as loaded modules:

lsmod

I suspect that there is a problem with your wireless driver and that may be a separate question.


Can I dd if=/dev/sda to of=/dev/sdc3 (drive to partition)

Yes, it will be a problem.  Drives contain a partition table, partitions do not.  What is it that you are really trying to do?


Accidentally moved encfs encrypted directory, can't decrypt

Turned out that I just needed to specify a different target directory than the previous target directory I was using.

The ~/.stuff directory already existed and sat in my home directory just for me to point encfs to it. Typing

encfs ~/.stuff-encrypted ~/.new-stuff-directory

worked just fine, with the usual password prompt rather than trying to setup a new encrypted volume. I struggled to remember the password four months later, but then it opened just fine.


use grep -v and copy to another file

grep -v logging twoSum.py > logging-new

Notes:

this does what you ask for, removing the physical lines containing
"logging". That might be a bad idea, as noted by PerlDuck
if there is no space or strange char in the grepped text, you don't need " or '.


Want to get rid of installer on Ubuntu for flash drive

I think it should be sufficient to uninstall ubiquity, but I'm not sure. You can try it and if it doesn't work, just reinstall it. :)


All depends if it's recognized by the kernel (i.e., if it has a driver) or not. One way of checking it is the following:

open a terminal
type less +F /var/log/syslog in it. You'll see something similar to the following screenshot.

do not worry about what's there, it depends on lot of things. This is the system messages log.
Now connect your tablet. Something should appear at the bottom; for example with mine I have this (I added the highlight after that):

this means that the kernel found the USB device and detected it is a wacom tablet.
to exit and regain control of your terminal, press CTRL-C in the terminal, the press q --- or simply close it, no harm will be done.

Do the same an cut and paste the result in your question.

If nothing happens, or the kernels says that a USB device is connected but it is not detected as a tablet, it means that your  tablet has no driver for Linux --- you need to ask the manufacturer.


lenovo ideapad 14ISK 300 lost wifi connection ubuntu 14.04

Try upgrading the distribution to Ubuntu 16.04.1.
[I've had a similar situation - with a new Lenovo Ideapad 14ISK Computer Model - where I couldn't connect to Wi-Fi on account of the fact that I had (Xubuntu) 14.04 and should have upgraded to/downloaded (Ubuntu) 16.04.1 in order to have
Wi-Fi Connection].
Good Luck.


Howto cleanly unmount a root filesystem that's using aufs

You can never unmount root filesystem, sorry -- no matter if you're using squashfs+aufs, or just plain ext2/ext3/ext4...

What you can do is remount it read-only, which is the same from data integrity standpoint. For regular filesystem:

mount -oremount,ro /
sync # initiate writing any pending writes to disk
sleep 5 # and give writes some time to finish.

note that aufs is somewhat different as you should make sure the rw-backing of it still writeable while aufs itself is being put read-only... for example, assuming /mnt/sq/rw is ext4 read-write part of your aufs "/" mount:

 cat /proc/mounts > /etc/mtab # may not be needed if your mtab is symlink or otherwise reflects real situation
 fuser -mv / # show debug of what is using this disk and blocking unmount/ro-remount, if anything
 auplink / flush
 mount -oremount,noxino,noplink,ro /
 mount -oremount,sync /mnt/sq/rw
 mount -oremount,mod:/mnt/sq/rw=ro /
 mount -oremount,ro /mny/sq/rw
 sync
 sleep 5
 cat /proc/mounts
 dmesg
 sleep 300 # to give you time to read mounts/dmesg info
 halt -d -f

in production you obviously won't need debug info...

In short, you flush to disk and disable aufs features that require writing to ext4 overlay, then force ext4 itself to sync and go read-only, so it will be marked as cleanly unmounted next time you boot.


I had the same problem and found a workaround.

Right click the clock panel (or access from panel preferences) and set the configuration you want but do NOT close the properties window. Instead, while leaving it open, logout and log back in. The clock should reappear with the preferences you set. For some reason closing the properties window seems to reset the settings to blank custom fields, which makes the clock disappear.


The eclipse icon is replaced with a new one but it is not changed in the Ubuntu dock when I run the app

Renaming the .desktop file to the eclipse.desktop solved this problem:

cd ~/.local/share/applications/
mv Eclipse-CDT.desktop eclipse.desktop


Mark installing packages as auto installed

No, you have to run as separate command call apt-mark auto ... Even its action was removed from apt-get.
$ sudo apt-get markauto
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: This command is deprecated. Please use 'apt-mark auto' and 'apt-mark manual' instead.
E: Handler silently failed

As a workaround, you could store the package list in a variable then use it with both commands. Another option, create a single shell function that run both commands for any input.


REALTEK RTL8187 Wireless LAN Driver and Ubuntu 19.10

The problem was solved by disabling the quick boot option in the BIOS of the motherboard


How to hide some icons in System Settings?

If you want to remove icons from the System Settings, you have to edit the .desktop file.

For example we will use ubuntu-tweak

Run:

gksudo gedit /usr/share/applications/ubuntu-tweak.desktop

Find and remove

  X-GNOME-Settings-Panel=ubuntu-tweak

then save the file, open System Settings, and they are now gone.

Note: Some applications might get rehoused after an update. The .desktop might get updated to the newer version, with the X-GNOME-Settings-Panel setting back in the file.

The steps above can be applied on any application that house them selfs in the control center.

Further reading

Unity Launchers And Desktop Files - Community Ubuntu Documentation


Desktop Icons disappeared on Ubuntu 18.04

On a Ubuntu 18.04 system, I followed these steps:

I opened the "Desktop" folder in nautilus.
I then dragged all the ".desktop" files to my desktop.
When a dialog popped up and asked whether to trust those files, I answered in the affirmative.


Windows / Ubuntu Dualboot: Pulseaudio can't start - NTFS home folder

As it is possible to share data such as documents, pictures, video or music files on a NTFS filesystem we can not do so for the whole /home partition.

Unlike standard Ubuntu file systems (e.g. ext4) NTFS is unable to handle our file permissions. This may lead to issues with applications not being able to read or write their settings located in a /home subdirectory. Pulseaudio is only one example here, you will likely see other similar errors.

Let me therefore suggest you put the /home directory in a standard Ubuntu file system (e.g. ext4) and put only those data files that need to be shared with windows on a NTFS formatted partition. You will still have access to these data from Ubuntu.


Desktop launcher and panel disabled (not visible) on VMware 10 Ubuntu 14

to solve the issue :

In Workstation right click on the VM (Ubuntu) then Settings > Display and in the right window, disable the Accelerate 3D graphics option using the checkbox


Compiling program that requires python 2.6

I figured it out.

sudo make install

installs python header files to /usr/local/include/python2.6, but CLOP was searching for the files in /usr/include/python2.6

I copied them over and there was no more trouble


How to delete a google calendar from evolution?

Do you have 2-step verification on your google account? If so, when it asks you for your password, you should enter an 'application specific password', instead of your actual password.
Not really answering your question, but it will make that pop-up go away!


How to create a user with the least privileges/permissions but enough to do ssh tunneling?

After some digging and the great hint from Alex I found a working solution.

You only have to add 2 parameters when creating a new user.

sudo adduser limiteduser --shell=/bin/false --no-create-home

--no-create-home will skip creating a home directory for the user, and --shell=/bin/false will make sure the user will never get a shell access, no matter if they're trying to login locally or connect remotely using ssh.

If you're paranoid like me you can also limit them in /etc/ssh/sshd_config like so:

Match user limiteduser
   ForceCommand /bin/false

Note: Don't try to chroot them, It doesn't work. At least not for me. When I tried to chroot them I got this error : channel 2: open failed: connect failed: Device or resource busy. Maybe I didn't setup my chroot enviroment correctly but I think the chroot is way too isolated for the tunneling to work.

Anyway the most important part is the ssh tunneling which works fine using the methods above.

ssh -N -D 1080 limiteduser@123.123.123.123

This connects successfully and establishes a tunnel between you and your server which you can use to route your traffic at port 1080. And it doesn't even require a shell access. In case the limiteduser decides to ssh normally, they get an error and ssh connection closes immediately.


Solved it by unplugging the Bluetooth adapter and plugging it back in again.


Will the wobbly windows effect be in Ubuntu 11.04?

You will certainly be able to enable the effect via ccsm from the package compizconfig-settings-manager , but it won't be on by default.


Problems with running sqlplus64 == SP2-1502: The HTTP proxy server specified by http_proxy is not accessible

Found an obscure answer and it worked

unset no_proxy

That did it for me, sqlplus64 ran like a charm


Screen refresh/display problem in Xubuntu 14.04

I went to Settings > Appearance > Fonts > Rendering

changed Sub-pixel order to: None

This solved the problem for me.


Where is the magick command of Imagemagick?

I can confirm, no magick command on my Ubuntu 20.04 either.
However, try convert:
$ convert --help
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
Usage: convert-im6.q16 [options ...] file [ [options ...] file ...] [options ...] file

So I would try reproducing the examples in the documentation that you linked, but substituting magick with convert.

Update:
Thanks to @steeldriver, I have quickly learnt a lot about ImageMagick :)
The ImageMagick version 6 command line API (shipped with Ubuntu 20.04 and earlier) consists of these commands:

animate, compare, composite, conjure, convert, display, identify, import, mogrify, montage, stream

ImageMagick version 7 will unify these commands under the magick command.
Be aware that from version 7 on, such combos also become possible:
magick convert rose.jpg -resize 50% rose.png


Is there a "Passwords and Keys" dialogue in Lubuntu desktop?

Probably You don't have this application installed. To install "Passwords and Keys" type:

sudo apt-get install seahorse


You need to run the command as root:

sudo apt-get update
sudo apt-get upgrade


grub2 on xubuntu trusty does not display boot menu

An easy fix for your problem is to install grub customizer. Not only can you easily customize grub with it, you can customize burg too which is what I'm using. You can mess with the settings until you fix it. It's pretty straight foward. (Type or copy these onto the terminal then press enter after each line.)

    sudo add-apt-repository ppa:danielrichter2007/grub-customizer
    sudo apt-get update
    sudo apt-get install grub-customizer


Blueman causes nautilus-sendto to crash!

I found out how to fix nautilus-sendto
I removed libnstblueman.a & libnstblueman.so from the folder /usr/lib/nautilus-sendto/plugins

  sudo rm /usr/lib/nautilus-sendto/plugins/libnstblueman.a
  sudo rm /usr/lib/nautilus-sendto/plugins/libnstblueman.so

This isn't really a fix cause it will remove blueman from "send to" destinations, but that doesn't bug me because i only need blueman so i can use bluez (it somehow fixes the GDbus erro... error when transferring files).

Thanks for "Radu Rădeanu" for pointing me to this.


Can I get back data after setting up root to iSCSI device?

In theory you could establish a root filesystem in an iSCSI target but you would need to do a good number of things to make that possible.  It seems like you were using the blockio method (raw filesystem).  I suggest you look-up the fileio method as it will be a little safer for you relative to your experience (no offense intended).

To get the data back from a raw filesystem (used by iSCSI) you would need to move the disk to a working system, establish an iSCSI target for that partition and then connect to it from any initiator.

Good luck.


What have become of Ubuntu JeOS? Does it have a successor?

The spiritual successor to JeOS is Ubuntu Core:

https://wiki.ubuntu.com/Core


Kingston HyperX amp USB sound card: microphone not detected (Ubuntu 18.04)

I wrote this for my issue with a later headset and it should still apply to you. The short answer is your kernel is too old as that is the first HyperX quirk they fixed. The longer answer is:
The kernel update in 5.7rc3 introduced a patch for this issue (for this headset specifically). Once patched your dmesg output should have a line that looks like:
[    6.804026] kernel: usb 1-1: Found post-registration device assignment: 095116ea:02

The alsa configuration documentation states:
Module snd-usb-audio
--------------------
...
delayed_register
    The option is needed for devices that have multiple streams
    defined in multiple USB interfaces.  The driver may invoke
    registrations multiple times (once per interface) and this may
    lead to the insufficient device enumeration.
    This option receives an array of strings, and you can pass
    ID:INTERFACE like ``0123abcd:4`` for performing the delayed
    registration to the given device.  In this example, when a USB
    device 0123:abcd is probed, the driver waits the registration
    until the USB interface 4 gets probed.
    The driver prints a message like "Found post-registration device
    assignment: 1234abcd:04" for such a device, so that user can
    notice the need.

So taking the above information you get from dmesg, and the field you need from the config docs, add this to the end of alsa-base.conf
# Add delayed register for HyperX Cloud Flight S Headset
options snd-usb-audio delayed_register=095116ea:02

Then reboot and you should be able to see the headset and profiles as expected.
As a side note, there is another option in the snd-usb-audio module
quirk_alias
    Quirk alias list, pass strings like ``0123abcd:5678beef``, which
    applies the existing quirk for the device 5678:beef to a new
    device 0123:abcd.

This would lead me to believe that you could copy the quirk that already was written by kernel 5.4 for "Kingston HyperX AMP" and apply it to this headset, as well as adding the delayed register and it would work pre 5.7. As i already bit the bullet and did the kernel upgrade i am not going to go back and check. If someone gets that working please let me know and ill update the post here. It should be as straight forward as:
options snd-usb-audio quirk_alias=095116ea:095116d8 delayed_register=095116ea:02

Let me know!


Problem sharing laptop Internet connection

Googling around found this issue is caused by a bug. The bug was fixed supposedly donwloaded and installed in my sistem with upda  the having the issue even when Ubuntu 11.10 is up to date. So, I went to connection manager/etho config/IPV6 an set it up to IGNORE. Restart my laptop and problem solved.


ELAN0504:01 04F3:309E Touchpad Multitouch

Try fusuma. https://github.com/iberianpig/fusuma

Two-finger swipe is not available, but three-finger and four-finger swipes are implemented.


How should I use Unionfs or similar in a computer lab to "freeze" /home?

I looked into something similar a while back (didn't see you question until now)

If you're still trying to make this work, I have some notes here :
http://users.telenet.be/mydotcom/howto/linuxkiosk/unionfs.htm


How Do I Change Icons in the Dock "Plank"?

You should make custom .desktop files with the corresponding icon you wish to appear on your dock, i. e. this is my custom minecraft .desktop file:

[Desktop Entry]
Name=Minecraft
Exec=java -jar /home/myuser/.launchers/Minecraft.jar
Icon=/home/myuser/.launchers/minecraft.png
Type=Application

Replacing Exec with the program you wish to execute and Icon with the full path to your icon, and don't forget giving execution permissions to the file.


How can I set a bluetooth default controller

using list command in bluetoothctl prompt will give you the list of controllers  with their mac id,  also showing which one is the default

[bluetooth]# list
Controller 14:16:91:15:F6:A0 david-acer #2 [default]
Controller 14:D3:A7:56:F4:D0 david-acer #1

type select command with the mac id of the desired controller to use this controller as the default

[bluetooth]# select 14:D3:A7:56:F4:D0
Controller 14:D3:A7:56:F4:D0 david-acer #1 [default]


I found the answer after a lot of trial and error. First of all I reformatted the usb stick with FAT32. In gparted the red warning circle was still there. I then made a new partition table using Device-Create partition, selecting MS-DOS and then clicking the green tick. I then selected Partition-New and then the green tick and then I had a new FAT32 partition without any warning.


Cant install Virtualbox-5.2 on Ubuntu 18.04.1 server

I would recommend installing Virtualbox from the Ubuntu repositories, but it might be lower than 5.2 at the moment.

If you have already added a repository (step 2 of the linked tutorial), remove it with this command, from How to remove a repository?

sudo add-apt-repository -r ppa:<ppa to remove>

Or maybe removing the file you created in /etc/apt/sources.list.d/ will also work.

Enable the multiverse repository and update the apt packages with

sudo apt update

And now install latest virtualbox

sudo apt install virtualbox


It turns out Ubuntu 18.04 with GNOME 3.28.4 supports unread notifications indicator (badge) but very few applications make use of it properly.

Some apps don't make use of it at all. Some have bugs that prevent it from working. Some try to make use of it but it only work if installed in a certain way.

Mailspring supports it but it doesn't work if it's installed through the Snap store. If you install it with the .deb package you can get it to work but there's this bug from 2017 that prevents it from working out of the box. To get it fixed, you need to rename /usr/share/applications/mailspring.desktop to Mailspring.desktop with a capital letter. Then press Alt+F2 and execute command r to reload the shell.

Some other apps such as Thunderbird and Firefox have had support for it in the past via extensions, but at the moment of writing both of them are broken as well. Here's the Thunderbird issue, you might be able to get it working by installing thunderbird-gnome-support package from apt.

If your apps don't show notification indicators, you can try:

Searching if there's a workaround for the specific app you're
having problems with.
Installing the app from a different source
(haven't seen any Snap app support badges)
Send a feature request / bug report to the developers of your specific app

Here are some related discussions I found while investigating the issue:

gnome-shell issue
dash-to-dock issue


Do you have available complete guide on installation and administration of FTP Server?

Here's a guide on setting up VSFTPD.  Apt/aptitude should automatically satisfy the necessary dependencies when you install VSFTPD.  When you first install Ubuntu server it should run the tasksel process where you can check "FTP Server" as an option and it'll get it up and running for you out of the box, and all you have to do is lock it down and configure it the way you want.

https://help.ubuntu.com/lts/serverguide/ftp-server.html

I have to add that if possible you should consider using SFTP instead of FTP for a little extra security.


How to provoke a syntax error in the bash shell

;

returns:

bash: syntax error near unexpected token `;'


Boot an other Linux/Unix system. Mount your root-partition. Go to the mounted /way_to_mountpoint/etc. Edit the passwd, by deleting the x in the password field. Reboot your System in the normal way. Login as root, and change the root passwd in the normal way.


What is the difference between Lubuntu and Xubuntu on the basis of development communities?

There is the wider Ubuntu community, and within that community smaller communities.
The Lubuntu team can be considered of team members (https://launchpad.net/~lubuntu-members) and those helping the team (that may become members themselves in due course).
The Xubuntu team likewise consists of team members (https://launchpad.net/~xubuntu-team) and those that may themselves become members in due course.
Some Ubuntu community members help all teams, or help some (be it their favorites, or those in need of their skillset, or whatever they decide).
How do you become a member (see https://wiki.ubuntu.com/Membership), you apply, but you'll be expected to show sustained and significant contributions (https://wiki.ubuntu.com/Membership/NewMember).
Becoming a member of a flavor is the same including need to show sustained and significant contributions so I won't include links as each flavor has their own slightly different page that is essentially identical. When you become a member of a flavor, Ubuntu membership is included (if not already attained, ie. Lubuntu team members are not separate from the Ubuntu community as a whole, just a group within the wider group which includes Kubuntu, Xubuntu, Ubuntu-MATE, Ubuntu-Studio, Ubuntu-Budgie, Ubuntu-Kylin [all flavors]).
The community support the 'universe' repository, which is where all flavor packages are found. Long term support (LTS) flavor releases have generally only three years of support compared to the 'main' repository which is for the most part maintained by Canonical employees (having five years of support for LTS release, longer via use of ESM)  https://help.ubuntu.com/community/Repositories/Ubuntu
I've only used Lubuntu and Xubuntu as examples because you mentioned them in your question, the same applies to all flavors & smaller communities within the wider Ubuntu community.


Ctrl+ punctuation keys ( ; : , .) do not work in emacs no window mode inside gnome term

gnome-terminal does not let you redefine the escape sequences, so no, there's nothing you could do there.

In other terminal emulators this might be possible, however, you'd have to create your own escape sequences and configure both your terminal emulator and your emacs accordingly, and it won't be compatible with anyone else's setup.


Ubuntu is not Starting, System Running in Low Graphics Error show but it isn't the problem

You may be able to boot an earlier linux image selecting advanced options at grub, then select an earlyer version.

Now I'm not sure if you'll be able to repair your system, but booting an older version will probably work, however you'll most likely will not be able to update your system anymore, but if selecting an earlyer version works, then you can try removing kali source, running sudo apt-get update, sudo apt-get check, sudo apt-get upgrade, and that COULD be able to repair your system, however you should back up your data before attempting to fix it... older version without updates should work if you're fine with not being able to update it until you re-install...


I had the same for 16.04.
Revert back to 4.4.0-104 and purge the -108 update using Ubuntu Recovery mode. Will require a few reboots to fix this.


Thinkpad T440s internal mic not working in Ubuntu 15.04

Judging by the looks you can "mute" your mic input with Fn-keys. Have you tried toggling this "mic mute" ?


tinyproxy install via apt-get failing to create config file

I have a few suggestions on things you should check.

is /etc/ located on a different partition as '/' (rootfs)? Please provide output of mount.
can you create directories and/or files under /etc/ as root? Have you verified it?

Each installed package has a few meta-data files stored under /var/lib/dpkg/info/PKGNAME.*. For instance, the installation of the adduser package creates the following files:

adduser.conffiles
adduser.config
adduser.list
adduser.md5sums
adduser.postinst
adduser.postrm
adduser.templates

What's of interest here are the files ending in preinst|postinst|prerm|postrm. They are executed pre/post installation or removal. Look at what's inside of them and try to run them manually - you could add some echo statements to them to see where and how they fail, etc. They are usually just Bash scripts.


how do I access linux machines by name on the network?

Pick one of the systems, set up dnsmasq (see man dnsmasq), Edit /etc/hosts on that system, restart dnsmasq, tell the others to resolve DNS through the picked system.


Connect to server using Nautilus and navigate to root catalog

Although nautilus doesn't seem to present an easy way (such as a .. item) to navigate up, even when 'Show Hidden Files' Ctrl+H is enabled, you should be able to navigate up provided that the configuration of the remote server does not forbid it, for example via a chroot jail.

Probably the easiest way is to open the Location bar, either from the menu (Go --> Enter Location...) or using the Ctrl+L keyboard shortcut. Then enter the desired location e.g. / by typing in the bar.


First, you need to add the freenx-team PPA for Ubuntu 12.04 GNU/Linux.

sudo add-apt-repository ppa:freenx-team

Next, update your sources list, then install the FreeNX server software

sudo apt-get update
sudo apt-get install freenx

Next, as noted in the community documentation for installing FreeNX - download the missing nxsetup script, untar it, then copy it to /usr/lib/nx (the command below is one entire line that runs 3 commands and ends with /usr/lib/nx):

wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz && tar xvf nxsetup.tar.gz && sudo cp nxsetup /usr/lib/nx

Now, run the nxserver setup script.

sudo /usr/lib/nx/nxsetup --install --setup-nomachine-key

At this point, you have FreeNX server installed, but now you'll want to configure the FreeNX server to configure clients to use ubuntu-2d session:

echo -e "\n#Use unity 2d for client sessions\nCOMMAND_START_GNOME='gnome-session --session=ubuntu-2d'"|sudo tee -a /etc/nxserver/node.conf

Next, restart the FreeNX server to ensure it takes in the .conf file:

sudo /etc/init.d/freenx-server restart

That's it for the FreeNX server, now let's move on to the client. First, install the 'qtnx' package on Ubuntu 12.04 so we can have a client application to access the FreeNX server. You'll have to launch the Ubuntu Software Center, then click 'Edit > Software Sources' from the top menu. Then place a check by "Community-maintained free and open-source software (universe).

Now, run the commands to update your sources and install the qtnx application from the terminal (CTRL + ALT + t):

sudo apt-get update
sudo apt-get install qtnx

from the Dash start the 'qtnx' application. Enter the username/password for a user on the server, set the speed to LAN, then click configure. On the configuration dialog, set a name for the prfile, the hostname(or IP address) for the FreeNX server machine, the client resolution (I used 1024x768), network speed (LAN), and set the platform type to GNOME

https://help.ubuntu.com/community/FreeNX
more information

EDIT: to connect to VPS machine you can ssh or use putty easily.

After you’ve opened Putty, fill out the Hostname or IP Address field with your Hostname or IP Address. The default port for this is 22.

Click on the Open button to open a new command line window.

When the command line window appears, you will be asked for the SSH username at the login as prompt. Type it in and then press Enter on your keyboard.

In the command line window, you will also be asked for the SSH password at the login as prompt. Type it in and then press Enter on your keyboard.

You are now successfully logged into your VPS server using SSH access.


Logitech ConferenceCam Connect Freezes Ubuntu

You can install Ubuntu 16.04. That made my setup work.


Well, I have an Intel 910GL Integrated Graphics Controller and I purged all the packages not connected with my graphics card, so now I have

$ dpkg -l | grep xorg
ii  xserver-xorg                         1:7.5+6ubuntu3                                    the X.Org X server
ii  xserver-xorg-core                    2:1.9.0-0ubuntu7.3                                Xorg X server - core server
ii  xserver-xorg-input-evdev             1:2.3.2-6ubuntu3.1                                X.Org X server -- evdev input driver
ii  xserver-xorg-input-mouse             1:1.5.0-2build1                                   X.Org X server -- mouse input driver
ii  xserver-xorg-video-fbdev             1:0.4.2-2ubuntu2                                  X.Org X server -- fbdev display driver
ii  xserver-xorg-video-intel             2:2.12.0-1ubuntu5.1                               X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-video-vesa              1:2.3.0-3build1                                   X.Org X server -- VESA display driver

This setup works for me, but I cannot guarantee it will work for everybody... ;) Make a note of all packages you uninstall, and if you bump into problems, boot into the recovery mode and install them back, for instance

apt-get install xserver-xorg-input-vmmouse

One more note: do not clean the dpkg cache (sudo apt-get clean), because when you uninstall a package, and then you want to install it back, the package will be in the cache and apt-get will not have to download it again (this could be a problem when in the recovery mode).

Another note: save your original /var/log/Xorg.0.log file, and after you've uninstalled the drivers and all seems OK, check the new Xorg.0.log for errors. This way you will be able to see if Xorg is happy with the new setup.


I had a similar error and fixed it by changing the USB transfer settings on my android phone.

Connect your phone to the computer, make sure to allow USB data transfer if your phone asks you
In your phone notifications list there should be an entry that says something like "USB for file transfer - tap for other USB options"
In the list of options that follows, choose the second option "Transfer images."

This is counter-intuitive, but once I changed the option the sync worked flawlessly. The phone icon in the devices menu has changed to a camera icon, but as long as the files transfer I'm happy.

This fix was performed on a Samsung Note 5 running Android 7.0, you can get more details of my original issue here:
Syncing music to Android with Rhythmbox "Error transferring track"


Dual monitor set-up and wallpaper not expanding [Ubuntu Gnome]

Solved! I thought that by adding a wallpaper (3840x2160) that wasn't the exact same size as my dual monitor set-up (3840x1080), Ubuntu would have adjusted it, but it didn't.

So I search for 3840x1080 wallpapers, spanned it in the Tweak Tool panel and now it works.
But still it confuses me that when I was in Activities or Show Application the wallpaper was perfectly set in the background.


Is there an upstart event for files systems that get mounted manually?

No, calling mount directly does not cause any Upstart events to be emitted.  However, you can use initctl emit to emit the events of your choice.  See the initctl(8) manual page.


How to get the urls of all the packages that an application depends on?

Well, that is one of the major advantages of using a package manager such as apt (or yum or pacman or ....).

If you do not want to use a package manager, dependency resolution is up you you, you do it manually. You can start with reading the documentation in the source code for gnome-shell.

And you are not going to save time as "I won't have to download them the next time", in fact next time you will have to manually resolve all the dependencies and download any and all updated source code for all the depencencies.

You are going to, IMO, have much better luck building from source code on an alternate distro such as gentoo or perhaps arch linux. emerge will build from source and resolve dependencies.

Alternately you can look at the LFS documentation for package management:

http://www.linuxfromscratch.org/lfs/view/development/chapter06/pkgmgt.html

IMO, the closest thing to what you might want in Debian/Ubuntu is get-build-deps:

http://manpages.ubuntu.com/manpages/hardy/man1/get-build-deps.1.html

See also: https://fedoraproject.org/wiki/Package_management_system


Problem sharing Mysql data on dual boot machine

Ok, I managed to make it work after checking another thread on the ubuntu forums. The problem is that you need to allow the mysql service rw access to the new location on apparmor. This is the thread http://ubuntuforums.org/showthread.php?t=1412674

But you don't need to do all that, just add the new location to the /etc/apparmor.d/usr.sbin.mysqld and change your datadir entry on my.cnf

/path/to/new/datadir/ r,
/path/to/new/datadir/** rwk,


Kubuntu 16.04 Discover Software center (muon)

I think this answer from here could help Kubuntu 16.04 : Software centre search bug

sudo apt-add-repository ppa:kubuntu-ppa/backports
sudo apt update
sudo apt full-upgrade -y


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

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


How to install Ubuntu Remix Mini on a VM?

It isn't meant to be installed

The Ubuntu Remix Mini was build to create your own custom live-CD. As such it doesn't come with a installer. But ..

You can still install it manually

As per the Source: FAQ #35 Entry of Ubuntu Mini Remix. There is an guide from Nicolás Pierini.

Unfortunately it isn't entirely complete and requires some Linux know how. This guide requires a working Ubuntu Grub installation from where it copies the /boot/grub-tree. Also the part about installing the grub MBR is missing. There is no explanation how to partition your drives and it isn't discussed how this would work in an  EFI environment.

Anyway. I've transcribed this guide from Nicolás Pierini and added the part about how to get the UUID. Maybe someone wants to extend it and make it complete.

Mount the filesystem to /mnt

$ sudo mount -t squashfs -o loop filesystem.squashfs /mnt

Copy the whole squashfs to the hard drive. In this example mounted in /media/hdd. Check were yours is mounted and change all the commands below accordingly!

$ sudo cp -R /mnt/* /media/hdd

Copy the grub directory from a fresh installation of Ubuntu. This needs to be the same version as the ubuntu-mini-remix. In this example mounted in /media/newUbuntu. Change accordingly!

$ sudo cp -R /media/newUbuntu/boot/grub/* /media/hdd/boot/grub

Find the UUID of the hdd disk.

$ mount | grep /media/hdd
/dev/sda1 on /media/hdd type ext4 (rw,noatime,barrier=0,user_xattr)

The device path of the mounted /medai/hdds in this example is /dev/sda1. So do this to find the UUID.

$ sudo blkid /dev/sda1
/dev/sda1: LABEL="root" UUID="a4645210-c1f9-4b25-91dd-aaa5051fed7a" TYPE="ext4"

Open grub.cfg and replace the UUIDs with the UUID of the hdd disk

$ gksu gedit /boot/grub/grub.cfg

Erase the root password and let users login without password

$ gksu gedit /media/hdd/etc/shadow

Replace root:*:14892:0:99999:7::: with root::14892:0:99999:7:::

$ gksu gedit /etc/pam.d/common-auth

Replace nullok_secure with nullok
Finished. Now you can boot the PC from the Ubuntu Mini Remix on your hdd instead of the live-CD. Add a new users, or login as root.


I want to use the 'convmv' command to change Title and Artist

convmv converts filenames from one encoding to another, not metadata

id3v2 is CLI a editor (read/write) for audio tags, based on id3lib

sudo apt install id3v2

Usage example
 - https://unix.stackexchange.com/questions/47892/id3v2-used-recursively-at-command-line

eyeD3 is another (the one i prefer) CLI tags editor

sudo apt install eyed3

Usage example
 - https://eyed3.readthedocs.io/en/latest/cli.html
 - https://code-examples.net/en/q/22f4

The GUI program easytag to batch-write audio file's tags
In the app, there is an option about encoding for tags reading
And another option to choose the encoding when writing tags

sudo apt-get install easytag

https://wiki.gnome.org/Apps/EasyTAG


what is the command to connect a database remotely from other PC

A FTP (File Transfer Protocol) server should work for you. This will allow you to login to the computer's filesystem from a another computer as a user on the computer you are accessing. First you need to install and setup FTP on the computer you want to access (PC1) , so run this in Terminal:

sudo apt-get install vsftpd

After that has installed, it should be installed. Then run this:

sudo nano /etc/vsftpd.conf

Make sure the write_enable line is set to YES:

write_enable=YES

also remove any # at the beginning of that line.

You may also want to check this line:

anonymous_enable=NO

as if it is set to YES, or commented out with a #, it may allow access of anonymous users...

Save with Ctrl+O, and exit with Ctrl+X.

Then restart it with:

sudo /etc/init.d/vsftpd restart

You can set up this on the other computer as well, so it is running on both computers, and you can access the data on both. The setup should be the same, just the Host IP address will be different.

Now, to access it, you will need a 'client' on the computer (PC2) you are trying to access it from as well. For this, gFTP works nicely. First install it with:

sudo apt-get install gftp

Start it, and fill in the IP address of the computer you trying to access in the Host field - you can find it by running ifconfig | grep inet on the computer you are accessing.

You can ignore the Post field, but generally this will be 21 or something like that.
Then type your Username and Password of your user on the computer you are accessing in the boxes on the right, and make sure the drop down box on the right is set to FTP.

Then connect and it should work


Enable ZFS options this way...

The easy way to start with a custom kernel is to use an old, working configuration file from any distribution. A copy of the configuration file is saved for you in /boot. Simply copy the configuration, use make oldconfig to generate a .config file using the old as a template. You will be asked to answer any questions regarding new features and are safe using the defaults (hit the enter key). It is the prudent to review the configuration changes with make menuconfig.

cp /boot/config-4.4.0-generic ~/src/linux-4.4.0/.config
make oldconfig
make menuconfig

source: http://bodhizazen.com/Tutorials/kernel


How to make default view in Nautilus arrange file by modify date the most recent at the top

Choose Edit -> Preferences and set your preferred layout:

Update

If the First one didn't work(that worked for me) you can try the second-one.

There's an additional parameter default-sort-in-reverse-order that doesn't appear to be accessible from the in-application preferences menu, but can be set in the dconf database.

There is a GUI dconf-editor that allows you to modify such hidden settings - it's not installed by default but available by installing the dconf-tools package. Alternatively you can set it from the command line using gsettings

$ gsettings set org.gnome.nautilus.preferences default-sort-in-reverse-order true

If the dconf-tools package is installed, there is an equivalent dconf command line

$ dconf write /org/gnome/nautilus/preferences/default-sort-in-reverse-order

You can revert the change any time with

$ gsettings reset org.gnome.nautilus.preferences default-sort-in-reverse-order

or

$ dconf reset /org/gnome/nautilus/preferences/default-sort-in-reverse-order

Note that it applies to whatever the default sort order is, so for example if you change back to sort-by-name that will be reversed as well - there doesn't seem to be a way to specify the sort direction individually.

Credits


How to change QT (KDE) application icons for gnome?

The KDE System Settings changes those Icons: sudo apt-get install systemsettings will install it.

From there go to Application Appearance>Icons.


Tried FGLRX and other question's answers, graphics still not working right. (12.04)

AMD has dropped support in their proprietary driver for that card. You have two options:

Uninstall fglrx drivers and use the open source radeon driver (Recommended)
Use the AMD Catalyst Legacy PPA

Note that for (2), your X server will be downgraded to support the older 13.1 fglrx driver. This could lead to other issues and comes with a load of caveats, so read the warnings carefully.


Can I delete /swapfile after I reassigned new larger swap on other partition?

First check/verify that the old swapfile is not in use
Show a summary of swap device(s) in use

swapon -s

If the old swapfile is in use:
 - disable swap on it
 - remove -if exists- the /etc/fstab entry for this old swapfile

swapoff /old/swapfile
## and edit /etc/fstab to remove the line referring to /old/swapfile

Then it is safe to delete the old swapfile

sudo rm /old/swapfile

More information: https://help.ubuntu.com/community/SwapFaq


What's the Easiest Way to Clone Boot Partition?

honestly for what you want to do clonezilla is the way to go. it works like an Ubuntu Live CD/USB, you just burn it to your usb and then you boot to it. instead of a desktop you're greeted with (in my experience) an intuitive and straightforward UI that guides you throuh the cloning process.

(yes, in my case I was actually cloning a 120GB drive to a 1TB, it created everything on the 1TB drive as if it was 120GB so only 120GB were formatted and occupied but that's fine, afterwards I booted to this terabyte drive and used Paragon (it was a windows) (I think on windows 10 you can also use windows's built in partition manager) to resize the main partition so that the whole 1TB was occupied entirely, real easy)

be sure to have the drive you want to clone and the drive you want to clone to plugged in before you boot to clonezilla!


Future of Nexus collection for Ubuntu Touch?

The Nexus devices are the official development devices for Ubuntu Touch and at least until Ubuntu Touch is sold preinstall on phones, the Nexus collection will be the first devices to get updates. Also Ubuntu uses the the Debian package managing system which allows for constant updates.


1 pixel white line problem with two monitors , 13.04

Same problem for me. I have a Samsung SyncMaster B1930N. As I saw monitor needs 1366 resolution (for 18.5") but ubuntu shows only 1300. Maybe is same problem in your case.


Disable Text File Preview in Nautilus in Ubuntu 14.04

It's been removed from gtk+ & nautilus starting in 3.14 (15.04) so you'll find it gone in the future if you move up from 14.04
(- I find unfortunate but to each their own..

reference - https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-14&id=67fdde6a9ff2dcbe3ae25fa3e259e77a4951cc46


This was a bug that has since been fixed, please update your uGet version.

Source: http://ugetdm.com/forum/viewtopic.php?f=6&t=1541


How do I fix faulty Software Center and Software Updater in 13.10? (Novice Level User)

Try this :

Open a terminal by pressing ctrl and alt and t at the same time. A purple box with text in it will come up.

Type the following :

sudo apt-get install rsyslog

Enter your password (it will be invisible on the screen so don't worry if nothing appears!) and press return

Then type :

sudo apt-get update

and  press enter.

Then close the terminal and try to install your program from the software center again.


Setup sftp user account and restric read/write access to one folder

From https://man.openbsd.org/sshd_config

  ChrootDirectory
     Specifies the pathname of a directory to chroot(2) to after authentication. At session startup sshd(8) checks that all components of the pathname are root-owned directories which are not writable by any other user or group.

I had the same problem and the solution was to avoid using a directory in a user's home, as the /home/user directory should not be owned by root, but to create instead a directory in e.g. /var/sftp/uploads, where /var/sftp/ is root owned and /var/sftp/uploads is owned by the sftp user.
Then I can chroot the sftp user in uploads.

ChrootDirectory /var/sftp

in /etc/ssh/sshd_config


Quoted from Ubuntu Wiki's hardware support:

  Asus VX6 Lamborghini

  Ubuntu 10.10 Netbook Remix

  Works great. Havent tested everything but most day-to-day required things worked out of >the box. The Broadcom STA wireless driver, and NVIDIA driver, required proprietary >drivers, but these were easily installed through System>Administration>Additional >Drivers. 720p Video works fine with ffmpeg, havent setup vdpau yet.

  Audio output through headphones hasnt worked out of the box (havent tried fixing). >Havent tried bluetooth, hibernate, microphone, or HDMI out.

  Install Tip: no need to change BIOS. Insert thumbdrive (with Ubuntu install), press ESC >many times during boot, then select USB.

As far as headphones are concerned, upon installing you might follow the advice I gave here.


This is my first post, so let me know if I do something wrong.

It took about an hour, but I ended up getting it to work.

This assumes that you have the propriety driver.

Step 1: Set the resolution correctly of your first monitor using the AMD Catalyst Control Center.

  Note: Although it may seem like everything can be solved using this, it can't.

Step 2: Restart your computer.

Step 3: Go to System Settings > Display and activate your second monitor.

  Note: Even though it will be detected in the AMD Catalyst Control Center, the only settings that stick are the resolution settings.

Step 4: Restart your computer.

Step 5: Go to the AMD Catalyst Control Center and make sure the display is set up correctly.

  For example, I changed it to Multi-display desktop(s) with 2 displays.

Step 6: Restart your computer.

Step 7: Go to System Settings > Display and set the resolution of your second monitor.

  Note: I also disabled Sticky edges.

Step 8: Restart your computer.

All of the display settings should now be saved correctly.

Incidentally, I have no idea why all of this works. It just does.


Python HTTPS requests (urllib2) to some sites fail on Ubuntu 12.04 without proxy

This appears to be related to the addition of TLS 1.1 and 1.2 support to the version of OpenSSL found in 12.04.  The connection failure can be reproduced with the OpenSSL command line tool:

$ openssl s_client -connect www.mediafire.com:443
CONNECTED(00000003)
140491065808544:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:177:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 320 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---

The connection succeeds if I force the connection to use TLS 1.0 with the -tls1 command line argument.

I would suggest you file a bug report about this problem here:

https://bugs.launchpad.net/ubuntu/+filebug


Ubuntu installation help related to swap area

Memory

With your decision to move from 4G RAM to 12G RAM, comes a very important decision. Memory is best installed in pairs of exactly similar RAM sticks. This is so the system can take the speed advantage of memory interleaving. You should consider either, adding another 4G RAM stick, or replacing the current 4G stick with two 8G sticks.

Swap

Good question. Swap and swap sizing is important. You'll probably get a ton of opinions about it.

Assuming that you don't already have a /swapfile or swap partition, go ahead and create a 4G /swapfile. To check for an existing /swapfile or swap partition, use these commands:

free -h

ls -al /swapfile

grep -i swap /etc/fstab

To create a 4G /swapfile...

Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.

Note: The first two commands may show an error if no current /swapfile exists.

sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 4G RAM and 4G swap

Add this line to /etc/fstab...

Note: This assumes no existing swap line in /etc/fstab.

/swapfile    none    swap    sw      0   0

Reboot and confirm proper operation.


No Software Updates since Upgrade to 18.10?

Post release, once any glaring [significant] problems are fixed, it's common for the developers who've been working hard to get the release out, get a chance to take a break, reduce their 'time-owed' (banked or overtime held) and thus updates reduce.

The only updates I'd expect at this time for 18.10 are bug-fixes for reported bugs (that can't wait).

We'll soon hear the name for the next release (often ~three weeks after release), and you may find the pace picks up again as devs return to normal work weeks.

Note: the aforementioned is my opinion only!

To check up on their work (ie. facts), you can see the desktop team's brief reports via

https://community.ubuntu.com/t/monday-22nd-october-2018/8414

or the prior week

https://discourse.ubuntu.com/t/monday-15th-october-2018/8296/9

Will Cooke (Desktop Team lead), posts it weekly, with members adding their 'reports' progressively...


There should be an application called "Brightness and Lock" under it you'll find options that dictate how long your laptop can be left idle before turning off the screen and how long after the screen turns blank before a password is needed to unlock it with an option to require your password to wake from suspend.