You can configure the system wide proxy settings in /etc/environment/. Open this file as sudo and add the following lines, btw. the lines you need to setup your proxy settings:

http_proxy=http://your-ip-or-host:your-port/
HTTP_PROXY=http://your-ip-or-host:your-port/
https_proxy=http://your-ip-or-host:your-port/
HTTPS_PROXY=http://your-ip-or-host:your-port/
no_proxy="localhost,127.0.0.1"
NO_PROXY="localhost,127.0.0.1"

Set upper and lower case, because both are required by some applications.

This will set the proxy settings globally. In Firefox or other Browsers select Use system proxy settings in the Network Settings.

With this little proxy.sh script you can toggle the proxy settings:

#!/bin/bash

# require root permissions to change /etc/environment/
if [ $(id -u) -ne 0 ]; then
  echo "This script must be run as root";
  exit 1;
fi

# proxy configuration
proxy_host="myhost"
proxy_port=1234
ignored="localhost,127.0.0.1"

if [ "$1" == "on" ]; then
  # add proxy configuration to file
  printf "http_proxy=http://$proxy_host:$proxy_port/\n\
HTTP_PROXY=http://$proxy_host:$proxy_port/\n\
https_proxy=http://$proxy_host:$proxy_port/\n\
HTTPS_PROXY=http://$proxy_host:$proxy_port/\n\
no_proxy=\"$ignored\"\n\
NO_PROXY=\"$ignored\"\n" >> /etc/environment/
elif [ "$1" == "off" ]; then
  #remove proxy configuration from file
  grep -vE "(proxy|PROXY)" /etc/environment/ > /tmp/proxy.txt
  cat /tmp/proxy.txt > /etc/environment/
  rm /tmp/proxy.txt
else
  # print usage help
  echo "use \"proxy.sh on\" to enable proxy settings and \"proxy.sh off\" to disable it."
fi


It's a mismatch of 32b & 64b versions.

Probably 2 reasons,

Your Processor does not support 64-bit OS, and you are trying to install 64-bit version CentOS in your virtual box[but in your case your processor supports 64b architecture].
Your HOST OS may be 32-bit, and you are trying to install 64-bit OS in virtual box.

Check the host OS is 32b or 64b, most probably if you install a 32-bit version of CentOS the problem be resolved.


I think you are looking for pkg-config (with the dash), see dpkg -l | grep pkg-config.


Photoshop Freezes and Crashes on Startup

Please feel free to ignore this answer because it is not what you want to hear- but it is worth having a go with Gimp or Gimpshop.

I used to use Photoshop but I now find Gimp equally good and it will work without wine.


V Mobile Broadband is not in default Ubuntu Software Center repositary currenlty. You will have to install it from PPA. To add the PPA, run next commands in console:

sudo add-apt-repository ppa:crass/v-mobile-broadband
sudo apt-get update

then run

sudo apt-get install v-mobile-broadband

or open your link above with software-center from /usr/bin/.


Permission not granted for creating file in /home

Your home directory means $HOME which is actually /home/username .
You cannot write to /home because it is a system folder which you do not have the rights to modify .


Networking and wireless disabled on boot

This is probably you did a hardware switch. This can be undone by pressing your wifi activator key. It differs on different computers. But to check, open your terminal crlt+alt+t. Then press rfkill list (Description of rfkill: rfkill - tool for enabling and disabling wireless devices). It will show weather or not your wifi and LAN is either hard blocked or soft blocked. Hard blocked is when the wifi (for example) is blocked by a physical button/switch. Soft block is when it was blocked virtualy though the OS. Before you try and reboot and press the wireless button to activate it, try using the following command: rfkill unblock wifi then check if it is blocked. Use rfkill list to check if its block on unblocked afterwards. This is what my rfkill list look like when everything in unblocked:

If it is hard blocked, just reboot and press the wireless botton.


How can I cluster two machines to double the processing power?

Sounds like you want to cluster them to make the most of the processing power. Awesome idea! I would take a look at:

UbuntuClusters (Ubuntu wiki)
EasyUbuntuClustering (Ubuntu wiki)
Building a Beowulf Cluster in just 13 steps (linux.com)

Happy hacking!


Recommended Wireless Card for Dell Latitude D830?

I've used both the Intel 3945ABG and 4965AGN with success in a D820 on an older version of Ubuntu.


If you meant an ACME brand webcam, just plug it in. You don't need to install the windows drivers through wine. You can test it out by installing cheese from the software center.


The base for the if constructions in bash is:

if [expression];
then
code if 'expression' is true.
fi

so you are indeed missing a then.

#!/bin/bash
lock="/home/sebastien/rsync.lock"
if [ -f "$lock" ];
then
rm $lock;
fi

Might I suggest something:

You are making this far too complicated.

Put the lock file in /tmp/. That directory is cleaned out on every reboot and is the ideal directory to put lock files without the need for you to anything extra.  See for instance How is the /tmp directory cleaned up?

This method also supports an extension from the content of /etc/tmpfiles.d. See How is the /tmp directory cleaned up?


VirtualBox shared clipboard does not work

You should install virtualbox-guest-x11 package as dkms installs only the  drivers. Then run the command VBoxClient --clipboard.

Sources How to fix virtualbox's copy and paste to host-machine?


Here is a Bug Report which might be related to your problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=394227. You should try the -noSplash command line parameter.

Another possibility is that you need to set the GTK+ version to 2 in eclipse.ini. You have to add this line to the configuration file:

  --launcher.GTK_version
  2


1) Press Ctrl + ALt + T

2) Enter "sudo apt-get install ubuntu-restricted-extras" without quotation marks.

3) Press Enter and wait for it to install.

This fixes this problem ->

"I have installed all available updates but when I play a DVD or 3gp, mp4 videos from a movie player it asks to install missing plugins. However, when I click on the install button, it shows an error message that it could not be installed."


geany-plugin-debugger missing in Ubuntu 18.04

The reason seems to be that webkitgtk-3.0 is deprecated. From changelog:

"Disable webkit-using plugins: markdown, webhelper webkitgtk-3.0 is not to be used as it is deprecated, but the port to webkit2gtk-4.0 isn't ready yet."

https://launchpad.net/ubuntu/+source/geany-plugins/1.32+dfsg-3


/etc/cron.daily/ubuntu-advantage-tools runs effectively:

/usr/bin/ubuntu-advantage status > /usr/bin/ubuntu-advantage/ubuntu-advantage-status.cache


The packages for old releases are not available anymore?

It seems that we can use some strange, but working solution.
For such search we can create local chroot environment with older release (Ubuntu 12.04 LTS) and find packages from it. We will use debootstrap as main component:
sudo apt-get install debootstrap
mkdir ~/precise_chroot
sudo debootstrap --no-check-gpg precise ~/precise_chroot

Then add all repositories from previous LTS releases and select main release. Below are two long commands, copy them completely then paste to the terminal:
cat <<EOF | sudo tee ~/precise_chroot/etc/apt/sources.list
# Ubuntu 12.04 LTS - Precise Pangolin
deb http://archive.ubuntu.com/ubuntu precise main universe multiverse restricted

# Ubuntu 10.04 LTS - Lucid Lynx
deb http://old-releases.ubuntu.com/ubuntu lucid main universe multiverse restricted

# Ubuntu 8.04 LTS - Hardy Heron
deb http://old-releases.ubuntu.com/ubuntu hardy main universe multiverse restricted

# Ubuntu 6.06 LTS - Dapper Drake
deb http://old-releases.ubuntu.com/ubuntu dapper main universe multiverse restricted
EOF

cat <<EOF | sudo tee ~/precise_chroot/etc/apt/apt.conf.d/01ubuntu
APT::Default-Release "precise";
EOF

Then call apt-get update inside chroot:
sudo chroot ~/precise_chroot/ apt-get update

and try to compare version of some package (Midnight Commander - mc as example) with apt-cache policy mc:

$ sudo chroot ~/precise_chroot/ apt-cache policy mc
mc:
  Installed: (none)
  Candidate: 3:4.8.1-2ubuntu1
  Version table:
     3:4.8.1-2ubuntu1 0
        990 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
     3:4.7.0-1ubuntu2 0
        500 http://old-releases.ubuntu.com/ubuntu/ lucid/universe amd64 Packages
     1:4.6.1-8ubuntu1 0
        500 http://old-releases.ubuntu.com/ubuntu/ hardy/universe amd64 Packages
     1:4.6.1-1ubuntu2 0
        500 http://old-releases.ubuntu.com/ubuntu/ dapper/universe amd64 Packages

Moreover you can download single package with this method by specifying release with -t target_release option:

$ sudo chroot ~/precise_chroot/ apt-get download mc -t hardy
Get:1 Downloading mc 1:4.6.1-8ubuntu1 [2156 kB]
Fetched 2156 kB in 1s (1174 kB/s)

$ ls precise_chroot/*.deb
precise_chroot/mc_4.6.1-8ubuntu1_amd64.deb

So you got the idea.
Small technical note: the ~/precise_chroot folder will use about 600 Mb of disk space.

I have tuned this method - we can search for the package which contains known filename:
sudo chroot ~/precise_chroot/ apt-get install -y apt-file
sudo chroot ~/precise_chroot/ apt-file update

Below is example with libicui18n.so.48:

$ sudo chroot ~/precise_chroot/ apt-file search
lib32icu48: /usr/lib32/libicui18n.so.48
lib32icu48: /usr/lib32/libicui18n.so.48.1.1
libicu48: /usr/lib/libicui18n.so.48
libicu48: /usr/lib/libicui18n.so.48.1.1
libicu48-dbg: /usr/lib/debug/usr/lib/libicui18n.so.48.1.1

and know the Ubuntu version of this package:

$ sudo chroot ~/precise_chroot/ apt-cache policy libicu48libicu48:
  Installed: (none)
  Candidate: 4.8.1.1-3
  Version table:
     4.8.1.1-3 0
        990 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

so it is really powerful and simple.


How to use Pitivi to insert text in video?

You can use png images, I have used Gimp in the past to create text images.

The process is more less like this.

Start up Pitivi
Import the PNG-picture into the media-library
Drag the picture into the "track"-view
Import your video and drag it into the track-view too (below the picture).

You should see your text in front of the video.

Adjust the track-length of your PNG-resource to match the desired duration of your text.

Resources:

Ubuntu Forum


I guess you have samba installed!!!

edit the smb.conf

sudo nano /etc/samba/smb.conf

and add these lines

# Veto the Apple specific files that a NetAtalk server creates
   veto files = /Network Trash Folder/Temporary Items
   ;delete veto files = yes

uncomment the last line if you want to delete these files or folders

restart samba

sudo /etc/init.d/samba restart

and don't forget to restart your client computer


Code of conduct: "The key has already been imported."

I was able to sign the Code of Conduct using the Code of Conduct Signing Assistant.

This handy little programme is available from the Ubuntu Software Centre.


Should I install privative Nvidia drivers if I'm using Bumblebee?

It will break your bumblebee set up and you will most likely not be able to boot completely.
https://wiki.ubuntu.com/Bumblebee

vdpau will need to be added by the bumblebee project for it to work with your set up.
There is an answer here with a hack to use vdpau but it is still cpu intensive and is not something you would do in additional drivers and I do not recommend it.
vdpau


Is windows still running in the background?

No. You don't have Windows still running. You have booted an entirely separate Operating System.


How to update to the latest version of Ubuntu (12.10)

If you are updating from 12.04, you can simply update through the update manager. Since 12.04 is a LTS release (Long Term Support), you will first need to go to the window Software Sources and in the last option of the third tab (Updates) state that you are interested in being informed of every new release of Ubuntu (first option in the drop-down list). You will need to enter your code.

Now you can close the window, open the software updater and it will tell you that Ubuntu 12.10 is available.

Another option is to burn it to a disc or make a USB for booting by downloading the image from www.ubuntu.com and use either Brasero for burning CD's or the USB creator application to make a start-up USB, which you can boot from upon system start-up.

I'm a bit confused by the title of your question. Are you using Windows or Ubuntu already?


Here are the ways to fix your Windows XP/Vista/7/8 bootloader:

Using Windows installation disc:

Boot with your Windows Vista/7/8 installation DVD or USB (read: how to make a Windows bootable USB),
Choose your regional settings, select your Location/Keyboard setting then click next,
Click on Repair your computer,
Choose the correct installation of Windows from the operating system list box and then click next,
Then in the System Recovery Options screen choose Command Prompt,
From there, type in the following 2 commands:

bootrec /fixboot

bootrec /fixmbr

Now close the two windows and click "Restart." Take out your Windows DVD and hopefully, you will be left with your Windows bootloader.

Using Boor-Repair disk:

In Advanced options of the Boot Repair disc, choose to Restore MBR under the Main options. Next under MBR options select the Windows 7 partition for Partition booted by the MBR option. Then click the Apply button.


Missing amdgpu firmware file named vega20_ta.bin | Kubuntu 19.04

The vega20_ta.bin is not release yet as it is optional and the board didn't seem to use it and it just a warning as you can see by W: so you can safely ignore the message.


Configuring a HTTP and HTTPS web accelerator using Varnish

After reading the comment by gertvdijk, I have decided that the best strategy is to forward HTTPS traffic from the firewall directly to the web server, bypassing the Varanish proxy (as I don't need it to cache this traffic).

  If I understand your question correctly, you want to handle the SSL
  layer at your webserver behind Varnish, right? Why would want a caching server to only
  forward traffic? You can use plain firewall (iptables) rules or have your webserver
  connected directly at port 443 for this without the need for traffic to pass Varnish.


Last couple of fglrx drivers on Ubuntu 12.04 have backlight support broken

After a day of investigation, it turns out this problem is apparently just as rampant (see open&product=&content=backlight">http://ati.cchtml.com/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=open&product=&content=backlight) as intermittent resume freeze after suspend when using fglrx module (as opposed to the proprietary driver). For the time being any driver above 9.012 doesn't have backlight support working. As of June 2013, the only workaround (see https://bbs.archlinux.org/viewtopic.php?pid=1269560#p1269560) for drivers newer than 9.012 is to press hardware brightness buttons and hold them for several seconds. This will usually cycle between brightest and darkest setting (depending on which button you're holding) which should be ok enough to use the laptop in a way that allows some battery life optimization/autonomy when away from AC but it is also an ugly hack. I guess we will have to wait until AMD releases next version (13.6 beta is also affected) of the driver and hopefully fixes the regression.

For the time being, I will not pick this as my answer in hope someone may come up with a better solution.


Looking at the specifications of the system, you can definitely install Ubuntu on it.  You may have to install graphics driver, and if that's the case, instructions are Here

I would recommend that you install Ubuntu 13.04.  I also recommend that you try it, before installing, just to make sure that it works with the hardware.

Once downloaded, you can either create a bootable DVD or USB drive.  For more information on that, and on the installation as a whole take a look at Install Ubuntu 13.04


You'd do something like

#!/bin/sh

# find the MAC address of the device
macaddr=$( bluetoothctl | awk '/AirDots/ {print $3}' )

# and connect them
connect "$macaddr"

Save that to a file in a directory in your PATH (perhaps $HOME/bin) and make it executable.

It can be made more general so that "AirDots" is not hardcoded, if you have other devices you want to be able to connect.

Attempt #2 -- often CLI programs allow you to specify the command on the command line. It seems this is one of them.

#!/bin/sh
macaddr=$( bluetoothctl devices | awk '/AirDots/ {print $2}' )
bluetoothctl connect "$macaddr"

Note, my raspberry pi is in the basement with no bluetooth devices paired or available.


How to change ctrl+right/left navigate shortcuts in ubuntu 18.04?

I assume now that you need this key shortcuts with readline, as used in a terminal.

To get an overview you can ether take a look at

less /etc/inputrc

or use the command bind to see your active bindkeys:

bind -P

To change this seetings I propose to use the local .inputrcfile in your home directory; maybe it even does not exists now.

Therefore you have to say for which purpose you would like to change the key shortcut. Is it forward one word?

In case you want to change forward/backward word properties, you can do:

echo "\"\e[C\": forward-word" >> ~/.inputrc
echo "\"\e[D\": backward-word" >> ~/.inputrc

Open a new terminal an try it.

If you need a more detailed answer you have to put more specific information to your post.


How do you work with the Epson V600 film/print scanner using Xsane?

there's a current bug in 18.04 && 18.10

i installed the latest version of libsane from Rold Bensch's ppa as @pdc mentioned above (dunno if necessary)
i ran install.sh from the epson linux .deb (particular bundle for my v550)
bug tracker gave me info to give a symbolic link to the proprietary epson libraries (called epkowa)

run:

sudo ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane

source: https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012


How to make joomla appear on my apache server?

Apache always displays some file.  If you don't specify a specific file, it will look in its root directory (by default /var/www/html, but that can be changed).  There is a hierarchy of filenames it will look for, such as index.html, which is the default page you see.  However, you can specify a different filename in the URL, such as localhost/index.php, which will load the file index.php instead.

I believe Joomla uses index.php, so try that.  If Joomla were in a directory such as /var/www/html/MyWebsite, then you would enter localhost/MyWebsite/index.php to load it.

Apache itself doesn't need to know whether you are running a Joomla site, or a Wordpress site, or whatever; it just needs to know what file to load.


How do I check which process is consuming a lot of hard disk reading and writing

Try installing Indicator Multiload:

   sudo add-apt-repository ppa:indicator-multiload/stable-daily
   sudo apt-get update
   sudo apt-get install indicator-multiload


Ubuntu Server 16.04.3 Can't Connect to Internet

This problem started happening after a power outage and read sometimes it's a hardware issue.  I did a factory reset on my router and everything was back to normal.


(Ubuntu 14.10) 3 Monitors on laptop with Intel HD Graphics 4000

You should look for xrandr and arandr (xrandr gui). This is the best solution I found to set up freely multiple screens under ubuntu

Arandr let you configure screen :

Status (Active / Inactive)
Position (free positioning)
Orientation (normal, right, inverted or left)
Resolution

Note to intel graphics owners : if you want to use more than 2 screens, be aware to have two configurations set for all your screens. (ex : Screens 1/2&3 : 1280x1024 60.0 and screens 4/5&6 : 1280x1024 75.0)

But this type of config is available through DisplayPort only for most of configs

Intel only support 2 PLL (wikipedia) this why only two configuration sets. See Adam Jackson's comment here.

See here intel possible intel configuration sets


Git certificate validation error, but openssl succeeds

With openssl you are using a specific port (443). Maybe it is the git default port that is not trusted by the ca-certificates. I think git by default uses port 9418.

Try doing this:

git clone https://stash.z-hub.io:443/scm/zp/z-push.git


Problems with repositories blocking aptitude

You'll need to open /etc/apt/sources.list with your preferred text editor as root and edit the line for your Wine repository so that it reads:

deb https://dl.winehq.org/wine-builds/ubuntu/ artful main

At present, nothing is available for Bionic, so you need to tell apt to look for the next best thing, which is Artful. You'll still get whatever the latest version is as per the PPA, though.

After an apt update, you should be able to install the latest version of whichever Wine package you need.


How to sync changed files only with Dropbox using dropbox-uploader.sh?

Let say your file is under /home/vesa/test.txt and the script location is /home/vesa/dropbox_uploader.sh You can run the upload manually by

/home/vesa/dropbox_uploader.sh upload /home/vesa/test.txt .

The dot mean at the end is root folder in Dropbox.

You can set the automatically upload in crontab. It will upload the test.txt file in every 5 minutes:

*/5 * * * * /home/vesa/dropbox_uploader.sh upload /home/vesa/test.txt .

More commands and parameters are available on GitHub page.


Ubuntu 20.04 shift right not functioning

Install Tweaks (gnome-tweaks). On the "Keyboard & Mouse" tab, check "Additional Layout Options". Under, "Switching to another layout", one can assign, among many others, the right Shift key. In the absence of more specific information, this could have been set in your case. If that is the case, uncheck the mark left of "Right shift" to return that key to normal use.


Can't get MAILFROM to work in crontab on Ubuntu server 12.04

The version of cron shipped with Ubuntu up to saucy (a patched Vixie cron 3) does not support the MAILFROM env var.

Fedora uses cronie (https://fedorahosted.org/cronie/), a Vixie cron 4 fork with some enhancements.

Vixie cron 4.1 aka ISC cron also supports this var.


fatal: could not create work tree dir 'metasploit-framework'.: Permission denied

You are trying to git clone into the /opt directory and don't have privileges.

Use:

sudo git clone https://github.com/rapid7/metasploit-framework.git

Alternately git clone into your home directory then if you need to make the executable or install just invoke your superuser privileges then with sudo.


Preferences / Display Preferences missing in Gnome 3.12

Try gnome-control-center appearance from Terminal. If it won't launch settings paste output here.


Time setting conflict in a dual boot system

Something to do with Windows using local time en Linux UTC. You can fix Linux to use local time or Windows to use UTC:
To fix Windows, just hit Start and type regedit.exe in the search box. Hit Enter and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation. Right click anywhere in the right pane and hit New > DWORD (32-bit) Value. Name it RealTimeIsUniversal, then double click on it and give it a value of 1.

Some how creating a reg file with this option (mentioned in other solutions) doesn't work in W8.1, but this worked for me.


20.10 cryptsetup suddenly fails to open luks: Cannot use twofish-ecb cipher for keyslot encryption

Not a definitive answer, but your initramfs is missing a crypto module. I got bitten by this myself today, in a slightly different way, but with the same result (hence how I came across this post):
Cannot use serpent-xts cipher for keyslot encryption.
Keyslot open failed.

Both the kernel dmesg and cryptsetup are suspiciously devoid of any messages at all when this happens. Sadly, I can't tell you which module was missing in your case, but in my case it was the cryptd module.
I don't think the disk layout, or cryptsetup, or even the specific kernel version is to blame here. The most likely cause is the way Debian/Ubuntu systems generate the initramfs on kernel upgrade. Here's how this can fail on a kernel (dist-)upgrade:

apt installs a new major kernel version
update-initramfs uses the currently loaded modules to gather all the modules your system needs to mount the root filesystem
because your system is currently running the old kernel, this list does not contain (A) any new modules, or (B) new dependencies of current modules (or modules that were renamed, etc)
your system happily boots the new kernel with an incomplete set of modules in the initramfs

Normally, you would expect to see "unresolved symbol" errors when a module is missing some dependencies. However, the kernel crypto API provides a generic interface for all crypto algorithms, so the symbols are there, even if a specific algorithm is missing. To add insult to injury, the in-kernel crypto resolver doesn't log any warnings if a requested algorithm is unavailable.
How to fix?
Firstly, boot into the new system using your old kernel. Debian always makes sure you can run the current userland on the previous kernel, I imagine Ubuntu does the same.
Use the following command (or similar) to view all module changes between the kernel versions (all on one line, I split the command for readability):
diff <(cd /lib/modules/$OLD_KERNEL_VERSION/ && find . -type f) \
     <(cd /lib/modules/$NEW_KERNEL_VERSION/ && find . -type f)

Lines beginning with > indicate modules that only exist for the new kernel. Given the error, it would be a pretty safe bet that the missing module is a crypto module, so you can add | grep /crypto/ to narrow down the list.
Once you've identified the likely suspects, you can force them to be included in the initramfs by adding them to /etc/initramfs-tools/modules (one per line) and running update-initramfs -u -k all to regenerate the initramfs.
It still doesn't work
The approach here only covers case (A) above, where you are missing a module because it doesn't exist in the old kernel. Case (B) doesn't really have a straightforward fix. You could either make an educated guess, or simply add all the crypto modules to /etc/initramfs-tools/modules, and hope for the best. But better make sure you have the Ubuntu installer ready on USB stick to use its rescue mode (second bullet, the page has no anchors) to boot your system using the correct kernel version.


Can't access any remote network routes using OpenVPN client

Seeing that this is a simple addressing scheme problem:

If you have control over both addressing schemes and you will be adding a lot of sites in the future: use the 10.A.B.C/24 addressing scheme where A is the country, B is the city and C is the local LAN... (think big!)

If you have control over only one of the addressing schemes (or will not be adding a lot of sites in the near future), have one use 192.168.dayofyourbirthday.0/8 (to make it sufficiently random that you will not have this problem again in the near future)

and all problems will be gone!

:-)


If you have installed it correctly and now cant use it , means grub is affected due to any unfortunate cause So Try Boot-repair-Again  to repair your grub , for doing so you have to boot ubuntu live usb or dvd and after booting click on try-ubuntu.

When desktop screen appears press Ctrl+Alt+t  for opening terminal and run the follwing commands into the terminal -

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

After that the boot-repair window will appear ,in that select Recommended repair option . After completion restart your pc .it will be fixed.If you need any assistance or anything click on the link mentioned in the answer.

hope it will work.


apt upgrade systemd fails, users and groups already exist

It turns out I can't read. The UIDs in /etc/passwd aren't within the range specified in adduser.conf
So, I fixed it by adjusting adduser.conf to encompass UIDs 50000-59999.

My own fault.


The package manager will first download all packages into the folder /var/cache/apt/archives/ before the installation of the packages starts. Packages that are already there will not be downloaded again.

If the package manager gets interrupted during downloading it will just continue if you start it again (but if you interrupt it once it started installing packages that may cause problems).

For offline updates see How can I install software or packages without Internet (offline)?


yunit is a Unity 8 fork (Unity8org was the original name).
Ubports. A Q&a about this has some insights in this. They use Ubuntu touch as their base so decided to not join yunity.

Still nothing on Unity 7.


Increase volume of /home partition with unallocated space

You are trying to move the partition, but this cannot be performed from within a running system. To do this, boot from Ubuntu Live or GParted Live media. Unmount the mounted partitions. Click Resize on sda5. Drag the partition towards left (unallocated space is in left side!). This takes a lot of time because it is moving all data to a new location. Reboot to your main operating system.


It's ok,

I've changed the file /etc/network/interfaces

# The primary network interface for Internet
auto eth1
iface eth1 inet dhcp

Now it's Ok


How do you remap a key to the Caps Lock key in Xubuntu?

Another way:

sudo vi /etc/default/keyboard

then find the line that starts with XKBOPTIONS, and add ctrl:nocaps to make Caps Lock an additional Control key or ctrl:swapcaps to swap Caps Lock and Control.

For example, mine looks like

XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"

then run

sudo dpkg-reconfigure keyboard-configuration

The reason this way is better is that it will take effect on the virtual consoles (e.g. Ctrl+Alt+F1) as well as in the graphical desktop.


Unable to add physical volume '/dev/hda' to volume group


How to change icons of specific file types on Ubuntu 11.10?

You need to use icon themes, and name them accordingly per the MIME Types section of the Icon Naming Specification. For example, text/html would be text-html.png for a PNG icon in your custom theme.


"Cannot locate suitable jar utility" while trying to install Oracle Java JDK

The problem is the same that for other programs (java, javac, javaws etc.) You just need to create an update alternative for the "jar" program like this:

sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib/jvm/jdk1.7.0/bin/jar" 1

Note: remember to replace the "jdk1.7.0" path by the real name of your target jdk installation path if it is different.


Wireless not working when using UBUNTU 13.04 on DELL Precision M6300

1st you have to see if it's used by the system
go to settings >> software & updates >> additional driver
and check to use the wireless adapter by system if it's not used
if it's not working reply me i'll help


Paper icon theme broken after upgrade with little RAM

I solved the problem by deleting icon-theme.cache in /usr/share/icons/Paper/. To recreate the cache file (which apparently reduces disk usage, according to the man page), run

sudo gtk-update-icon-cache /usr/share/icons/Paper/

and reselect the icon theme in Unity Tweak Tool. A reboot shouldn't be necessary.


Garbling was due to loading improperly formatted binary which was mangling strings.


This is a limitation. Currently, we don't support syncing from folders outside your home directory.

The main reason is that Ubuntu One does synchronization. If you synced a removable device, and then uplugged it, it would see all the files disappear, and also remove all its contents from the website and all your other devices.


Added `export` command in `.bashrc` to update PATH with binary location -- GUI apps don't know about update even though terminal does?

The ~/.bashrc file is only processed for interactive, non-login shells: probably a better place to set the path would be your ~/.profile

For maximum portability, you could follow the existing paradigm of the user's ~/bin directory in ~/.profile (i.e. avoiding export, and testing for the directory's existence): something like

if [ -d "/path/to/my/bin" ] ; then
    PATH="/path/to/my/bin:$PATH"
fi

Since ~/.profile is only read for login shells, you will need to log out and back in for it to take effect (or at least, start a new login shell e.g. using su - username). From there, the new PATH should propagate to all child shells - including the interactive, non-login shells of your gnome terminals.


Ubuntu 13.10 - driver for Dymo labelwriter 450 fastest printer

some command examples:

- print very long text on a tape:
lpr -o landscape -o PageSize=24_mm__1___Label__Auto_ docs/test.txt

- set printing options specific to the LabelWriter driver
lpr -o PageSize=30252_Address -o PrintQuality=Graphics -o PrintDensity=Light docs/test.txt

- set printing options specific to the LabelManager driver
lpr -o PageSize=Address_Label -o CutOptions=ChainMarks -o LabelAlignment=Right -o TapeColor=1

WORKS

$ lpr -o landscape -o PageSize=24_mm__1___Label__Auto_ docs/test.txt


What does "Gtk-ERROR **: GTK+ 2.x symbols detected." mean?

It means that you are running an application which attempted to load the symbols from the GTK+ 2.x libraries, as well as the 3.x libraries. This is a problem, because there are several conflicting symbols in the libraries.

It is not a GTK+ bug, as GTK+ is doing the right thing by exiting early with a failure. If it didn't, you would most likely get very unpredictable behavior. In many cases, it is an issue with plug-ins, where the main app has been ported to GTK+ 3.x, but all the plug-ins haven't, and some people might still have older plug-ins installed, or similar.


I used the method suggested by @braiam above. As I have already mentioned, after I restarted my system I was not able to access any applications. So I used the Alt+F2 command and then entered update-manager in the text box and checked the Run in Terminal option. The manager didn't run but I was able to open a new terminal window this way. Then I did what was suggested above and everything was fine.


Windows SSD, Ubuntu HDD UEFI Partitioning

Step-by-Step
Warning: Do NOT do any partitioning on the Windows side, use the Ubuntu installer instead.
Downloads

go to this website : https://rufus.ie/ and grab rufus (an iso-to-usb-burner tool)
go to https://ubuntu.com/ and grab the 18.04 LTS version of Ubuntu if you don't like to upgrade often or use 19.04 if you like to upgrade yearly, it's what I use personally.

Prepare the USB key and to reboot

plug in a usb key (key, not external drive) of 4GB or above into a USB port on your PC case or laptop. Copy all data you might want to keep from this key, it's contents will be completely wiped.

start `rufus and select the Ibuntu ISO, your USB key, GPT mode and UEFI mode.

Click on start.

Open a CMD as an administrator (right click on the icon and you'll have that option), type:
powercfg -h off

now you may open up "reset" from start, this will open up the settings as below:

choose "restart now" this will allow you to choose what boot media you want to restart to.
Once you restart you'll be greeted with this screen (click "Install Ubuntu"):

and select your USB.
If you don't have this screen and have a simple reboot, you may interupt at the bios level to choose the boot media or even enter the BIOS and change to boot order to have your USB key first.
in that case be sure to select the one that says "UEFI" or "EFI" in the name of the usb. this means it will boot the USB in UEFI mode.
Ubuntu installer steps
once you've booted on the USB you'll be greeted by this screen:

at this point you'll be able to follow the steps they are pretty intuitive
when it asks you how you want to install ubuntu in regards to the windows it automatically detected, you'll be able to choose "install allongside..."
and at this step you should choose your secondary hard drive from the drop down menu this way it installs there and not on your SSD :)

there done! easy, right?
The dual-boot will be handled by grub, it is the first thing you'll see when you start your computer.
Do not under any circumstance try to replace grub with windows boot loader, you'll have a much better time customizing grub to your liking as this user can attest : GRUB4DOS error after installing Kubuntu 19.04 and replacing GRUB with Windows 10 bootloader on dual boot


Radeon HD 6870 compatibility with Ubuntu 11.10

I have the exact same graphics card, and I have had good luck with it so far. It works out of the box with the built in radeon driver. That driver supports the card surprisingly well. 2D & 3D acceleration works to some extent (including smooth performance in Compiz and Gnome Shell), but you'll have less luck doing 3D games or the like. On the bright side, Minecraft doesn't work very well with the free driver :b

So, to gain those other things (including making Minecraft work very, very well) you can install the properietary fglrx driver. This is available right away from the Additional Drivers tool. Just open System Settings and Additional Drivers will be listed in the Hardware section.

The fglrx driver does good 3D acceleration and all the bits in between. It definitely meets the two requirements you listed, as far as I have noticed (though, to be honest, I don't think I have played a full-length 1080p video thus far; just little things).
Unfortunately, the fglrx driver isn't quite perfect. It has a bug that breaks Gnome Shell, so that's why I'm currently using the built in driver. If you don't care about Gnome Shell, that bug won't be a problem.

It's pretty unusual that video playback in Ubuntu will use the video processing hardware built in to the GPU, so any claims of "1080p video playback!" are probably not so clear-cut. The video hardware in the Radeon HD 6800 series can be accessed through VA API, which is still somewhat new. We're still waiting for VA API support to land in GStreamer (the standard media framework in Ubuntu, used by the default Movie Player), but you might have luck if you install the VLC Media Player, which reportedly does VA API right now!


When I connect my TV to my laptop via HDMI, the TV is not detected until I try to change my background or run xrandr

It turns out I had a bad cable.  I had thought I tried another cable but I have now found a good cable.  I would atrribute this problem to what is commonly called "finger trouble".


Issue this command:

sudo chown -R julian:julian ~/.config

To restore the whole account's ownership:

sudo chown -R julian:julian ~


Ubuntu 12.04 get stucked on boot (ubuntu logo + mouse cursor)

Ok, fixed it on my own. The problem was most likely related to Steam. I added the x-swat ppa few days ago (as suggested by Steam). After removing it (and removing all related packages), problems are gone.

Started in Recovery Mode
Repair Packages (to get file system mounted read+write)
Activate Network
Run following commands:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntu-x-swat/x-updates

Reboot


how to format my computer, wipe out windows, and set it with only ubuntu?

I am not very clear. You already have Ubuntu along with Windows if my understanding is correct. Then login every time in to Ubuntu. If you just want more disk space you need not reinstall the whole OS. All that you need to do is take the data backup and delete windows partition and reformat them. But when you boot, it will still show you that it can boot into Windows but if you select that option, it will not boot. That can also be fixed using the below commands.

Check
sudo gedit /etc/grub.d/30_custom or sudo gedit /etc/grub.d/40_custom. You should find the windows booting sequence. Remove the windows related items, save and close. After that run the below command to update the grub.
sudo update-grub2

This should fix the problem.


Windows is very notorious for not allowing other non-windows OSes to exist on the same computer.

The steps would be:

Boot your computer into Windows setup CD.
Repair your boot process and MBR.
Once you verify that you can log into Windows, launch Ubuntu install.
Ubuntu will recognize that there is Windows and install Grub. It may also ask you to choose the default OS.
After Ubuntu is installed you can have a dual-boot PC.


To have DVI sound coming through an HDMI adapter, you need to be using a DVI-D connector with a graphics card that supports transmitting audio over DVI.

From Wikipedia:

  DVI-D devices output HDMI signals, many including audio, (examples: ATI 3000-series and NVIDIA GTX 200-series video cards), and some multimedia displays input that HDMI signal, including audio, by using a DVI to HDMI adapter. Exact capabilities vary by video card specifications.

According to the above snippet from Wikipedia, it also seems that the display needs to support the input from a DVI to HDMI adapter.

Otherwise, it doesn't look like DVI supports audio.


How to fix icons in ardesia in Ubuntu 15.04?

Magically, the old version ardesia_1.0-1_amd64.deb works fine for me on Ubuntu 15.04(But only when extending the 2nd monitor).

Download it at： https://code.google.com/archive/p/ardesia/downloads


Installing an apt package on the "live" (installer) environment

My original goal here was a wash, since the installer doesn't recognize drives added this way, but regarding the actual question here, getting important packages running in the install environment, the magic command is udpkg.

udpkg can be called with the -i option just like regular dpkg with the .deb files mounted at /cdrom. These packages are installed to the ramdrive install environment and go away when the system is rebooted.


How to prevent gnome Network Settings GUI from overriding my network settings?

The best way would be to use the network-managerGUI you mentioned itself to set up a static IP. However if you still wish to do it via file /etc/network/interfaces, then you have to disable network manager by

sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service

Here is a link for more details


How to enable thumbnail preview for text files in Nautilus

According to this Nemo issue, this feature was removed in GTK itself.

GTK commit: https://git.gnome.org/browse/gtk+/commit/gtk/gtkicontheme.c?id=aa44c0ca53b8d32c9bf3114b53ce4983ec05e86e

Reason cited by GTK:

  GtkIconTheme: Drop the code for parsing .icon files
  Modern icon themes don't ship .icon files anyway.


Probably you installed GRUB on the pendrive instead of on the hard disk.

Boot through your USB drive, open a terminal (CTRL + ALT + T) and type ls -l /dev/disk/by-label/. You'll get a list of drives of the sort /sda1 /sda2  or /sdb1 etc.

Identify the hard disk where Ubuntu is installed. If it is say sda4, in the terminal type: sudo grub-install /dev/sda without the final number.

Shutdown, remove the pendrive and turn on again.


gedit lags when changing cursor position

Seems like a known bug: https://bugs.launchpad.net/ubuntu-gnome/+bug/1386721

Solved by upgrading gedit (and totem) to 3.12.


Cannot access Windows because either Ubuntu deleted my C: drive content or it simply decided to not show Windows 10 in the grub loader

You have MSDOS partition tables and no EFI partition. So you have installed Windows 10 in BIOS mode. And now you have installed Ubuntu into the root partition /dev/sdb5 and the swap partition /dev/sdb6. There are still several partitions left with the NTFS file system:

The whole drive /dev/sda seems untouched by Ubuntu. This is the SSD. (Maybe there is a 'grub' bootloader for Ubuntu.)
The partition /dev/sdb1 is a big partition with NTFS, and it has a boot flag.

There is hope that your Windows is still there, and the only problem is that Ubuntu does not see it.

The reason you don't see Windows via Ubuntu might be, that Windows is hibernated or semi-hibernated alias uses fast startup. This leaves the file system in a state that should not be touched by other operating systems, and Ubuntu stays away from them, and does not see Windows. I am no Windows expert, but I know there are solutions (if this is the problem).

One solution is to repair the Windows bootloader. It means that the Ubuntu bootloader 'grub' will be overwritten, but after turning off fast startup you can re-install grub and it should recognize Windows and show a line for it in the boot menu. This would give you a convenient dual boot system.

Another solution is to try to fix it from Ubuntu. I have never done that, so I will not recommend that method, but I would welcome someone who knows, to show how to do it that way.


Goto Page preview
Select print from printer icon

After that It will be ok and you will can print again from the main Print option


Black screen after Grub2 menu with Live USB on Acer E15 with Windows 10

This answer was given in the Acer community: "Have you installed the latest BIOS?"

Updating the BIOS from version 1.25 to 1.31 did the trick indeed. The reason is that version 1.25 did not support Linux at all (probably a bug).

It still did not work out of the box: I had to manually add \EFI\ubuntu\grubx64.efi to the boot sequence in order to get the GRUB menu (the entry was not automatically added).

So now I have a working Ubuntu environment. But... the wireless lan is not working. I will have to look into that tomorrow, but looking at the first quick search results, it seems that the network card is not supported...


Which of the Ubuntu versions suitable for Toshiba Harman/Kardon?

The easiest way to find out is to just try it.

Download Ubuntu (pick the 32bit option, obviously)
Burn it to a USB stick
And then boot to it. Pick the Try Ubuntu option when asked and find out what does and doesn't work. If it seems like a viable system, you can install.


can't open /dev/hwrng: No such device - but it exists!

apt-get install haveged

and:

user@server:~$ cat /proc/sys/kernel/random/entropy_avail
2417
user@server:~$


It sounds to me like you have a hardware problem. What I would suggest, is to get a SD to USB adapter and try that. It should solve your problem for now. If that doesn't work it is a problem either with the SD card, or the software. In this case the SD card is the more likely candidate. In which case fixing it is nigh impossible. So yeah.  Hope this was helpful!


Ubuntu 18.04 does not restore from hibernate on X1 Carbon

Try installing tlp Linux Advanced Power Management to try a workaround the issues of the kernel. This is not guaranteed to work but its worth a try. It also has some features tailored to thinkpads so it might improve battery life even more with a little digging on their site
You can install it using the command below:

   sudo apt install tlp tlp-rdw

to run it run the below command:

   sudo tlp start


The if expression can easily be a command, so that the then statement is executed if the command ran successfully and the else statement if not. Using ! it’s possible to invert this behaviour, so just use if ! python3 …:

#!/bin/bash
if ! python3 -c "import numpy"; then
  echo Numpy needs to be installed
  sudo apt-get python3-numpy
fi
echo Everything is properly installed


which Desktop would i get after ugrade to 16.04?

It should not affect your desktop environment. You will keep whatever you have right now, same as when you do a regular upgrade.


The Linux kernel can start and manage a lot of processes for you; more than you can reasonably use. But the more important question is: How many parallel processes are useful for your specific task? How many should you start to make the best possible use of your system resources?
That is not easy to answer in the general case. Some tasks are CPU bound, i.e. they need a lot of computing power. Some are I/O bound, i.e. they read a lot of data from disk or write a lot of data to disk. Some are network bound, i.e. they transfer a lot of data over the network. And then there is memory usage; each task needs a certain amount of RAM, be it physical or virtual RAM, including swap space; and when swapping starts, everything comes to a screeching halt, so you will want to avoid that.
So you have several different classes of system resources that each task needs, i.e. for which any parallel tasks compete:

CPU
RAM
Disk I/O
Network I/O

If the overall mission is to run, say, 10,000 tasks, it depends on their usage pattern of those system resources how many of them make sense to be started in parallel. If each task is not very CPU intensive, but has to wait for results from the network, it might make sense to run considerably more of them in parallel than you have CPU cores. If they all read a lot of data from files, it might be more efficient not to run that many in parallel because disk I/O will be the limiting factor. If they all read the same file it might be the opposite because the file will be cached in I/O buffers already.
It really depends on the usage pattern, and you will typically have to experiment where the sweet spot is for your specific system configuration (depending on I/O bandwidth, number of CPU cores, CPU usage, available RAM etc.).


Broke python3 source file (in multiprocessing)...how to reinstall python3 (.5.2) from scratch?

The file appears to be provided by package libpython3.5-stdlib

$ dpkg -S /usr/lib/python3.5/multiprocessing
libpython3.5-stdlib:amd64: /usr/lib/python3.5/multiprocessing

so you will probably need to re-install that

sudo apt-get install --reinstall libpython3.5-stdlib


ttys no longer show release version after 16.04 Update (from 14.04.4)

That message comes from the file /etc/issue and/or /etc/issue.net.

I would imagine that you either lost these files or they are not readable by root (?!?) or they do not get printed anymore.

The files should automatically have been updated.

It would be set to the output of lsb_release -d or something of the sort.

If that does not work for you, you could create a script under /etc/profile.d/... and put:

lsb_release -a

In that script. That being said, the motd (Message of the Day) should be displayed when you log in and that should already include all the necessary information about the machine.


How to add a network printer on Ubuntu 15.10?

I solved the same problem by installing hplip manually. Run:

 sudo apt-get install hplip

and then run:

hp-setup

which will open a GUI where you can search/add your printer.

You could also directly install the GUI by:

sudo apt-get install hplip-gui

Run it from dash and follow the directions.


I had the same problem and I solved it by following these steps:

Go to android studio and then go to configure option on the bottom of the window.
Go to 'project default' option in that option and click on project structure option.
Change the SDK location to your sdk location. (If you get errors such as your location not a platforms you must go to your sdk location and make an empty folder and rename it to 'platforms'. Then you must repeat this steps.)

Note:this error may arise when your sdk folder not a 'platforms' folder and you must make an empty folder and rename it to 'platforms'. platforms folder must be in the sdk folder.

For more information you can watch these videos:

  https://www.youtube.com/watch?v=3XiUavaRwt0
  https://www.youtube.com/watch?v=DuagOiwIbUk


Fingerprint setup on Ubuntu 20.04 LTS fails with "Problem Reading Device"

The vfs301 has been broken since at least 2 years. The device is active for the 1st enroll, but is stalling after that. There seems to be no solution for that.


Where does Okular store its config files?

As you've found, neither ~/.config/okularpartrc nor ~/.config/okularrc store information relating to changes made to the main toolbar.

Here's an image of the toolbar I have before adding a couple of buttons:

I then used the GUI found in Settings > Configure Toolbars to add a couple of buttons (outlined in red) as seen below:

I found that these changes were recorded in ~/.local/share/kxmlgui5/okular/shell.rc,  in Kubuntu 18.04.

On running diff on shell.rc before and after the changes I get:

$ diff 0shell.rc 1shell.rc
24a25
>   <Separator weakSeparator="1"/>
58a60,61
>   <Action name="help_contents"/>
>   <Action name="help_about_kde"/>
$

Of course, the line numbers maybe different on your system.

You've mentioned that copying the entire home folder doesn't help and I would assume that ~/.local/share/kxmlgui5/okular/shell.rc would be copied as well in which case you should have been able to carry over the changes. It's possible that something else is required but I don't know what that would be.

Edit: I just installed okular on Lubuntu 18.04. The same file, ~/.local/share/kxmlgui5/okular/shell.rc, exists there as well.


Reinstall pulseaudio again and restart the service.

sudo apt-get install pulseaudio
pulseaudio --start


After posting my question, I started reading the related articles that askubuntu offered and found this one: How does recovery mode affect the subsequent boot?

So, I gave the nomodeset boot parameter a try and it worked.  Apparently something included with a recent update made this parameter necessary.  FWIW, I'm running under VMware Player 15, with whatever video emulation it provides.  Regardless, adding nomodeset fixed my boot problem.


During Ubuntu Installation: No "Alongside Windows 8" option and "Use something else" only shows 500GB free space (no other /dev/)

Do the 'Try Ubuntu' to boot in to the live disk, and then open up the partition manager (Gparted) to see what partitions are really on the drive.

Or go back in to Windows, winkey+x to bring up the little menu of options from the Desktop, go in to Disk Manager and do the same thing.

Make sure there are really only 3 primary partitions, leaving one available for Ubuntu. If you already have 4 primaries used, you'll need to do some juggling.


-Additional Printer Properties.
-Printer properties
-Device URI - Network Printer - select your printer

Also check Policies, make sure Enabled and Accepts Jobs are ticked


Should I use an SSD as cache for Ubuntu Server 18.04

"Should" is one of those judgmental kinda questions which end up with Opinions, which we avoid here. If, once you're used the system for a while, you feel you want it, there are SSD caching solutions like Bcache (more) as well as general optimization methods  but really, the simplest thing to do is to add more RAM and adjust swappiness.


Check disk before installing ubuntu, gave me error in 1 file

I would check the md5sum of your downloaded iso.

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

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

If it fails that - you will have to redownload it, preferably with a torrent - that will make sure your download is good.

Important point from Eliah Kagan in comment

  In addition to checking the MD5SUM of the downloaded .iso file, if that doesn't reveal a corrupted file, then it's important to check the installation media itself (this applies to both CD/DVD media and to USB flash drives)


How can I uninstall a nvidia driver completely ?

For Ubuntu 12.04

Commands can be executed to terminal. You can open a terminal with Ctrl + Alt+T keys combo.

If you remove --purge the nvidia driver you will be OK. No need to blacklist something, but sometimes maybe a force-load of the nouveau module needed.

First uninstall completely the driver.

Search what packages from nvidia you have installed.

dpkg -l | grep -i nvidia

except the package nvidia-common all other packages should be purged.

If you want to be sure that you will purge everything related to nvidia you can give this command

sudo apt-get remove --purge '^nvidia-.*'

the .* in the end means (Purge everything that begins (^) with the name nvidia-)

BUT

above command will also remove the nvidia-common package and the nvidia-common package has as a dependency the ubuntu-desktop package.

So after above command you should also give the installation command for ubuntu-desktop package

sudo apt-get install ubuntu-desktop

Also sometimes the nouveau driver get blacklisted from nvidia driver. With purge command it should UN-blacklisted. If you want to be sure that nouveau will be load in boot, you can force-load it by add it to /etc/modules

echo 'nouveau' | sudo tee -a /etc/modules

Last , search for the xorg.conf file and remove it as well

sudo rm /etc/X11/xorg.conf

In summary

sudo apt-get remove --purge '^nvidia-.*'
sudo apt-get install ubuntu-desktop
sudo rm /etc/X11/xorg.conf
echo 'nouveau' | sudo tee -a /etc/modules

Although all above commands not needed, this is my way to completely purge the nvidia driver and use the open source nounveau.


Any c functions to simulate double click on file?

This solution uses Gio, it uses the g_app_info_launch_uris method. It works it launches the .desktop with the icon applied to the .desktop file:

This is js-ctypes code, can run from fiefox extension. Or firefox scratchpad with develope prefs enabled. I adapated it from this solution here: https://askubuntu.com/a/239883/321266

Cu.import('resource://gre/modules/ctypes.jsm');

var gio = ctypes.open('libgio-2.0.so.0');

// BASIC TYPES
var TYPES = {
    gchar: ctypes.char,
    gint: ctypes.int,
    GAppInfo: ctypes.StructType('GAppInfo'),
    GAppLaunchContext: ctypes.StructType('GAppLaunchContext'),
    GDesktopAppInfo: ctypes.StructType('GDesktopAppInfo'),
    GList: new ctypes.StructType('GList', [
        {'data': ctypes.voidptr_t},
        {'next': ctypes.voidptr_t},
        {'prev': ctypes.voidptr_t}
    ]),
    GQuark: ctypes.uint32_t
};

// ADVANCED TYPES
TYPES.gboolean = TYPES.gint;
TYPES.GError = new ctypes.StructType('GError', [
    {'domain': TYPES.GQuark},
    {'code': ctypes.int},
    {'message': ctypes.char.ptr}
]);

// FUNCTIONS
/* https://developer.gnome.org/gio/unstable/gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new-from-filename
 * GDesktopAppInfo * g_desktop_app_info_new_from_filename(
 *   const char *filename
 * );
 */
var new_from_filename = gio.declare('g_desktop_app_info_new_from_filename', ctypes.default_abi,
    TYPES.GDesktopAppInfo.ptr,  // return
    TYPES.gchar.ptr             // *filename
);

/* https://developer.gnome.org/gio/unstable/GAppInfo.html#g-app-info-launch-uris
 * gboolean g_app_info_launch_uris (
 *   GAppInfo *appinfo,
 *   GList *uris,
 *   GAppLaunchContext *launch_context,
 *   GError **error
 * );
 */
var launch_uris = gio.declare('g_app_info_launch_uris', ctypes.default_abi,
    TYPES.gboolean,                 // return
    TYPES.GAppInfo.ptr,             // *appinfo
    TYPES.GList.ptr,                // *uris
    TYPES.GAppLaunchContext.ptr,    // *launch_context
    TYPES.GError.ptr.ptr            // **error
);

// start - helper functions

// end - helper functions

var shutdown = function() {

    gio.close();
    console.log('succesfully shutdown');
}

function main() {
    var jsStr_pathToDesktopFile = OS.Path.join(OS.Constants.Path.desktopDir, 'Firefox - Profile Manager.desktop');
    var launcher = new_from_filename(OS.Path.join(OS.Constants.Path.desktopDir, jsStr_pathToDesktopFile));
    console.info('launcher:', launcher, launcher.toString(), uneval(launcher));

    if (launcher.isNull()) {
        throw new Error('No file exists at path: "' + jsStr_pathToDesktopFile + '"');
    }

    launcher = ctypes.cast(launcher, TYPES.GAppInfo.ptr);
    var uris = new TYPES.GList(); // can use `null`
    var launch_context = null; // have to use null due o this explanation here: // cannot use `var launch_context = new TYPES.GAppLaunchContext();` //throws `Error: cannot construct an opaque StructType` so i have to get launch_context from something like `gdk_display_get_app_launch_context` because i dont know he structure to it, and i obviously cannto create opaque structures
    var error = new TYPES.GError.ptr(); // can use `null`

    var rez_launch_uris = launch_uris(launcher, uris.address(), launch_context/*launch_context.address()*/, error.address());
    console.info('rez_launch_uris:', rez_launch_uris, rez_launch_uris.toString(), uneval(rez_launch_uris));
    console.info('error:', error, error.toString(), uneval(error));
}

try {
    main();
} catch (ex) {
    console.error('Error Occured:', ex);
} finally {
    shutdown();
}


Zenbook UX31A USB3 not recognised and not working

See https://help.ubuntu.com/community/AsusZenbook#Not_yet_solved It's a bug in the driver that hasn't been fixed yet (?) or the update hasn't come through.


Charging for apps. in the software center?

This is a bid discussion, first you shall know what is the meaning of open source and what is meaning of free. Plus you should have some knowledge on licenses and different types of licences.

In simple words:

What is open source software?

  Open source software is software whose source code is available for
  modification or enhancement by anyone.

  "Source code" is the part of software that most computer users don't
  ever see; it's the code computer programmers can manipulate to change
  how a piece of software—a "program" or "application"—works.
  Programmers who have access to a computer program's source code can
  improve that program by adding features to it or fixing parts that
  don't always work correctly.

What do you mean by Free?

  A program is free software if the program's users have the four
  essential freedoms:

  The freedom to run the program as you wish, for any purpose (freedom
  0).
  The freedom to study how the program works, and change it so it does
  your computing as you wish (freedom 1). Access to the source code is
  a precondition for this.
  The freedom to redistribute copies so you can help your neighbor
  (freedom 2).
  The freedom to distribute copies of your modified versions to others
  (freedom 3). By doing this you can give the whole community a chance
  to benefit from your changes. Access to the source code is a
  precondition for this.

Selling Free Software

Many people believe that the spirit of Free software is that you should not charge money for distributing copies of software, or that you should charge as little as possible—just enough to cover the cost. This is a misunderstanding.

  The word “free” has two legitimate general meanings; it can refer
  either to freedom or to price. When we speak of “free software”, we're
  talking about freedom, not price. (Think of “free speech”, not “free
  beer”.) Specifically, it means that a user is free to run the program,
  change the program, and redistribute the program with or without
  changes.

  Free programs are sometimes distributed gratis, and sometimes for a
  substantial price. Often the same program is available in both ways
  from different places. The program is free regardless of the price,
  because users have freedom in using it.

  Nonfree programs are usually sold for a high price, but sometimes a
  store will give you a copy at no charge. That doesn't make it free
  software, though. Price or no price, the program is nonfree because
  its users are denied freedom.

  Since free software is not a matter of price, a low price doesn't make
  the software free, or even closer to free. So if you are
  redistributing copies of free software, you might as well charge a
  substantial fee and make some money. Redistributing free software is a
  good and legitimate activity; if you do it, you might as well make a
  profit from it.


To enable numlock on startup, I added the line

greeter-setup-script=/usr/bin/numlockx on

to /etc/lightdm/lightdm.conf. That was the reason lightdm crashed. So now that I have taken it out, it all works flawlessly again.


Unable to load nvidia driver in 14.04 since update to 3.13.0-27

I finally figured out the problem and I'm not sure whether this is a bug or a feature.

Because I'm using the CUDA compiler I used update-alternatives to set gcc 4.4 as my default compiler. However, since the latest kernel updates, the nvidia drivers fail to build if the default compiler is set to a different version while the kernel is build with 4.8. When trying to manually installing the official nvidia drivers without dkms (which alway failed) I finally got an error message that pointed me into the right direction.

Setting back the default gcc to 4.8 solved my problem and I was able to install the driver both from the repo and from the nvidia site. This one was tough to figure out because there were no error messages whatsoever during the installation of the drivers from the repos!


Cannot assign keys to Wacom scroll wheel anymore

I'm not sure if it's the same issue with the Graphire, but there's been a bug in recent Linuxwacom releases that prevented assigning keys to the wheel on the Intuos4. I'll edit this answer once I find a link to the relevant bug; you might have to wait for a fix to it.

On Ubuntu 10.04, I used Martin Owens' PPA for updated drivers, which made button assignment possible on the Intuos4, but didn't help with the wheel.


How to get MacBook Air 6.2 webcam to work in Ubuntu 13.10

There is no solution yet.
Keep an eye on this  kernel bug


How to install OpenJDK 10 on Ubuntu 19.04

OpenJDK 10 was non-LTS version of Java which has now its EOL in September, 2018. That means no future updates or fixes would be provided for this version. The JDK tarball can still be downloaded from OpenJDK archives and configured. To install OpeJDK 10 follow the steps below:

Download the tarball

wget https://download.java.net/java/GA/jdk10/10.0.2/19aef61b38124481863b1413dce1855f/13/openjdk-10.0.2_linux-x64_bin.tar.gz

Unpack tar

tar -xvf openjdk-10.0.2_linux-x64_bin.tar.gz

Move the extracted folder to /usr/lib/jdk

sudo mkdir -p /usr/lib/jdk
sudo mv jdk-10.0.2 /usr/lib/jdk

Update alternatives

 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jdk/jdk-10.0.2/bin/java" 1
 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jdk/jdk-10.0.2/bin/javac" 1

Configure

sudo update-alternatives --config java
sudo update-alternatives --config javac

Verify the version

$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment 18.3 (build 10.0.2+13)
OpenJDK 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)


Issues with EDAC: filesystem remounts as read only

Here is what I finally did(in case someone ever gets this issue) : Live boot with USB. Unmount all file systems. Use fsck.ext4 on the known error some file system(/dev/sda3) for me. Use ntfsfix on NTFS file system. Reboot. This does not solve the EDAC error. I read an Intel blog that suggested something about ECC but failed to find that in my BIOS settings.


I suspect that you have an HP laptop and not an Acer. Let's remove the acer_wmi module and see if the soft block is resolved.

sudo modprobe -r acer-wmi
sudo rfkill unblock all

Now is your wireless working? If so, let's blacklist acer-wmi:

sudo -i
echo "blacklist acer-wmi"  >>  /etc/modprobe.d/blacklist.conf
exit

Now, let's install newer firmware:

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.158_all.deb
sudo dpkg -i linux-firmware*.deb

Reboot and your wireless should be working correctly.

EXPLANATION: Laptops need a small helper module to translate key presses into action; in your case, to turn on the wireless. Your HP laptop incorrectly loaded both hp-wmi and acer-wmi. Your symptom was this:

  The second entry (1, if you are counting =P ) was "acer-wireless" and
  was soft blocked (but not hardblocked).

I suggested that you unload the module, sudo modprobe -r acer-wmi (-r for 'remove') and, if your wireless was working, to blacklist the module so that it doesn't again incorrectly reload on reboot.

The improved firmware, while probably helpful, had nothing to do with the soft-block.


Install the device driver package:

sudo apt-get install firmware-b43-installer

If already installed, reinstall it:

sudo apt-get --purge autoremove firmware-b43-installer && sudo apt-get install firmware-b43-installer


Simply create an Ubuntu bootable USB stick (see : How to create a bootable USB
stick on Windows)

Launch the installation by booting on the USB stick and simply select :

Erase Ubuntu 14.04 and reinstall.

on the allocate drive space step.


I think it makes a lot of sense to leave the biggest drive for data, though it's unfortunate you can't successfully install on your 750G drive. Perhaps you should open a bug for this with the model numbers and everything?

As for how to setup your system to use the 160G HD for Ubuntu and the 750G for data, have you already installed? Assuming the install is already done and Ubuntu boots properly; you can simply mount the 750G drive in Ubuntu and use it normally to keep data files. It should be detected and visible in nautilus, as such:

If it doesn't appear there, you may need to do a bit more like see if it's detected in the Disk Utility (System->Administration->Disk Utility), and possibly format it if it's not already holding your data.

Once your disk works properly and can be mounted from Nautilus, you can add it to mount points by editing /etc/fstab (see https://help.ubuntu.com/community/MountingWindowsPartitions for a good howto with details). From there, you could do things like mounting directories from your data drive to a directory under /home/your user/Music, for example, or creating links from these directories into one of the data directories in your home folder.


How to configure Ubuntu to utilize more available RAM

You can not get Ubuntu use more RAM that it is needed for the system and applications. Actually you do not need so much RAM, unless you use virtual machines or some specific applications.

You can utilize your RAM to create temporary partitions. That may speed up your system.

Look at this answer for guides.


How can I add a new character to an existing keyboard?

As Gunnar Hjalmarsson pointed out in the comments, xkb understands Unicode codepoints as well as named characters.

I replaced the final sigma key with this:

key <AD02> { [                 U03DD,          U03DC ] }; // ϝ Ϝ

And after a reboot, everything works as expected!


how to merge many folders and keep theirs contents sorted?

Use find -exec:

mkdir directory;
find folder* -type f -name "*.jpg" \
  -exec sh -c 'mv "$1" directory/$(dirname "$1")_$(basename "$1")' find-sh {} \;

Before:

.
├── directory
├── folder1
│   ├── image1
│   ├── image2
│   └── image3
└── folder2
    ├── image1
    ├── image2
    └── image3

After:

.
├── directory
│   ├── folder1_image1.jpg
│   ├── folder1_image2.jpg
│   ├── folder1_image3.jpg
│   ├── folder2_image1.jpg
│   ├── folder2_image2.jpg
│   └── folder2_image3.jpg
├── folder1
└── folder2

This has the obvious limitation that it is not working for e.g. subdir1/folder and subdir2/folder.


unable to install any software or updates in UBUNTU 13.04

I think you have not updated your system which you can do it by typing the command sudo apt-get update

Then you can install anything like VLC, or cheese etc using the command like sudo apt-get install vim vlc cheese ubuntu-restricted-extras


gpg: no valid OpenPGP data found while installing avro by Add key

First open up Terminal and run the following commands serially-

1. cd ~/Desktop

2. wget "https://github.com/ugcoder/avro/releases/download/v2.0/avro_2.0-1_all.deb"

2. sudo dpkg -i avro_2.0-1_all.deb

3. sudo apt-get install -fy (now if you see any dependency error, then also run the third command)

Avro should be installed on your system by now.

Now go to Settings -> Language Support
Check whether ibus is selected as the default input method.

From Terminal restart ibus by typing

  ibus restart

Again go to Settings -> Keyboard -> Text Entry
Click on the plus(+) Button
Search by Avro name
Click Bengali(Avro Phonetic) -> Add

Now Enjoy Avro as the the input source.


Startup Disk Creator creates USB in UEFI or legacy mode?

Do I need to reinstall Windows?

No

  preparing another Ubuntu USB bootable in UEFI mode and reinstalling Ubuntu will solve this problem (will the Ubuntu installed in UEFI mode sees the installed Windows?)

Yes, unless you make the mistake of deleting windows during installing. Do make backups of personal files ;)

  is there a safe way to make legacy installed Ubuntu into UEFI without reinstalling it?

Technically yes.

  just curious, Ubuntu bootable USB stick is the same for UEFI or legacy, it's just the BIOS install method differs, in other words, the same USB stick can be used for UEFI and legacy, it's just the install method chosen during installation that differs.

The difference between the installer being UEFI or legacy is the presence of

/sys/firmware/efi/

on the installer. Remove it and it will boot legacy. Adding it should also be possible but you then need to find the correct files. But it will be easier to just recreate the installer. A method is described here: How to change ubuntu install from legacy to uefi


After ending in the same situation after upgrading our AD DC to Ubuntu 18.04, I stumbled over the question. During research for other problems, I stumbled upon this nice guide to install Samba as AD DC on Ubuntu 18.04

What he did to resolve the resolve.conf issue preventing to startup Samba as AD DC (the blocked port 53) is to disable systemd-resolve completely. I will test this approach for now. This are the relevant steps to achive it:

~]$ sudo systemctl stop systemd-resolved
~]$ sudo systemctl disable systemd-resolved
~]$ sudo unlink /etc/resolv.conf
~]$ sudo nano /etc/resolv.conf
nameserver 192.168.122.70
search ad.example.com
~]$ sudo reboot

I hope this helps somebody.


You have to fix grub-boot loader properly, so you don't have to type command every time you boot system.

Try the boot repair CD or boot repair tool. Boot with this CD and let repair the program your grub. https://help.ubuntu.com/community/Boot-Repair


Need iptables rule to block web traffic from eth0

To block dest ports 80,443 out of eth0, you need this OUTPUT rule:

iptables -A OUTPUT -o eth0 -p tcp -m multiport --dports 80,443 -j DROP

If the connection originates from a device other than the firewall (i.e. if you have client using firewall as router), then you'll need to also include a FORWARD rule to block that traffic as well. You can copy the above rule and replace OUTPUT with FORWARD to accomplish that.

BEGIN EDIT

Please note that depending on your routing table, outbound web connections to the Internet may still go out of eth0, in which case all outbound web connections will be dropped. AFAIK there is no iptables rule to overwrite routing table definitions.. perhaps somebody else could shed some light on this?

END EDIT

In regards to your "only ssh into eth0" rule, use the following:

iptables -A INPUT -i eth0 -p tcp ! --dport 22 -j DROP

This will drop any connection that is not tcp/22 coming into eth0.

Hope this helps.


Perhaps use the second method, but make sure to use the started network-manager event and then add a line with pre-start exec sleep 2.


Any BIM (Building Information Manager) in linux?

Bricscad by bricsys. Currently version : Bricscad V16.  You need to get a full (platinum) version of it to get the BIM module. BRICSCAD as such for long time is a viable replacement and clone in Autocad. It saves to DWG that is compatibile with Autocad. Platinum version is circa £800 or £200 per year. You can test it for 30 days free. It is supported on Ubuntu (16.04 and 14.04),  Fedora and perhaps something more. Testing it on Mint I found problems that are absent in ubuntu.
Please see BricsysTV and search for BricsCAD BIM videos.
I am confident that that is what you look for.

I found that IFC import and export works, but not great in my view. More of us will get Bricscad with BIM - more viable tool it will become - obviously.

Aha - same license allows you to use the software on Linux, Windows and Mac. (great way for some to deep toes into linux - I think).


shell script + mutt: mutt terminating while loop

Mutt goes into interactive mode after sending an Email, this breaks you out of the loop add < /dev/null at the end of your mutt request

Example:

/usr/bin/mutt -s "Your file" -a $MAILTO -- $MAILTO < /dev/null


Being on Wifi could be an issue; however, I upgraded from 13.10 to 14.04 on my wifi.
It did take a very long time (near an hour) to do the upgrade with most of the time spent in downloading the packages.


ar -t someCompiled.a

Shows what is in the archive.


12.04LTS - Can't connect to wireless or wifi

Please hook up the ethernet cable. Open a terminal and do:

sudo modprobe b44

Your ethernet should now be working. Then do:

sudo apt-get remove --purge bcmwl-kernel-source

If it is not installed, that's fine, just proceed:

sudo apt-get update
sudo apt-get install firmware-b43-lpphy-installer

Detach the ethernet, reboot and both devices should now be working.


Where to find MSSQL ODBC driver .so file?

According to this link: http://www.unixodbc.org/doc/FreeTDS.html, it might be:

  /usr/local/freetds/lib/libtdsodbc.so

Another possibility is:

  /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so

This is for 64-bits architecture.

Once you found the right place, update the /etc/odbcinst.ini to reflect the changes.


How to change username in Connect to server?

Even though it is an old post, I just had the same problem so I will write my solution.
I deleted the related password keyring from "Passwords and Keys" on Ubuntu 18.04. Then I restarted the computer and this time it asked the password again, and putting the right username, domain and password, I could connect to the server.


Why is my terminal prompt showing as a very long command that I ran last night?

Having inspected .bashrc more closely, I determined that the cause didn't lie with that, but actually with Oh-My-Zsh.
I'm still unsure exactly what went wrong, but I removed and reinstalled Oh-My-Zsh and all appeared to be well again.
One thing I noticed after reinstallation was that the contents of .zshrc were doubled in the same file (as if the contents had been copied and then pasted into the same document on a new line).  As such, I deleted the uppermost one, saved changes then ran:
source ~/.zshrc
and my prompt returned to normal!
I then changed the theme from the default one:
ZSH_THEME="agnoster"
and my prompt is now precisely how I had it before the error.
If you wish to take the same route as I did, then make a backup of your aliases as they will be lost when uninstalling and reinstalling.  Then once you have reinstalled, simply copy and paste the aliases from your backed-up file, run source ~/.zshrc and your aliases should be ready to go as they were before.


Try pinging your IP. Does the IP actually exist? (It didn't when I tried and you getting no response whatsoever suggests your IP may have changed).
Maybe your router needs to be rebooted for the settings to take effect?
Maybe your ISP blocks port 22. In that case try forwarding your internal port 22 to another external port and then use ssh deadman@<your IP>:<port>

Tip: You shouldn't publicly mention your WAN-facing IP-address. You'll just invite less friendly folks to try and break in.

If you are not sure whether your ISP blocks a certain port, you might want to test that by visiting the site grc.com. Once there find their service called "Shields Up!". That lets you test your router and they also have a port probe showing you which ports are open/closed/stealthed. If port 22 shows closed or stealthed while it is being forwarded it's likely being blocked somewhere upstream. Try a higher portnumber (>10 000)


How to remove package (sendmail) for which I aborted the installation?

aptitude can help with removing packages that were only partially installed applications.
 sudo apt-get install aptitude
sudo aptitude purge

All packages that are no longer depended upon will be removed.


How can I get *ALL* the info for available packages in apt at once?

One easy answer to your question is to use dpkg instead of apt. apt will happily do all the logic and keep track of the versions precisely so you needn't muck around with such tedious details.

This particular command shows currently-installed versions, not available-for-upgrade (use apt list --upgradeable for that)

Try dpkg -l | grep ii | awk '{print$2, $3}' | sed 's/ /, /'

Use dpkg -l to get the complete list of packages and versions in your package database
Limit the output by showing only installed (ii) packages: grep ii
Use awk to print only the second and third columns with : awk '{print$2, $3}'
Insert your comma using sed: sed 's/ /, /'


How To Edit/Add/Delete/Rename Files/Folders In Ubuntu Server Using FileZilla?

Have you tried executing the command ls -l on the folder tou want to read/write on? The user you connect with might not have enough rights. This is usually the case when another user has created the files you want to access.

While ls -l lets you check who is the owner of the file/directory you want to access, to change permissions you can use chmod (more info here)

EDIT:
If you want to manage the access right to a specific folder for a single user, you will have to either:

Create the folder so that the user is the owner, and thus has all rights on it
Make sure the owner of the folder allowed the user to access it

To do that, you could for instance change the ownership of the folder and atribute it to the user. That way, you could manage access rights the way you want.
Juste type in sudo chown -R user /var/www/site1. This recursivelly (thanks to -R) attributes ownership to user.

For a bonus, you could chmod 500 /var/www/site1 so that no-one except user (and root, obviously) could read/write on the folder

NB:
The 5 used as an argument for chmod means you grant read & write permission. To grant read, write & execute permission, use 7. To grant none use 0.
The first number represent the permission for the owner, the second number represent the permission for the group, and the third represent the permission for the other users. Refer to the link provided if you need more info

NB2:
To check your ownership/permission on a file or a folder, type ls -l /my/folder, and you should get something like this :

 -rw-r--r-- 1 root root 65 Feb 11 15:08 index.html
     |         |     |
  permissions  |     |
             owner   group


Lost all sound daemons and controls, and pulseaudio does not restart

After three reboots, I removed ~/.config/pulse/default.pa. Another reboot and it works.
In /etc/pulse/default.pa, the line:
load-module module-switch-on-connect

is guarded, it wasn't in my local default.pa. My guess is that pulseaudio was trying to start what is perhaps a nonexistent module, or maybe waiting for it to load.


Unable to access “319 GB Volume”. Windows didn't shut down properly

sudo ntfs-3g -o remove_hiberfile /dev/sda3 /media/nick/426268B36268AD7B

If it does not work try:

sudo ntfsfix /dev/sda3

Then try to mount again

You may need to install some of these components like:

sudo apt-get install ntfs-3g

This could be risky but usually goes well.


Is there a package for an executable version of v8?

I am going to take the lack of answers as a no.

It is not difficult to make and install v8 from Google's SVN repo.

All you need to do is check it out and make it.

svn checkout http://v8.googlecode.com/svn/trunk/ ./v8
cd v8
make builddeps
make native

Then inside the out/native directory there will be d8 binary, I just symlinked this to my /usr/local/bin.


Complete Removal of Webstorm from Ubuntu

I had been running the fresh install using sudo rights but this time I ran it without the sudo rights and was able to install it fresh. Here instead of sudo ./webstorm.sh, I used ./webstorm.sh.


Bug in screen capture with Shutter on Ubuntu 17.10

You should be able to use the default and pre-installed screenshot application without any issue. You can launch it by running gnome-screenshot -i (interactive mode) in Terminal or simply by searching for "Screenshot" in "Activities".

If it is not installed by any chance, you can install it by running

sudo apt install gnome-screenshot

Once you've captured screenshots using this application, you should be able to open them with Shutter and edit.


1) To shutdown type the following command:

sudo poweroff

or:

sudo shutdown -h now

to reboot type:

sudo reboot

2) Edit /etc/acpi/events/powerbtn

Open terminal and type:

nano /etc/acpi/events/powerbtn

It will be something like:

# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.

# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.

# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.

event=button[ /]power
action=/etc/acpi/powerbtn.sh

To save type Ctrl + O and hit enter
To exit type Ctrl + X

Edit /etc/acpi/powerbtn.sh and add the following lines:

# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"

Save , exit and type:

sudo service acpid restart


Alt + Tab suddenly stopped working properly

Restarting the shell seems to have fixed the problem.


Raspberry Pi C++11 std::thread: pure virtual method called


Sony Walkman MP3 player not mounting in Xubuntu 11.10

Players like these have two operation modes:

MTP device (Microsoft's Media Transfer Protocol)
USB drive.

When the device is in mode MTP, it can't be accessed in mode USB; changing modes may take several seconds. MTP is broken by design while the open source libmtp effort gives a valiant fight to support flawed players and fails / succeeds / fails from release to release. (10.04 was most stable since 7.04 or so)

My experience with a NWZ-A729 and 11.10 is that it works with Gnomad2 only if you start Gnomad2 before plugging in the device. USB drive access works only if you don't start any jukebox software before plugging it in.

YMMV.


There is already something equivalent to this: by highlighting any text (not just in the terminal, but in almost any application), that text is put into the xclipboard. You can paste it by clicking the middle mouse button. If you're using a touchpad with no middle button, Ubuntu should allow you to click both buttons simultaneously to simulate a middle mouse click.

This is distinct from the ctrl+c/ctrl+v clipboard you are probably used to.


How can I bypass this fontconfig warning to edit grub successfully?

Githlar's answer removes the warning, without responding to what the warning is telling you. It's actually saying that loading from ~/.fonts.conf will be removed in the future. Hence, Githlar's solution will ignore what will break in the future. The correct thing to do is to move ~/.fonts.conf to ~/.config/fontconfig/fonts.conf . The easiest way to move this (hidden) file is using the terminal and doing

mkdir -p ~/.config/fontconfig/
mv -i ~/.fonts.conf ~/.config/fontconfig/fonts.conf

There is actually a bug report filed against the vagueness of this warning.


Well there are 2 questions:

"will Ubuntu installed on one computer work well if somehow "cloned" or "transferred" to another computer?" - the answer to this is usually YES, it works amazingly well.
"how to clone a Ubuntu installation from one machine to another, provided the second one runs Windows and I can't boot that second machine from CD/USB" (I guessed the last part from your previous question) - the answer to this one is "it might be tricky". It would be much easier to pull the hard drive out of machine which doesn't boot from CD/USB and transfer it to machine which can be booted from CD/USB


Directory using more space than expected

Answering the follow-up question, probably the easiest thing to do in these cases is to create a small ad-hoc filesystem and loop-mount it. Something like this:

$ dd if=/dev/zero of=imgdisk.img bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (537 MB) copied, 0.425628 s, 1.3 GB/s
$ du -h imgdisk.img
513M    imgdisk.img
$ mkfs.ext4 -b 2048 imgdisk.img
mke2fs 1.42.12 (29-Aug-2014)
Discarding device blocks: done
Creating filesystem with 262144 2k blocks and 32768 inodes
Filesystem UUID: 8837a733-6b75-4326-bb72-9372538653ad
Superblock backups stored on blocks:
        16384, 49152, 81920, 114688, 147456

Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

$ mkdir imgmount
$ sudo mount imgdisk.img imgmount -o loop
$ ls imgmount/
lost+found

copy the images in there (sized as it is it might be just too small for your files; make the 512 a 513 if so), umount the loop filesystem, mount it over the directory with all the images. If that works, umount it from there, delete the original images, edit /etc/fstab so it mounts the loopback filesystem in the right place, mount -a and you're set.

Edit: you can use -b 1024 instead of 2048, also.


How do I find a recent file by date created?

To search the whole filesystem (/) for

directories (-type d),
called app (-name app),
that were modified more recently than one day (i.e., 24 hours) ago (-mtime 0),

...Use:

find / -name app -type d -mtime 0

Source: man find.

In particular see the explanation of the -mtime flag and the "find $HOME -mtime 0" example:

  [T]o match -mtime 0, a file will have to have a modification in the past which is less than 24 hours ago.

(Thus the time in days since the file was modified is rounded down to the nearest integer for purposes of being matched by -mtime.)

Creation is considered a form of modification for the purpose of file timestamps, so this will work even if the file's contents weren't altered after it was created. It will also match folders with modification timestamps in the last day that were created earlier, but you probably don't have many such folders whose exact name is app.

When a file was created is not typically stored in the filesystem. But the time at which its metadata were last changed (e.g., name/location, ownership, permissions) is stored. If you prefer to go by that to when the file's contents were modified, use -ctime in place of -mtime:

find / -name app -type d -ctime 0

For both -mtime and -ctime, the original creation of the file qualifies as a modification / status change.


What does wq_busy=1 indicate in a failure to suspend?

wq_busy is apparently the kernel's variable name for the busy
flag on a workqueue.  Why it was stuck at true for some workqueue
on my machine is unclear, because the problem went away while I
was trying to diagnose it.  In case it's useful for someone in
the future, I had done the following:

Repeatedly until all applications were closed:

Close an application.
Attempt, unsuccessfully, to suspend.

Disable networking.
Attempt, unsuccessfully, to suspend.
Reboot (intending to get a clean process list; I was going to progressively disable things in hopes that a non-critical process was the culprit).
Attempt, unexpectedly successfully, to suspend.
Re-enable networking.
Attempt, again successfully, to suspend.

So, strictly based on observations, and not with any understanding of
the problem, I would guess that the following is a workaround or fix:

Disable networking.
Reboot.
Re-enable networking.


This location could not be displayed on Ubuntu 14.04

I found the solution. I formatted my USB drive on a Windows laptop and connected it to my Ubuntu laptop. It showed fine.


How do you get the website title to show up in the menu area / webpage title are in python / quickly created web browser?

Untested, but the following should work.

self.webview.connect('notify::title', self._title_changed_cb)

def _title_changed_cb(self, webview, title):
    self.set_title(webview.get_title())

You'll probably want a better title, like "%s - %s" % (title, APPNAME).

Edit: Apprently you can't use the title property directly because it's a GParamString type. Just retrieve the title from the webview.


Rebinding "Office" key combination to act as Ctrl-R or another modifier

Did you find any solution? I just bought this keyboard and keep pressing „Office” key instead of Win (which I heavily use in shortcuts…)
(my Q on SE, with photo and events report: https://unix.stackexchange.com/questions/618786/using-new-2019-microsoft-ergonomic-keyboard-how-to-map-emoji-and-office-keys )


Ubuntu software centre - accessing the installed programs

press the super button on your keyboard (the windows button) and then in the search bar search for your new installs


How to install Steam directly to flash drive?

According to this page You can download the steam tarball from here

Download this, put it on your flash drive (I'll use /media/user/flash/ for where you downloaded it)

Via terminal do

cd /media/user/flash #or put in whatever location you actually downloaded it to
tar -xf steam_latest.tar.gz
cd steam
chmod +x steam
./steam

This should bring steam up for you, according to their documentaion.

Note that this doesn't 'install' it, but gives you an executable script that you can run from the flash drive. Not sure what implications this might have


The issue with your configuration has to do with netmasking. It's a somewhat complicated subject, but the jist of it is this: the first 3 octets of an IP address on a home network (for the address 192.168.0.1, the first 3 octets are 192.168.0) are the "network" portion. The last octet is the host portion. For devices to communicate on a network, each must be on the same network portion. Even if they're directly connected by a single wire, if each is configured with a different network portion of their IPv4 address, they can't communicate. If you set your computers to something like 192.168.1.50 and 192.168.1.51, they should be able to communicate because they'll see they're on the same network.

You can change the length of the network/host portion of your netmask, but on a home network there's virtually never any reason to.

To learn more about netmasks and subnetting, see This page

In short, only mess with the last block of numbers in your IP address against what's assigned by your router, and make sure you also don't take an address that's already taken by another device.

As for assigning a static IP address, you need a few more details than just the IP address you want. You'll also need to assign the Default Gateway (the IP address of your router) and the DNS Nameservers you would like to use (this can also be your router, or an arbitrary address like 8.8.8.8 for Google's public DNS) and you'll also have to specify the netmask, which in your case should be 255.255.255.0.


How to get my bluetooth-enabled phone to pipe its audio through my Ubuntu machine?


Need ThunderBird type App for Ubuntu Touch

In my opinion Dekko is a promising candidate, although it lacks push notification right now. You may give it a try.


After installing KDE desktop only KDE login

To select different DE, all you have to do is click on the little blue down arrow, and choose the DE that you want.  See image below.


My grub bootloader appears to be severely broken, how can I repair it?

Journal recovery is generally performed automatically when required at the time of mounting the filesystem. If you would like to do it manually, you can ensure the file system is not mounted, then run e2fsck.


efibootmgr cannot launch OSX yosemite (only showing folder image with question mark)

By chance I could fix it myself. The command parameters "-o 0,80" as written in many tutorials on the net simply don't work and even more irritating efibootmgr does not complain a second about it.

The correct command is

sudo efibootmgr -o 0000,0080

Like that everything works fine.


The terminal in Ubuntu 14.04 supports profiles. In order to get a transparent terminal follow these steps:

Open a terminal
Select Profile preferences in the menu Edit
Select the Background tab
Check the Transparent background radio button
Adjust the Shade background or image background slider to your preference

You could also select Profiles in the menu Edit and create a new profile so you can easily switch between the default and the transparent background (and other settings).


Microphone not working, Sennheiser headset HD 4.40 Bluetooth, on Ubuntu 20.04

I have fixed this by unpairing ("Remove device") the headset and pairing it again.  Initially Ubuntu microphone test bar did not move at all, but I tried in an application and the mic worked, and when going back to Ubuntu sound window the mic bar was detecting sound.


dualboot ubuntu / windows - Can I compress shared NTFS drive?

I have just tried compressing my second drive (1tb nvme ssd) in windows and can confirm it was still accesible in ubuntu. :-)


why does DNS issue occur everytime i restart my ubuntu

The DNS resolution is as dumm as they come: it looks in the /etc/resolv.conf for the nameserver line. In your case it should look like this (after a reboot):

$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8

If the file looks different, the DNS information comming from the DHCP is most likley wrong (http://www.virtualbox.org/manual/ch09.html#nat_host_resolver_proxy, assuming your host also uses the 8.8.8.8 DNS).


How to install Ubuntu Server without network connection?

You need to ignore the DHCP discovery and continue with the installation. You can also press Esc and skips procedures. The mini.iso will be most likely give you problems since it's the most basic of the basics package that it includes.


Ubuntu: ethX Interface not bonded after unplugging and plugging its cable back

EDIT 2019-01-10: These instructions are for Ubuntu 16.04 and older.  I will try to update with instructions for 18.04.

In this answer, we are using active-backup bonding with a bond-primary interface set that allows for fail-over to go back to the primary when it is available.  More information can be found: https://wiki.linuxfoundation.org/networking/bonding

Bonding in Ubuntu is a different setup then as in other distros of Linux like RedHat.  I have done a few bonding configurations in Ubuntu and I will lay it out below as best as possible.

As it looks, you already have ifenslave installed, but if not, install ifenslave:

sudo apt-get install ifenslave

Next, take a look at /etc/modules and make sure it has the following lines:

loop
lp
rtc
bonding

In the /etc/network/interfaces file, set your loopback, eth1, and eth3 interfaces:

auto lo
    iface lo inet loopback

auto eth1
    iface eth1 inet manual
    bond-master bond0
    bond-primary eth1

auto eth3
    iface eth3 inet manual
    bond-master bond0

Now set your bond0 interface with active-backup for fail-over if one of the NIC connections fail:

auto bond0
    iface bond0 inet static
    address 192.168.1.39
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    bond-mode active-backup
    bond-miimon 100
    bond-slaves none

Save the changes to /etc/network/interfaces file and restart your networking service:

sudo /etc/init.d/networking restart

Now you can check your bonding setup.  Make sure that your bond0, eth1 and eth3 are correct:

sudo ethtool bond0
sudo ethtool eth1
sudo ethtool eth3

Check to see if fail-over now works by removing eth1 from bond0:

sudo ifenslave -d bond0 eth1

Check to see if you can still ping the gateway:

ping -c2 192.168.1.1

Add eth1 back to bond0:

sudo ifenslave bond0 eth1

Hope this helps!