Convert Custom Ubuntu 14.04 Build into Distribution USB

It depends on what exactly you want to do,

If you want a custom live-cd ("for trial purposes") then you are going about this the wrong way, a live cd is not merely a packaged VM image, ubuntu has an extensively documented article on creating a customized live cd image.

If you want to create a custom installation-cd then you are also going about this the wrong way, an installation requires that the right arch-specific packages get installed for your users (so if you have a radeon card and they have an nvidia card, your image will not work them), this means configuring all the packages you want and the configuration options you want in a distributable manner. Luckily ubuntu also has an extensively documented article in creating customized install cd's

If you want to be able to install a VM image to a drive, as in burn it directly, there are several options. Non of which are trivial, and none of which are very distributable. VM images are create for distributing AS vm images, and converting between different types of virtualized environments is also doable (So VMWare to VirtualBox, VMWare to AWS-AMI, VMWare to LXC container, are all doable). However there is no straightforward way of burning an disk image to a physical drive and running it on physical hardware without there being a big issue.


Change order of monitors without changing fullscreen"size"

Actually, there is. Go to System Settyngs > Hardware > Displays, select a monitor and drag it to rearrange its placement:


Why I can't install anything in Ubuntu 18.04 LTS?

A simple reconfigure of the Package Database might work:

sudo dpkg --configure -a

sudo apt-get install -f

If you still have problems provide the contents of "/var/lib/dpkg/status"


The drive capacity is storage not memory.
Format it NTFS and turn off "Fast Startup" in Windows, then it can be accessed by both systems.

Since SSD life is dependent on the number of writes done to it. You should try to keep the files on the SSD limited to ones that rarely change.

Recommendations to increase SSD life:

Keep the SSD for system files and data that you write once and just read; like movies and music.
Make three partitions on the HDD. One ntfs for a share; second. ext4 for linux files that change often. And the third for linux swap.
Windows frequently writes to the swapfile. The Windows swapfile and hiberfile should be placed on the HDD partition. In the system menu, you can tell Windows where to put the swapfile.
Don't defrag the SSD partitions. Defragging Windows partitions result in many repeated writes as files are moved around. Since an SSD can access everywhere instantly, file fragmentation does not have the effect that it does in a HDD. If you have successfully limited the SSD to unchanging files, it won't need defragging anyway.


There are 2 drivers available for BCM43227 at the moment; one is bcmwl (provided by package bcmwl-kernel-source), and b43 (which is included in the kernel). According to b43's page, support of BCM43227 is 'WIP'.

You can try checking out and building the linux wireless repository (see wireless.kernel.org); their drivers are merged into the kernel with some delay, so you might get different results.

You can try reporting the error to Broadcom (don't expect much response on it, though, but it always worth a shot, if nothing else, to raise awareness), or add a miniature sized USB wireless controller that works under Ubuntu. Note, they stick out of the laptop by 6mm or so nowadays, they really are tiny.


To set a user's password from the shell use chpasswd:

echo "username:cleartext_password" | sudo chpasswd


Ubuntu 20.04 Focal, Network Manager Hotspot, 'No Internet connection'

Create a symbolic link in that path, pointing to the real binary will do the trick:

ln -s /usr/sbin/iptables /sbin/iptables

And then, it doesn't print those warnings, and Hotspot is working again.


There could be other background applications using network connection at that point of time.
Check your proxy(if you use one) and firewall settings. It could be due to an error on the server which stored the file


Ubuntu 12.10 and Gnome-Shell : can't see nor launch apps except with Alt + F2

Finally, I've discovered that the problem came from Alacarte (menus).
I've found the solution in the Archlinux Forum, here.
It seems that Alacarte creates a ~/.config/menus folder. When deleting this folder, Gnome-Shell recoveres its usual Apps overview and the customized Favourite Ones.

Thanks a lot for your interest and answers...


If you want your user to have full access to the mount point, run
sudo chown -R $USER:$USER /mnt/USB_01


What do I need to download and how do I install those programs?

Let me preface this with saying that this answer will be messy, will cause information overflow and will make you beg for Windows back. You are very unexperienced, which is in general a really bad situation when starting out with Linux. While Ubuntu tries to make things as simple as possible, some things just need a bit of advanced knowledge.

Whenever you want to download and install something, first check your Software Center if that program is already available through the package manager.

If you don't find it there, download *.deb files. Ubuntu is a Debian derivative and as such uses Debian archives (*.deb) to manage applications. If these aren't available, but rather a *.tar.* file, you should be able to find precise instructions on site as to how they should be installed.

If you find *.zip archives, there will either be a binary file (an executable, usually no file extension but marked differently in nautilus, the default document explorer) or a shell script (*.sh) inside. These can be run via double clicking them in the GUI (nautilus) - perhaps you might need to check the "allow execution" box in the file properties. If you cannot find such a file, consult the README.

That said ...

As for lampp (which is the Linux version of xampp), follow precisely these instructions. Only then will it work (and, in fact, that might still need some tweaks due to the new security manifest).

For Spotify, you can follow these instructions.

And for the Flash Player you can use this guide.


Fix Dual Boot Install Alongside option not appearing on win 10 pro pc

Choose Something else and select the partition you created.
Set / (root) as the mount point and select ext4 as the file system.
After installation, select Ubuntu as default system in BIOS.

Important :

Disable hibernation and fast boot in Windows before.
Open command prompt as administrator and execute:

powercfg /h off

Open the "old" version of Windows Control Panel.
Go to the Power Settings and uncheck Fast startup.
Shut down the computer completely, do NOT reboot.


To some extent. The update/upgrade process and the installing of software, if stopped in the middle, can throw some errors at you but those are solvable.

Example of an error you can see is this one: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? with this as an answer.

You can also see this as part of the experience. If you break it you can always re-install since you most likely do not have any important personal files it will not be harmful. Or otherwise put those files on a pendrive.

But as a general rule I would advice to always let commands run their course.


Canon LBP7110CW Won't work after "Upgrade" to 18.04

I fumbled around with this today. So, I opened the file folder "linux-UFRIILT-drv-v150-uken", open "64-bit_Driver" and then open "Debian" and double click on each of the three files there. This should install each of them individually. I re-ran the "./install.sh" (which I don't think affected my outcome. But then was able to print to my Canon LBP7110cw on Ubuntu 18.04 LTS


Ubuntu 12.04 totally freezes while browsing or using VirtualBox

It could be a hardware issue, in particular the graphics card. This would at least explain why freezing occurs when you are using applications that require additional graphics processing.


Required library libflowmanager not found

AFAIK libflowmanager is not available from any of the standard Ubuntu repositories. The instructions for installing libprotoident note that

libflowmanager
        * optional, but required to build the tools
        * available from http://research.wand.net.nz/software/libflowmanager.php

If you don't need the tools, then you can configure using

./configure --with-tools=NO

which will skip the check for libflowmanager.


How to make sure that folder got full permission

ls -l /var/NameOfFolder will give you the contents and permissions of that folder and as it apparently doesn't contain anything, you get well... nothing...

To get the permissions of NameOfFolder, do:

ls -ld /var/NameOfFolder

and you will get NameOfFolder with all its permissions.

For more information, type:

man ls


It's an alignment thing

For performance reasons you really want your storage to be aligned on all levels. While this is probably just a simple hard drive with a partition table and a file system on it directly, it's still important to not misalign it.

What about alignment?

Suppose your hard drive works with 4 kB sectors (yours appear to work with 512 bytes) and you've aligned the partition to start with just a single byte offset, then updating a single 4 kB file system page will amplify to a two-sector write on your disk. With just 4 kB becoming 8 kB, this is not a great deal, but on larger systems or RAID setups this will become a real problem once the stripe size (block size) becomes hundreds of kilobytes or even megabytes. Once misaligned on this stripe size, this could amplify an unlucky 4 kB filesystem block to a 2x block size (e.g. 2 MB) write to disks, also impacting parity calculations (if any).

SSD and other flash memory based drives are affected even worse. Usually, these drives are using huge page sizes. I've seen 512 kB "sector" sized USB flash drives out there and this is a common size for SSD drives IIRC. A misalignment when using multiple layers on top of it (e.g. dm-crypt, LVM, file system) could result in a huge write amplification (on top of what they already have) you really want to avoid unnecessary wear of the drive.

Why this gap on my drive then?

Most recent utilities just use 1 MB alignment on the disk as a safe default. It is a lowest common denominator for common set ups, avoiding most misalignments while not losing too much space.

Gaining 766 kB on 1 TB is not worth the performance impact it would impose.

Can I fix this?

Yes, you can, you'll have to look into the specification of your drive, the block size of your file system and figure out the proper alignment yourself and then fixing the partition table yourself. It's kinda dangerous to do this, though.

In your case sda5 is probably misaligned (beginning) and I would move the sda5 to proper alignment on an occasion that would suit me (backing up data first!).


Ubuntu 20.04 problems with Intel Xeon E3-1200 graphics card - UEFI

I think I found the solution - it's a kernel bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1843274
Apparently, it's solved in kernel-5.11 rc4. So if you're affected by this bug, you should either downgrade the kernel or wait for the new kernel to be made public (as of today, the latest kernel available for Ubuntu appears to be v5.10.10).


Can't switch to GeForce GTX 960M in Nvidia X Server Settings

Fixed it with a combination of methods from all who answered. :) First disabled secure boot, then removed the drivers with:

sudo apt-get purge nvidia-*

and then reinstalled with:

sudo apt-get install nvidia-361
reboot


No internet connection on 14.04LTS + Thinkpad x250

14.04 ships an old kernel. Please update your wifi driver / firmware.
Take a look at https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release


Fresh install 12.04 from 11.04 can't log in

First of all, you can try to reset Unity and/or Compiz. There are useful instructions available here:
http://www.webupd8.org/2011/04/how-to-reset-unity-launcher-icons-or.html

Another option is to try moving all the contents of you home folder somewhere else. You should be able to login with a "blank" used account. Then try to move things back to your home folder, one directory at a time. This should allow you to figure out what file/directory is causing problems.


SQUID Proxy "The request or reply is too large"

This error message appears when you try downloading large file using GET or uploading it using POST/PUT. There are several parameters to look for:

request_body_max_size

reply_body_max_size

These two are set to 0 by default, which means no limits at all. They should not be limited unless you really know how that affects your squid behavior. Or at all in standard proxy.

request_header_max_size

reply_header_max_size

These two default to 64kB starting from Squid-3.1. Earlier versions of Squid had defaults as low as 2 kB. In some rather rare circumstances even 64kB is too low, so you can increase this value.

from wiki sqid faq


User wallpaper the same as login wallpaper

First copy your wallpaper to /usr/share/backgrounds/ directory by the following command:

sudo cp /path/to/wallpaper/Image.jpg /usr/share/backgrounds/

Now switch to xdg-open /usr/share/backgrounds/ directory and from there right-click on your wallpaper which you want to set as desktop wallpaper(This same wallpaper will be set automatically to login screen too), then select Open with image viewer.
Now right click on opened image in image viewer and select set as wallpaper from context menu.

Note: You have to set your wallpaper from/in /usr/share/backgrounds directory after coping your favorites images there. otherwise it doesn't work if you don't do that from/in backgrounds directory.

Logoff and log back in and see the magic(Also it works if your home directory is encrypted).


windows logo key optimization in xubuntu

Here's a little step-by-step to do that.

Go to Settings>Keyboard>Application Shortcuts.
Click on Add.
For the Command type in xfce4-popup-whiskermenu.
Click OK.
It will now ask for the key, and press either Super Key you want to
pop it up with.

If you are using the Applications Menu like I am, the command would
    then be xfce4-popup-applicationsmenu.

Note: You might want to look through the keyboard shortcuts that might be using the Super Key you chose.  If you try to do those other shortcuts, it could always bring the menu up as well as how the other shortcut works.

Hope this helps!


How to switch from Core Layout to Full Screen Layout? PageStack Header annoying

Simply set the title of the page that you want to be in fullscreen mode to an empty string, like this:

Page {
    title: ""
}

Easy as that!


Using Ubuntu Server to PXE install Operating Systems?

Here is our build doc for creating this kind of server using 10.04 LTS.  For NIC compatibility, we have since installed it on 12.04; the process is similar (except the config commands are in /usr/sbin now), but we haven't updated the doc for 12.04.

I've had some trouble getting the server to stay active after a reboot, but running the following two commands seems to kickstart it:

sudo restart tftpd-hpa
sudo restart ics-dhcp-server

We haven't tried this on 14.04 LTS yet. We've used this primarily for XP and Windows 7 systems.

Build Document – Clonezilla Disk Image Server

SETUP:

Hardware:  Any desktop or server class machine with at least two hard disks – one for the OS and one for the disk images

Software:  Ubuntu Linux, Desktop Edition 10.4 LTS x64 (Lucid Lynx, Long Term Support)

CONFIGURATION:

Install Ubuntu with the default options.  If a previous OS was installed on the disk, select “Use entire disk” for Ubuntu.  Name the machine “clonezilla”.
In System → Preferences → Network Connections, set the IPV4 Address parameters (edit Auto Eth0):

Method: Manual
IP Address: 192.168.0.11
Netmask:    255.255.255.0
Gateway:    192.168.0.1
DNS Server: 10.10.1.5

In System → Administration → Disk Utility, create /home/partimag, format the second disk, and mount it on /home/partimag.

Open a terminal session and sudo -s to become root.  Edit /etc/fstab, duplicate the /dev/sda1 line, change sda1 to sdb1, and change the / mount point to /home/partimag.  Leave all other options the same.
Run Update Manager and install all updates.  Reboot.
Open a terminal session and sudo -s to become root.  Edit /etc/apt/sources.list.  Add the following line to the end of the file:

deb http://drbl.sourceforge.net/drbl-core drbl stable

Run the following commands:

apt-get update
apt-get install drbl
/opt/drbl/sbin/drblsrv -i  (accepting the default options)
/opt/drbl/sbin/drblpush -i

--

Domain:     mossbeachhomes.com
NIS/YP: penguinzilla (the default)
Client prefix:  clonezilla (the default)
Ethernet:   eth0 (the default; answer “y” when prompted)
Don't collect client MAC addresses
Initial IP: 100
How many:   50
1st Mode:   0 (full DRBL)
2nd Mode:   0 (full Clonezilla)
Images: /home/partimag
Accept all other defaults
/opt/drbl/sbin/dcs
Select all clients
Clonezilla-start
Beginner mode
Select-in-client
Accept all other defaults


Path bar missing in file dialog after running software updater for Ubuntu 17.04

That's something called the breadcrumb bar/view, you can switch to the classic view by hitting Ctrl+L.


ssh not working after recent upgrade on Ubuntu

Error "Connection refused" means that the host is up but there is no program listening to that port. The OS knows that and sends the appropriate error condition to whoever is trying to connect.

It seems that your ssh server is not starting for some reason. You will need to:
 - Start it in the foreground with command sshd -d -D and you will likely see the error printed on your console.
 - Look at the log files.


hello my question is about matlab and its installation and when I want to stop the installation progress I found a problem which is :

Ubuntu documentation is a good place to search for your need.

Please read this before and then if you still have a problem, state that and list the errors you have.


Thunderbird cannot open "Kontakte". How to get rid of that error message?

I solved a similar problem using this advice.

Basically, I had to disable EDS integration add-on in Thunderbird.

Click "Tools" -> "Add-ons" menu item.
Select "Extensions".
Select "EDS Contact Integration".
Press the "Disable" button.
Click "File" -> "Quit" menu item.
Launch Thunderbird again.

Of course, I have no idea whatsoever of what EDS integration may be.


Is it possible to completely and safely remove Ubuntu 11.10

Yep, you can do that, even though I'm not sure about the "remotely" part. Use Windows XP's disk management tool to first delete the partition, then restore the bootloader using the Windows xp install disk, boot to it, select the option to run a terminal, then run fixboot and fixmbr.


How do I get QSystemTrayIcon to show up in Gnome 3?

The QSystemTrayIcon you looking for is already there in GNOME 3.  The icon shows up in the messaging tray (lower right hand corner) but the messaging tray itself is not visible by design.

I just snapped a picture to soothe you:


Managing Grub in case of 2 linux installations

There was a similar question recently, see the link below :

Ubuntu hides Fedora in grub Menu

Have a look at both answers and you should resolve the problem, although my answer was as below, the other answer & comments will help too :

Can you boot in to Ubuntu 12.04, then run boot repair or use the following commands to see if you get access to Fedora from grub?

sudo grub-install /dev/sdX
sudo update-grub

Replacing sdX with the actual drive, which will probably be sda, but use disk utility to double check if you are unsure.


Can't install ubuntu on dell inspiron 3670 - i5

from windows, you can't create ext4 partition, so just create a partition and delete the volume, leave it as free space.

keep in mind if you create the partition from GParted(using live ubuntu) and for some reason, you fail to install ubuntu, you won't be able to boot windows, because windows boot loader won't boot. So for safety create the partition in windows and delete the volume.

now boot from your bootable thumb-drive/DVD and install ubuntu. Select free space and create a partition for root(/) from free space and a partition for swap(if you need).

If you have enough ram, you can skip the swap part and use the entire free space for the root partition (just select the partition and choose mount point / and format as ext4) and continue. SIMPLE

If you've only one disk, select the primary disk for boot loader (grub) installation, grub will detect and add an entry for the windows and you'll be able to boot both ubuntu as well as windows from grub.

If you've 2 disks you can choose to install ubuntu on a different disk which will be cleaner install, but you have to choose which disk you want to use as a default boot disk, you can set that up in your bios, and when you want to boot from a different disk, you've to go through choose boot device every time.

Please comment if you have any questions or doubts.


Photorec recovered directory - asking for missing operand

The correct command is sudo chown -R $USER: recup_dir.1
Note the -R and the space before the directory name.


Black areas with default (gray) theme in GTK3 based applications

Disabling overlay scrollbars solves the problem:

gsettings set org.gnome.desktop.interface ubuntu-overlay-scrollbars false

(Restart X Windows to make the setting active.)


Wake-on-LAN works with Windows 8 but not with Ubuntu

Your commands are close, but try this in command line:

sudo ethtool -s <NIC> wol g

or add this to your /etc/network/interfaces file:

auto eth0
iface eth0 inet dhcp
    up ethtool -s eth0 wol g

'g' enables wake via "Magic Packet"

Looks like if you are shutting down using the following command:

sudo shutdown -h now

then you will also need to edit your /etc/default/halt file. Add the following line:

NETDOWN=no

and see if that works. That should prevent the -h (halt) from shutting down the network interfaces.


Why can not change the file /proc/sys/net/ipv4/ip_forward?

You are trying to change the kernel values. Be sure of what you are doing.

Okay here is how you can change the value of ip_forward with root privilege (sudo -i)

First check the value of ip_forward using command: sysctl -a | grep ip_forward
Now using sysctl -w <parameter=value> you change the value of ip_forward:

sysctl -w ip_forward=1

Make these changes to reflect in kernel using: sysctl -p
Do the first step once again to check the values.

I recommend you to go through the man page of sysctl


Error message from GMail concerning inactive antivirus scanners

Generally, Linux systems have been designed so that opening an attachment has no by-effects: the program you open the attachment with will process the attachment as data only, and will run no commands or programs it has no control of.

In theory, there may be a bug in this defense system that the attachment is targeted to use. This is very rare though. The rule of thumb here is: don't open attachments from parties you don't know and that you didn't expect to receive.


GMail thinks the Ubuntu GMail app is Safari

This is a bug and is being investigated - see the bug report on Launchpad


Why does ps -elf list user number and not user name?

If your username is longer than 8 characters, some tools will show your uidnumber instead of your username.


Wondering how to get OEM Config to work with my custom distro

That error reported looks like It's not created the user 'live' and that user has no password. Did you configure your install scripts correctly? Or did you edit the usernames correctly?


Unable to set default values for SynPS/2 Synaptic

You can change the default value in your libinput config file located at

  /usr/share/X11/xorg.conf.d/40-libinput.conf

(mine is actually 90-libinput.conf. anyways, something like this.)

Just add

Option "Tapping" "True"

For me, the complete entry is:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "Tapping" "True"
EndSection

See more at:

https://wiki.archlinux.org/index.php/Libinput

https://www.mankier.com/4/libinput


Welcome to AskUbuntu!
If I understand correctly, you have two separate physical disks, a SSD with Win10, and a spindle HDD with Ubuntu. Each disk has a EFI partition.

This is what I think your setup looks like:
SSD 0 - Windows 10 : EFI, Recovery part, C drive, other system partitions
HDD 1 - Ubuntu : EFI, /, /home, linux swap

In this setup, all you should have to do is configure your UEFI to use the spindle HDD 1 as the first boot device. This should boot the system to a GRUB2 prompt where you can choose to boot Windows 10, or GRUB2 will default boot Ubuntu after a few seconds.
This works this way because each disk has a separate EFI partition. If the UEFI is set to boot to the SSD 0, then the system will boot to Windows 10 like it always has because Windows 10 wouldn't be "aware" of Ubuntu on the HDD.
If you select HDD 1 as the boot device in UEFI and you still don't get Ubuntu, then there's probably something wrong with the install of Ubuntu and you should re-install it. A default install should be fine, just make sure it's using the HDD as the install location. If you need a separate /home partition and Linux SWAP partition, then using the custom partition option is the way to go.


I don't actually know much about notify-send but I do know crontabs :)

Firstly, remember that cron processes are being run from the very guts of your system (traditionally from init, I dunno if the gits have changed of late :)

So, you can't assume that the commands you want executed by cron will be in its PATH.

The easiest way around this is to specify a full path to the commands you run, for instance use /usr/bin/notify-send as opposed to just notify-send.

Good luck!


I'm on 16.04 with a 755M and was having a similar series of problems trying to switch to GPU from iGPU. I'll recount my experience in the hope that it's helpful to you.

TLDR: Try various drivers until one worked (378.13 for me).

Long Version:

I did as described here:

Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics

to purge and reinstall and reinstall xorg

This kept me from a black screen.

From the "Additional Drivers" tab in the Software & Updates menu, I have several different choices of NVIDIA Driver to use. I tried those that were recommended, and they didn't throw any errors. I could then choose Nvidia in the Prime Profiles tab of the NVIDIA X Server Settings. Upon logout and re-login (the login itself worked fine for at least some drivers) NVIDIA Prime had reverted to Intel.

It wasn't until I used the 378.13 open source driver that the NVIDIA X Server Settings saved upon re-login and everything worked as expected.

I hope that helps! Best of luck!


On which disk device Ubuntu has been installed?

Do this:

  sudo fdisk -l

and that should tell you the answer.

This will list the partitions and devices on your system. If your system only had one hard disk, look for /dev/sda.

You may get something like:

Disk /dev/sda: 698.5 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000sdfss

Device    Boot      Start        End    Blocks  Id System
/dev/sda1 *          2048  195311615  97654784  83 Linux
/dev/sda2       195311616  400111615 102400000  83 Linux
/dev/sda3       400111616  522991615  61440000  83 Linux
/dev/sda4       536815616 1465147391 464165888   5 Extended
/dev/sda5       654030848 1413199871 379584512  83 Linux
/dev/sda6       536817664  654028799  58605568  83 Linux
/dev/sda7      1439174656 1465147391  12986368  82 Linux swap / Solaris

Look for Linux systems, as well as the swap partitions and the one(s) with the Boot flag.

If you have problems understanding it post the full output here and I'll explain what it means.


No wireless networks visible with Acer Aspire VN7 (Atheros QCA6174)

I finally managed to find a solution to my problem on the Ubuntu forums:
http://ubuntuforums.org/showthread.php?t=2303541

The proposed solution is for an MSI GT72S 6QE, but the problems it displayed were exactly the same and installing the Git development driver at kvalo. Hopefully this will be introduced in a future upgrade of Ubuntu, but for now, it solved my problem like a charm! (well, kind of, had to reboot 4 times before it became effective, but after all the result is what matters...)


Sharing Folder's which are symbolic links to another folder

I think your problem is caused by this:

https://www.samba.org/samba/news/symlink_attack.html

probably bind mounting /home/user/.wine/drive_c/users/Public/Application Data/TVxb to /home/EPG/TVxb will solve your problem. i.e.:

sudo mount --bind "/home/user/.wine/drive_c/users/Public/Application Data/TVxb" "/home/EPG/TVxb"


Block root access remotely like ssh and putty

In order to change the openssh-sever configuration you need to edit the /etc/ssh/sshd_config  file, where d stands for daemon. The configuration file mentioned in the question - ssh_config  - is dedicated to the openssh-client. Otherwise the directive you are using - PermitRootLogin no - is correct.


GRUB error while trying to run fully installed Ubuntu 12.04 from SSD

I came accross this post while looking for a solution to a problem I had after deleting a linux partition on a dual boot (xp-linux mint 9) netbook. I got the grub rescue prompt as well and I could solve my problem by running boot-repair from a live usb. You might want to try it to see if it works for you as well.

see:
https://help.ubuntu.com/community/Boot-Repair


How to auto restart a command after it closes down?

You could write a script with these contents:

#! /bin/bash
function INT_cleanup()
{
    kill `jobs -p`
    exit
}

trap INT_cleanup INT

# ${VAR-TEXT} means that TEXT is used if VAR is empty.

STREAM_START=$(($1))
STREAM_END=$(($2))
for ((COUNT=STREAM_START; COUNT<=STREAM_END;COUNT++))
do
    while true #Infinite loop
    do
        rtmpdump -r "rtmp://123.45.6.7/live/" -a "live/" -f "LNX 14,0,0,125" -W \
            "http://123.45.6.7/jwplayer.flash.swf[1] " \
            -p "http://123.45.6.7/[2] " --live -y "livestream$COUNT" |
        avconv -i pipe:0 -y -v:v info -vcodec copy \
            -acodec copy -f flv rtmp://localhost:1935/live$COUNT/
    done &
done

Or

#! /bin/bash
function INT_cleanup()
{
    kill `jobs -p`
    exit
}

trap INT_cleanup INT

count=0
while [[ $count < 10 ]] # Try 10 times
do
    rtmpdump -r "rtmp://123.45.6.7/live/" -a "live/" -f "LNX 14,0,0,125" -W "http://123.45.6.7/jwplayer.flash.swf[1] " -p "http://123.45.6.7/[2] " --live -y "livestream2" | avconv -i pipe:0 -y -v:v info -vcodec copy -acodec copy -f flv rtmp://localhost:1935/live/
    count=$((count + 1))
done

in a file, call it stream.sh, make it executable:

chmod +x stream.sh

and run it:

sudo ./stream.sh 1 3

To kill the script, press CtrlC. The first is an infinite loop, the second runs for 10 iterations.


apt-get install/remove/reinstall doesn't work. Python errors

run the following commands:

sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall ubuntu-drivers-common/$(lsb_release -c -s) python3-update-manager/$(lsb_release -c -s) update-manager/$(lsb_release -c -s)

if that doesn't work, try this:

sudo dpkg -P ubuntu-drivers-common
sudo dpkg -P python3-update-manager
sudo dpkg -P update-manager
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall ubuntu-drivers-common update-manager python3-update-manager
sudo apt-get install --reinstall ubuntu-desktop/$(lsb_release -c -s)
sudo apt-get dist-upgrade

https://help.ubuntu.com/lts/serverguide/apt-get.html

https://help.ubuntu.com/community/AptGet/Howto

http://www.tecmint.com/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management/


Can I boot a Live USB fully to RAM, allowing me to remove the disk?

You simply need to add the toram boot parameter in GRUB.

Here is how you can do that, tested (and screenshots taken) with an Ubuntu 16.04 64 bit desktop iso in a VM:

Boot in UEFI mode

Boot from the live DVD/USB and wait for the GRUB menu to appear.

Highlight Try Ubuntu without installing using ↑/↓ and then press E to edit the boot script.

Search for the line starting with linux and add the option toram right after (or instead of) quiet splash, as depicted above. Then press F10 to boot the modified script.

After Ubuntu has fully booted, you may eject/unmount the live DVD/USB device and continue using the system and all available programs.

Boot in BIOS/Legacy mode

Boot from the live DVD/USB and wait for the language selection boot menu to appear.

Select your language with ↑/↓ and confirm with Enter. The boot menu appears.

Use ↑/↓ to highlight Try Ubuntu without installing.

To make the editable Boot Options line appear, press F6 followed by Esc to close the little pop-up.

Then you can navigate the cursor in the Boot Options line using ←/→. Search the quiet splash options and add the toram option after or instead of them, as depicted above.

Boot the modified configuration by simply pressing Enter.

After Ubuntu has fully booted, you may eject/unmount the live DVD/USB device and continue using the system and all available programs.


A SIGSEGV (SIGnal SEGmentation Violation) signal is sent to a process when the process accesses an area of the memory which shouldn't have accessed; so that's a bug in Firefox.

Possible solutions are upgrading to a version of Firefox in which the bug was fixed or downgrading to a version of Firefox in which the bug wasn't present; however none of the two is easily accomplishable, as that Firefox version is the only Firefox version present in the default repositories;

A solution would be uninstalling the version of Firefox from the default repositories and installing Firefox from the Mozilla repository, hoping that that specific bug was fixed:

sudo apt-get remove firefox
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt-get install firefox

However this will install the bleeding edge version of Firefox, which might have other bugs.

If this version is working well enough however, you can stick to it until an update for the Firefox version in the default repositories is available, remove this version and reinstall the version from the default repositories.


Why does software center prompt for updates after ap-get update?

apt-get upgrade doesn't do a full upgrade. It will only upgrade existing packages and won't do anything that involves installing new packages or removing old ones, both of which are often required for a full upgrade.

It's these other updates that Update Manager wants to apply.

I would just never use apt-get upgrade and always use apt-get dist-upgrade.

I also wouldn't pass in -y. Given what I've just said about apt update, that's probably safe, but apt dist-upgrade could do harm if you've done something silly beforehand. Always check to make sure Apt isn't going to do something silly. It takes seconds and saves hours.


How to link header files after make install pnetcdf

At the risk of sounding pedantic, you don't link header files - you include header files, and link libraries.

If sms is an executable program that consists of a single translation unit whose source code is contained in a file sms.cpp, then you can perform both steps (compilation and linkage) in a single command

g++ -o sms -I/home/mmann/PnetCDF/include ./src/sms.cpp -L/home/mmann/PnetCDF/lib -lpnetcdf

If the program is split over many source files then it's common to split the build into separate compile and link phases, like

g++ -o sms.o -I/home/mmann/PnetCDF/include -c ./src/sms.cpp
g++ -o some.o -I/home/mmann/PnetCDF/include -c ./src/some.cpp
g++ -o other.o -I/home/mmann/PnetCDF/include -c ./src/sms.other

and then

g++ -o sms sms.o some.o other.o -L/home/mmann/PnetCDF/lib -lpnetcdf

The main advantage of doing this is that if you make a change to one of the source files, you don't need to recompile all of the others (just recompile the changed one, and relink the executable).


Why Does Ubuntu present such a low resolution in a virtual machine?

In order to use higher resolutions (and for some other benefits as well) you need to install the guest additions. I take it from the virtualbox manual

You need several packages beforehand: build-essential  ( sudo apt-get install build-essential ) will pull in almost everything you need.
They recommend installing dkms ( sudo apt-get install dkms )
In the "Devices" menu in the virtual machine's menu bar, VirtualBox has a handy menu item named "Install guest additions", which mounts the Guest Additions ISO file inside your virtual machine.
use the output of mount to determine where the image is mounted (I expect /dev/sr0)
sudo -i gives you a root shell (after entering your password)
type cd /dev/sr0 (or what is appropriate in your case)
type sh ./VBoxLinuxAdditions.run for the actual installation/build process to start (it will take some time)
end your root shell with CTRLD
log out of your session and then log in again (you could also reboot the system)

Now you will get a much better resolution and you will be able to resize the window with the VM.


Why can't I copy files to a USB drive partitioned by GParted?

What it says there is that the owner of the disk is root.
So you will need to change the permissions. Since it's ext4 the permissions are stored on the disk. It's not odd GParted made it read-only except for root because ext4 is not commonly used for USB drives. It seems GParted assumed it is most likely you would use ext4 for an operating system, for which it would be best to only have root access to the root of the partition.

It will always be possible to mount the drive and use the root user from a different computer to change the permissions.


Alien-arena does not appear in the launcher

Open gedit and add the following:

[Desktop Entry]
Name=alien-arena
Comment=alien-arena
Exec=alien-arena
Icon=alien-arena
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Game;ArcadeGame;

Save this file as alien-arena.desktop on your desktop or in the folder you want.
Give it the permission to be executed as program; in konsole (or terminal), type:

chmod +x /path to file/name of file

example, if it is on desktop, type:

chmod +x ~/desktop/alien-arena.desktop

(If you receive a prompt "acces denied" or something like this use sudo:
 sudo chmod +x ~/desktop/alien-arena.desktop).

Or you can do this graphicaly by right clicking on the shortcut icon then property then permission tab then check: Allow executing file as program.

If you want to have an icon on unity lateral launcher bar, you can drag the game shortcut to the place you want on that launcher and release the mouse button.

That's all, I hope this help.


I think your older Ubuntu's /etc/fstab wasn't using UUIDs to identify the partitions (instead, something like /dev/sdaX). Thus when you resized partitions, there may have been a change in the numbering, and thus a missing /home partition. Either that, or it was using UUIDs, and you somehow modified the /home partition, causing its UUID to change.

Either way, check the fstab of the new system to see what the /home entry should look like. If that file isn't using UUIDs, note the correct partition number, and look up its UUID:

sudo blkid
# Or
ls -l /dev/disk/by-uuid/

Then fix the entries in both systems to use the correct UUID (by using UUID=<uuid> instead of /dev/sdaX in the fstab).


Sounds like a classic issue with Intel wifi since Ubuntu 12.04 and it seems that the common solution is echo "options iwlwifi 11n_disable=8" | sudo tee -a /etc/modprobe.d/iwlwifi.conf and reboot


Install restricted or just dvdread, then run the dvd decoder installation script:

sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh

Reference


12.04 LTS, update-manager behaves contradictory?

To try to solve your problem, open a terminal (Ctrl+Alt+T) and enter the following two commands, one at a time, in order. The first command will ask for your password. The second command may take a little while if you have not managed to update since installing.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

When complete, close the terminal and restart your machine. Try Update Manager again.


Whenever I go to the google chrome download page my laptop screen turns off

I suggest you look at the contents of the file /var/log/syslog
Each line starts with a timestamp.  Find the section that coincides with the time the screen goes blank and see if you can find any relevant entries.
I experienced a similar problem and the entries in my syslog file started...
(timestamps at start of each line removed for clarity)

 [drm] stuck on render ring
 [drm] GPU crash dump saved to /sys/class/drm/card0/error
 [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
 [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel

I posted a bug report at freedesktop.org  No fix yet but hopefully the bug report will help get it fixed.


In 14.04 Thunar is a core program of xfce. I really doubt you uninstalled it completely, because that would automatically remove many xfce packages, rendering xfce unusable. Thunar is like a stock app in Android, can't simply uninstall it because you break system functionality. Just put it back and live with it.


You might need to edit your xorg.conf file, which lives in the /etc/X11 directory.  Try adding a line in the config file that says:

Option    "VertTwoFingerScroll"  "1"

There are lots of customizations you can make to your touchpad config using that xorg.conf document.  Check out all the possibilities at https://help.ubuntu.com/community/SynapticsTouchpad


How do I make a theme have SQUARE instead of ROUND windows?

Go to Appearance > Themes > Customize and in windows border section choose Orta-Squared. You can right click and go to change desktop background as well for accessing appearance settings.


what about Type=oneshot?

If that doesn't work: maybe you have to change ownership of the file to root as well.


It's simple just make another two partitions one of them 1GB and another is for the system you may choose the preferred size of it.
Then run the graphical installer of Ubuntu's Live CD one it come to hard disk configuration to install make the 1GB sized partition a swap area and mount / to the other partition.
that's a short description for the whole operation.
the information that i described in this answer is the most tricky one so you should take care.
Everything else is not hard.


Ubuntu server 16 add gui and start on boot

You need a display manager:
sudo apt-get install lightdm-gtk-greeter
sudo apt-get install lightdm (first install lightdm-gtk-greeter or it will install unity-greeter as recommended package).
Then you can enable auto-login by adding:

  autologin-user=<YOUR USER>
  autologin-user-timeout=0

to the /etc/lightdm/lightdm.conf file as described here: How do I enable auto-login in LightDM?


dbus error on 14.04 after system is left idle for a few hours

I had the same issue with M4 SSD.
I did a firmware update to 070H version see
http://forum.crucial.com/t5/Solid-State-Drives-SSD/Crucial-m4-SSD-firmware-07MH-for-mSATA-and-070H-for-2-5-quot/td-p/123930/page/22.
Upoad crucial-m4-070h-07-00.iso file, create a bootable USB key using UNetbootin and follow instructions.

No data lost on SSD.


Not all laptops and batteries come with a temperature sensor for the battery.  I know of no Dell that does.

You can purchase one of those laser/infrared thermometers and periodically point it at the battery though, and achieve the same general thing.


The Windows drivers of your peripherals must be off for some reason. You should try pluging in a wired keyboard and mouse to log into your Windows account, and reach the Device Manager (Startup menu, type "Device Manager" it'll come up). Then look for a device that has a yellow exclamation mark on it, that might be the culprit.

You can try repairing it, or uninstalling the driver then reboot, both should do the trick. Make sure you have an internet connection then!

[EDIT] Your probably already tried this, but on Windows sometimes you just need to unplug/plug your receiver to another USB port


This is a bug in Oracle Java 1.8u131 as explained in this blog post:

This recent update to Oracle’s Java introduces a change that breaks the -XX:+AggressiveHeap command line option [...] The Java team is aware of this bug and it has a priority level 2. This is the level reserved for crashes, losses of data, and severe memory leaks. They’re taking it seriously and I expect this problem to go away in a coming Java update.
On Linux, one way to work around this Oracle Java bug is to update the cobaltstrike and teamserver scripts to specify the -XX:ParallelGCThreads=8 option after the java command.
I advise that you stay away from Oracle Java 1.8u131. If you already updated to Java 1.8u131, then downgrade to Java 1.8u121.


How to give permission to a directory which including lots of images

This is an evil trick that I some times use if I am lazy about changing permissions.

[Cautionary] Disconnect the internet to prevent shenanigans from rogue elements.
Ctrl+Alt+T to open up a terminal.
sudo nautilus
Navigate to your pictures directory.
Select the files you want to change permissions of
Right-click to Properties.
Goto Permissions Tab.
Do your ghastly deed.
Exit Nautilus.
Reconnect internet.

Remember; this is evil, because you are giving a file manager incredible power.


Ubuntu 18.04 guests which cloned by virtualbox have the same ip but different mac address in NAT network

In newer Ubuntu versions, netplan is used for configuring the network. The file /etc/machine-id is used to create the DHCP identifier by default, rather than using the MAC address of the NIC.

When a Ubuntu system is cloned, the cloning process may change the MAC address of the NIC but it typically doesn't automatically change /etc/machine-id.

On your two systems, you can compare the contents of /etc/machine-id and they're probably the same.

You have two options:

Change the machine-id on at least one of the servers (huangjunpo's answer)

user@host:~$ cat /etc/machine-id
d8dcd93cd8bffce0f7ed73875eb5be3a

user@host:~$ sudo rm /etc/machine-id
user@host:~$ sudo systemd-machine-id-setup
Initializing machine ID from random generator.

user@host:~$ cat /etc/machine-id
4b603489b08541ce9127791047081f46

If using netplan, change the way netplan constructs the client identifer for DHCP to use the MAC address by adding dhcp-identifier: mac to your netplan config file in /etc/netplan. Add it under any interface you need to, and be careful of indentation in the yaml file.
(see netplan.io - examples)

user@host:~$ cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
    enp3s0:
      dhcp4: true
      dhcp-identifier: mac
  version: 2

After making this edit, you will have to apply it to make it have effect.

sudo netplan apply

Note that /var/lib/dbus/machine-id is linked to /etc/machine-id.

user@host:~$ ls -l /var/lib/dbus/machine-id
lrwxrwxrwx 1 root root 15 May  8 20:30 /var/lib/dbus/machine-id -> /etc/machine-id


The file extension .tgz is used for a certain archive type. You have to extract it (like a .zip on Windows).

The file(s) contained in the archive should be the installation files.


Install vino:

sudo apt-get install vino

Configure vino:

vino-preferences

It open this windows :

You start the server with :

/usr/lib/vino/vino-server

Enter this command in your Autostarted Apps if you wish vino to start automatically.


Safe to remove entries in 12.04 sources.list?

You can safely remove or comment out (put a # in front of them) the hardy entries. Ubuntu Hardy is over four years old and not supported. So the archive isn't active anymore and thatswhy yu get an 404 error.


Cannot update NFS, the update manager shows packages but won't let me select them

This was a bug.

https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/863741

It was fixed on  2012-06-07


How do I upgrade from inside a VMware Image?

A virtual machine doesn't really know it's virtual, so yes, it will be the same as normal.


Dota 2 lagging in Steam when running on MacBook Pro

I had this problem, and I managed to solve it on Arch linux. The problem was that OpenCL drivers were not installed. I guess the basic steps are same, so here they are:

Run $ neofetch command to check what Graphics card you are using.
//Mine was Intel Crystal well.
Go to intel site and find what is the
microarchitectre of your chip. For e.g. mine was Haswell as seen on
https://en.wikichip.org/wiki/intel/crystal_well. My processor is
also listed i7-4770HQ.
Install the relevant driver, as from this
page - https://wiki.archlinux.org/index.php/GPGPU. Mine was
intel-opencl.  Restart your computer.
Run $ clinfo . You should see a platform registered. OpenCL is enabled now.


Flash Player in Google Chrome does not work on Ubuntu Live CD

You're installing wrong package. Chrome uses it's own flash. It's called PepperFlash.

Do not delete ~/.config/google-chrome/PepperFlash
Or install PepperFlash by editing gksudo gedit /etc/apt/sources.list and adding this lines:

deb http://archive.canonical.com/ubuntu your_ubuntu_version multiverse
deb-src http://archive.canonical.com/ubuntu your_ubuntu_version multiverse

Do not forget to apt-get update && apt-get upgrade
and install package apt-get install pepperflashplugin-nonfree


How to set up ethernet connection? 16.04 server

Your command ip link shows that the ethernet interface is enp3so which I suspect is actually enp3s0; in other words, with a zero, not an oh. Please amend your /etc/network/interfaces file to read:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp3s0
iface enp3s0 inet dhcp

Of course, double-check if it is enp3so or enp3s0 and substitute as needed.

Then do:

sudo ifdown enp3s0 && sudo ifup -v enp3s0

Did you connect?

ping -c3 www.ubuntu.com


Well it seems that the package is not yet available in the PPA you have for LibreOffice. The package is indeed available and unless you find a PPA with the newest LibreOffice version, you might want to download the DEB installer from the official LibreOffice website; Every package you install in Ubuntu is a DEB package, whether it is automatically downloaded and installed by the Software Center (apt), or you get it elsewhere.

In that same link you provided, you can choose "Linux xN (deb)" (where N is 86 or 64, use 64 if your install is 64-bit, otherwise use 86) in the first combobox. Download and install! Beware the the first pair of links correspond to LibreOffice 3.4.4 while the last ones to LibreOffice 3.3.4.


how to fix apt-update error: Package Hash sum mismatch

try to remove PPA from your source list and re-add it if needed (or add another one if it's different)

sudo add-apt-repository --remove ppa:whatever/ppa

or using GUI (Software & Updates -> Other Software)


If you use fetchmail to get the mails locally and then read them with mutt you don't need to configure mutt for ssl, but fetchmail. And fetchmail by itself tries to use ssl in the default configuration, e.g. it issues the STLS command after opening a plain connection. If the provider asks you to use pop3s instead of pop3 (e.g. encrypted from start instead of encrypted after the STLS command) you should specify the 'ssl' keyword in your fetchmailrc.


Restore locally installed fonts after LibreOffice upgrade

So as I filed a bug report with LibreOffice, some things came clear: describing the problem really does help!

After much head-scratching, it dawned on me that the problem ONLY affects locally-installed (per-user) TTF fonts, but it does not affect locally installed OTF fonts, nor does it affect TTF fonts installed system-wide.

The work-around, then, is to move any ~/.local/share/fonts/*.TTF files to /usr/share/fonts/truetype/, then run sudo fc-cache -f -v.

At least this means that the fonts are available to LibO Writer (and Calc, etc.), although it still seems like a bug to me.


How do I get this GNOME software center app?

Gnome-software isn't available in the Ubuntu software center. Most of the other gnome core apps, however, are available and are quite beautiful/functional. Since most of them are so new, it's just taking a while to filter in. However, they're definitely worth taking a look at what you can find.


What does ' but it is not installable' mean?

<pkg> Depends: <an_other_pkg> (>= version X.X.X) but it is not installable

This  package depends on other package version X.X.X which isn't installable because the needed package is no longer available in the repositories. So it is not installable.


How to maintain language of lock screen?

I found this answer to help.

Inside of Region & Languages under Settings, Login Screen default can be selected after creating a new account.

Be careful as the settings are irreversible once set. If you reboot and change the language to Russian, you won't be able to login.


How do I force Ubuntu to boot into initramfs?

To make the boot process stop in the initramfs, you have to add break to the kernel line in grub.
There are different stages and one can instruct to stop at a given stage. The default is premount, for further options and a comprehensive description refer to man initramfs-tools.

It is often a hassle to get the grub menu during boot, but normally Esc will raise it, when pressed at the right time. Maybe pressing it again and again during boot will raise your chance.
Once in the boot menu of grub, select the boot entry you want to boot with your Up/Down keys and press e to edit the entry.
Then navigate down to the line that starts with linux and append break or break=<run-time> to make the boot process stop in the initramfs.


Unable to install Oracle Virtualbox 6.1.16 in Ubuntu 20.10

The Raspberry Pi 4 is an ARM-based system. The package you’re installing is for x64-based systems, so will never work. If you want to do virtualization on the Pi, you may be able to use QEMU, but expect it to run poorly.


I opened your provided link, but stopped reading the moment I saw having $HOME (/home/*) files on a NTFS partition (way too scary for me).   I decided long ago ago when I had to dual boot (I no longer do) that it was safer to have a partition (not /home) where both OSes (windoze, ubuntu) could share the files I wanted to access in both worlds.  [My /home was for my gnu/linux distro only; with a link ln for easy-access only in $HOME]

As to your real question (file ownership), I'll provide the following

-rw-rw-r--  1 owner  group    281K Aug 28  2016 file_blah

I changed my $USER (my username) to "owner" as that field is the owner, which you're saying is "root".  The group that can access it I changed to "group".  I have files in my $HOME (/home/username folder) that are owned by root|root (owner|group), but its not a problem as I have permissions to do what I need with them anyway, as revealed in the "-rw-rw-r--" (owner, group, others).

If it works, I'd leave it just so your version of windoze doesn't complain, but if you want to change it sudo chown username filename (where username is your username, or owner you want & filename is name of file/dir, or globbed-regex; eg. *), with a -R to quickly do any sub-directories.

But note:  I'd only change it if it's a problem, and I'd save a copy of the directories (ls -la at least) so you could write a script to put things back the way they are in case it creates issues for the unnamed windoze version you use.


Find all .htaccess files that contain a particular string?

If your shell is zsh or bash:

grep 'common\.php'  **/.htaccess

(** expands to any depth of subdirectories.)


"gedit" does not launch as root: "CRITICAL: file log.c ..."-error (no gksu problem!)

I somehow managed to solve my problem and get gedit back to work, even for root.

What I did was

sudo apt-get install --reinstall dbus dbus-x11

to reinstall some dbus-packages which I probably messed up some time ago by running make uninstall on a package containing dbus parts.
dconf dump /org/gnome/gedit/ > /home/bytecommander/dconf-gedit.dump
followed by opening a root shell with sudo -i and as root:
dconf load /org/gnome/gedit/ < /home/bytecommander/dconf-gedit.dump

to copy the working dconf-settings for gedit from my normal user profile over to root's dconf database.

After that it works like a charm. Even the dconf-warnings about dbus-launch disappeared.


Make sure the command-not-found package is installed (it should be by default). Then open up your .zshrc file in your favourite text editor and append this line at the bottom:

source /etc/zsh_command_not_found

Then run

source .zshrc

in your terminal. Now when you try to run a program that isn't installed:

➜  ~  man2html
The program 'man2html' is currently not installed. You can install it by typing:
sudo apt-get install man2html-base
zsh: command not found: man2html
➜  ~


I think you can use one of these two free programs to control the classroom, receive their answers and more, that you can find directly in the Ubuntu Software Center, if they are not pre-installed:

iTalc
ControlAula


How to set a keyboard shortcut that is sent to Ubuntu rather than active remote desktop?

I figured out a way.  Instead of using rdesktop, I instead use a program called "remmina".  This program performs the same task of remote desktop, but still allows workspace switching.


How can you play Steam games with nvidia-optimus laptop?

Check these links - You need to change game properties as shown below

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

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

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

Check these discussions:

http://steamcommunity.com/groups/LinuxOptimus/discussions/0/846944052733804503/
http://steamcommunity.com/groups/LinuxOptimus/discussions/1/864951657810665792/

If this does not work download the hl2-optirun.sh to below location and run it.

/home/user/Steam/SteamApps/'account_name'/Team Fortress 2/


How do I backup my file system with tar and multi-thread?

The z flag you have in your command means:

   -z, --gzip, --gunzip, --ungzip
          Filter the archive through gzip(1).

So if you then use -I which means:

  -I, --use-compress-program=COMMAND
        Filter data through COMMAND.  It must accept the  -d  option,  for  decompression.
        The argument can contain command line options.

Then you are telling it to use both gzip and pigz, so it complains because you've given it conflicting compression options. So just remove the z:

tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system /

Note that I also removed the -p since that shouldn't have any effect when creating an archive:

  -p, --preserve-permissions, --same-permissions
          extract information about file permissions (default for superuser)

You should use that when extracting, not when creating the archive.


Here are the steps:

Start GParted in live Ubuntu session (if you need to make changes to your Ubuntu partitions; otherwise you could do it from the desktop session too),
Right click on swap partition and select swapoff,

Shrink the swap to the size that you want. To do this, right click the swap partition and select Resize/Move option, and drag the slider left/right whichever seems appropriate (also make sure the unallocated space should be in that side which would allow an easy merge with other partitions). And then click the Resize/Move button,

(it would have been easy if you included the partition layout that you have. If you're not sure about this step, you could edit your question to include a snapshot of partition layout or the output of the command sudo fdisk -l)
Then unmount (if they're mounted) the partition in which you plan to merge the unallocated space just created and again with resize/move option, extend the slider to cover up all the unallocated space,
After specifying such move and resize options, from the menu select Edit -> Apply All Operations or click the apply button in the toolbar. The resize and particularly move option will take a long time depending on the size of the files to be moved. So wait patiently.


https://sourceforge.net/projects/boot-repair-cd/

I'm afraid I have to recommend the last option. Boot-repair is very easy to use, the automatic option is usually enough

Another way is to start Ubuntu with Supergrubdisk  http://www.supergrubdisk.org/super-grub2-disk/
And repair grub from the terminal


This happens when the servers are under heavy load and clients get disconnected and reconnect. This is unfortunately going to remain a problem until we can resolve these issues.


Amd athlon 6000+ kernel panic during installation

Looking at the kernel source that error message seems to indicate that the processor was having problems copying back Level 2 cache data back to memory.  The error is a machine check exception which is a low level hardware failure and nothing to do with a faulty operating system.

It either means you system memory is failing for some reason, or there is a bus issue or perhaps the CPU itself has issues.  It is hard to tell without direct access to the AMD handbooks and some deeper knowledge.  Since you have said you have already changed the memory and you still get the problem then it may be an issue with the CPU or the motherboard.


Deleting the listings that is filtered while producing an output

Let's start with a directory with three mp3 files:

$ ls *mp3
a.mp3  b.mp3  c.mp3

Now, let's delete them after we list what we are deleting:

$ find . -maxdepth 1 -name '*.mp3' -printf 'Deleting %p\n' -delete
Deleting ./a.mp3
Deleting ./b.mp3
Deleting ./c.mp3

After this is done, the mp3 files are gone:

$ ls *mp3
ls: cannot access '*mp3': No such file or directory

How it works

`find .

This starts a find command.  It will look for files in the current directory, ..
-maxdepth 1

By default, find recursively searches subdirectories.  This tells it not to do that.  With -maxdepth 1, the command find will only look at what it finds in the current directory and not explore any of the current directory's subdirectories.
-name '*.mp3'

This tells find to look only for files with the .mp3 extension.
-printf 'Deleting %p\n'

This tells find to print a message about each file found.

You can, of course, change this to another message if you like.  If you don't want a message, then this option can be omitted entirely.
-delete

This tells find to delete each file.

Case insensitive search

If you also want to find files named .MP3 or .Mp3 etc., then we need a case-insensitive search and we use -iname:

find . -maxdepth 1 -iname '*.mp3' -printf 'Deleting %p\n' -delete


What's the difference between .Xresources and .Xdefaults?

Xresources is a user-level configuration dotfile, typically located at ~/.Xresources

Using ~/.Xdefaults is deprecated, so this article will only refer to resources loaded with xrdb


desktop/systray both missing on (k)ubuntu 15.04-64bit

Try deleting all elements in folder ".cache" in your home.

You may lose the taskbar, but catch your desk and you can add again.


Darktable startup problem: symbol not found

I had the same problem. I resolved it by uninstalling libexiv2-14 (which also forced uninstallation of KDE, maybe you can keep it broken until reinstallation). Apparently this library was installed from a PPA before.

After reinstalling Darktable, which also reinstalled libexiv2-14 it worked again.

Edit: Just had the same problem again (on another machine), and google let me to my answer. It worked again.


Can I package lighttpd and my web content (HTML, CSS, JS) in to a single snap-package?

Oh certainly! I can't speak with experience regarding the specifics of setting up lighttpd in a snap, but the Nextcloud snap is a good example that does Apache (as well as PHP-FPM, redis, MySQL, and of course all the web code and assets).

I hope you find that helpful!


4 partitions and 3 similar Os: it's possible without problems?

I have done it with four Operating Systems so three is definitely possible.  I had no problems.  I allocated about 30 Gbs for each system and it was plenty.


How can I force all text in a cell onto the next page in Libre Office / Open Office?

Right click the table. Go to Table Properties and under the Text Flow tab, uncheck "Allow row to break text across pages and columns".


Why does Lubuntu not allow me to run the Virtual Box Guest Additions?

The Oracle documentation gives a reasonable 'manual' method to install the Guest Additions which should fit in with your problem.

First update and then install dkms:

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

Then when on your system the Guest Additions option opens a File Manager window: open a Terminal window in that location and run:

sudo sh ./VBoxLinuxAdditions.run

If you successfully mount the Guest Additions iso but get no window at all you should still be able to find the iso mounted in /media/$USER/VBOXADDITIONS_version. So currently on my system the mount point is:

/media/andrew/VBOXADDITIONS_5.0.8_103449

Of course this will vary according to which version of the Guest Additions you are actually using.


Which kernel version should I pick for update

You can use 3.17-Utopic at your own risk. I am using the same on Ubuntu 14.04.

NOTE: As per what I know, the kernels available in mainline are not completely tested. Once testing is done, it will be made available to you.

Best of Luck...


Install Ubuntu onto Old Asus EeePC 1215N?

Well if you're wondering you can install Ubuntu on this configuration, sure why not. Lubuntu is a lighter version you can try out. After installing every OS you need to spend a little time to make things settled so after installation you have to run

  sudo apt-get update

If you faced any unusual problem you can write it here.


First find your USB flash drive's device block - plug in the drive and run dmesg | tail. The device name should be of form sdX.

cryptsetup lukscreate /dev/sdX - this will prompt for a passphrase, create one.
cryptsetup luksOpen crsdX /dev/sdx - this will prompt for the passphrase again.
mkfs.vfat /dev/mapper/crsdX - create the file system

Now you can mount the drive and access the files as expected.

When you are done, run cryptsetup luksClose /dev/mapper/crsdX. You might be able to mount the drive in your file manager at this point.


GRUB2 wont start after installing Ubuntu on separate harddisk

I never got in trouble by using these instructions:
https://wiki.ubuntu.com/Grub2#Recover

First of all, you must start your system from a live cd. Then

"METHOD 3 - CHROOT

This method of installation uses the chroot command to gain access to the broken system's files. Once the chroot command is issued, the LiveCD treats the broken system's / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.

1) Boot to the LiveCD Desktop (Ubuntu 9.10 or later). Please note that the Live CD must be the same as the system you are fixing - either 32-bit or 64-bit (if not then the chroot will fail).

2) Open a terminal (Applications > Accessories > Terminal).

3) Determine your normal system partition - (the switch is a lowercase "L")

sudo fdisk -l

If you aren't sure, run

df -Th

Look for the correct disk size and ext3 or ext4 format.

4) Mount your normal system partition:

Substitute the correct partition: sda1, sdb5, etc.

sudo mount /dev/sdXX /mnt

Example: sudo mount /dev/sda1 /mnt

5) Only if you have a separate boot partition:
sdYY is the /boot partition designation (for example sdb3)

 sudo mount /dev/sdYY /mnt/boot

6)
Mount the critical virtual filesystems:

 sudo mount --bind /dev  /mnt/dev
sudo mount --bind /dev/pts  /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys  /mnt/sys

7)
Chroot into your normal system device:

sudo chroot /mnt

8) If there is no /boot/grub/grub.cfg or it's not correct, create one using

update-grub

9)
Reinstall GRUB 2:

Substitute the correct device - sda, sdb, etc. Do not specify a partition number.

grub-install /dev/sdX

10) Verify the install (use the correct device, for example sda. Do not specify a partition):  sudo grub-install --recheck /dev/sdX

11)
Exit chroot: CTRL-D on keyboard

12)
Unmount virtual filesystems:

sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys

13)
If you mounted a separate /boot partition:

sudo umount /mnt/boot

14)
Unmount the LiveCD's /usr directory:

sudo umount /mnt/usr

15)
Unmount last device:

sudo umount /mnt

16)
Reboot.
sudo reboot "


How to install Battle.Net and run Blizzard games on Ubuntu 18.10

I base much of my answer on https://www.maketecheasier.com/play-hearthstone-on-ubuntu-linux/ which was the most concise solution, that had still to be tweaked.

Vanilla installation of Ubuntu 18.10 64bit.

Everything in the answer supposes you run it from terminal, even when not explicitly stated.

1. Add WINE staging repository and install it

(WineHQ). Note that you will work with 32bit installations of games, etc.

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt update
sudo apt install --install-recommends winehq-staging

2. Configure WINE

Run
winecfg

In the Staging tab, check the following boxes:

Enable CSMT
Enable VAAPI
Enable EAX
Hide Wine version from applications

In the Libraries tab, add entry locationapi, Edit it and select "Disable":

Now, some other answers on the net say, you have to disable d3d11 as well, but  Battle.net launcher apparently doesn't install without it and it turned out that there was no problem running at least Hearthstone and Diablo 3 with D3D11.

In the Applications tab, select Windows version 8.1:

3. Tweak WINE with winetricks

Download winetricks script:

wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks

Now, you will be using 32bit WINE libraries and software versions, so you should prepare all your future runs from terminal for it:

cat >> ~/.bashrc
export WINEARCH=win32
export WINEPREFIX=~/.wine32

Press [CTRL+D] after pasting these 3 lines into terminal, to end adding lines to .bashrc .

Close your existing terminal and open a new one, so that environment variables will be working.

Launch winetricks:

./winetricks

use the default prefix
select "Install a Windows DLL or Component" option.
From there, install "ie8"  and "corefonts".

The installs take some time, and you have to click through multiple "OK" buttons.

4. Get normal Windows Battle.net installer from Blizzard Download page

Now, after downloading, you wont generally be able to just click on the resulting .exe file to launch it with Wine, because you need the environment variables WINEARCH and WINEPREFIX. So in general you launch it from terminal with

cd Downloads
wine Battle.net-Setup.exe

Then you should be able to install Hearthstone and play it via launcher app.

As this solution relies on WINE environment variables, so you wont be able to just click on the exe files. You will get a missing DLL Windows error box, if you do.

Instead when you need to relaunch Battle.net launcher after quitting it, use:

cd ~/.wine32/drive_c/Program\ Files/Battle.net/
wine Battle.net\ Launcher.exe


systemd unit file template for multiple users

It's not possible to pass multiple parameters to the a systemd template (see related mailing list discussion). However, since we have only two parameters and one is the username, it makes sense to make it a user service instead of a system service.

User services can be run at boot if you enable lingering for those users:

sudo loginctl enable-linger username

From man loginctl:

enable-linger [USER...], disable-linger [USER...]
   Enable/disable user lingering for one or more users. If enabled for
   a specific user, a user manager is spawned for the user at boot and
   kept around after logouts. This allows users who are not logged in
   to run long-running services. Takes one or more user names or
   numeric UIDs as argument. If no argument is specified,
   enables/disables lingering for the user of the session of the
   caller.

You can create a user service at /etc/systemd/user, which would look like (adapting your earlier service):

[Unit]
Description=Start TigerVNC Server at startup
After=syslog.target network.target

[Service]
Type=forking
PAMName=login
PIDFile=%h/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver :%i -depth 24 -geometry 1920x1080 -nolisten tcp -localhost
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=default.target

Use the %h specifier for the user home directory. I have omitted the User= field, which doesn't make sense in user sessions. Also note the change to WantedBy in [Install] from multi-user.target (which does not exist in user sessions) to default.target.

The users can then control this service using systemctl --user commands. (Note that you might need to restart after enabling linger if that user hasn't logged in yet, so that a user session is started for them.)


You can't remove the ubuntu-core snap using the snap command, no. If you really want to remove it, remove the snapd package itself and then remove the /var/lib/snapd directory (if it says it's still in use, unmount the snap and try again).


Can I have ipsec-tools working for non standard ports?

IPsec itself doesn't use any ports. If you are willing to setup manually as described in the tutorial it should work.

You need ports for automatic key exchange via racoon or another IKE daemon or maybe if you use NAT. These ports are 500/udp and 4500/udp by default and can by changed in racoon config file

    (maybe)    /etc/racoon/racoon.conf

Check the manpage

    man racoon.conf

for the listen section (Listening Port Specification).


There's a good alternative quite similar to Maren made by google (and it supports many languages also).

You'll find a link to install it to google chrome. It wouldn't work across whole Ubuntu like Maren in Windows but I guess it's a partial solution.


Ok, I've found what was missing.

Here you can find in one answer, that in all the requirements are actually these ones:

sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev python3-pip

After that, you can safely do sudo pip install lxml


Does anybody know why the new Gnome 3.4 changing wallpaper does not change?

You may simply be encountering a bug or shortcoming in the wallpaper. As far as I know it only changes in intensity depending on the time of day.

You may not even notice the change in fact.


Deja-dup backup already running when launched from cron

For those who may encounter this problem, after reading the sources i found that this error message was related to the session bus... So i went reading the ubuntu manpage http://manpages.ubuntu.com/manpages/xenial/man1/dbus-launch.1.html and found this interesting part of the description :

  You may specify a program to be run; in this case, dbus-launch will launch a session bus instance, set the appropriate environment variables so the specified program can find the bus, and then execute the specified program, with the specified arguments. See below for examples.

So i changed my script to

#!/bin/bash

# Launch deja-dup with dbus-launch to get the session bus
dbus-launch deja-dup --backup --display=:0

And it runs perfectly at the scheduled time from the cron !


How to configure usb fax-modem on kubuntu 20.04

maybe it is still bound / attached to virtualbox while you try to send fax frome efax ( make sure nothing except you accesses /dev/ttyXXX  with lsof)

the "real" device might also be /dev/modem /dev/ttySHSF0 /dev/ttySAC0 /dev/ttyUSB0 , sometimes there are multiple /dev/ttyusb serials exported by the hardware ( HSxPA / LTE Sticks) which even might to be "switched" to real identiy  (e.g. from SD-Card-Reader to modem by usbmodeswitch

it might be related to udev , check it's logs ( permissions seem to work as you can write ) UDev Permission Entry Example

there s a ubuntu wiki page describing how how to install connexant drivers

to read/write from userland , your user has to be in the dialout group

one good trick to see where it goes would be ( on a root shell -> e.g. sudo -i or prepend sudo to dmesg) :

UNPLUG DEVICE
dmesg -c → to clear kernel log ringbuffer
PLUG DEVICE
dmesg

this should give you a little dirty talk  and the device name e.g. :
[ 5277.997045] usbcore: registered new interface driver usbserial_generic
[ 5277.997158] usbserial: USB Serial support registered for generic
[ 5278.002889] usbcore: registered new interface driver pl2303
[ 5278.004349] usbserial: USB Serial support registered for pl2303
[ 5278.004403] pl2303 1-3.1.3:1.0: pl2303 converter detected
[ 5278.006801] usb 1-3.1.3: pl2303 converter now attached to ttyUSB0


Dual booting Windows 7 and Ubuntu 12.10 on UEFI laptop

If the partition data you presented is accurate, you are not booting in UEFI mode. The computer may support UEFI boots, but most UEFI computers also include a compatibility feature that enables them to boot in BIOS/legacy mode, and my hunch is that's what you're using.

To better diagnose this, I recommend you download the Boot Info Script and run it from a live CD. Post a link to the RESULTS.txt file that the script generates. This information will tell us how GRUB is installed, give us more details about your partitions, etc.


Stream audio using Pulseaudio server using ubuntu 14.04 desktop

I'd use vlc-mediaplayer:
Latest info should be worked by in:
https://en.wikipedia.org/wiki/Comparison_of_streaming_media_systems
The info for using r(eal-time)t(ransport)c(ode)p(rotocol) is in:
https://en.wikipedia.org/wiki/RTP_Control_Protocol
Good-Luck
https://wiki.videolan.org/RTCP/


Command to split a text file according to number of lines

You can use the split command:

split -l N /path-to-file

Where N is the maximum number of lines that could be in a file.

This command will split the file into smaller files each with N number of lines.

Use man split for more info.


Keep /home directory when installing Ubuntu 14.04

Keep the /home partition

Yes! You can keep the existing home partition using one of the advanced installation options called Something Else

After choosing this option, you will be able to tell the installation process to use the existing / and /home partitions.

Make sure to choose to format / partition as ext4 and
Not format (remove the check mark) the /home partition.

Keeping the users

Before you start the install process

From inside the Mageia installation, run the follwoing command:

cat /etc/passwd

This will give you the list of current usernames and user-numbers. Write the names and numbers down, as you will need them later when you recreate the users in Ubuntu. Thanks Arronical for the comment.

During installation

During Ubuntu you will be prompted to create the first user. This user will have sudo privileges. This user is internally identified as user number 1000. Assuming that Mageia uses the same convention, you should use the same username you had before. Ubuntu will setup to use your existing /home/username.

After installation

For all other users, you will have to wait till after the installation. See Why can't I click the button to add a new user? for details. If you create them in the same order as you did in Mageia, they will get user numbers in the same order as 1001, 1002, etc. Again, use the same usernames, and their existing home folders will be assigned to them. (You will be prompted to choose the existing folders or create new ones.)

Cleaning up

Note: your home folder /home/$USER contains your data as well as configuration files (your preferences) for the applications you use. These are kept in hidden folders with names starting with a dot (.). Since configurations in Mageia may not always match that in Ubuntu, you may get some errors when running an application for the first time. If this happens, you may need to delete the corresponding folder (or file) with dot in the the beginning. Alternately, you may want to delete all the hidden folders and files inside your home folder to get a fresh start in terms of application configuration.

Also see Changing to another distro: can the -home partition be kept?

Hope this helps


How to perform a fresh Ubuntu 14.04.2 LTS install on a remote dedicated server?

I believe it's not possible to get what you want from a dedicated server since you don't have physical access to the bare metal. IMHO you have to check it with your host manager. Probably they will provide you a new build with your specs as requested.


Ubuntu 14.04 High CPU Temperature but Fans Remain Silent

Yeah man, 50 is great. Your fans aren't working hard because your temps are optimal. Your battery life must be awesome.

To give you some perspective, my fans run allot when scrolling through something like Tumblr, using Youtube or streaming Cable TV apps but my temps get up to 70 sometimes. I understand your concern but it looks like you are just running a good setup.

To be sure, make sure all of the sensor apps are installed

sudo apt-get install lm-sensors hddtemp libsensors4 xsensors fancontrol

And if you haven't already run the following command, this might help:

sudo sensors-detect

The "fancontrol" app does not work on my sensors so I can't tell you much about it sounds like it might be what you are looking for.

To configure fancontrol use this command:

sudo pwmconfig

and execute

sudo service fancontrol start

to start it up the first time and after that it should start automatically on boot

see this related post

How to control fan speed?


That is the Windows file you downloaded. You need the .tar.gz and that download has a file named INSTALL with a link to the installation manual:

  For installation instructions see the manual in the docs subdirectory
  or online at http://ant.apache.org/manual/index.html.

It is a binairy download so all you need to to do un-tar it to a location (I would advice something like /opt/apache-ant-1.9.6/ with a symlink to /opt/apache-ant/ so you can install several verions).

You need JDK (1.7+ adviced) and set a few things:

Add the bin directory to your path
Set the ANT_HOME environment variable to the directory where you installed Ant.
Optionally, set the JAVA_HOME environment variable

Example:

Assume Ant is installed in /opt/apache-ant/. The following sets up the environment:

export ANT_HOME=/opt/apache-ant/
export JAVA_HOME=/opt/apache-ant/jdk1.7.0_51
export PATH=${PATH}:${ANT_HOME}/bin

The link to the manual also has instructions on checking if all went well.


Is this the best way to see my running processes?

That is not a valid command so: no.

ps -u $(whoami)

would be a valid method but since $USER equals to the current user

ps -u $USER

is shorter and less consuming. You can also do

top -U $USER

for a real time method (it will refresh the processes) and ordered by %CPU.

Or

pstree $USER

for a tree like view.


Direct this to Google, this is something the Ubuntu community can't handle, due to Google using an entirely different repository source than the Ubuntu community.

However, before you do that, check your extensions and plug-ins at the links below:

chrome://extensions
chrome://plug-ins

Remove all the extensions and plug-ins and if your problem is fixed, then re-add them one-by-one, until the problem is reproduced. After enabling an extension or plug-in, refresh the Facebook page using the blue arrow (or hitting F5) to see if the change in extension/plug-in was indeed the problem or not.

If removing all extensions and plug-ins does NOT fix your problem, then you should check with Google. If there's anything else open at the same time that uses Webkit technology anywhere along the line, this may cause a conflict, but this is a very unlikely case.


Failure to fetch http://somesite.com could not resolve somesite.com

I am changing my Ubuntu server from dhcp to static ip address.

That's OK if you know what you're doing and if the network you're in doesn't interfere (for example if you chose a static IP that's already taken).

Please post and append it to your question

the output of sudo ifconfig eth0
the output of cat /etc/resolv.conf
the output of dìg www.google.com

  Do I NEED a second nameserver address that is common to most setups?

Not really, but it's always handy to have a second one in case the first one goes down. There's no harm in specifying a second DNS there.


Virtualbox >= 6.0.2: Unity crashes on startup

This bug report should enlighten you. There's a bugfix available via guest additions beta version:
https://www.virtualbox.org/ticket/18325

If the direct link to the beta ISO mentioned there does not work - there's a link on "test builds", just look there for the latest version:
https://virtualbox.org/wiki/Testbuilds

UPDATE: As the - currently - only working TestBuild was removed I uploaded the working Guest Additions to the following link (available until 04/2020):
https://file.town/download/fj25drxul6zxnl88pz398pmwt

Background: It seems like the problem (library linking error) regressed in current Guest Addition Releases (at least <= 6.0.6): https://www.virtualbox.org/ticket/18324

So we're still waiting for the real fix...

UPDATE 2: With VirtualBox 6.0.10 released, the problems are gone, as also mentioned within the ticket description. Head to the following page to download the latest version and also install latest Guest Additions to Host(s): https://www.virtualbox.org/wiki/Downloads


TP-Link AC1750 install with installation CD, no ethernet, on Ubuntu

As far as I can tell, there is no information at all that is available to suggest the correct driver. I am fairly certain that, based on modaliases, it is not b43/bcma, brcmsmac nor brcmfmac. The most likely possibility is brcmwl-kernel-source.

If you have the installation USB or DVD, insert it and and drill down to pool > restricted > b > bcmwl and drag bcmwl-kernel-source to your desktop. Do the same with pool > main > d > dkms and drag dkms to you desktop. Then install:

cd ~/Desktop
sudo dpkg -i dkms*.deb
sudo dpkg -i bcmwl*.deb
sudo modprobe wl

Your wireless should now be working.


Black screen after suspend-after moving to the nvidia official drivers (not priority)

Check this out:

Screen Doesn't Display After Resume using X-Swat Nvidia Drivers

Use the nvidia-current-updates driver instead of the nvidia-current driver. That fixed the problem for me.


How to replace a drive in a btrfs filesystem with no spare drive slots?

You can always convert the filesystem from RAID1 to single.

Then you will be able to delete a failed disk, then add a new one, then rebalance to RAID1 again.

But in this case you have a risk of the second disk failure while it is the only one.

It is not a good idea since balancing to single may choose a bad drive to move the data to.

So there is no perfect solution. You need either to connect a 3rd device to replace, or unmount the filesystem for a while.


I found that it work with SMB1 on server
I set in smb.conf:

min protocol = SMB1
max protocol = SMB1

And it works fine.


Ubuntu 13.10 freezing on splash screen (boot screen) after upgrade from 13.04

I had the same problem on one of my upgrades today.

It's because the login manager isn't starting.

I'm using xubuntu with lightdm.

I couldn't figure out how to fix it so I ended up SSH into the box from another, but you could probably press Ctrl+Alt+F1 to get into tty1 CLI Mode.

Then I ran this:

sudo apt-get install --reinstall xubuntu-desktop

I'm guessing you could replace "xubuntu-desktop" with "ubuntu-desktop" or "kubuntu-desktop" depending on your flavor.

After a reboot, I was new and improved!


Browsing the internet from the command line

There are actually a bunch of text-mode web-browsers, these are my top three :)

ELinks (install):

Keyboard Shortcuts

Open new tab - t
Goto URL - g
Go back - Left
Go forward - u
Exit - q
Toggle images - *
Toggle link numbering - .
Toggle document colours - %
Next tab - >
Previous tab - <
Close tab - c
Open in new tab in background - T

Automatic URL rewrites

d - dictionary search
dmoz - dmoz search
g - google search
wiki - wikipedia search

(source)

Lynx  (install):

Lynx User-Guide

w3m (install):

w3m Manual

Wikipedia has a List of more text-based web-browsers, not all of which are available in Ubuntu.


SSH into shell, get 'Error: Can't open display: (null)'

My bet is that you have something in either .profile or .bashrc that requires X. Try logging in with

ssh -t server '/bin/bash --noprofile --norc'

The -t option forces a pseudoterminal ("interactive mode") and the --noprofile --norc options to bash prevents reading .bashrc and .profile.


How to uninstall Ubuntu 14.04 LTS from Windows 8 Dual Boot

The same way you installed the other Ubuntu: you install 14.04 by inserting the 14.04 installation media and at the partitioning related part of the installation you delete the Ubuntu partitions, remake a partition lay-out for 14.04 and finish the installation.


Found an easier fix for what I wanted, here: https://help.ubuntu.com/stable/ubuntu-help/display-dual-monitors.html


how to fix a non-existent executable path causing "ubuntu internal error"?

Let's look at the process of a crash report, using an example from your output:
-rw-r----- 1 au       whoopsie 16389469 Jan  2 09:36 _usr_bin_pulseaudio.1000.crash
-rw-rw-r-- 1 au       whoopsie        0 Jan  2 09:36 _usr_bin_pulseaudio.1000.upload
-rw------- 1 whoopsie whoopsie       37 Jan  2 09:36 _usr_bin_pulseaudio.1000.uploaded

Here, you can see a process.

The crash report is assembled by the apport application
The crash report is uploaded by the whoopsie application
An acknowledgement of the of upload (from Canonical's 'daisy' server) is recorded by whoopsie.

Now, let's look at your latest crash reports:
-rw-r----- 1 root     whoopsie  8655015 Jan  8 00:23 _usr_lib_virtualbox_VirtualBoxVM.0.crash
-rw-r--r-- 1 root     whoopsie    10082 Jan  8 00:17 virtualbox-dkms.0.crash

First, look at the date: Both crashes occurred today. So you should have seen the "An error occurred" dialog twice. Your question implied (perhaps unintentionally) that this was an ongoing problem for a few days, but that's clearly a misreading.
Next, let's move to your .crash output:
Date: Fri Jan  8 00:23:30 2021
ProcCmdline: /usr/lib/virtualbox/VirtualBoxVM --comment w10 --startvm 6bad7132-1231-4cf8-8ac2-5a2a99493c86 --no-startvm-errormsgbox

This means that something on your system ran that command at that time. When you removed VirtualBoxVM, looks like you neglected to remove some script or timer or service or cronjob or something else that tried to launch that non-existent VM.


Preventing keyring from remembering password during session for SSH with private key on Kubuntu

I've taken to stopping the process from running with a few lines inside my users' .bashrc file.

gkd="$(pidof gnome-keyring-daemon)"
if [ "_$gkd" != "_" ];then
    kill -9 $gkd
fi


How do I install ubuntu without losing data?

Welcome to askubuntu.You can use gparted which is included in Ubuntu Live CD to resize C Drive and make free space. Create Drive from that and have Ubuntu.


Install Ubuntu on the hard drive of a 2nd computer, then move that drive to a different computer

Installed Ubuntu is portable

Yes it is possible to install Ubuntu in one computer and move the drive to another computer (or to use an external drive) and run Ubuntu in another computer. It will often work (but not always, the hardware might be too different).

You should avoid proprietary drivers (for example for graphics and wifi). The following link and links from it might help you see what to do and what to avoid,

Boot Ubuntu from external drive

In principle, you can install Ubuntu 'as usual', except that it can cause problems, if other drives (hard disk drives or SSDs) are connected during the installation, particularly in UEFI mode.
The installed system will be created for the boot mode, in which it was created. So if you intend to run your target computer (the laptop with a damaged screen) in UEFI mode, you should boot the other computer in UEFI mode and install when running in that mode. And boot in BIOS mode (alias CSM alias legacy mode) to make the installed system if you intend to run your target computer in BIOS mode.
If a proprietary driver is necessary, it is best to install it after the drive has been moved to the computer, where it is to be used. In order to prepare for proprietary graphics, you may add the boot option nomodeset to the default menuentry before moving the drive to the target computer.

Persistent live system

Alternative, if the computers are too different, so that a system installed in one computer does not work in the other computer:

A persistent live system

is more portable (boots and works in more computers)
causes less wear of the drive
is not as stable (is easier to damage)
can not be completely updated & upgraded (compared to an installed system)

See this link,

https://help.ubuntu.com/community/mkusb

https://help.ubuntu.com/community/mkusb/persistent


mvn --version -Dmaven.multiModuleProjectDirectory system propery is not set

In a terminal

./mvn -Dmaven.multiModuleProjectDirectory=$M2_HOME --version

In Eclipse

Window > Preferences > Java > Installed JREs > Edit

Add the line below into Default VM arguments

-Dmaven.multiModuleProjectDirectory=$M2_HOME

Per default, there is nothing to do:

cd
wget http://www.gtlib.gatech.edu/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
tar xf apache-maven-3.3.3-bin.tar.gz
cd apache-maven-3.3.3/bin
./mvn --version

Example output

$ ./mvn --version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T13:57:37+02:00)
Maven home: /home/aboettger/Downloads/apache-maven-3.3.3
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-i386/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "3.19.0-21-generic", arch: "i386", family: "unix"


Acer C720P Chromebook - Touchpad Not Working

From some posts I found on Reddit, it seems that your touchpad is probably Elantech.  It may also be true, that the touchpad and keyboard multiplex through the i8042 chip.

I'd suggest adding the i8042.reset kernel parameter. This resets the controller when starting, which may be able to disable multiplexing mode if Linux does not correctly support it.

sudo nano /etc/default/grub
Add i8042.reset to the GRUB_CMDLINE_LINUX_DEFAULT= line like this: GRUB_CMDLINE_LINUX_DEFAULT="i8042.reset quiet splash"
sudo update-grub

Then reboot.


Is it possible to create a software RAID 10 using SAN LUN's presented to server on 4 paths?

The direct answer to what you're asking is yes. But, the disks on the SAN can't have any type of hardware RAID. Your RAID controllers have to be able to recognize disks as a JBOD and present them to your host as such. Even then, the answer is more complicated than a hardware RAID 10. You'll probably end up benefiting most from a software RAID6 with double or triple parity disks.


Ubuntu 12.04 > Replace unity-settings-daemon with gnome-settings-daemon

I had similar issue and just uninstalled unity-settings-daemon. Might work for you, since you say that gnome-settings-daemon is already in your autostart.


Cannot log in to the GUI after installing Ubuntu on Asus FX504 laptop

I had a partially similar issue. For me the Ubuntu 18.04 LTS desktop installer hangs on boot always. I tried to boot with the server installer, it worked well, so I installed it. But for example rebooting, shutting down the machine was halted at a point, after the console said "Starting Reboot" it stopped with a "Protocol error" message. Also lspci went into an infinite loop, ate up a core on 100% and I got a message after some time that a process is hung for too long. I had to forcefully reboot the laptop to stop that process.

As a solution, which solved my problem is that I'm installed the Nvidia drivers from the ppa repository as described here: How to install the NVIDIA drivers on Ubuntu 18.04

After that and a reboot everything is started to work properly. Now I have to install X manually of course.


I don't know about fglrx being available or not, but I just solved a similar issue.

First, to get rid of the annoying flashing screen, I configured lightdm instead of gdm3. You can either do this by booting into recovery mode from grub (hold shift from when you see the BIOS if it doesnt show by default), or type on the terminal in between the flashes / X starting attempts. You'll have to:

sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm

Reboot and hopefully lightdm will show up. The desktop still wasn't working for me, but at least you can normally do something on the commandline now.

Secondly, I ran 'sudo apt-get upgrade' and noticed some graphics related packages held back. This could be resolved in a rather crude way:

sudo apt-get remove xserver-xorg
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt autoremove
sudo apt-get install ubuntu-desktop

I did some other stuff, but I think the above is what resolved my issue. You can also see if the stuff in karel's link helps you.


Why doesn't apache2 respect my envvars file?

After looking over the answer given by @Lekensteyn, I tried sudo apache2ctl -M with my apache2.conf reverted to the original. This worked so I dug into the man pages a bit. Here's what man apache2 had to say:

In  general, apache2 should not be invoked directly, but rather should
be invoked via /etc/init.d/apache2 or apache2ctl. The default Debian
configuration requires environment variables that are defined in
/etc/apache2/envvars  and  are  not  available  if  apache2  is
started  directly. However, apache2ctl can be used to pass arbitrary
arguments to apache2.

So, the answer to this question is: You're not using apache2 correctly; use apache2ctl instead.

Thanks @Lekensteyn for pointing me in the right direction.


@Melanie:
1. Boot into recovery mode from the Grub menu (using shift key if Ubuntu is the only OS)
2. After the boot, go to the option Drop to Root Shell Prompt
3. Type mount -o rw,remount /
4. To reset Password, type passwd username (your username)
5. Then type a new Password and exit from the shell to the recovery menu
6. Select resume normal boot
7. Select Ok
8. Use your Ubuntu with the new Password

Regards

You may Thank him for the solution.