Problem with nvidia drivers installation

BinaryDriverHowto/Nvidia says it is unnecessary to remove the Nouveau drivers.

Instead of downloading R310 directly yourself, try doing it through Ubuntu's "Additional Drivers" feature. Follow the instructions at Steam Support > Home >    Steam >    Troubleshoot and How-To's >    Linux Issues >    Switching Proprietary Drivers, which I'll copy here for convenience.

For Step 2, select "NVIDIA accelerated graphics driver (*experimental*beta) (version experimental-310)". Note that "Additional Drivers" has an incorrect URL for version 310. The correct URL is here.

I tried the following directions, and I am not prompted to remove the Nouveau driver.

  To change to the recommended proprietary driver used by Ubuntu, do
  the following:

  Open Additional Drivers either through Systems Settings or by
  clicking the Unity dash icon and entering "additional drivers".
  From the list of available drivers, select the proprietary driver requested by Steam. Your current driver is indicated by a green
  symbol. If the recommended driver is not listed, you will need to
  update your package cache by clicking the Update button.
  Click the Activate button.
  Click the Close button.


sleep X - won't actually make bash script loop wait

This 'mistiming' might be because your make your xdotool run in the background - you do it with & at the end of your command.


Does your BIOS have a SATA AHCI or compatibility mode setting?  I'd try setting it to the opposite setting and try again.

Does the bootable ubuntu USB drive you tried work on another computer?

I'm also curious if other boot discs work on the computer, like the UBCD or a vanilla memtest86+ CD.  If none of them work, I'd make sure the BIOS is updated to the latest version.  If it still doesn't work, I'd consider replacing the drive or using an external drive.  I am puzzled why the bootable USB drive isn't working though.


how to disable discrete graphic in Ubuntu 14.04

Install the drivers:

sudo apt-get install fglrx fglrx-pxpress

then open the amd catalyst control center and disable the 5650.

TLP helps laptop reduce the ammount of power consumed in a much more efficient way than any other:

First: Uninstall laptop mode tools

sudo apt-get remove laptop-mode-tools

Then install:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

Finally start it:

sudo tlp start


How to configure external IP in guest machine

You have to use virtual network interface in bridge mode.
Add LAN ip to both host and quest machines.
Configure port forwarding on router to guest machine.

Basically this is same as two machines behind router.


Broadcom BCM4331 can not connect to WPA networks

Try the instructions at:

WifiDocs/Driver/bcm43xx

You need to confirm the exact version of Broadcom chip, and how to make this work on Ubuntu 12.04 LTS


"sudo gparted" is not working. It says, "The process gpartedbin is already running. Only one gpartedbin process is permitted."

Instead of pressing the power button (hard shutdown), you can often reboot gracefully with SysRq REISUB or shutdown gracefully with SysRq REISUO. This prevents damage to the file system.

See this link: en.wikipedia.org/wiki/Magic_SysRq_key.

SysRq is often activated with Alt + PrintScreen and then, while those two keys are still pressed, type slowly the letters R E I S  U B or R E I S U O.
The root file system may be damaged.

Boot from another drive, for example an Ubuntu install USB drive or DVD disk.
Check that your installed system's root partition is not mounted.
Now you can check and if necessary repair with

sudo e2fsck /dev/sdxn

where x is the drive letter and n is the partition number, /dev/sda6 according to your screenshot.

Now to what you asked for:

I think you need not worry about the warning.
Probably gparted was run before, and not closed correctly, when 'the process gpartedbin is already running'.

Identify the process:

ps -Af|grep gpartedbin

and try to kill it.

Since you have problems with reboot, please reboot gracefully, and I hope, these problems will disappear.
It is a good habit to use

sudo -H

with graphical programs, so

sudo -H gparted

The reason is that programs, for example editors and file browsers write in configuration files, and with plain sudo the configuration of your own user ID can be overwritten by root and it stops working for normal use. This will not happen if you use sudo -H.


There is no problem with editing files as root using gedit. I do it often and always will use the following method, which is the correct way to use gedit with superuser permissions:

gksudo gedit /etc/pm/config.d/config

to edit a file with root permissions.

Not sure why the downvotes, since this was the only correct answer, the other said use another editor. So I'll tell and show you why.

  You should never use normal sudo to start graphical applications as Root. You should use gksudo (kdesudo on Kubuntu) to run such programs. gksudo sets HOME=~root, and copies .Xauthority to a tmp directory.
  https://help.ubuntu.com/community/RootSudo#Graphical_sudo


If you are using a 64-bit version of Ubuntu, you will have to enable MultiArch.

This can be done by running the command

sudo dpkg --add-architecture i386


Ubuntu 14.04 & 16.04 and Acer AO751h boot without Disabled acpi

On both Lubuntu 16.04.2 and Lubuntu 14.04 you should boot with the nolapic boot parameter. In my case with the same netbook it booted like a charm. Also provides full shutdown/reboot functionality as well.

So the correct parameter boot order is:

quiet splash nolapic

You can do it by editing the GRUB_CMD_LINUX_DEFAULT entry into /etc/default/grub by:

sudo nano /etc/default/grub

(Use Ctrl+X to save)

Then run:

sudo update-grub


Question is answered here on Software Recommendations Stack Exchange by Steve Barnes.

  Two possibilities:

  Use imagemagick to check the brightness of the image will work as long as the phone camera does not have auto-exposure or it is turned off, otherwise it will only work for extreme values, (dark/light), e.g.

 convert <image> -colorspace Gray -format "%[fx:quantumrange*image.mean]" info:

  exiftool can parse the EXIF information from the file and extract the "Light Value" which should give you a reasonably consistent reading, (assuming that the camera on your specific phone includes this tag).

  Both tools are free, gratis & open source and available for most platforms.


How to efficiently copy only modified files from a disk to external usb?

You're sort of describing what rsync was designed for. From man rsync:

   Rsync  finds  files  that  need to be transferred using a "quick
   check" algorithm (by default) that looks  for  files  that  have
   changed  in  size  or in last-modified time.  Any changes in the
   other preserved attributes (as requested by options) are made on
   the  destination  file  directly  when the quick check indicates
   that the file’s data does not need to be updated.

There's also a lot of guff about networking, but it's happy doing local too.
Essentially all you need is:

rsync -rtv /home/my_projects_linux /mounted_drive/my_projects_linux

There are a ton of options available but -rtv will sync recursively, keeping the timecodes the same, while being verbose about what it's doing.


While your original file has lines that end with \n, your sorted file has \r\n. The addition of the \r is what changes the size.

To illustrate, here's what happens when I run your command on my Linux system:

$ sort < file.txt | uniq > sorted-file.linux.txt
$ ls -l file.txt sorted-file.linux.txt
-rw-r--r-- 1 terdon terdon 2958616 Jul 10 12:11 file.txt
-rw-r--r-- 1 terdon terdon 2942389 Jul 10 15:15 sorted-file.linux.txt
$ wc -l file.txt sorted-file.linux.txt
273882 file.txt
271576 sorted-file.linux.txt

As you can see, the sorted de-duped file is a few lines shorter and, consequently, a few bytes smaller. Your file, however, is different:

$ wc -l sorted-file.linux.txt sorted-file.txt
271576 sorted-file.linux.txt
271576 sorted-file.txt

The two files have exactly the same number of lines, but:

$ ls -l file.txt sorted-file.linux.txt sorted-file.txt
-rw-r--r-- 1 terdon terdon 2958616 Jul 10 12:11 file.txt
-rw-r--r-- 1 terdon terdon 2942389 Jul 10 15:15 sorted-file.linux.txt
-rw-r--r-- 1 terdon terdon 3213965 Jul 10 12:11 sorted-file.txt

The sorted-file.txt, the one I downloaded from your link, is larger. If we now examine the first line, we can see the extra \r:

$ head -n1 sorted-file.txt | od -c
0000000   a  \r  \n
0000003

Which aren't present in the one I created on Linux:

$ head -n1 sorted-file.linux.txt | od -c
0000000   a  \n
0000002

If we now remove the \r from your file:

$ tr -d '\r' < sorted-file.txt > new-sorted-file.txt

We get the expected result, a file that is smaller than the original, just like the one I created on my system:

$ ls -l sorted-file.linux.txt new-sorted-file.txt file.txt
-rw-r--r-- 1 terdon terdon 2958616 Jul 10 12:11 file.txt
-rw-r--r-- 1 terdon terdon 2942389 Jul 10 15:19 new-sorted-file.txt
-rw-r--r-- 1 terdon terdon 2942389 Jul 10 15:15 sorted-file.linux.txt


wget of redis is not working in docker container with Debian 9 on Ubuntu host


How can I prevent Zeitgeist from reading clipboard?

Thanks for the Feedback. Zeitgeist does not have anything to do with the clipboard. It can't be Zeitgeist


Which browsers can properly handle non-mouse/keyboard input devices? (Eg touchscreens, graphics tablets, etc)

Can I use pointer events?

  Firefox support is disabled by default and only supports mouse input.
  On Windows only, touch can be enabled with the
  layers.async-pan-zoom.enabled and dom.w3c_touch_events.enabled flags

None of the other browsers seem to do so at the moment.


In my experience Gnome with Ubuntu is always unstable, unless if you are a pro. But if you are interested, you can use Ubuntu Gnome. It's the official Gnome flavor of Ubuntu and the site will be updated today for 13.04 Ubuntu release after few minutes.


How to download source of the latest stable Ubuntu's kernel via Apt?

Based on the feedback, this is the right command to download the current kernel sources into /usr/src:

sudo apt-get install linux-source

Here are the commands to extract the source files:

cd /usr/src/linux-source-$(uname -r | cut -f1 -d-)
sudo tar jxvf linux-source-*.tar.bz2


Can't compile program that uses SDL after upgrade to 11.10 - undefined reference to SDL_Init

Ok, solved. Apparently, for some mysterious reason, the order of the gcc options now matters. So when I do:

gcc -I /usr/include/SDL -o test test.cpp -lSDL

(moved the -lSDL option to the end) everthing works just fine. I'd love to know why it suddenly matters, when before if did not, but for now I'm happy that stuff works again.


after suspending computer sound card stops working. I can use headphones, but subwoofer and computer speakers doesn't work, after restarting it works. Any idea how to solve this? Without changes in /etc/modprobe.d/alsa-base.conf subwoofer doesnt work, but computers speakers works fine after several suspendings


how do i re-enable the accent key in Lubuntu?

You can change the layout from the panel.  System / Settings / Keyboard and then choosing the Layout tab should work as well.


Transfering of files from Windows hangs randomly

It could be Windows, it could be the encryption, it could be a whole host of things. I'm a practical person so for one-off issues, there's rarely a point in looking for the root of the problem... That could take weeks of painful debugging and even then it could culminate in nothing.

No, I would try the following options in this order:

Create a writable share on your Ubuntu machine and "push" the files from Windows.
Use a FTP server on Ubuntu (fairly simple, running twistd -n ftptwistd will open a FTP server on port 2121 - but you can install more industrious servers if you want) and push from Windows.
Reverse #2, and run an FTP or HTTP (python -m SimpleHTTPServer if you have python on the Windows box) server on Windows and pull the files over from Ubuntu.
External storage.


How do I remove all programs connected to Wine and Wine with one command?

sudo apt-get remove wine
rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm

This would uninstall wine and remove all menus and icons.


you could get a new asus router with USB 3.0 will work with fat32 or fat, but the info travel as fast as you wireless or wired connection!


Software Center says that program is actually "ndisgtk" to which Synaptic (or the website) lists these dependencies:
ndiswrapper-common
ndiswrapper-utils-1.9

So from Windows you should be able to download your original Windows driver and these debs: (select the one for your computer 32/64 bits)

http://www.ubuntuupdates.org/package/core/precise/main/base/ndiswrapper-common
http://www.ubuntuupdates.org/package/core/precise/main/base/ndiswrapper-utils-1.9
http://www.ubuntuupdates.org/package/core/precise/main/base/ndisgtk

Install the DEBs in the order I have the downloads above by double-clicking, then run "ndisgtk" or "Windows Wireless Drivers" (whichever one appears in the run dialog type-ahead).


Improve performance of Ubuntu guest in VirtualBox on Windows 10 host

Shutdown the Ubuntu 16.04 guest OS, then you can safely make changes in the VirtualBox Settings for that guest OS (click the Ubuntu 16.04 guest OS first to select it) and restart the guest OS to test your changes. Enable 3D Acceleration won't help. The changes that will improve performance are:

Add another CPU thread in Settings -> System -> Processor. You can safely have 2 Processors instead of 1 Processor if you 4-8 CPUs.
Add more Base Memory in Settings -> System -> Motherboard. You can safely allocate up to half of the RAM in your physical machine for the guest OS Base Memory.
Optionally you can increase the Video Memory up to a maximum of 256MB from the terminal by running this command:

VBoxManage modifyvm "name-of-Ubuntu-16.04-guest-OS" --vram 256


Graphics not working properly with Ubuntu 11.04 and later

I felt the same way until I installed the gnome desktop, then things started working properly for me using 11.10. So, give 11.10 a try, but once installed open the Ubuntu Software Center and install GNOME Desktop Environment. All the funky effects will be gone and the user interface is like the 10.10


Why is the internal hard drive not available when attempting to install Ubuntu 18.04 or 19.10 from a USB drive?

Change UEFI/BIOS from SATA to AHCI mode:

In Windows, run MSCONFIG (as administrator)
Enable Safe Boot (minimal)
Restart
At DELL boot up screen, press F2 to enter UEFI/BIOS setup.
Select SATA Operation from System Confirmation and change to AHCI
When asked “Are you sure you would like to continue?”, select Yes
Boot in safe mode (happens automatically because of Step 2)
Run MSCONFIG (as administrator) and disable Safe
Boot.
Restart Windows

Then, restart and boot from Ubuntu bootable USB to install Ubuntu.

See the following pages for additional information:

https://www.tenforums.com/customization/104898-switch-raid-ahci.html
https://support.thinkcritical.com/kb/articles/switch-windows-10-from-raid-ide-to-ahci
https://mashtips.com/install-ubuntu-dual-boot-windows10/
https://www.pcsuggest.com/dual-boot-windows-10-and-ubuntu-uefi/
https://partition.toolpie.com/
https://www.convertunits.com/from/GB/to/MB


For anyone coming to this page from Google:

For EDITING video:
To capture HDMI content in Ubuntu, you can use HDMI capture USB boxes (such as Magewell XI100DUSB-HDMI) or HDMI PCI cards (such as Blackmagic Intensity Pro).

Also, you may need to use a Linux-centric video solution such as ShotCut if you want these cards to work well.

For LIVE STREAMING video:
The above-mentioned cards might work but will require gstreamer in-between to make the Intensity Pro's inputs available in V4L(2).

Also, please note that for any of this to work, your video has to come out in unprotected mode (non-HDCP), otherwise your capturing won't show any video/audio.


Remote Gui Login vs Remote Desktop Sharing

The standard way would be X11 forwarding over SSH, but you'll have to login via ssh in order to start the gui.  I'm not sure you'd really want your computer to serve up a login screen to any connection that's not authenticated

Also X11 is painfully slow.  Best you can do is enable compression and a fast encryption cipher like blowfish or arcfour, but that can only do so much.  It's the X protocol that's the problem.  NX protocol is supposed to be much faster

Check out FreeNX or  x2go


µtorrent is working properly, there is nothing you should worry about this message. Please, read the page you gave us further ("To access utorrent server" is the part you want to read).


How to change the default directories used by Nautilus default bookmarks (Documents, Music, etc.)?

Have you mounted the d: drive permanently with fstab? You then could link folders from that partition into /home.

Understanding fstab

http://www.psychocats.net/ubuntu/mountlinux

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

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

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

For ntfs UUID shown is example only see below:

UUID=XXXXXXXXXXX   /mnt/data ntfs defaults,nls=utf8,umask=000,uid=1000,windows_names 0 0

Window_names prevents the use of invalid windows characters:
(which are the nine characters ” * / : < > ? \ | and those whose code is less than 0×20)
uid=1000 should fix the trash problems as well:

To find the correct UUID for your partitions and create the mount point:

sudo blkid -c /dev/null -o list
sudo mkdir /mnt/data
sudo cp /etc/fstab /etc/fstab.backup
gksu gedit /etc/fstab

And when you are done editing fstab and saving it run the following command to test for errors and mount the partitions without requiring a reboot. You will know before you reboot if something is amiss. Make sure you have partition unmounted if previously mounted:

sudo mount -a

Then you can link folders in your /mnt/data partition into /home. If you already have the default Music folder in /home you need to remove it (make sure it is empty) or rename it. Do this from /home in terminal, the Music folder must exist in /mnt/data.

mv Music oldMusic
ln -s /mnt/data/Music

Or link all folders with one command (none must already exist:

for i in `echo /mnt/data/*`;do ln -s $i; done

Another way to share:

https://help.ubuntu.com/community/Bindfs-SharedDirectoryLocalUsers


equivs-build: fatal error occurred while parsing debian/changelog

You can create debian/changelog with dch --create  (from devscripts package)
and fill the changelog template created with package name, version, and distribution.
(on later package version, you'd use dch -i to add new changelog entries and update the version)

Also, for some reason, I had to comment out 'Source:' line in file I run equivs-build on, then it worked without dh_installchangelogs throwing errors.


Ubuntu 20.04.1 LTS GNOME 3.36.3 periodic mouse and keyboard lag

BIOS
ASUS PRIME H310M-E R2.0
You have BIOS revision 1401.
There's a newer BIOS available, version 1605, dated 8/11/2020, and can be downloaded here.
Note: Confirm that I have the correct web page for your model #.
Note: Have good backups before updating the BIOS.
SWAP
Your swap is excessive at 37G. Let's change from a 37G swap partition, to a 4G /swapfile.
In the terminal...
sudo swapoff -a           # turn off swap

To edit /etc/fstab, use sudo -H gedit /etc/fstab or sudo pico /etc/fstab
Comment out the following line:
UUID=9cd65f59-278f-416d-aede-189ce6ff4086 none   swap    sw   0   0

Save the edit and quit the editor.
Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

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

Confirm this /swapfile line at the end of /etc/fstab... and confirm no other “swap” lines...
To edit, use sudo -H gedit /etc/fstab or sudo pico /etc/fstab
/swapfile  none  swap  sw  0  0

Save the file and quit the editor.
reboot                    # reboot and verify operation

Note: The 37G swap partition (/dev/sda3) is no longer used, may be deleted, and the unallocated space may be added back to your Ubuntu partition using gparted.


chromium renamed after using youtube webapp

I feel stupid for answering my own question so soon but here it is..

It all went back to normal after removing the youtube webapp, chromium browser and chromium ppa and finally reinstalling  chromium after the reboot.

I tried reinstalling before, but it didn't work before manually changing the filename from Youtube to Chromium in ~/.local/share/applications

I still don't see why did that make any difference but thank you for pointing me to the right direction, saiarcot895.


What does "pts/6" or "?" mean in the output of ps

The sixth field indicates the terminal the command is running on.  In the case of your grep command, it is running on pts/6, or pseudo terminal number 6, which happens to be the pseudo terminal allocated to the terminal window you opened.  Daemons are not attached to any terminal; they just run in the background with no human interaction, hence the "?".


You should try

$ sudo -E matlab

This will tell sudo to preserve your environment variables.  If this doesn't work, Matlab is probably loading a configuration file from /root instead of /home/username.  You can check where the configuration is located using the prefdir command in Matlab.  I believe it is located under /home/username/.matlab


For those of you who want to use Facebook Chat in Pidgin, there's a new plugin which makes this possible, called purple-facebook.

To install purple-facebook in Ubuntu, Linux Mint and derivatives, you can use its official repository. To add the repository and install the plugin, use the following commands:

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_$(lsb_release -rs)/ /' >> /etc/apt/sources.list.d/jgeboski.list"
cd /tmp && wget  http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_$(lsb_release -rs)/Release.key
sudo apt-key add - < Release.key
sudo apt-get update
sudo apt-get install purple-facebook

Once installed, add a new account in Pidgin (Accounts > Manage Accounts > Add) and in the Protocol dropdown, select "Facebook" (important: NOT "Facebook (XMPP)"):

http://www.webupd8.org/2015/08/use-facebook-chat-in-pidgin-with-purple.html


The Nvidia GeForce FX 5200 binary driver has been black listed due to the icon issue which effects both the open source and closed source drivers.

The good news is that owners of the Nvidia GeForce FX 5200 can still use unity without hardware acceleration by installing Unity 2d:

How do I install and switch to the Unity 2D desktop?


How to install Ubuntu Desktop 13.04 with mirror RAID?

Install using a Server CD.
It's a bit tricky, but it's possible.

Follow this Ubuntu community tutorial and you'll be just fine.

Afterwards, you can just add a Desktop.

Good Luck !!


First a few words about hwe-support-status (according to its source code):

--show-all-unsupported shows all HWE packages that are installed on your system and that are not supported by Canonical anymore. In your case, this means all packages with names ending in -lts-wily, and the various Linux 4.2 packages.
--show-replacements shows HWE meta-packages that should be installed to replace the unsupported ones. In the present case, this means various -lts-xenial packages, and Linux 4.4.

The -lts-xenial packages have dependency data (Conflicts and Replaces) that are designed to automatically remove the -lts-wily packages when they are installed.

Note that the proposed replacements are meta-packages. These are small packages that depend on a bigger list of related packages. This way, installing one meta-package (linux-generic-lts-xenial or xserver-xorg-lts-xenial for example) will install "everything" related. This is why the replacements list is much smaller that the unsupported list.

Now, to answer your questions:

A) The unsupported packages (from Ubuntu Wily) will be replaced by supported packages (from Ubuntu Xenial). Note that a few packages may not exist anymore in Xenial, and be simply removed (in particular: the AMD/ATI fglrx drivers, but you have an NVIDIA chip, so this does not concern you).

B) Support for Broadcom b43 is a kernel matter. If you did not need to perform a specific setup for Linux 4.2, then I guess it should still work for Linux 4.4. A quick Google search did not reveal anything particularly wrong with b43 and Linux 4.4. Note that b43 is a generic name shared by many Broadcom chips. You may want to investigate which chip you have precisely, and check if there are issues under Linux 4.4.


Unfortunately your card (Radeon HD 4200) is too old for the fglrx driver available in the ubuntu repositories to work.
You can try and install the legacy drivers from the AMD website: http://support.amd.com/de-de/download/desktop/legacy?product=Legacy2&os=Linux%20x86_64
but note that these only work up to linux kernel 3.4.x !
So if the output of the terminal command uname -r shows a number higher than 3.4.x you cannot use that one.
In that case you need to uninstall the fglrx and amdcccle drivers that you installed by typing sudo apt-get purge fglrx amdcccle and then install the old open-source drivers again.
sudo apt-get install --reinstall xserver-xorg-video-radeon


Safety of removing older kernel images on Ubuntu 14.04

It is safe to remove old linux kernels

I keep only the two most recent (and working) kernels. It is good to keep not only the latest kernel (you might get problems with the newest one), but the older kernels can and should be removed. They are only occupying drive space.

Removing kernels is a slow process

It does take a lot of time to remove kernels and set up the system to be aware of the remaining kernels.

It works well to remove kernels with the Synaptic Package Manager.


How to install windows on a partition of a secondary hard drive?

What seems more practical is:

Disconnect the hard disk /dev/sda.

Install Windows in the free space of /dev/sdb (now /dev/sda)

Reconnect hard disk /dev/sda

Run to incorporate Windows to Grub:

sudo -i
update-grub


How do I add myself to the video group after installing AMDGPU-PRO driver?

Just to sum up with some of the great information from steeldriver in the comments;

Install drivers following AMD's instructions

Copy sudo usermod -a -G video $LOGNAME into a terminal

Type groups.

If video isn't listed, then log out and log back in. (Thanks again steeldriver)

Hopefully, you should be able to log in.

Go into a terminal and type groups again

If everything went according to plan, then video should be listed alongside other groups.


Sharing a virtual machine between Ubuntu and Windows

Virtualbox stores path information in the .vbox file, it includes the path to the mounted virtual cds, the hard disk path, shared folders paths, etc... The path changes when you change OS (from F:/something to /media/user/hexadecimal_number/something) and the information on the .vbox file becomes invalid.

AFAIK you can't just share the same VMs seamless between both OSes. But you can create a new, identical Virtual Machine in Linux that uses the same Virtual Hard Disk and Virtual Hardware than the Windows one (but a different vbox file). This should be close enough to what you want to achieve.


Switch video drivers in dual boot environment

You are having this problem because your X configuration is trying to load the nvidia driver which is then looking for a compatible nvidia device. Such a device does not exist in the guest environment instead a VMware virtual graphics device is presented instead and thus the nvidia driver is not the correct driver in the guest OS.

The correct driver for the vmware virtual graphics interface is the one provided by the xserver-xorg-video-vmware package not the ones provided by the nvidia-* packages which are only suitable for direct access to the GPU. You can install the correct driver using the following command on the guest:

sudo apt-get install xserver-xorg-video-vmware

Also make sure that 3D acceleration is enabled on the virtual machine configuration and that you have installed the vmware guest additions correctly. You should also make sure that you don't have an xorg.conf file which is explicitly selecting the nvidia driver since this will fail.

If you wanted a script you could set to run at boot time before lightdm is  started you could try something like this:

#!/bin/bash
# Vendor identifiers
nvidia=\"10de\"
vmware=\"15ad\"

# Detect NVIDIA driver
nvidia_driver=`dpkg --get-selections | awk '/nvidia-[0-9]+\t+install/ { print $1 }'`

# Detect PCI bus ID
vga_bus_id=`lspci | awk '/VGA/ { print $1 }'`

# Detect VGA vendor identifier
vga_vendor=$(lspci -nm | awk "/$vga_bus_id/ { print \$3 }")

if [ $vga_vendor == $nvidia ]; then
   # Configure for nvidia GLX via update-alternatives
   update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/${nvidia_driver}/alt_ld.so.conf
   update-alternatives --set i386-linux-gnu_egl_conf /usr/lib/${nvidia_driver}/alt_ld.so.conf
   update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/${nvidia_driver}/ld.so.conf
   update-alternatives --set x86_64-linux-gnu_egl_conf /usr/lib/${nvidia_driver}/ld.so.conf
elif [ $vga_vendor == $vmware ]; then
   # Configure for mesa GLX via update-alternatives
   update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/i386-linux-gnu/mesa/ld.so.conf
   update-alternatives --set i386-linux-gnu_egl_conf /usr/lib/i386-linux-gnu/mesa-egl/ld.so.conf
   update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf
   update-alternatives --set x86_64-linux-gnu_egl_conf /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf
else
   # Configure for mesa GLX via update-alternatives
   update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/i386-linux-gnu/mesa/ld.so.conf
   update-alternatives --set i386-linux-gnu_egl_conf /usr/lib/i386-linux-gnu/mesa-egl/ld.so.conf
   update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf
   update-alternatives --set x86_64-linux-gnu_egl_conf /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf
fi

The script checks which vendor identifier is detected for the graphics card, if nvidia it will configure ld to use the nvidia provided opengl libraries however if the vmware device is detected it will configure for mesa, mesa being the default if neither vendor string is recognised.

A number of assumptions are being made here the script wont work correctly if these are not the case:

Multilib install is assumed thus the settings for both i386 and
x86_64
It is assumed that the ubuntu provided nvidia driver is
installed this will not work if you installed the nvidia driver
manually without using apt.

I do not however have vmware installed so I am only able to test and be sure that it works correctly when the nvidia device is detected and the ubuntu provided nvidia drivers are installed.


Delete the qm files and rebuiild them with lrelease chessx.pro.
lrelease is part of qt.


Can't connect to some (not all) repository servers

Since the IPv4 version works, you can change the priority of the type of connection to the destination node from IPv6 to IPv4 in the /etc/gai.conf file (which controls the destination address selection).

uncomment the following in the document:

precedence ::ffff:0:0/96  100

As stated in the file, this way sites that prefer IPv4 connection can be connected with IPv4 instead of IPv6.


MySQL Problem: How to get the newest 4er group of this data

I made this:

    SELECT x.* from OMENtmp x join (select k.*,count(k.id2) as cc from OMENtmp k group by k.MCCSIDATE) p on p.MCCSIDate = x.MCCSIDAte where p.cc = 4 order  by MCCSIDAte desc limit 4 ;

This is the right answer, maybe it could be easier!


Very little information to go on here, but I'm going to take a shot at it anyway.  Normally when Ubuntu gets laggy for no obvious reason it has to do with gvfs-metadata.  This is particularly true if you've been moving files around a bit.  It's a pretty easy fix.  All you have to do is close Nautilus or whatever file browser you are running, open an terminal and type the following:

pkill gvfsd-metadata

then hit ENTER and when you get the prompt back, type:

rm -rf ~/.local/share/gvfs-metadata

The first command stops the gvfsd process, and the second command erases gvfs-metadata file which often becomes corrupt or just too big.  Don't worry, though, a fresh new gvfs-metadata file is created as soon as the gvfsd process starts back up.  At the very least this does no harm and gives you a bit more speed / CPU usage.  The worst case scenario is that you see a bit of improvement.  The best case is that this fixes your problem.


Why does terminal always start in maximized mode?

Maybe a duplicate question.

If terminal is the only application that was affected, you may be able to fix it through terminal settings. Terminal > Preferences. Preferences > Profiles. There should be a Default Profile. Click "Edit" and on the general tab you can set the initial terminal size.

Hope that helps...


Every user has his own settings. You need to configure each user independently. ... Just login to each user and set the launcher to be hidden for them all one user at a time.


Using iproute2 in /etc/network/interfaces

Use either pre-up (before the interface comes up), up (after the interface comes up), down (before the interface comes down) or post-down (after the interface comes down) followed by the command you want to run. In your case, you'll likely want to use up and down.

Here's a block that I use for assigning an IPv6 address to my internal network:

iface eth0 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        broadcast 192.168.0.255
        up ip -6 addr add 2001:DB8::/64 dev eth0
        down ip -6 addr del 2001:DB8::/64 dev eth0


Are Ubuntu and Gnome drifting apart because of Unity?

Gnome has not been removed from 11.10. Unity in 11.04 is based on Gnome2, and in 11.10, on Gnome3. The Gnome you are familiar with (aka Gnome2) is no longer supported by the Gnome Foundation - the decision that has nothing to do with Unity. If you want to try Gnome3's default shell, install the gnome-shell package.

If you wish to keep using Gnome2, your best shot is a distro that still supports it, such as Ubuntu 10.04 - 11.04, Scientific Linux, Debian, etc.


Upgrading from ubuntu 12.04 LTS to lubuntu 14.04 lts

I don't believe it is wise to try to update Ubuntu using Lubuntu media, despite them being almost the same, I would suggest doing the distro upgrade via

sudo do-release-upgrade

Or via the graphical Software Updater (which I believe in this case would just be a front-end).


Error : Cannot run C compiled programs. if you meant to cross compile use --host' Ubuntu

The problem is almost certainly because you are trying to run the configure command on an external drive that does not support Unix-style executable permissions.

Although it is possible to mount some non-Linux drives with execute permissions, the easiest solution will be to copy the archive to somewhere in your actual Ubuntu home directory and try again there.

If you are trying to save disk space in your home directory you can keep the actual tar.gz file on the external disk.


After installing tightvncserver, I can't log in locally anymore

Regarding item #2 (cannot log in locally after installing tightvncserver), the steps I used to fix this issue were:

Restore previous user's login state by putting the user back into the "nopasswdlogin" group via  usermod -a -G nopasswdlogin   (this was a test box, don't worry). This isn't necessary if you weren't bypassing password prompt initially. You can check this issue in /var/log/auth.log.
Move  .Xauthority  file in user's home directory out of the way and chmod the user's home directory perms to 777 (not sure if that is needed). Not sure how you verify if this one is the problem, but this worked. Note that this step probably undoes whatever security the installer tried to put in, so you have to be careful here.

Note: I got the .Xauthority tip from
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=27905


Automatic shutdown after 2 hours on every boot

1.Edit sudoers (you must be root):

gedit /etc/sudoers

At the end add following:

yourusername ALL=(ALL) NOPASSWD: /sbin/shutdown

and save.

2.Crete .sh script:

gedit myscript.sh

add following there:

#!/bin/sh
sudo shutdown -P +120 # shut down after 120 minutes

3.run "startup applications" tool you just need write it in search box. And press Add button:

Write there your .sh script name and path to it. Press add there too.


I upgraded 16.04 to 18.04 and i faced same issue. Screen rotation automatically.
So i tried basic solution. Go to Displays->Resolution and change screen resolution 1366*768(16:9) to 1360*768(16:9). Now my system is working fine.


Installing Ubuntu 18.04.2 Server stalls at configuring network connections

A bug report was filed on Netplan:
https://bugs.launchpad.net/netplan/+bug/1831373


You can try disabling hardware acceleration in Chrome. In Chrome go to Settings, click Show Advanced Settings, Scroll down to the System section and uncheck Use hardware acceleration when available. This has caused it to be all black for me in the past when the video drivers have not been able to do the job.


Installation just crashes with Ubuntu GNOME 16.04

I found the solution, and as weird as it is that it doesn't work out of the box, it's even weirder that it actually did work out of the box on my desktop computer:

Start a terminal, and run sudo ubiquity. The important part here is the "sudo" - although Ubiquity generally seems to work just fine without it (partitioning and everything up to actually displaying the progress bar (which seems to be the actual issue according to the syslog) all works), it seems like somewhere it causes a problem.


Why the cryptographic key was not provided at ubuntu 12.04 first run?

Well, I still don't know why the passphrase for home folder encryption was not provided at first run, anyway, with a simple command in terminal, it is possible to get this passphrase.

ecryptfs-unwrap-passphrase

This is useful if it is ever needed to make a manual recovery of the data present in encrypted home folder, as described here:

https://help.ubuntu.com/community/EncryptedPrivateDirectory#Recovering_Your_Data_Manually


How to make chrome history in HUD bigger?


You can check the file that you have synced on the website: https://one.ubuntu.com/

EDIT

All the information of the ubuntu one daemon are available with the command u1sdtool. In particular

u1sdtool --waiting
u1sdtool --waiting-metadata
u1sdtool --waiting-content


I found the correct headers here.

How to add this repository:

sudo -i
cd /etc/apt/sources.list.d
wget https://oph.mdrjr.net/meveric/sources.lists/meveric-all-main.list
wget -O- http://oph.mdrjr.net/meveric/meveric.asc | apt-key add -
exit
sudo apt-get update

You can then use APT to install the headers you need.


Same Google Drive folder, two Operating Systems

Yes, I use the official client of Google Drive in my Windows 10 desktop, and in my Ubuntu 16.04 laptop I use insync, the other client for linux is that I know overGrive. Both can sync selective folders from Drive.

Both clients are paid, but when I was in the trial period of overGrive, insync offered free accounts for a few days, so I'm using it since then


Ubuntu Software Center application extension

What can an Ubuntu package contain?
There are no restrictions on what type of file can be included in an Ubuntu package.
There are some files you will have to include--files that describe the contents of the package and are often created by whatever utility you use to make the package. But there is no prohibition, technical or otherwise, on what types of files you can include.
What languages can be used to write programs that can be packaged for Ubuntu?
There aren't any restrictions on what programming language you can use, unless you're in the rare situation where you want to use some programming language such that:

it is a compiled language and there is no compiler that produces executables for GNU/Linux. (There are actually some workarounds, even for this problem.)
it is an interpreted language and there is no interpreter for GNU/Linux, or the only interpreter is proprietary and you're not allowed to distribute it and your users don't already have it.

Those are not very common circumstances. I doubt they apply to your situation. To the best of my knowledge, every programming language that can be used to produce Qt applications (more precisely: for which Qt bindings exist1) is compatible with Ubuntu.2 In particular, the most common programming languages used with Qt are probably C++ and Python, and they are both very well supported on Ubuntu. There are many Ubuntu applications written in those languages.
Of course, programs written for Windows will not (usually) automatically work on Ubuntu. Typically, and especially for languages that compile to native code (such as C++), you have to recompile the program with GNU/Linux as the target. It is also often necessary to deliberately write your program in such a way as to produce the desired behavior on each operating system you intend to support (see below for details). But you can use almost any language you want to do it.
1 There are Qt bindings for many languages (some are listed here), and some languages have the ability to use libraries written for some other languages. So it's possible that someone might write a Qt program in pure X, where X is some programming language that cannot be used to make Ubuntu programs. However, as far as I know, every language that a Qt developer would likely consider using can be used to create Ubuntu programs. Of course, you might choose to use multiple languages for the same program, and if that is the case, not all of them would have to interface with the Qt libraries, and some of might have no compiler/interpreter for Ubuntu. This is not a common situation.
2 A possible candidate for a language that has Qt bindings but cannot be used to produce programs that run on Ubuntu is C++/CLI, if you needed to produce an executable that contains both managed and unmanaged code. (This would also apply to the old language Managed C++.) C++/CLI has Qt bindings in the sense that there are .NET bindings for Qt; also, Qt supports native C++ directly. So either interface could be used. Note that C++/CLI is very different from ordinary C++, which is fully supported. Furthermore, you could write a program in C++/CLI that runs in Ubuntu, so long as you did not need to produced unmanaged code. Unsafe code, which is not the same as unmanaged code, could still work.
What languages are programs, available through the Software Center, written in?
There are many. C, C++, Python (both version 2 and version 3), Java, C#, and Perl come to mind as common. But Ubuntu can--and does--run programs written in Objective C, Ruby, Tcl, Lua, Visual Basic .NET, D, Fortran, Golang, Ada, sh, JavaScript, PHP, Haskell, Lisp, Scheme, F#, and many others. You could write your program--or any parts of it--in some architecture's assembly language, if you wanted to.
In particular, since you're using Qt: an application with an interface written in QML (for Qt Declarative) can be written for Ubuntu, Windows, and many other platforms. (But you don't have to design your user interfaces declaratively for them to be multiplatform.)
Can Qt Creator on Windows be used to develop applications for Ubuntu?
Yes. You can use Qt Creator and other similar design tools on Windows to make Ubuntu applications. Qt Creator also exists on Ubuntu, where it is fully supported. (You might want to download it from the same site where you got it for Windows, if you want to use the very latest version. Otherwise, just install the qtcreator package.)
Writing code and creating graphical interfaces for cross-platform Qt applications is pretty easy on Windows. (It's also pretty easy on Ubuntu and a variety of other OSes.)
Compiling Your Programs
Cross-compiling for Ubuntu on Windows is definitely possible, but if you haven't compiled a lot of software for a variety of platforms, you might find it easier to use an Ubuntu system to build the Ubuntu versions of your software.
If you do decide you want to try to cross-compile, you can install or build a cross-compiler in Cygwin, among other ways. (Note that Cygwin's compiler does not produce Linux executables by default, and Cygwin will not run GNU/Linux executables.)
How to actually build your cross-compiler that runs on Windows and produces executables for GNU/Linux is a topic unto itself and beyond the scope of this answer (probably off-topic for Ask Ubuntu even). But this may help.
To test your software for Ubuntu, you really do need Ubuntu (as Nanne has mentioned). So you should have an Ubuntu system. It can be a virtual machine. You can use VirtualBox on Windows; VMware is also available, though if you use a free-of-charge VMware product you should make sure to check the license terms carefully to make sure you can use it for commercial use (assuming you consider your software development activities to be commercial).
I'm guessing your intention is to develop cross-platform software, with versions for different platforms. In particular, I am guessing that you are creating a version for Windows and another for Ubuntu (and perhaps others for other platforms).
When you're developing for multiple platforms, it makes sense to choose a single platform for most of your development work. However, if your intention is to develop programs that just run on Ubuntu, then there is probably not much benefit associated with developing on some other OS like Windows.
"If I develop an application on Windows 7 platform will they run in Ubuntu?"
You can develop applications on Windows 7 and make them run on Ubuntu. Applications you develop on Windows will not automatically run on Ubuntu.
They won't automatically run on Windows either--we all have the experience of writing code that doesn't work for one reason or another. However, the important points here are that:
1. An executable that runs on Windows does not run on Ubuntu.
There is an emulation layer called Wine that sometimes makes this possible. It's handy for users, but you almost never want to rely on that when developing a program that you intend to run well on Ubuntu. Instead, you need to compile your program separately for each separate platform on which you intend it to run.
You might be able to make the same executable run on Fedora and Ubuntu, and maybe even on FreeBSD and Ubuntu (since FreeBSD can run GNU/Linux programs most of the time), but you should not attempt to make the same executable run on Windows and Ubuntu if you are compiling your programs to native code for real, physical hardware.
What do I mean by "native code for real, physical hardware"? Well, if you create a program for the Java Virtual Machine (which includes almost any program written in Java), or the .NET Common Language Runtime (which includes almost any program written in C# or another .NET language), then your executable actually consists of bytecode that is specific to the JavaVM or the CLR rather than to the underlying computer and the operating system running on it. So for Java and .NET programs, you usually can make a single executable that will run on both Windows and Ubuntu.
Similarly, if you write your program in an interpreted language like Python, then you can create code that will run on both Ubuntu and Windows (provided that the interpreter is installed). In practice, most of the time a Windows application will include the interpreter it needs, and an Ubuntu application will declare a dependency on the packages that provide the interpreter. So in practice Windows and Ubuntu programs written in interpreted languages are usually prepared separately for each platform.
2. Sometimes all it takes to make a program run on multiple platforms is to compile it separately for each one. But often, more work is necessary.
There are differences between the way different operating systems work. The Qt framework, and the standard library of whatever language you choose to use, will provide facilities that usually make most of a program cross-platform automatically. But sometimes you may have to use underlying operating system facilities, either to accomplish something that cannot be done with your standard library or Qt, or if you want to take advantage of OS-specific features.
This doesn't keep you from writing a cross-platform program. It just makes it so that some parts of your program might have to be specialized per-platform. That is, occasionally you may need to implement a feature of your program one way for one operating system, and another way for another operating system. When you compile your program for each platform separately, you can select which OS-specific parts to use. You can also often set things up so that the appropriate code is selected automatically for whatever target you're building.
Finally, some packaging concepts and resources.
You're asking about what kinds of restrictions and capabilities you have when packaging software for Ubuntu, so I'd like to provide some information about that, to illustrate the different options you have and how they relate to each other.
When distributing software for Ubuntu in executable form, it's encouraged and recommended to distribute .deb package files. (If you're just distributing source code, which your users have to compile, then you can put it in a .deb package, but there is usually no strong reason to do so.)
.deb on Ubuntu (and some other operating systems such as Debian) is like .msi on Windows or .pkg on OS X. OSes that use .deb packages contain a tool called dpkg which is used to extract, install, uninstall, and keep track of installed packages.
dpkg can be run manually by the user. But most often it is not, because there is a whole infrastructure built up on it, to further automate installing, removing, and upgrading software. APT facilitates automatically fetching .deb packages over the Internet. There are a number of other programs and services that work with and alongside APT to provide further package management functionality in Ubuntu. Two commonly used utilities are the Software Updater (called the Update Manager in earlier versions of Ubuntu) and the Software Center.
The Software Center provides a user-friendly way to browse for packages. It also provides a system for purchasing paid software. One way to distribute paid or gratis applications to Ubuntu users is to use this system (this site explains how, see the section on publishing).
I'm guessing, from the wording of your question, that this is what you're interested in doing. This may be exactly what you want. However, you should be aware of alternatives. Whether you want your software to be free and open source or proprietary, there are multiple ways to distribute it to Ubuntu users:

You can submit it directly to the Software Center. It will be reviewed; it may be rejected, but most software that works is accepted. If you want to charge money for your software, and you want users to be able to buy it in the Software Center, then you should do this. If you don't want to charge money, you might also choose to do this.

You can distribute your software from a Launchpad PPA. If it is free open source software, you don't have to pay anything for this, and your software is not subject to review. It will appear in search results in the Software Center, but Ubuntu users can install it easily and it will be updated together with the other software in their system (when you create updates for it).
If you publish your program to the Software Center as described above, this also involves the use of a PPA, but your software is subject to review and is allowed to be proprietary.

You can create you own .deb package files, and distribute them yourself. Then your program is not subject to review, and may be proprietary, and you may even charge for it. This is like distributing anything else yourself. It does not, generally speaking, involve any contractual relationship between you and anybody besides your users/customers and your hosting provider. (Of course, you must still follow the licenses of any software you use, and you can only legally include software in your program whose license allows it. By the way, I am not a laywer and this is not legal advice.)

You can distribute the source code of your program, for users to compile themselves. Then your program is not subject to review, no contractual relationship between you and anybody besides your hosting provider and your customers is typically involved, and if you have a hosting provider that allows it, your program can even be proprietary.
However, most authors of proprietary software prefer to keep their source code secret, so if you are creating proprietary software, this option might not be acceptable to you. ("Source code available" and "open source" don't mean the same thing, but most closed-source software also keeps its source code unpublished.)
However your software is licensed, one disadvantage of only providing it in source form is that users have to compile it themselves, so they may encounter difficulties, and less technical users may be reluctant to attempt installing the software.

If your program is free open source software, you can submit it for inclusion in Debian. It will then appear in subsequent versions of Ubuntu as well, because of the way Ubuntu is based on Debian. Usually you would do this after distributing it in some other way first.

Sometimes a package can be submitted for inclusion in Ubuntu even if it wasn't in Debian. See the Ubuntu Packaging Guide.
Since the Ubuntu Packaging Guide provides a wealth of information related to almost any technique of distributing software to Ubuntu users, I strongly recommend taking a look at it regardless of how you plan to distribute your software.

You can make your own binary installer for your program, sort of like .exe installers in Windows. This is somewhat discouraged (though still popular and effective) in Windows, and it only rarely your best option in Ubuntu. But it is an option, and there is some very successful software (like MATLAB) that is "packaged" this way for GNU/Linux systems.


Blank screen on startup after interrupted software update

You probably have an update that failed halfway through. In order to recover that:

Choose "recovery mode" in the boot manager (grub). If you don't see the boot manager when restarting your computer, it might be hidden. (The boot manager is hidden, e.g. if you have only Ubuntu installed on your computer.) In that case press Esc right after the BIOS has loaded.
The recovery mode should take you to a root shell. There you can enter sudo apt-get -f install to repair any broken packages. Check out this answer for more info on that.
Reboot - now Ubuntu should load up successfully.


Ubuntu 16.04 unable to connect to external hard drive

Partition Table: loop says that there is no partition table. The file system occupies the entire disk. mount /dev/sdb  should work. NOT /dev/sdb1


Script to check system is locked or not at certain time

I found the answer for ubuntu 14.04

#!/bin/bash
dbus-monitor --session "type='signal',interface='com.ubuntu.Upstart0_6'" | \
(
  while true; do
    read X
    if echo $X | grep "desktop-lock" &> /dev/null; then
      SCREEN_LOCKED;
    elif echo $X | grep "desktop-unlock" &> /dev/null; then
      SCREEN_UNLOCKED;
    fi
  done
)

This script will print the lock screen activity.

Reference: run-script-on-screen-lock-unlock


USB drive does not mount anymore - “Error unlocking...File exists”

After checking for /dev/mapper/, searching for entries in blkid and looking at the data of dmsetup info I couldn't find anything that fit to the problem.
So, I just searched for running processes by ps aux | grep <USERNAME> and I was really surprised that there was still a process running in a subdirectory of the named partition.
I killed the process and now everything works fine again.
Maybe it helps anyone. And if it's just by finding out more about the commands here.


Able to mount but not able to view the contents of LUKS-encrypted flash drives

When using Gnome Disk Utility on recent versions of Ubuntu to create an encrypted LUKS+ext4 partition, the resulting partition will have the following permissions set by default:

Owner Access: Create and delete files
Group Access: none
Others Access: none

If you want to access this partition on other machines, in most cases, you’ll have to change permissions as appropriate. For example, while other permissions settings may be more appropriate for some use cases, you could change the permissions to be as follows:

Owner Access: Create and delete files
Group Access: Create and delete files
Others Access: Create and delete files

Here’s how to change the permissions:

After using Gnome Disk Utility on recent versions of Ubuntu to create the encrypted partition, eject the USB.
Reinsert the USB on the machine on which it was created (and if requested, enter the appropriate password).
Open Nautilus and find the USB listed in the left pane.
Right click on the icon associated with the USB.
Click on “Properties” in the resulting dialog.
Go to the “Permissions” tab, and set the permissions as suggested above or as appropriate.

The above could also be accomplished using the command line. But I'll leave to others to provide instructions for doing so.


MacBook Pro 8.2 wifi keeps disconnecting, Ubuntu 12.04

There are several reasons for that, possible causes:

your disk have hardware failure, like I/O errors...
You have multiple firewalls enabled, and it is better to have only one, maybe "gufw" is the best... and it needs to deny all with rules to allow out udp 53 and allow out tcp 25,53,80,110,143,843,993,5060,8080
Your OS is not with all modules inserted, type: lsmod > list1.txt
Then create an USB installer with the "startup disk creator" using the ISO of your installation CD (a pen of 2 GB is enough) then boot from that USB PEN and choose "try Ubuntu" and type there: lsmod > list2.txt and copy this file to the same location the one above and open  both in text editor and see if there is missing modules in list1.txt...
To install missing modules use first modinfo <name of the module> after the description see if it needs dependencies and install those first if not, just copy the full path of the ko file and type sudo insmod /path/to/file.ko", after all modules inserted no need for reboot things should start working fine...
If you do not use proprietary driver, then might solve the problem due to the fact that the CPU is having trouble to process all the system in realtime, and that lack of CPU speed and Bridge speed causes wi-fi to disconnect, so try to install proprietary driver for your wireless card or disconnect every USB device that is not needed by your system to connect to the internet. If you do not find how to do this, go to "software center" and search "additional drivers" and if not installed, install it, then start it and activate all drivers available cause it will speed hings up and using less CPU...
This one is certainly your case, you are booting from an USB disk and using very fast speed which causes system resources to collapse, and has to shutdown one, and because the USB disk is the boot disk it chooses to disconnect the Wi-Fi! Solution is to connect the USB disk to an hub of less speed, like if was connected to USB3, use an USB2 hub which causes the USB disk to work at USB2 speed, if it was using USB2 then use an USB1.1 hub...
This is a long shot, and at far, your browser internet agent got corrupt or hacked by some intermediary that poses for an "authority" of contents provided by you, but this is a false authority, and just a cyberbulling occurence, cause there is no internet content that violates internet rules set by the internet authorities, and besides that you or anyone do not have nothing to do with the contents received, because everyone just enters the URL and the server decides which content to send, like, if two guys access the same URL at the same time, they get different pages content cause the server sends data according to lots of parameters and is configured to apply local country rules, like nudity can be considered ilegal in one country and not in other country. There is also the copyright issue but this also is not possible to violate, cause the copyright is not the act of making copies but the act of posing to be the author, that said, if one uploads copyrighted material without trying to own the copyright does not violate any internacional copyright rule. This two are the most common accusations by false "authorities" which makes your agent set your browser ID has an internet criminal act origin, causing every server in the world to disconnect that browser has soon it processes the browser agent, which sometimes takes several minutes...


The cause of the issue might be that the /boot partition is full.
Please see if this suggestion by ager-wick at Ubuntu forums will help you: https://ubuntuforums.org/showthread.php?t=1751574&p=12444063#post12444063


Do newer Ubuntu releases benefit from multicore processors at boot time?

Increasingly this setting is becoming meaningless as most services are launched by Upstart.  Only the scripts listed in /etc/init.d/ that are not symlinks are run as System V style init scripts.

Chkconfig is not very useful on newer versions of Ubuntu (10.04 on) because so many of the jobs are now run by Upstart.  Any error like the one you posted means bascially "this is an Upstart job, I can't do anything with it".  The symlinks in /etc/init.d are for your convenience and for compatibility with scripts that expect to start services with a command like /etc/init.d/acpid start.

The real startup script/job is /etc/init/acpid.conf.  Only the scripts in /etc/init.d that aren't links to /etc/init can be manipulated with commands like chkconfig or update-rc.d.

I don't expect there to be much speed difference at all with any setting you put in there. Upstart is already highly parallelized and it's doing by far most of the work booting your system.  To answer the headline question:  YES, the Ubuntu boot process is definitely taking advantage of multiple cores.


Midi files not working on Rhythmbox  nor VLC

You can play midi with VLC. Just install vlc-plugin-fluidsynth

sudo apt install vlc-plugin-fluidsynth


How do I install LibreOffice 6 in Ubuntu?

Use their installation method from source.

The official PPAs at the moment are at 5.4.4 since 6.0 is still in "testing". The people from Libreoffice will release a PPA when "testing" is finished.

PPA with the "latest" release can be found here and in:

sudo add-apt-repository ppa:libreoffice/libreoffice-prereleases
sudo apt-get update
sudo apt-get install libreoffice

But I do not see 6 in there yet. 5.4.4 is the highest.


Screen flickering / blinking / display on off in Ubuntu 20.04

Install Compiz
sudo apt-get install compiz compiz-plugins compizconfig-settings-manager

Enable marco compositing manager in mate
dconf write /org/mate/marco/general/compositing-manager true


How to install pygame and livewires in ubuntu 14.04

Open a terminal and type the following commands. It will install pygame on your system:

sudo apt-get install mercurial python3-pip libfreetype6-dev
sudo apt-get build-dep python-pygame
sudo pip3 install hg+http://bitbucket.org/pygame/pygame

Regarding livewires, it seems that this package is for python2.x only as I got the following error when running sudo pip3 install livewires:

Running setup.py install for livewires
  File "/usr/local/lib/python3.4/dist-packages/livewires/beginners.py", line 201
    raise ExBadParameters, "colour must be from Colour class"
                         ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.4/dist-packages/livewires/boards.py", line 239
    if k <> l and k <> -l:
          ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.4/dist-packages/livewires/games.py", line 110
    raise GamesError, "Cannot have more than on Screen object"
                    ^
SyntaxError: invalid syntax

Such errors are quite frequent when you want to run python2 code with a python3 interpreter.

Update: it seems possible to run 2to3 on the above files and successfully install livewires.

Download and extract LiveWires-2.1.tar.gz from pypi.
cd LiveWires-2.1
2to3 -w livewires/*
sudo python3 setup.py install


Email application for the computer-impaired

Mozilla came out with Thunderbird 3.0 not too long ago, and it seems simpler (once you set it up, of course). Then again, I thought gmail was incredibly simple, so...

My dad is also terrible with computers--although probably not that bad... And he loves his windows live mail box. I've been trying to get him to switch to gmail, but he refuses to try new things. So, if windows live works for him...


xubuntu 16.04: how do I make it lock screen automatically after timeout

You have to adjust two things for this.
1. Configure the time needed to go for the display in Blank Mode

Open Settings Manager

Go to Hardware Section

Click on Power Manager

Click on Display Tab

There is an option Handle display power management. Enable that option by checking it. And change the timing parameter by using the slider with label Blank After, setting value whatever you want.
Remember, Less than 1 minute means Never.

Note: If you can't find Power Manager settings under Hardware section, you're missing xfce4-power-manager package. Install it with this command
sudo apt install xfce4-power-manager

Here is the screenshot of the Settings Window

2. Configure the time must pass to active lock
This is controlled by Xscreensaver in Xubuntu.

Open Settings Manager

Go to Personal Section

Click Screensaver

While in Display Modes tab, at the bottom of it, there is a settings with label Lock Screen After [N] minutes. This controls the time required for the Lock to active after screen goes blank.
So, the calculation is, The time needed for the display to go blank + the time needed for the lock to be activated. (I set this 0)

Adjust this settings. Then wait for the display to go blank. Wait the time to active lock. There will be lock now.
Here is a picture of the settings window of it.

Hope this answers the question.


How can I change or install screensavers?

Background

The Gnome 3 Devs dumped the old gnome-screensaver.  The replacement screensaver is just a blank screen.

The Canonical Devs thought it was a useful idea to continue and raised a blue-print for implementation in Oneiric.

A few ideas were raised such as a Compiz specific implementation or reusing a Lubuntu/Xubuntu screensaver implementation.

However, at the time of writing, no implementation has been started.

XScreenSaver

installation

Potential workaround - installing xscreensaver

sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra

Now remove gnome-screensaver

sudo apt-get remove gnome-screensaver

Now start the xscreensaver configuration tool - from a terminal:

xscreensaver-demo

or search from the Dash:

Click OK to both prompts asking to turn-off Gnome Daemon and to start xscreensaver-daemon respectively.

starting xscreensaver from login

Now to start the xscreensaver daemon on login you need to search in Dash for startup applications

Create a new entry running the command xscreensaver -nosplash

Locking the screen

If you want to manually lock the screen with the keyboard combination CTRL+ALT+L then you will need to run the following to repoint the old gnome-screensaver lock to xscreensaver

sudo ln -s /usr/bin/xscreensaver-command /usr/bin/gnome-screensaver-command

Logout or reboot for all changes to take effect.


Can something be installed in /usr by my app showdown project?

The rules for the contest is that your application must entirely run in /opt. While in future contests we hope to be able to relax this requirement (as we sandbox Ubuntu better in the future), right now we need to require that your app runs fully in /opt.


Ubuntu Server 18.04.2 LTS with Radeon HD 6670 Screen is white

For anyone that runs into the same issue.
Use boot-repair-disk.iso and using Etcher (for MacOS) or Rufus (for Windows) create a bootable USB with the ISO.
After you boot from the bootable USB, simply reinstall GRUB and the graphics are rendered as expected. I believe GRUB is installed fresh without any extra settings which reverts the issue from default GRUB settings within the latest Ubuntu installation.
Also comparing the GRUB config file (/etc/default/grub), I noticed these lines have changed:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

I cannot guarantee if changing the settings to this helps, but reinstalling the GRUB from boot-repair definitely resolved the issue.


Alsa support appears to be broken on MacPro6,1 2013 (black can). Has anyone got this working yet?

I hacked a fix.  It's actually an issue with the sound hardware on my macpro,6
I was able to fix the audio input/output map.


Can only connect once to wireless network on Kubuntu 15.10

I get the same on Kubuntu 15.10.

In addition if I try to modify the connection using network manager 'Connection Editor', 'Connection Editor' simply closes as soon as I click 'Edit'.

Using the gtk-based 'nm-applet' works without any issue. This is def a kde network manager issue.


Sounds to me like a graphics driver issue.  I had this issue before and worked around it, removing the graphics driver in recovery on start up.


I would comment but I don't have enough rep... TBH I don't think that this is an Ubuntu issue but one more to do with how you have KVM set up.

Also off on something of a tangent, unless you have pretty new Server grade hardware (with the right options enabled in your UEFI/BIOS and your host OS) nested visualization (i.e. virtualisation inside virtualisation) best case won't work well; worst case won't work at all.

Why not install Ubuntu to vSphere!? Or install a different hypervisor OS (one that you are happy to install VMs directly into)?


After I get comment from @MarkKirby
I found that steam-launcher icon that was in unity the dashboard of ubuntu 14.04 is found in /tmp folder.

How to remove that file from search in unity dashboard?

After I found the file, I just simply moved it to trash, it's not an important file anyway.

After I remove that file it's gone from unity dashboard.
And steam still running as well.


What does the Clamtk network setting do?

Some users of ClamTK may need to set a proxy for outbound connections and this is the place to do it.
ClamTK needs to connect out for for antivirus signature updates and to check for newer versions of both itself and the engine.
This can be environment settings or you can set it manually.
This is set in the option in your question.
reference


How to install GUI apps in one language and CLI tools in other language?

Assuming you are using bash, you can open ~/.bashrc for editing and add the line:

export LANGUAGE=en_US


uuencode has not a easy syntax. But it still does its job

Encode to stdout

$ uuencode color2 /dev/stdout
begin 664 /dev/stdout
1>65L;&]W"G!I;FL*8FQU90H`
`
end

Encode to file

$ uuencode color2 outfile.txt > outfile.txt
$ cat outfile.txt
begin 664 outfile.txt
1>65L;&]W"G!I;FL*8FQU90H`
`
end


Remove source code directories after compiling ffmpeg?

Yes you can safely delete the source - however, since you probably spent quite a lot of time getting ffmpeg to compile (it depends on a lot of libraries!) why not keep the source around just in case you need to compile it again?

The checkinstall program would have compiled it and converted it into a package usable by dpkg.  Even if you delete the source, you may want to keep that package file so you can re-install it (eg after you reboot, migrate etc).


How do I prevent the file 'recently-used.xbel' from being created?

To disable the list for GTK 3 based applications follow these steps:

rm ~/.local/share/recently-used.xbel

If THERE ISN'T a "~/.config/gtk-3.0/settings.ini", then

mkdir -p ~/.config/gtk-3.0
    echo -e "[Settings]\ngtk-recent-files-max-age=0\ngtk-recent-files-limit=0" > ~/.config/gtk-3.0/settings.ini

If THERE IS a  "~/.config/gtk-3.0/settings.ini", then

echo -e "\ngtk-recent-files-max-age=0\ngtk-recent-files-limit=0" >> ~/.config/gtk-3.0/settings.ini

(note the ">>" vs the ">" difference ; ">>" appends to a file while a single ">" completely overwrites it, without backup, if it already exists)

And in either case:

rm ~/.local/share/recently-used.xbel

To disable the list for GTK 2 based applications follow this step:

echo gtk-recent-files-max-age=0 >> ~/.gtkrc-2.0

These steps are better than changing permissions on the file as they prevent error messages from being shown when launching GTK based applications that rely on the file.

Detailed information can be found here - https://alexcabal.com/disabling-gnomes-recently-used-file-list-the-better-way/


Not implemented right now, will propably be included in Ubuntu 14.04 LTS Release.


Yes it will create a dual boot, but i recommend that you create a partition on your ssd (split it half linux and half windows), i would also recommend you to create a partition on your hard drive, and use it as your /home, this last one would need to be at least 100 Go or some thing. The live CD installation provides you the tools to do this (choosing advanced install at some point). But be very careful if you don't know what you are doing.

Check on the internet for some more info.


kazam fails with "PyGIWarning: Gtk was imported without specifying a version first..."

The problem with this segmentation fault is in Kazam hotkeys bindings.
Maybe the system cannot give some keybingings to Kazam, thus we get an exception.

The rough solution is to remove Kazam’s global keybingings:

Open the file:
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py
Find these strings (about line 100 or so):

Keybinder.bind("<Super><Ctrl>R", self.cb_hotkeys, "start-request")
Keybinder.bind("<Super><Ctrl>F", self.cb_hotkeys, "stop-request")
Keybinder.bind("<Super><Ctrl>P", self.cb_hotkeys, "pause-request")
Keybinder.bind("<Super><Ctrl>W", self.cb_hotkeys, "show-request")
Keybinder.bind("<Super><Ctrl>Q", self.cb_hotkeys, "quit-request")

Comment them out:

#Keybinder.bind("<Super><Ctrl>R", self.cb_hotkeys, "start-request")
#Keybinder.bind("<Super><Ctrl>F", self.cb_hotkeys, "stop-request")
#Keybinder.bind("<Super><Ctrl>P", self.cb_hotkeys, "pause-request")
#Keybinder.bind("<Super><Ctrl>W", self.cb_hotkeys, "show-request")
#Keybinder.bind("<Super><Ctrl>Q", self.cb_hotkeys, "quit-request")

Save the file.
Run Kazam.
You’re awesome.

After that, you cannot use those hotkeys though, but at least Kazam will work.


How to Limit Access to Machines by (Ex: Library Card)

You could set up users based on library card numbers. This would also allow great control over what the users can do with the systems.  It could be maintained remotely or locally, and you could use a range of tools to administer the system.  The most common access people would want would be the library catalogue and I suggest this should be available with a normal guest login.


Capture groups are ignored when renaming files

I think perhaps your use of double quotes is allowing the shell to expand $1 and $2

$ rename -nv "s/^(\d{2})\.(\d{2}).*/s$1e$2.mp4/" *.mp4
12.34 File name.mp4 renamed as se.mp4

whereas with single quotes around the rename expression

$ rename -nv 's/^(\d{2})\.(\d{2}).*/s$1e$2.mp4/' *.mp4
12.34 File name.mp4 renamed as s12e34.mp4


To lock the screen, you can follow the answer to this post.

So you would write a script (in GEdit) containing:

#!/bin/sh
#: filename: lock-script

export DISPLAY=:0.0
gnome-screensaver-command -l

and save it in your home folder (or you could create a new directory for it).
If you only one to black out your display (without locking) change the -l switch for -a.

Make your script executable running chmod 744 /home/your-username/lock-script.

Then execute the following

echo '15 * * * * /home/your-username/lock-script' | crontab

Now lock-script will be executed 15 minutes after the start of every hour on every day. (At 01:15 pm, then at 02:15 pm, and so on.)

If you want more information about how to specify the period of time, you should check here.

BTW, for creating the crontab line you could install gnome-schedule which is a GUI frontend for this.

Hope it helps you!


I appeared to have worked it out:

Download the package for libstdc++.
Downgrade gcc via apt-get install gcc-5-base=5.4.0-6ubuntu1~16.04.10.
Install manually: dpkg -i libstdc++6_5.4.0-6ubuntu1\~16.04.10_amd64.deb.

At least the errors have gone away.


My mouse only works inside the current window

if your mouse is a touchpad, try attaching an external mouse.  You might have hit that magical function key to disable your touchpad.

If you're inside of a VM window you might want to hit Alt+Ctrl, right Ctrl, Left Ctrl or some variation.


Yes download boot-repair rescue disk. Half the size (350mb) but easy to use

Here is the link, http://sourceforge.net/projects/boot-repair-cd/

Perform a recommened repair

Option 2:

Use super grub disk. A bit harder to work but very small size.

http://www.supergrubdisk.org/super-grub2-disk/

This wiki will help you

http://www.supergrubdisk.org/wiki/Howto_Fix_Grub#Windows_Solution


Can't open Panel settings with super-alt right-click in gnome-classic after resize

One possible alternative is to enable (tick) the expand property for the panel:

To do this, install dconf-tools either from Software Center or via

sudo apt-get install dconf-tools

Then run dconf-editor and navigate to org.gnome.gnome-panel.layout.toplevels


Open all files in project with long lines in an editor

If you don't want recursion into subdirectories, it's much simpler to do just this:

grep -lZ '.\{116\}' *.java | xargs -0 "${EDITOR:=emacs}"

If you need recursion into subdirectories, use the globstar option:

shopt -s globstar
grep -lZ '.\{116\}' **/*.java | xargs -0 "${EDITOR:=emacs}"


Find files that are heavily used in the system

You can use lsof (man lsof). The following will return a list of all files that are open for writing:

lsof | grep -e "[[:digit:]]\+w"


I think you will find what you need in this discussion.

Other solution will be to create a script in /etc/init.d and use update-rc.d, but not sure this is what you are looking for...

Hope this help.


How do I make music and videos from an external hard drive show up on the lens filters?

You can try and import your entire music collection to The default Music player in Ubuntu.

This will expose all your music to Unity lens and they should show up on dash. :)


Yesterday my system was working fine. but today my system is not getting shut down

I might be wrong, but do you mean speech rather than speed dispatcher?

If if it is speech dispatcher, take a look at the following link, this might be of help

Problems with speech dispatcher


Dual-booting Windows 10 and Ubuntu 16.04 on different drives with UEFI

Selectively unplugging one disk or another is a trick that some people used in the BIOS era, but EFI's design makes this approach less useful. This is particularly true for some computers, which may erase boot manager entries when they're found to no longer point to valid boot loaders, which of course will be true when you unplug a disk to which they point. Thus, I strongly recommend against using this procedure when using an EFI-based computer.

The last I heard, EasyBCD was useless, or nearly so, on EFI-based computers. (That said, I haven't looked into it recently, so it could have changed.) Note that EasyBCD is a third-party Windows tool for managing the Windows boot loader and boot manager, which is known as the BCD. The BCD itself can be used to chainload to a Linux boot loader; however, I know very little about how to configure it to do so.

Most Linux users run GRUB 2 as their boot manager under EFI; however, other options are available, as outlined in this question and its answers. Ideally, the simplest procedure to get GRUB 2 working is:

Install Windows
Install Ubuntu

The Ubuntu installer should detect Windows and add it as a boot option to the GRUB menu. Juggling disks, skipping the GRUB installation in favor of something else, and other advanced trickery is most likely to cause new problems. That said, there are cases when you might want to take an alternative path, such as if you dislike GRUB and want to use something else. In such a case, though, you should research the issue before beginning.

Also, note that neither Windows nor Ubuntu should delete the other's boot loader. What both will do, however, is to place their own boot loader (BCD or GRUB) as the first one in the EFI's boot manager list. You can modify this ordering with EasyUEFI or bcdedit in Windows, with efibootmgr in Ubuntu, or with some (but not all) computers' built-in firmware configuration utilities. If you don't understand how all these pieces (the firmware's boot manager, BCD, GRUB, and perhaps other tools) fit together, you're likely to become confused. To that end, here's some suggested reading:

Adam Williamson's blog entry on how EFI works -- This page describes the theory behind EFI-mode booting.
My page on installing Linux on EFI systems -- This page is a more practical introduction to EFI-mode booting than Adam Williamson's blog.
My page on EFI boot loaders for Linux -- This page describes EFI boot loader choices for Linux systems.
The Ubuntu community wiki entry on UEFI -- This page is a bit disjointed, but is the most Ubuntu-specific introduction to EFI and its issues.

For specific advice on how to proceed, if you can boot Ubuntu right now, try doing so (with the Windows drive also connected) and then type sudo update-grub at the command line. That will re-run the GRUB configuration scripts, which should cause it to detect Windows and add it to the GRUB menu. If that doesn't work, then you need to be more specific about what's not working -- for instance, is Windows not appearing in the GRUB menu, is it appearing but failing, and if it's failing, what error messages (if any) do you see?


List the installed files via

dpkg -L psi-plus

Example output

/.
/usr
/usr/bin
/usr/bin/psi-plus
/usr/share
/usr/share/psi-plus
/usr/share/psi-plus/psi-plus.xpm
/usr/share/doc
/usr/share/doc/psi-plus
/usr/share/doc/psi-plus/changelog.Debian.gz
/usr/share/doc/psi-plus/TODO.gz
/usr/share/doc/psi-plus/copyright
/usr/share/doc/psi-plus/README
/usr/share/applications
/usr/share/applications/psi-plus.desktop
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/psi-plus.1.gz
/usr/share/indicators
/usr/share/indicators/messages
/usr/share/indicators/messages/applications
/usr/share/indicators/messages/applications/psi-plus
/usr/share/menu
/usr/share/menu/psi-plus

As you can see, you have exactly one binary:

/usr/bin/psi-plus

Therefore you can start the application in a terminal via

psi-plus

And you have a desktop file

/usr/share/applications/psi-plus.desktop

Therefore you could use Unity Dash/GNOME Activities, depends on your installed GUI

Open the application overview via Super and type psi


Ubuntu Mate 16.04 - Reset Keyboard Shortcuts

In dconf Editor, you can see the schema org.mate.SettingsDaemon.plugins.media-keys.

So, in terminal, you use following command:

gsettings reset-recursively org.gnome.settings-daemon.plugins.media-keys

Screenshot of dconf Editor:


How to log in after attempting to change my username with mv?

If you did that really the way you described it, then you have moved your home folder to new folder.

It would look like this.

/home/new_name/old_name

The solution is to move the folder back.

Open a terminal or if that does not work Start the rescue mode in Grub.

Open a terminal

Ctrl+Alt+F1 (or Ctrl+Alt+F2 ...)
Continue with option 1 or option 2

Or Start the rescue mode in Grub.

Reboot your system
Repeatedly press Esc during boot
Select Ubuntu ... (recovery mode)
Select network necessary only for option 1
Select root
Continue with option 1 or option 2

Option 1 – the easy way

Install MidnightCommander (from the universe repositories) with:

sudo apt-get install mc

Start with mc
Use the left panel for source /home/new_name and the right panel for target /home
Select all in the left panel with Ctrl+A
Move all from left to right with F6
Once finished, close the programm with Esc and then 0

Option 2

Move the folder back

For Option 1 and Option 2

If you're in rescue mode

Press Ctrl+C
restart your system

If you're not in rescue mode

Press Ctrl+D
Login in the GUI


Forwarding Traffic From One Port to Another and Vice Versa

It sounds like my understanding about ports was lacking. The host for the ROSBridge is being set up to use port 9090 so that anyone wishing to connect to it will request the host's port 9090 for the connection but will still use whatever port it desires on its own side. In both applications, I can state that the "Host" port is 9090 without conflict because the client application will still open a random other port for its own use to connect to the host port. Therefore, the trouble I am experiencing is something other than "port sharing" since that is not what is happening. Only one is hosting on 9090.


Ubuntu backup asks for encryption password repeatedly

You can restore specific files from a duplicity backup. You need to enter the following command:

duplicity restore --file-to-restore relative/path/to/file URL /target/file

The file-to-restore must be a relative path depending from the directory where the backup is based. URL is a FTP-, file- or other link and /target/file is the place where the restored file should live.

However as you wrote in your comment when you lost your password there is not much chance to recover the backup anyway. You only can try to remember it. Maybe you wrote it down somewhere or have it in your shell history. Sometimes mistakes happen and help to recover the password.


how to transfer files from windows 8.1 to ubuntu?

The easiest (and fastest) way is to buy a crossover cable, plug it into both machines and install NitroShare on both the Windows and Ubuntu System.

On the Windows PC, right-click the NitroShare icon, choose Send Directory and send the directory with your files over to the Ubuntu System...

Done!

P.S. If you're short on cash, don't buy the cross-cable and use WiFi (but be patient then...)


How to remove Ubuntu from dualboot with Windows 10 and install it again?

You can create a Live CD/ USB stick with UBUNTU 16, then boot from the LIVE IMAGE and choose INSTALL UBUNTU

in windows Download the image UBUNTU 16 from here UBUNTU 16

and create the image in USB stick with rufus from here RUFUS

Fill all the options needed until you get to part in the installation asking what to do with the installation.

Select the last option "something else"

there assuming you have 1 disk "sda" it should have a partition for booting labeled as that eg. efi/boot (you dont touch this)

then a partition for windows NTFS (you dont touch this)

then an "UNKNOWN" partition this belongs to windows too (you dont touch this)

then a "/" ext4 partition labeled ubuntu 17.04, THIS is the partition you want to modify, click the button change, in the little windows that pop ups, select ext4 as system partition, then mark for format and select the "/" symbol as mount point

thats it continue with isntallation  until it finishes.. at reboot you will have ubuntu 16 and windows 10 perfectly fine.

again im assuming you have just 1 disk and that your /home partition is in the same disk.. also asuming that you have a backup of your ubuntu 17 files


How can I make Nautilus open with an extra panel by default?

For 12.04 / 12.10

I will use the vim editor, but if you don't know it, feel free to replace vim by nano (easy terminal editor) or gedit (gui editor).

Installing xdotool
You can install xdotool via the software center: xdotool .

or via

sudo apt-get update && sudo apt-get install xdotool

Creating a custom script to launch nautilus
Create a script with the following content

#!/bin/bash
nautilus $1 && sleep 0.5 ; xdotool key --clearmodifiers F3

and save it somewhere, let's assume we save it as ~/scripts/nautilus.bash

Make the script executable with chmod +x ~/scripts/nautilus.bash.
Now test the script, typing scripts/nautilus.bash should open nautilus, and after a split second you should get your extra pane.

Modifying the desktop file
The desktop file of an application determines how your application will show up in the Unity launcher and dash, and what happens when you click on it.

You can use locate to find out its location

locate nautilus.desktop

This will return

/usr/share/applications/nautilus.desktop

Now to make sure nothing bad happens let's back it up:

sudo cp /usr/share/applications/nautilus.desktop /usr/share/applications/nautilus.desktop.bak

Now we can safely edit it (remember to use gedit or nano if you don't know vim):

sudo vim /usr/share/applications/nautilus.desktop

Now you will see the following (I removed some content in the middle)

[Desktop Entry]
Name=Files
Comment=Access and organize files
Exec=nautilus %U
...

[Desktop Action Window]
Name=Open a New Window
Exec=nautilus
OnlyShowIn=Unity;

We're interested in the Exec= lines, these lines determine what happens when we click the application. We need to change both (the one under [Desktop Action Window] is the entry in the Unity quicklist).

Now replace nautilus in the Exec= line by the location of your script, in my case /home/gerhard/scripts/nautilus.bash (The %U in the top one should stay). Now save and exit.

Test it
If you had nautilus locked to your launcher it will have disappeared, search in the Dash for 'Files' and clicking it should open nautilus with an extra pane!

Notes
If it works only sometimes (or not at all), maybe increase the time it waits before doing the keypress by increasing the value for the sleep function in your script.


I cannot install Canon mp 495 scanner driver on ubuntu 12.04

I had the same problem with my Canon mp280. I think the issue concerns the scanner drivers, in that 12.04 isn't reading them like they did in 11.10 or previous versions. There are new drivers for the Ubuntu 12.04 release. If you download and install the new drivers, I'm 90% that will fix it. It did for me and I'm not much of a geek. You can find the new drivers here:

https://code.launchpad.net/~michael-gruz/+archive/canon-trunk/+packages


Icon for java is low resolution on launcher

I had this annoying low-res icons with applications and managed to solve it by explicitly specifying the higher resolution icon to be used.

I launched 'Main Menu', looked for the problematic application, clicked properties and then on the icon. I chose a new higher resolution icon for it. Remove it from launcher and add it again and it should now have the high resolution icon.

There is no one place where application icons are being placed. It can be /usr/share/pixmap,  /usr/share/icons or installed application directory.
You can always download from the internet high resolution icon, save it to some directory and reference it.


How to run 64bit software on 32bit operating system?

why are you running a 32bit os on 64bit hardware? you could use virtual box here is a post with some info and links

Can I use virtualbox with a 64 Bit image in a 32 bit host

but if it was my computer I would just backup my files and such then reinstall my 32bit ubuntu with 64bit ubuntu as it will then use all your hardware


What would cause SSD to become not detectable?

From my empirical studies of numerous forum posts on SSDs/Linux, this is almost certainly a faulty SSD. Get it RMA'd. There is an off-chance it may be the controller (southbridge) BUT the likelihood is near-zero unless you have one of the botched Intel Cougar Point (Z68) chipsets with the SATA bug.


Stats are back in 3.14rc1.

source : https://bugzilla.kernel.org/show_bug.cgi?id=63401


How do I find the interface of Rhythmbox?

You can use the top launcher icon, which is an application search function (it looks like the Ubuntu logo on a grey background). From there type in 'Rhythmbox' and you can access it from there.

Also, I would suggest dragging the icon on to the taskbar for speedy access when doing this in future.

:)


Why does Providesupport Chat Console not produce event sounds?

To those looking for solution:

Simply install playonlinux from software center.

download the windows executable and run it. it works like a charm and sound works great as well as pop ups.

The only issue I face now is your backspace key and arrow keys. Enter also does not send message and you have to press send button manually.

Work around:

  Right client on providesupport desktop icon (shortcut) and click on properties.
  add this in command: XMODIFIERS=''

Make sure it is single colon two times after =


Ubuntu boots to black screen when VGA monitor connected

For intel graphics there are no third party or proprietary drivers.

The xrandr tool can be most useful for diagnosing multi-monitor issues.  Your /var/log/Xorg.0.log file (or similar) often gives info about which outputs are detected or not detected, and why.

First thing I'd suggest is to check your BIOS for any multi-monitor related settings.  Make sure the intel graphics is your primary graphics device.  See:

https://pcsupport.lenovo.com/us/en/solutions/ht062228

Also make sure you're using the Displayport monitor as the primary, with VGA secondary.  It sounds like it may not work the other way round:

https://forums.lenovo.com/t5/ThinkCentre-A-E-M-S-Series/Dual-monitors-problem-VGA-and-Displayport/td-p/338731

One other thing I would recommend investigating, is if your Laptop's displayport output, and your monitors support Displayport daisychaining.  This means you would connect the laptop to one monitor, and then from one monitor to the other.  Not all hardware combinations work like this, but if it does it will give better results than DP+VGA.  In my own brief googling I can find nothing definitive one way or the other.  You'll have to google around to find out more, but here's a link to get you started:

https://www.displayport.org/cables/driving-multiple-displays-from-a-single-displayport-output/

If you do need to go with the VGA+DP route, and the above info doesn't sort it out for you, unfortunately there are all manner of different reasons things may not work.  VGA is an old tech and there's a lot of diversity in how standards are interpreted, both on the laptop end and on the monitor end.  Sometimes the monitor's EDID is not detected and so no modeline can be automatically constructed.  Sometimes it's an issue with mismatching refresh rates or incompatible resolutions; these can be worked through via sufficient elbow grease, but it can be technically challenging.  I've also seen situations where one output port is physically disabled by the HW when another output is in use (this should be mentioned in your laptop's manual under the graphics section); in this case there's simply no way to make the VGA+DP combo work.

The good news though is that IBM/Lenovo have a good reputation for supporting their hardware on Linux, and have helpful forums.  There's a subforum for ThinkCenters here:

https://forums.lenovo.com/t5/ThinkCentre-Desktops/ct-p/thinkcentre_en


How do I debug a large pause before network transactions when Network Manager is disabled?

I found a different way of setting up the same thing, it uses some newer tools and fixed my problem on 15.04. My network interfaces file now looks like this:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

dns-search hh.imgtec.org

auto br1
iface br1 inet dhcp
   bridge_ports eth1 eth0
   bridge_stp on
   bridge_fd 0.0
   post-up ip tuntap add dev tap0 mode tap group tuntap
   post-up brctl addif br1 tap0
   post-up ifconfig tap0 up
   post-up ip tuntap add dev tap1 mode tap group tuntap
   post-up brctl addif br1 tap1
   post-up ifconfig tap1 up
   post-up ip tuntap add dev tap2 mode tap group tuntap
   post-up brctl addif br1 tap2
   post-up ifconfig tap2 up


This is due to the fact that you have t defined as an alias (or a function), you can find it using the type builtin:

type -a t

Aliases, functions (and other shell builtins) take precedence over external executables.

To run the executable t from your PATH, do:

't'

Or

"t"

Or

\t

Note that, just t is not a good name for a file.


Absolutely you can run from a hard drive!  A hard drive is just an internal version of a USB drive (for your purposes) so you can do this no problem.  Just throw the iso onto a partition and you should be good to go.

NOTE:  I haven't tried this myself but I know of people who have.


Crashkernel is still being added by update-grub after removing linux-crashdump

Found the culprit:

root@vmhost:~# grep -Ri crashkernel /etc/*
/etc/default/grub.d/kexec-tools.cfg:GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT crashkernel=384M-:128M"

Thanks to @Jan!

I didn't know that GRUB has additional config in /etc/default/grub.d. After removing this file, crashkernel is not being added anymore. Seems it belongs to kexec-tools, after all. Hope it won't come back with a future kexec-tools update.


How to view Firefox Bookmark from SSH -X?

firefox data are stored in ~/.mozilla/firefox. You can find the bookmarks you want in this directory. But I think the bookmark information would be stored in files of binary form. So my suggestion is to copy the whole directory with scp and follow this link https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles to retrieve your data in firefox. (Remember to backup your data of firefox in your home computer) After obtaining what you want, remember to change the firefox data back following the same methods in the above link.


Hotspot with dnsmasq to resolve local hosts

I found a solution:

Firstly remove any change made in the dnsmasq config file.

Create the following file /etc/NetworkManager/dnsmasq-shared.d/hosts.conf

with:

address=/.local/10.42.0.1

Where .local is the last part of all my virtual domains in /etc/hosts

127.0.0.1    somedomain.local
127.0.0.1    another.domain.local

Restart the network manager and works like a charm.

  Apparently the network manager run his own dnsmasq.

The following links gave me an idea:

Configure NetworkManager's dnsmasq to use /etc/hosts

http://manpages.ubuntu.com/manpages/zesty/en/man8/dnsmasq.8.html