Yes.

It has crossed the limit of CD storage, which is not desired (so it is a bug). But there is also a bug about it not being a bug.


Automatically change to nobody and nogroup after deleting a user

"Can I delete a user/group and all files owned by that user/group to be owned by nouser/nogroup (automatically)?"
I would say: yes, you can: by the way you propose yourself, a script that removes the user and/or group, and then takes action as you like (change uid/gid, or delete the siles) on the files owned by this user/group. find can recursively locate files having a specific uid and gid.
If you are looking for an option build into the standard tools for user management: it is possible to automatically have the user's home folder removed when removing the user. If you want something else, you need to automate it through a script.


After upgrading to Windows 10 on Acer Aspire-AXC-605, I could not boot into ubuntu
 and F2 key would not bring up bios screen so could not boot from USB ubuntu live.

I had to use Esc key while booting this brought up a "Diagnose PC" screen and I
 could boot USB from there.


.What to do when Ubuntu 14.04 LTS curl doesn't support a CA certificate, even though it's valid

Curling this works for me, but here's 2 things you could do (taken from man curl):

In Firefox, select Options, then Advanced, then the Encryption tab, View Certificates. This opens the Certificate Manager, where you can Export. Be sure to select PEM for the "Save as type".

Let's say you put your certificate in ~/cert.pem, you would then use:

curl -E ~/cert.pem https://api.the-newshub.com/api/1/topics/trending/top

Many older SSL-servers have problems with SSLv3 or TLS, which newer versions of OpenSSL etc use, therefore it is sometimes useful to specify what SSL-version curl should use. Use -3, -2 or -1 to specify that exact SSL version to use (for SSLv3, SSLv2 or TLSv1 respectively):

curl -2 https://api.the-newshub.com/api/1/topics/trending/top

Otherwise, curl will first attempt to use v3 and then v2.

NOTE: your site seems to use SSLv3 according to its certificate, so this second idea is probably useless.
(source, about 10.04) I've been having the same trouble and after poking around a bit found that you can download a package of CA-certs ready for curl on ubuntu directly from the curl dev site.

cd /etc/ssl/certs
sudo wget http://curl.haxx.se/ca/cacert.pem

Now curl uses the most up-to-date bundle and you're good to go.


I don't understand this problem when I try to mount my NTFS data partition in Ubuntu 14.04, please help me mount it

According to your error message, I think you didn't shutdown your Windows OS. Since your system is having dual boot OS, you need to shutdown it properly(i.e. neither hibernate nor sleep). Open your Windows OS and shutdown it properly, then again open your Ubuntu, your problem will be solved.!


How to setup Squid Proxy Server on ubuntu 12.04 LTS?

Basically, Squid is a proxy server and web cache daemon.  It has a wide variety of uses, from speeding up a web server by caching repeated requests; to caching web, DNS and other computer network lookups for a group of people sharing network resources; to aiding security by filtering traffic.

A very great step by step tutorial could be find here http://microstutorial.com/setting-up-squid-proxy-server-in-ubuntu-12-04-lts/

In short steps are:

Step 1

Setup an Ubuntu box with 2 Lan* interfaces

Step 2

Configuring the LAN interfaces as Automatic (DHCP) or Manual.

Step 3

update software list

sudo  apt-get update

Step 4

Install squid

sudo apt-get install squid

Step 5

configuration

For full details of these steps refer to link provided above.


External disk mount again after safe removal

I have had this problem with some large USB drives as well.  I use Nautilus to "Safely Remove."  A few seconds later, it mounts itself again.  I use Nautilus again to "safely Remove."  After the 2nd time, it powers down and stays powered down.


Ubuntu 20.04 freezes minutes after login

The issue has been solved by updating the linux kernel to 5.9. Thanks to everyone for your answers!


How to install/run World Of Warcraft on Ubuntu 12.04.1?

You have to install Wine. Then you install play on Linux, and then install your game. You will find this things in Ubuntu software center.


When you recovered Windows, you used the Windows bootloader which doesn't recognise linux. therefore you need to reinstall grub.

You will need an liveDVD or liveUSB Ubuntu or even better the Ubuntu-Secure-Remix disk.

If you opt for a standard Ubuntu live medium, you have to install Boot-Repair.

In Ubuntu live, open a terminal and run: sudo add-apt-repository ppa:yannubuntu/boot-repair followed by sudo apt-get update
Install Boot-repair with sudo apt-get install -y boot-repair
Run Boot repair and follow instructions.


How to check/display the inklevel of a printer (Canon MG5150)?

After doing some serious digging I have found the solution to this for Canon Printers.  Mine is an MP495 but these two command are worth documenting.

cngpig -P
cngpigmonmp495 **This one gives me my ink levels***  It is installed in the /usr/bin directory.


hdparm is probably what you want, it can control basically any aspect of your hard drives that you need. Invoked as hdparm -S [value] /dev/hda can control time until disk is put into standby/idle mode, and you should use the man page to check out other options you may find useful.

I use rsync to manage all my incremental backups over ssh to a remote server, and can thoroughly recommend it to you for backup purposes.


Ubuntu-Gnome 15.04: USB 3.0 HDD very slow

I upgraded now to the new Ubuntu 15.10 and Gnome-Shell 3.18. Then I tested again with Nautilus and USB 3. Now the speed is fine: over 100MB/sec.


How to connect to localhost of headless server (for Syncthing)

It worked with ssh pi@raspberrypi.local -L 8384:127.0.0.1:8384 -N.
Also, what is maybe interesting to know: The process can be put into background with
syncthing &

It will still print output to the console but by canceling this output with CTRL-C the background process will not be canceled and is still doing fine.


Forwarding ports with iptables not working?

Try adding -i eth0 to your PREROUTING entry and -o eth0 to your POSTROUTING entry and executing sudo iptables -A FORWARD -i eth1 -j ACCEPT


libssl-1.0.0 and libcrypto-1.0.0 32-bit under Ubuntu 19.10 64-bit

OpenSSL 1.0.0 is unsupported for 4 years. If you really need such old and long obsolete libraries you need to download the source and compile it yourself - https://www.openssl.org/source/old/1.0.0/.

Note also that running such an old and unsupported software stack might introduce security issues. And it might even be that the application no longer works: The world has moved to using TLS 1.2 and TLS 1.3 and OpenSSL 1.0.0. has no support for these. The best you can get is TLS 1.0.


How to make an executable file appear in search

To have your program show up in the Unity Dash (pressing the Super key), it needs a launcher (.desktop) file in the proper place.

So create a file named TeamSpeak.desktop in the directory ~/.local/share/applications containing the following:

  [Desktop Entry]
  Name=TeamSpeak
  Comment=Voice communications system for games
  Exec=/full/path/to/program
  Terminal=false
  Type=Application

After you do that, it should show up in the Dash.


How would I store desktop icon placement?

You can backup the panel copying the folder ~/.gconf/apps/panel or (a better way)

gconftool --dump /apps/panel > /backupfolder/panelbackup.xml

And to restore:

gconftool --load /backupfolder/panelbackup.xml

The icons are at ~/Desktop/. You can backup like this:

cp ~/*.desktop /backupfolder/

If you don't want to miss any configuration, you can empty trash and the backup all the user home folder.


Ubuntu 16.04 set up with google online account but no drive folder in nautilus

This is the solution that worked for me (source):

Install GNOME Control Center (GNOME System Settings) and GNOME Online Accounts:

sudo apt-get install gnome-control-center gnome-online-accounts

Open the GNOME Online Accounts:

gnome-control-center online-accounts

From there add your Google account and make sure "Files" is enabled:

You should now be able to access your Google Drive files from the Files (Nautilus) app which appears alongside other mounted drives and, in my case, is named with my email address.


Physical Network attach to specific LXD Container

Example of assigning a static address to a container once you have disabled the static address and DHCP on the device.
lxc stop container
lxc config device add contianer eth0 nic nictype=routed parent= enp2s0 ipv4.address= X.X.X.252
lxc start container

Then once its started..
lxc exec container -- ip a show dev eth0
2: eth0@if27: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet X.X.X.252/32 brd 255.255.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 blah..

You'll then need to setup the default correct default route..


Install a new GTK theme engine, the default one for ubuntu is gtk2-engines-murrine

sudo apt-get install gtk2-engines-murrine

If it's already installed try reinstalling it.

Also check that you have the light-themes package installed

If they're both installed and a reinstall does nothing, you have to select theme using the Appearance menu item or install the gtk-chtheme package that will give you more control over what is being used by GTK


Click on the networking icon in the top right hand corner,and choose the Create New Wireless Network option.  Enter a name for your network, choose the security you require and set up a security key (if security is enabled).  Hit Create and your wireless network will be create and begin broadcasting.

This process depends on your card supporting the ad-hoc connection mode.


Can't able to open any folder in the Ubuntu 14.04

check permission of directory using

ls -l

and change the permission using chmod.

for more on permissions with chmod issue the command man chmod


What is the keyboard shortcut to minimise a window to launcher in unity?

I prefer the default bindings instead of needing customised ones:

Alt+Space then pressing N to Minimize
Alt+Space then pressing X to Maximize/Un-maximize

This also happens to be the default in Microsoft Windows.
Unfortunately it's different for GNOME Shell. There you press:

Super+Up to Maximize
Super+Down to Un-maximize
Alt+Space + Space to minimize a menu


shell script storing run time with python

time is many things. There's the external /usr/bin/time GNU program. There's the bash keyword time.

$ type -a time
time is a shell keyword
time is /usr/bin/time

When you run time … in an interactive shell, you'd be typically using bash, and so the time keyword takes effect.

When you run time … in a script using /bin/sh, the shell used (dash)
 doesn't have time as a keyword, and the external time command is called.

To get the output you want, call the external time command with the -p option:

-p, --portability
      Use the following format string, for conformance with POSIX
      standard 1003.2:
                real %e
                user %U
                sys %S

The external command is also more friendly. Since it isn't a keyword, you don't need to do the wrap-in-{ … }-for-redirection trick to get the output in a file. There's an option for that:

-o FILE, --output=FILE
      Write the resource use statistics to FILE instead of to the
      standard error stream.  By default, this overwrites the file,
      destroying the file's previous contents.  This option is useful
      for collecting information on interactive programs and programs
      that produce output on the standard error stream.

The output is also far more customizable, making it easier for processing later on. With bash's time, the options provided in TIMEFORMAT are very limited.


How to correctly create a virtual file system?

Hmmm... the correct way to do it is:

dd if=/dev/zero of=./filesyst bs=10485760 count=1
sudo losetup /dev/loop0 ./filesyst
sudo mkfs.ext3 /dev/loop0
sudo mount /dev/loop0 /tmp/lalla

and it works:

(0)romano-asus:~/tmp% ls -l /tmp/lalla
total 12
drwx------ 2 root root 12288 2011-12-20 22:21 lost+found
(0)romano-asus:~/tmp% df /tmp/lalla
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/loop0                9911      1121      8278  12% /tmp/lalla

You should check the first loop device free with losetup -f.


How to copy usb stick with multiple partitions?

you can clone it with dd.

assuming your flash drive is /dev/sbd and you are cloning it to a second flash drive, /dev/sdc

sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=notrunc,noerror

You can save a compressed image to your harddrive

sudo dd if=/dev/sdb ibs=4096 conv=noerror | gzip > your_image.gz

Then use the image to make a new flash

dd if=your_image.gz | gunzip | dd of=/dev/sdc


Upgraded to 12.04 LTS now computer is unusable

I suspect that if your touchpad does not work and plugging a mouse is useless, and above all, you cannot enter commands in the terminal, your only viable option is to get a Live CD (perhaps with Ubuntu 11.10, now that 12.04 seems to be so incompatible with your hardware) and reinstall Ubuntu.

While you're at it, don't forget to backup your important data. When you enter the live session, you will have the option to copy your files elsewhere.

It would even be helpful if you could copy the system logs in

/var/log/

lightdm
upstart
dist-upgrade
apt

~/.xsession-errors

If there is important information in these, you should report bugs so your issues get addressed when possible.

After you have saved your data, just install Ubuntu as you normally would.

Let this answer be your last resort.


I Installed alsa control, un-mute everything and sound was ok.

sudo apt-get install alsamixergui


To place a rule at a specific spot in the rule set for a specific chain, give it a rule number. Meaning, instead of:

sudo iptables -s 10.1.10.201 -j DROP

which is missing both a chain (or table) designation and a rule number, do this:

sudo iptables I INPUT 1 -s 10.1.10.201 -j DROP

I just used INPUT as an example, you do whatever it is you are trying to do. However, I specified to insert the rule as the first rule.

Please read the man pages for iptables. For example this is an extract:

 -I, --insert chain [rulenum] rule-specification
              Insert one or more rules in the selected chain as the given rule number.  So, if the rule number is 1, the rule or rules are inserted at the head of the chain.  This  is  also  the
              default if no rule number is specified.


problem after installing Ubuntu 13.04 on windows 8

Which Linux distro did you installed? And which version?

If you installed server edition, it has not desktop environment


Developing gnome shell extensions with eclipse as a IDE

I suggest you the reading of GnomeShell Extensions Step By Step Tutorial that explains how to configure Eclipse and gives a tutorial to develop GnomeShell extensions.


xargs command, which is created for running a command with arguments that are read from stdin has a --arg-file parameter, which allows reading arguments from file. In combination with-L1 flag, it will read your arguments file line by line, and for each line execute the command.
Here's an example:

$ cat args.txt
one two three
four file six

$ xargs -L1 --arg-file=args.txt echo
one two three
four file six

Replace echo with your script.

Alternatively, you can always redirect the file to be read by xargs from stdin stream like so:

$ xargs -L1  echo < args.txt
one two three
four file six


Show File, Edit etc menu in title bar in XFCE

It doesn't appear that what you want is possible, at least in Xubuntu 16.04.

Under Settings > Window Manager, what can be done is clear:


The disk drive for /boot/efi is not ready yet or not present

It's unclear if the solution for which you're asking (how to convert primary partitions into extended partitions) is the appropriate one for your system, or if it's even possible on your system.

The /boot/efi mount point is generally used by the EFI System Partition (ESP), which in turn is used only on EFI-based computers. Thus, it sounds as if you've probably got an EFI-based computer, although that's not 100% certain based on the evidence you've presented.

As oldfred says in his comment to your question, EFI-based computers generally boot with GPT disks, and GPT doesn't have the primary/extended/logical partition types; there are just 128 (by default) partitions on a disk. Thus, if you've got a GPT disk, it's impossible to convert from primary to logical partitions, since your existing partitions are neither primary nor logical (although they're more like MBR primary partitions in most respects), and GPT doesn't support logical partitions.

OTOH, if the /boot/efi issue is a red herring, you might have an MBR disk. In this case, you can use FixParts, which is installed as part of the gdisk package in Ubuntu, to convert from primary to logical, with some caveats, as described on the FixParts Web page. Even in this case, though, it's not clear that converting primary to logical or vice-versa is really the best thing to do; a better description of the problem is necessary to offer advice.

If you want a better answer, you'll have to post more information. The output of sudo parted -l, as requested by oldfred, is a starting point. Still more information can be summarized by the Boot Info Script; run it and post a link to the RESULTS.txt file that it generates. Also, please describe precisely where you are and what's going wrong -- for instance, have you successfully installed Kubuntu but are having problems booting it, or is the installer failing, or are you able to boot but just get an error message during the boot process?


Getting network manager on the gnome panel

If you see "device not managed" then probably your NIC is indeed not managed from network-manager.

Please check the following file:

/etc/NetworkManager/nm-system-settings.conf

What does the following section say ?:

[ifupdown]
managed=?

if it's set to "false", switch it to "true", save the file and run a:

"sudo service network-manager restart"


Why do I have a gnomekeyring.IOError when doing "quickly share"?

This is happening because launchpadlib (the client side library for accessing launchpad) stores its credentials in the gnome keyring. quickly uses launchpadlib to access Launchpad.

See also this bug: https://bugs.launchpad.net/python-keyring/+bug/796873

The best workaround for this is to make sure you are running inside of an environment where the GNOME keyring is available.


LTSP thin client - Mount local hard drive

You have to set the options LOCALDEV = true and LOCALDEV_DENY_INTERNAL_DISKS = false in your lts.conf which you will usually find under /var/lib/tftpboot/ltsp/"arch"/lts.conf. Replace "arch" with the client architecture you want to modify (in most cases one of i386 or amd64). See also http://wiki.ltsp.org/wiki/Tips_and_Tricks/Devices


Have you run:

sudo update-initramfs -u

After changing a plymouth script you must run the above in order for it to take affect during boot - otherwise you only see it on shutdown.


How to create a multiboot USB that allows persistence, non-persistence and data partition?

Ubuntu 19.04 and earlier
MultiBootUSB is a cross platform software written in Python which allows you to install multiple live Linux distros on a USB disk non-destructively and has an option to uninstall distros. From the MultiBootUSB Guide:

MultiBootUSB allows you to do the following

Install multiple live Linux distros and other operating systems to a USB disk and make it bootable without erasing existing data.
Uninstall installed OSs later.
Write ISO images directly to a USB disk (GUI for Linux dd command).
Boot ISO images and USB disks directly without rebooting your system using QEMU.
Boot USB on UEFI/EFI systems through GRUB2 bootloader support (limited support).

Adding a persistence file

Only distros based on Debian, Ubuntu and Fedora are supported.

Once you complete Step 2
(Choose an ISO), MultiBootUSB will detect the type of distro and a
persistence size chooser slider will appear below the MultiBootUSB tab.

The maximum size of the persistence storage space is also automatically calculated
according to the USB disk filesystem.

Choose the desired persistence size by dragging the slider to the right and follow Step
3 (Click the ↓ Install distro button)
as usual.

Once the Linux distro is installed successfully, you will find the additional persistence file under the distro install directory.

Reboot your system to choose your distro and a persistence menu will be added automatically to the menu entries.


XPS 14z : connect an external vga screen via mini display port

I have made the external monitor running with 14z.
I use mini display port with VGA adapter.
In my opinion you cannot wake it with Intel card.
I use bumblebee.
In previous versions there were some EDID problems, so I have only managed 640x480.
Today I have got higher resolutions as well.
Trying to wake HDMI kills my system (it stops responding).

The main clues are:

The monitor is named DFP-1
There is a problem with common
    mouse for both screens.
use 'Option  "FlatPanelProperties"   "Scaling = Native"' in Screen section.

Bumblebee starts second X server using display :8.
Because of that run for example "DISPLAY=:8 optirun glxspheres" to test the monitor.
It means that you may need separate window manager for the display and you may have to provide or share mouse and keyboard.

(1) Per default system tries to use DFP-0 and the picture shows nowhere. I guess it should be responsible for HDMI port, but I didn't manage to run it as mentioned.

(2) My solution for the "mouse problem" is to use "void mouse" on display ":8" and than connect to it using VNC. In that manner I get a small window on my main laptop screen showing what is on the monitor.

(3) Nvidia tries to force some high resolution like 1920x1200 on the monitor causing smaller ones to show "incorrect frequency" message. One solution is to run
nvidia-settings go to "GPU 0 > DFP-1" section and unmark "Force Full GPU Scaling". It may be also necessary to set another frequency. The problem is if the monitor shows "incorrect frequency" message how to run nvidia-settings on it. The other solution is this 'Option  "FlatPanelProperties" "Scaling = Native"' in Screen section.

I hope this short description will help you run external monitor.
Some additional information.
My system is Ubuntu 10.04.4 LTS.
The /etc/bumblebee/xorg.conf.nvidia content is:

Section "DRI"
        Mode 0666
EndSection

Section "ServerLayout"
    Identifier "Layout0"
    Option "AutoAddDevices" "false"
    Screen    "Screen0"
    InputDevice "void-mouse"
    Option         "Xinerama" "0"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
EndSection

Section "Files"
    ModulePath "/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules"
EndSection

Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName      "GeForce GT 520M"
    BusID "01:00:0"
    Option "NoLogo" "true"
#    Option "UseEDID" "false"
    Option "UseEDID" "true"
    Option         "IgnoreEDID"
#    Option "ConnectedMonitor" "DFP"
    Option "ConnectedMonitor" "DFP-1"
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device    "Device1"
    DefaultDepth    24
#    Monitor    "CRT"
    Monitor    "DFP-1"
    Option         "TwinView" "0"
    Option         "metamodes" "1024x768_70 +0+0; 1024x768 +0+0; 800x600 +0+0; 1024x768_85 +0+0"
    Option      "FlatPanelProperties" "Scaling = Native"
    SubSection "Display"
#        Virtual    1366 768
#        Virtual    1024 768
    Depth   24
#   Modes   "640x480"
#   Modes   "800x600"
#   Modes   "1024x768" "800x600"
        Modes      "1920x1200" "1920x1080" "1680x1050" "1600x1200" "1440x900" "1280x1024" "1366x768" "1360x768" "1280x800" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Extensions"
        Option "Composite" "Enable"
EndSection

Section "Monitor"
    Identifier    "DFP-1"
    VendorName    "Unknown"
    ModelName     "Unknown"
#    HorizSync  28.0 - 73.0
    HorizSync   31.0 - 82.0
#    VertRefresh    43.0 - 72.0
    VertRefresh 48.0 - 85.0
    Option        "DPMS"
    Modeline       "1920x1200"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
    Modeline       "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
    Modeline       "1680x1050"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
    Modeline       "1600x1200"  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync
    Modeline       "1440x900"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
    Modeline       "1366x768"   85.25  1366 1440 1576 1784  768 771 781 798 -hsync +vsync
    Modeline       "1280x800"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync
    Modeline       "1280x1024"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync

# Linia wygenerowana przez nvidia-settings
ModeLine       "1024x768" 94.500 1024 1072 1168 1376 768 769 772 808 +hsync +vsync

EndSection

Section "InputDevice"
  Identifier "void-mouse"
  Driver "void"
EndSection


It is safe to kill update-manager, but after that please run the following:

sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update && sudo apt-get upgrade


Ubuntu attempt to read or write outside of disk, entering rescue mode

I'm also experiencing this with 14.10. It seems to be the latest kernel i believe that is causing this as prior to updating it everything was functioning correctly. Also did a reinstall of 14.04 and everything worked as intended then did live upgrade to 14.10 and issue reappears. Another thing I noticed was that when I fdisk the drive that Ubuntu is installed on it complaons of being past sector limit or something along those lines for the extended partition. I'm about to do another 14.04 reinstall and see if issue reespears.


Cannot select correct input device in Davinci Resolve?

As of May 2021, it is not working. There is a discussion on the official forum. BlackMagic Design staff acknowledged that problem exists. But still not any update on information when it will be fixed.


Unable to correct problems, you have held broken packages

That particular error message may indicate that you have held packages, but it may also indicate a different problem.
You can get a list of actual held packages with:
dpkg --get-selections | grep hold

If there are none, or none look related, then it's probably something else.  Check carefully the output of the command you were trying when you got the error message, as there may be other clues in the full output from that command, aside from the error message.
Another method of troubleshooting may be to use aptitude rather than apt-get to try to install your package:
sudo aptitude install <packagename>

Aptitude will give up less easily and will attempt to find solutions that may involve modifying other packages.  It may give you more explanation of the problem and options for fixing it.
Occasionally aptitude will be too eager to remove or downgrade large numbers of packages to satisfy your request, in which case retrying with -f changes its priorities and helps it come up with solutions that involve removing/downgrading fewer packages even if it means not all changes you requested can go ahead:
sudo aptitude -f install <packagename>

Edit: this is an old answer, and since it was written a newer APT front end, simply titled apt, has become the preferred command line APT interface for end-users.  It is still not the Swiss army knife that aptitude is, but it's a bit more human-oriented than apt-get. I haven't taken the time to investigate how it would help in the above scenario, but it's worth using.


Ubuntu Desktop 20.04 - Netplan - Can't ping gateway, but DNS resolves

If ping works when you have the address assigned by DHCP, but not when you assign an address statically, this sounds like your DHCP server is coordinating with your switches to filter traffic and only machines that have been granted DHCP leases are allowed to send certain traffic.
There's nothing fundamentally wrong with your netplan config, it looks like it just isn't compatible with your network.


Removing all other window manager/desktop environments?

To get rid of this bloat and just keep ubuntu-desktop try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
apt-get update
apt-get install --reinstall aptitude deborphan
aptitude remove '?and(?reverse-depends(lubuntu),?not(?reverse-depends(?exact-name(ubuntu-desktop))))'
aptitude remove '?and(?reverse-depends(gnome),?not(?reverse-depends(?exact-name(ubuntu-desktop))))'
apt-get install --reinstall ubuntu-desktop
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get autoremove
apt-get clean
reboot


Unfortunately the correct answer doesn't solve your problem.

Currently X.org is not able to split graphics to two different video cards. A long time ago there used to be a way to do this using Xinerama, however only the proprietary drivers still support Xinerama. IOW, you can't do this if one of the GPUs is Intel Graphics.

Now, you can get this to work if you use two NVIDIA cards using -nvidia and Xinerama (or perhaps TwinView). And maybe two AMD cards using -fglrx.

However, my recommendation would be to buy a new NVIDIA card that has two outputs on it, and connect your two monitors to that. Then you can run either -nvidia or -nouveau and it should give good performance and be stable.

Of course, it would be nice if the configuration you're attempting worked. There are some efforts upstream to rearchitect X to allow it, but this is still in the development stages and may be a year or two. But if you are looking for something to spend some time on as a hobby and aren't afraid of breaking your system, you could experiment with the upstream codebases and supply them with feedback

As told in the question earlier


Remote desktop from Windows Mobile to Ubuntu

Alright, on the first try I didn't found anything that works with Windows CE 5.2, just old bunch of software that didn't work for me.

But yesterday, I give it a try again and I found EfonVNC Server, it works great with any machine equipped with VNC Client that wants to connect it, Android, Linux, Windows. But EfonVNC require version of Windows CE 5.0 or above it.

Here is the EfonVNC VNC Server download

For older versions of Windows CE unfortunately I cannot help cause I'm not able to test it. But if you find something by yourself, you may want to share with here to help someone else in future.

Hope my answer will be helpful for someone. Regards.


Why is my svnmerge showing up as not installed?

It looks like the command-not-found data is stale. I get the same message on 13.10, but looking at the subversion-tools changelog, we see the command was removed in version 1.7.5-1.

https://launchpad.net/ubuntu/+source/subversion/1.7.5-1ubuntu1

  * Upstream no longer ships contrib in tarball:
    - Remove contrib-license-audit
    - subversion-tools now Recommends: svn2cl
    - Ship svn-clean, svn-fast-backup, svn_apply_autoprops,
      svn_load_dirs, commit-email.pl in debian/contrib
    - Don't ship svnmerge.py, it has outlived its usefulness
    - Delete patches/{svn2cl-*,svn-clean-ignore,commit-email}
    - Overhaul debian/copyright


At the present moment, there is a temporary solution which comes in the form of a gnome-shell-extension. You can read more about the extension here. However, this issue of missing notification is something that is being worked on for the upcoming gnome 3.2 update which will be released in September 28th 2011.


How to paste code into vim without super indenting issue

When you open up vim type the following

:set paste

and when before you exit

:set nopaste

You might also check the top answer in this post


Synaptic installation problem Ubuntu 12.10?

Synaptic is available in the universe repository. If you're getting this error, than it means you haven't enable it.

To enable it, open Software & Updates,
and check the box beside Community-maintained free and open-source software (universe)

Then sudo apt-get update  sudo apt-get install synaptic


Getting the names of users on apt-get logs

No. For apt-get the one installing applications was the user root since he's the only one that can write on the entire filesystem. You must check instead the auth.log file for the specific users that ran apt-get using sudo. If they use sudo to login as root, then there's nothing much you can do.


How to get the Gnome Activities overview to only open when clicked on

Using the Activities Configuration. You can disable the hot corner and there are plenty of other settings.

Open the URL via Firefox browser to install the extension directly.

After that, open the Tweak Tool for the configuration


Lubuntu 18.04 keyring (dbus) not working

At least the last error should be fixed by following the steps explained on this page: nm-applet running, indicator not in taskbar- new behavior in 16.04
For me (on Lubuntu 18.04) just installing the package at-spi2-core sufficed to get rid of this problem.

Seahorse is indeed made for Nautilus, but I found on https://forum.antergos.com/topic/1132/the-file-manager-pcmanfm-doesn-t-remember-passwords/5 the suggestion to install lxpolkit (or try polkit-gnome) and to make it start up automatically.
You can do this by using the non-GUI approach that is explained here: https://askubuntu.com/a/48327/575262
It states that you should add a .desktop file to ~/.config/autostart with a content like:

[Desktop Entry]
Type=Application
Name=<Name of application as displayed>
Exec=<command to execute>
Icon=<full path to icon>
Comment=<optional comments>
X-GNOME-Autostart-enabled=true

Does this work in your case?


Why can't I set the correct icon for my launcher?

Never mind.  It never occurred to me that I could click on the icon when viewing the properties dialog to change the icon path.


How can I start gnome-terminal at a particular directory?

Use

gnome-terminal --working-directory=/path/to/dir


Control tab not registering in emacs -nw

This is no doubt because your keyboard does not send C-<tab> to Emacs in terminal mode. That's normal. What you can do instead is bind a similar key, such as C-c TAB (or any other key sequence that your terminal recognizes) to the same command.


How to add route after connecting to openvpn server?

On OpenVPN you can accomplish this in three ways:

Server pushes the route to ALL the clients.  You do this by putting the route command in the server.conf file, on the server
Server pushes the route to a single client.  You do this by putting the route command in a client-specific file in what's known as the client-config folder on the server
Client sets up the route.  You do this by putting the route into your client config (ovpn on windows) file

In all three cases it looks like this:

route [routeaddress] [netmask]

i.e.

route 172.92.3.0 255.255.0.0

Consult this page for details.

http://openvpn.net/index.php/open-source/documentation/howto.html


MAAS - UI has only Nodes link and nodes stuck in commissioning status - maas in vagrant box

I found out the issue.
The vagrant box I used for installing MAAS was precise32.box.
I used another 64-bit box ubuntu/trusty64 and installed maas services.

All MAAS links appeared in web UI and I could import images too.

To setup nodes, we should do the following:

Create a new network without dhcp enabled.
Configure the maas dhcp to point to the above subnet.
On creating the nodes, enable the above network.

This way, the nodes can get IPs from MAAS-DHCP service.


What's the difference between GDM and LightDM?

Both LightDM and GDM (GNOME Display Manager) are login managers.
They both provide graphical login capabilities (the GUI with the list of the system's users) as well as remote logins using the XDMCP protocol.

Ubuntu is supposed to officially replace GDM in favor of the lighter and more easily customizable LightDM

You can have both of them installed (or add even more, like KDM), but only one will be used at any time.

The default can be selected by running:

sudo dpkg-reconfigure gdm (if gdm is already installed)

More information on LightDM can be found on the Ubuntu wiki.


13.10 64bit install problem: Kernel Panic - not syncing

Try to make a new live CD.
  It could help to make a boot-Stick (maybe your cd-writer is not ok).

What is the name of your laptop?

Anyway 32-bit works everytime. You could try this.

Your last chance would be a modified live-cd.

Is it working after trying this even not, stay at 12.04.


I made the mistake of trying to edit the conf I found in the /etc/mosquitto directory. The answer is to leave that .conf alone and to go to the conf.d directory and to create your custom directory there.


Using the 'make' plugin for software which does not specify an 'install' target

You did nothing wrong. If you take a look at the the Makefile, you can see that it does not define at all, how and where to install the resulting binary.

I played around with the make plugin's make-parameters option, but couldn't get it to ignore the missing install target. To fix this there are two options:

Post a PR for https://github.com/mtoyoda/sl where you add an install target and use your fork for building in the meantime.
Add a custom plugin which just runs make and not make install.


The easiest way to do this is by using playonlinux. You can get it from Ubuntu software center. Then, open it, click install, in search enter picasa, and select it, and then click install. Follow the very simple instructions and play on linux will do the rest(set wineprefix, download the right version of wine, and you can even select to download pcasa automatically). For me, this is the easiest way. If you need further support, fell free to comment this post and ask.


How to boot from a live USB stick in a virtual machine

With Qemu

sudo qemu-system-x86_64 -m 512 -enable-kvm -hda /dev/sdb

Qemu alternatives

Another option I've found, with QEMU (not sure this is the most effective way to launch it):

$ lsusb
Bus 002 Device 006: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick

With this I've got the bus and device numbers ready to pass to the qemu command to launch my live system from the USB stick:

sudo qemu-system-x86_64 -m 512 -enable-kvm -usb -device usb-host,hostbus=2,hostaddr=6

Alternatively, this also worked for me:

sudo qemu-system-x86_64 -m 512 -enable-kvm -usb -usbdevice disk:/dev/sdb

With Virtualbox

(TBD)


As you already know, Google (probably hates Linux users) does not provide a Linux client for its awesome Google Drive cloud storage service. But don't worry, as the open source community has its geniuses like Lorenzo Breda, who developed an unofficial Google Drive client for Linux, called Grive.

Adding the PPA Repository

This is an easy step, which requires you to open a Terminal by searching it in the Unity Dash or by pressing the CTRL+ALT+T key combination, and to paste the following code in the Terminal window:

sudo apt-add-repository ppa:thefanclub/grive-tools

Hit the Enter key, type your password when asked, and hit Enter again when asked if you want to add the repository. Do not close the Terminal.

Installing Grive Tools and Grive

Now, paste the following commands in the Terminal window, one by one, hitting enter after each one:

sudo apt-get update
sudo apt-get install -y grive-tools

Once installed, search the application on the Unity Dash by typing Grive, and open it. The application will ask for your password, so insert it and click OK, and then it will start to download and configure the latest version of the Grive application, which will take some time.


Try force restart the laptop. Hold the power off button on your laptop till the screen goes off and on. Also try unplugging and plug-in back your laptop battery if it's possible.


In which countries would Ubuntu TV be made available?

No one knows. There is barely any information out there except for the introductory video at http://www.ubuntu.com/tv. The product was unveiled at CES 2012 today, and Canonical is still looking for manufacturers of the product. The company said it would reach stores sometime during 2012, and we really won't know until then. However, Canonical will probably put the product in stores worldwide in an effort to promote Ubuntu for the desktop. Here are some pictures of the TV from Canonical's website, even though the actual final product interface may vary because of manufacturer customization and other factors:


The question mark in wifi shows no internet access from a given network.
Does the question mark always appear when you log in?


I've also tried this, it didn't work for me.
iTunes was rated as Silver on the Winehq website, with few known reports of it working properly. http://appdb.winehq.org/objectManager.php?sClass=application&iId=1347
I use banshee, it's simple, lightweight, and all around in my opinion, it's better than iTunes. It also allows you to Sync media to your iPod or iPhone, but with limited functionality.
Hope this helps. :)


Vagrant: VirtualBox: Headless Ubuntu: How to set up bridged networking?

If you're using Vagrant, then you should be able to specify the bridged network option in your Vagrantfile, rather than trying to configure it by hand on the VM itself.

Here's a sample Vagrantfile (note line #8) - just change your config.vm.network line to be:

config.vm.network :bridged

See the docs for reference.

The Vagrantfile just goes at the root of your project - the same folder from where you run vagrant up and such.

Also, you can ssh into the box using vagrant ssh - you don't need to specify the IP address and port - vagrant will take its config file (Vagrantfile - see a theme here? - most everything having to do with the basic VM config goes in the Vagrantfile), and it will take care of creating, configuring, connecting, and tearing down the VM.


It seems that these devices are supported natively on Linux with the acx-mac80211 driver. Here's a list of the devices this driver supports, from  https://wiki.debian.org/acx, yours is one of them.

PCI: 104C:8400 Texas Instruments ACX 100 22Mbps Wireless Interface
PCI: 104C:8401 Texas Instruments ACX 100 22Mbps Wireless Interface
PCI: 104C:9066 Texas Instruments ACX 111 54Mbps Wireless Interface
USB: 0451:60C5 Texas Instruments, Inc. (Device name unknown)
USB: 057C:5601 AVM GmbH AVM Fritz!WLAN [Texas Instruments TNETW1450]
USB: 057C:6201 AVM GmbH AVM Fritz!WLAN v1.1 [Texas Instruments TNETW1450]
USB: 07B8:B21A AboCom Systems Inc WUG2400 802.11g Wireless Adapter [Texas Instruments TNETW1450]
USB: 0CDE:0017 Z-Com (Device name unknown)
USB: 2001:3B00 D-Link Corp. AirPlus DWL-120+ Wireless Adapter [Texas Instruments ACX100USB]
USB: 2001:3B01 D-Link Corp. WLAN Boot Device

Install the driver by:

Installing the firmware for it. For the "AVM Fritz!WLAN v1.1", you can do that by running

sudo wget -P /lib/firmware http://acx100.erley.org/fw/acx111_2.4.0.70-USB/tiacx111usbc1B

Other devices supported by this driver require other firmware, look in the link above for specifics. This may be all you need to do, as it seems that newer version of Ubuntu already come with the driver. If It doesn't work after installing the firmware and rebooting, you'll need the driver.
If WiFi still does not work, install the actual driver itself. Text copied from the Debian wiki page for reference:

  Checkout the http://acx100.git.sourceforge.net/git/gitweb.cgi?p=acx100/acx-mac80211|acx-mac80211
  repository:

  git clone git://git.code.sf.net/p/acx100/acx-mac80211 acx100-acx-mac80211
  Move the repository directory to /usr/src and rename:

  su
  mv acx100-acx-mac80211 /usr/src/acx-mac80211-git
  Add acx-mac80211-git to the tree for building and installing:

  dkms add -m acx-mac80211 -v git
  Build and install the acx-mac80211 module:

  dkms build -m acx-mac80211 -v git
  dkms install -m acx-mac80211 -v git
  Load the module:

  modprobe acx-mac80211
  If necessary, connect the device to your system.

If this works correctly, you should not need to use ndiswrapper at all.


Moving an encrypted home folder to a new drive

What I would do:

Be sure to have no user logged when doing the copy, so that encrypted directories are not mounted.
Copy the whole /home/, as there is a /home/.ecryptfs which I think contains all the encrypted data.
As root, run rsync -av /home/ /other/disk/home/ in order to preserve all file attributes.


How do I install .pkg file intended for MAC?

No, right now there is no working OS X emulator for Linux, however you can use some Windows programs with Wine.


connecting ubuntu with 7 via network cable

This link will help u go through these references :

What is the easiest method to share files between Windows and Ubuntu?

How to setup a LAN between Ubuntu and Windows

Sharing Internet


Today I got an update and graphics are not working right on Ubuntu 16.04

Got the same rendering issues on Core i3-5005U with kernel 4.13.0-43. Getting back to kernel 4.13.0-41 solved the problem.


No, it's not an error. It just means that your filesystem has been marked "clean", meaning no issues.

No issues at all with that message, in fact it's good to see it.


file error /boot/grub/i386-pc/normal.mod trying to repair boot, live dvd install probleml

Your GRUB configuration is messed up. Because it appears that Boot Repair created this problem, it's unlikely that it will be able to fix it, except perhaps by selecting advanced options to undo some of its changes. Basically, though, repairing GRUB at this point requires a fair amount of expertise.

A simpler approach might be the following:

On another computer, download the USB flash drive or CD-R image of my rEFInd boot manager.
Prepare the USB flash drive or CD-R with rEFInd.
Use the USB flash drive or CD-R to boot your troubled computer. (You may need to select a firmware option to boot from the external medium. Unfortunately, these options vary greatly from one computer to another.) With any luck, rEFInd will show options to boot both Windows and Linux. (There may be multiple Linux options.)
Try both the Windows and Linux options.
If both Windows and Linux boot, install the rEFInd .deb package in Ubuntu.

If you have problems with rEFInd, then your recovery will require more diagnosis. To that end, you should run the Boot Info Script and post a link to the RESULTS.txt file that it generates. That script's output will provide details of your configuration that should help in getting things working.


Unable to change brightness on Sony EH18FA

It seems like a Ubuntu brightness controler's bug.

You can use alternative Brightness Controller or xrandr in command line.


Poor performance using Proprietary AMD drivers in wine, is there a way to improve it?

Ok, firts of all, Wine is a gamble. It won't magically allows you run any Windows software without problems. That said, you should check the WineHQ page for each game to know the status:

Medal of Honor: Allied Assault: Version 1.1 runs apparently fine with a minor tweak while 1.11 do not. For 1.1 running fine you should use either, a script or run the commands yourself MESA_EXTENSION_MAX_YEAR=2002 wine MOHAA.exe. Here is the script:

#!/bin/sh
cd ~/MyWinePrefixes/.MoH/path/to/your/game.exe
#Run with GL extensions disabled/nVidia card
WINEPREFIX=~/MyWinePrefixes/.MoH __GL_ExtensionStringVersion=17700 wine ./MOHAA.EXE

(The scripts needs to be tweaked to fit your exact system)

You will need wine version 1.5.7 for the fixes to work. Read the comments here.
Ether Saga Online: This is the Online version, I don't know if it deffers from yours but is the only one in the WineHQ. Version 504 seems to work flawlesssy in Wine 1.2.3 (but Arch Linux), while 510 had problems with the WASD keys, but apparently works without glitches in windowed mode.
Heroes Of Three Kingdoms: This application was not tested since June of 2010. Feel free to suscribe to WineHQ and submit your tests. Remember that perfomance is not important for the tests, but that the applications installs and run.
Mortal Kombat Komplete Edition: Here you were unlucky. The latest test in Aug 15, 2013, reports the game works fine and fast even with High video Detail out the box for wine 1.7.0. But seems that it is a know problem and has it fix, thanks to Mike Vaughn:

  If the video settings are left unchanged after being auto-configured, the game will fail to start until its setting files (drive_c/users/[user]/Application Data/MKKE) are deleted. What's weird is the automatic configuration set everything to minimum settings; I had to adjust them to medium/high before I was able to start the game again without resetting its configuration. This isn't a huge deal for me since my somewhat modest system can still handle it without noticeable frame loss, but it might be an issue for others.

You heard the man.
King Of Fighters XIII: Only old (Jan 02 2012) test results that placed the game with Platinium (the highest rank). Feel free to update the tests.

As you should have understood by now, Wine needs some tweaks for some games run flawlessy or they won't run at all. The tests are meant for each part of the software while the perfomance is placed at last over functionality. The community behind WineHQ is proactive and they test everything they get hold for each version of wine so bugs introduced in one version will be fixed in the other. Read the wine help page, to know how you can help to get better perfomance with Windows applications (and games).


I had pasted a line in the Microk8s configuration that was supposed to enable it to work by changing iptables settings. Except it called iptables instead of /bin/iptables, which didn’t work for me. Fixed. Now, why this prevented (for example) from uninstalling the snap is beyond me.


burg returns to default after running "sudo update-burg"

If you're really sure that you place the icons in the right place, I'll still consider that you might have been wrong :

Images should be PNG 32bit
Images need to go in /boot/burg/themes/nameoftheme/folderwrittenintheme/nameofimage.png
You need to select the theme when you are in the real Burg, with F2
You might need proper rights for the images, check with ls -l

Once your images are in the right folder, that the theme works (it appears to be working with burg-emu, so it should be good), run sudo update-burg

Reboot your computer and select the theme with F2 on Burg. You might want to select another theme than switch again to the right one.

Don't forget that, as grub, Burg could be installed on multiples partitions, so make sure that when you update Burg, it's updated for the partition that boots.

You image works perfectly for me : see the crappy picture I just took

You set a new class "gnome", from "ubuntu". But when you run sudo update-burg, the burg.cfg file is changed. You need to re-edit it manually, or specify your change in burg.d configurations files.


There seems to be a patch.

http://mikelward.com/news/2008/11/terminal-that-tells-you-when-its-done.html

The patch is here but it's against revision 3145 from the SVN.

You might want to consider alternatives such as the Terminator or urxvt.
I had gnome-terminal as my default terminal too, but I'm trying to configure terminator to accomplish the same task.

It doesn't have a friendly GUI to make changes in profiles, but it has a friendly text file for the configuration.


I found my answer here.  I just needed to add -p (for position) and coordinates to the line that called the image.

${image ~/Conky/Logo_Linux_Mint.png -s 80x60 -f 86400}

became

${image ~/Conky/Logo_Linux_Mint.png -p 170,40 -s 80x60 -f 86400}


Outdated MySQL WorkBench packages are buggy, upgrade is disallowed

It looks like MySQL isn't supporting anything before Xenial anymore for MySQL workbench, which suggests it might not be possible to make it work on just 14.04.  (Yet another reason to upgrade...)

In my comments above, I neglected to take into account I have a Xenial chroot on my computer, which is where some things run from (like MySQL workbench, albeit not as kindly as I'd like it to).  Because of this, I forgot that I don't have a 'pure' 14.04 install.  Given this, however, I believe it's not possible to get the latest "generally available" prebuilt binaries.

There is a source code tarball available from MySQL, you may wish to download and compile MySQL workbench latest from source to see if that works, but I can't provide any guarantees it'll work.


stuck on login screen after Kubuntu 19 -> 20 upgrade

If anything goes wrong during a release upgrade, one can repair it by hitting the CTRL+ALT+FN3 keys and logging into a command line shell. First ensure you are connected to the internet with ip -a, then proceeded with the upgrade using standard apt commands. EG apt update and apt upgrade. This may fail at first. Just follow any directions given in the error message and keep going until you are back to your desktop.
I hope this will save someone some time in the future.


Make a custom iso of current Ubuntu set up

If you are using a non-uefi system then you can use remastersys to do so. It should be noted that remastersys is a dead project.

Install Remastersys 3.0.4-2 On Ubuntu 13.04 - Desktop X86-64:

http://postbin.djun.net/pages/article5.php


Ubuntu 16.04 bluetooth not working (Dell XPS13)

I was troubleshooting this for a while on my Dell XPS 13 with Ubuntu 16.04, and will tell you the shortened version of some answers in these steps that worked for me. Bluetooth Broadcom 43142 isn't working

List your usb devices

lsusb

shows this on my laptop for Bluetooth

Bus 002 Device 002: ID 0a5c:216f Broadcom Corp. BCM20702A0 Bluetooth

Go to the following Github page and download the already converted driver that matches your ID: https://github.com/winterheart/broadcom-bt-firmware/tree/master/brcm (mine was BCM20702A1-0a5c-216f.hcd) Click on the file name, then click the Download button.

Copy your file to /lib/firmware/brcm, for example:

sudo cp BCM20702A1-0a5c-216f.hcd /lib/firmware/brcm

Reboot.

That is the simplest method for what it took to get my bluetooth working correctly on Dell XPS 13, headsets and other devices all were able to connect after that.


How would I go about uninstall my current Nvidia drivers and reinstalling them?

Well, the nvidia driver is just a single package consisting of Xorg drivers and a kernel module which is built during the post installation process.

To remove the default nvidia package, run:

sudo apt-get purge nvidia-current

Updated nvidia drivers are available under nvidia-current-updates. If you have it installed, uninstall that one as well. Now, you might need to unload the driver. If sudo rmmod nivida does not work ("FATAL: Module nvidia is use"), reboot.

Continue by installing the package again:

sudo apt-get install nvidia-current

At this point, you might need to do another reboot (or re-login) to load the new drivers.


1.Open a terminal and type this code :
gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'scp-dbus-service', 'goldendict']"

2.And then check enable system tray icon:

3.Log out and log in.

This worked for me.


bundle command gives permission denied - /var/lib/gems How to overcome?

Add this to the bottom of .bashrc

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM


This is solution, that has worked for me:
sudo rmmod psmouse
sudo modprobe psmouse proto=imps

or
sudo modprobe -r psmouse && sudo modprobe psmouse proto=imps

To make it permanent,
edit:
sudo gedit /etc/modprobe.d/options

and add line:
options psmouse proto=imps

NOTE:
This fix will make the touchpad be recognized as a mouse instead, which might remove some features specific to touchpads such as disable while typing.
Hope this helps.


pdfcrop (v0.4b) relies on pdfedit & will silently do nothing if pdfedit is not installed.  You can install pdfedit as:

sudo apt-get install pdfedit


From the terminal issue the following commands.

mkdir Windows

sudo mount -o ro /dev/sdb1 Windows

Note: some questions are too simple to require a long drawn out answer. My apologies if this ends up in the Low Quality Answer queue.


What are the proper steps to be taken before a dual boot?

You should provide details on the actual specs of your computer.
As @K7AAY mentioned, you need at least two different drives.
Most OS boot loaders are stored in the MBR by default, which is kind of a space in a storage drive, so if you install first Ubuntu (using the default settings) and then Windows, Windows overwrites Ubuntu's boot system. If you install first Windows and then Ubuntu, Ubuntu could overwrite Windows' boot system, or, at least be unreachable without modifying the boot order settings in your UEFI settings.

So, if you have two different drives, you don't have to worry about any of this. At most, you would only need to set a default HDD to boot from in your UEFI settings, and I recommend setting Ubuntu's as default, since it's possible to boot Windows using grub, but not the other way around (again, speaking about defaults).

In other words, let's say you already have two physical storage drives, like a Samsung SSD and a Seagate HDD.
You'd install Windows in the Seagate drive and Ubuntu in the Samsung one.
At this point, Ubuntu should recognize you've already installed Windows in your computer, adding it as a boot option to grub.
Then, finally, you would have to go to UEFI/BIOS and look for the boot order settings, setting the Samsung drive as the first option and you're good to go.


How to set default program to open specific file type

For some of the system default apps you can go to System Settings/Details e.g.:

Or for more advanced you can open Ubuntu-Tweak and go to Admins section and click on File Type Manager:

To install Ubuntu-Tweak:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

P.S.

I see you edited a bit your question you want Gimp to open all your photos or pics right? Using my workaround please do mention also that if you change from Image Viewer to Gimp it doesn't mean that you will open all photos with Gimp because this setting serves for .jpg/.jpeg and Gimp for example saves its work in .png portable network graphics by default and the default for .png will be Image Viewer anyways :) so to change that you need to configure all photos formats using Ubuntu-Tweak so they open with Gimp when you double click on them.


Alienware 17R3 + Ubuntu 17.10: headphones does not work properly

A similar problem I had a year ago was fixed automaticly by "PulseAudio Volume Control". I don't remember which hardware that laptop had, but I see the same symptoms.

Try:

$ sudo apt-get install pavucontrol

then just

$ pavucontrol


Actually not a real one-liner:

find . -mindepth 2 -maxdepth 2 -print -exec mv --backup=numbered -t . '{}' + \
&& find . -mindepth 1 -maxdepth 1 -type d -empty -delete

First find everything in the subfolder with exact depth 2 and move it to .. Then find and delete all empty folders in the current directory.

if you have files/folders with the same name they will be renamed with original_filename.~n~ (n meaning 1, 2, 3 ...).
Note that will delete all empty subfolders.

Update:

I'm not happy with the solution above. Too many caveats and problems. For example when --backup=numbered renames the parent folder of your folder you want to move ...

mkdir -p test/test
mv test/test . --backup=numbered
mv: cannot move 'test/test' to './test': No such file or directory

Better use a temporary directory to avoid problems. The temp dir should be on the same file system to avoid the need to copy the files.

tmpdir=$(mktemp -d)
find . -mindepth 2 -maxdepth 2 -print -exec mv -b -t $tmpdir '{}' +
find . -mindepth 1 -maxdepth 1 -type d -empty -delete
mv -b $tmpdir/* .
rm $tmpdir


You could use the MAC address of eth0 (assuming this exists on each machine). You can get that on its own (there may be a simpler way) with this:

ifconfig eth0 | grep HWaddr | awk '{ print $NF}' | sed 's/://g'

That will give you something like 6cf04954aaaa.

These are supposed to be unique but they're not always. If all your network hardware comes from the same manufacturer, you might find some crossover, so be careful with it.

Failing that, you could generate your own unique string and store it in /etc/computer-id (or another path of your choosing).

uuidgen -r

Will generate something as random as possible eg: 52a85807-35fe-409e-8983-87eb58c02ece

uuidgen -t

Uses time and eth0's MAC to make something like: eb8280dc-b5ec-11e0-90dd-6cf04954aaaa

Both are fairly unique but, as with anything random, there is always the possibility of a clash. Keep a central list to avoid problems like this.


I finally solved my issue. I went with the sudo nautilus in

etc/modprobe.d/blacklist-bcm43.conf

And then I deleted some lines of drivers that were blacklisted. In my case I removed the b43, b43firmware and b44. One reboot later, I got my wired connection back.
But still don't know why bcmwl blacklisted these drivers ...


How to create a triple-boot with Win 10, Ubuntu 18.04 & Tails (or any other highly recommended distro)?

I'm not sure about tails, but otherwise it's fairly simple. I run Windows 7, Arch Linux and Ubuntu on a PC.

Just make sure you select either BIOS or UEFI installation for all three and don't mix.

You should prepare your hard drive by partitioning it first. Personally I'd use Linux for that. Your preference will do.

Then start by installing Windows. Next the "other" distro. Use Ubuntu last. Grub usually recognizes all operating systems and puts them in the boot manager.

I had no troubles whatsoever. So, according to my experience, that should be the easiest way to get there.


Suggest a decent distro for an 10+ year old laptop

Hi there and welcome to Linux!
Researching your specific issue it turns out that Lubuntu doesn't work well with your laptp's processor! It takes a bit of patching and you are a novice user so I don't want to complicate things for you.
I highly recommend you take the RAM upgrade, and I will advice you to use Xubuntu or Linux Mint with mate interface.

The link for Xubuntu is:
And Linux mint 18 32 bit is

Take a look at the screenshots, and if you have a decent connection download them both and see which one you like from the live session.

Good luck.


I installed the kernel 3.1.2-030102-generic and the update manager proposes me to install the 3.0.0-14 kernel

I'm assuming you have installed v3.1 of the kernel manually and you have not changed your GRUB_DEFAULT value in your Grub2 file (/etc/default/grub.cfg)

In that case, you can let Update Manager to continually update the 3.0 kernel.  You will always boot into your later kernel.

Its best to leave the system continually updating the v3.0 kernel.  Two reasons:

You'll have an alternative boot kernel if for whatever reason, the kernel 3.1 stops working (e.g. you could have installed a new kernel module etc)
You can occasionally test to see if the latest updates fixes your original issue that forced you to use the v3.1 kernel in the first place...

Note - you should be managing your kernel 3.1 updates on a regular basis to get the latest security updates and stability updates etc.


no route to host when mounting CIFS share

Found the solution.
Forgot to install cifs-utils and keyutils on the second machine.
so just doing
sudo apt-get install keyutils

sudo apt-get install cifs-utils

fixed it


Is there any website for ranking ubuntu softwares?

Go to ubuntu software center.Click on the particular software you want to install,you will see rating and user reviews there(Though the reviews are not available for all softwares there).


Nevermind, after looking through and disabling all my startup applications, I isolated the problem to the jupiter applet.  Turns out that the "restore resolution" functionality uses xrandr and the script that was calling it failed to change the resolution properly.

I disabled this functionality and now I no longer have the problem.


Problem saving document remotely after ubuntu 19.04

That's what I found at ask.libreoffice.org, thanks erAck

  Probably tdf#123472, likely fixed in LibreOffice 6.2.4

And that version is scheduled for Week 21 , May 20, 2019 - May 26, 2019

This is the first time I'll be really watching how quickly ubuntu repos are updated. Not being able to save texts and spreadsheets to smb shares - phew!


Audio interface: how to use it as a sound card

I have an 18i20. I had the same problem and finally got it to work. It looks like most folks on the internet know how to get it to work under Linux, except myself of course.

I have to plug in directly in a USB 2.0 port. Via a USB3.0 Hub jack won't start with the 18i20.
In jack, click Setup -> Interface and then the > button, you should see hw:USB (hw:3)
Exit jack and reboot.
Start jack.
You should now see the input and output channels in the jack Audio tab.

To get the audio on your headphones from your Focus-Rite:

Install the Jack-PulseAudio bridge.
Go to Ubuntu audio settings and select Pulse audio as your output device. Maybe you need to reboot here again and start jack once again.
If you want to hear your browser audio on your PC output, then just select the
on-board audio again in Ubuntu Settings.

Note that the 18i20 (and perhaps the 2i2) do not have an ALSA mixer, so the 18i20 won't show controls in the alsamixer tool.


I messed the file bash.bashrc ubuntu 14.04

With:

export PATH= $PATH:usr/java/bin/ ;
export JAVA_HOME= $JAVA_HOME:usr/java/bin/java/

bash: export: ':usr/java/bin/java/': not a valid identifier; Sure you left a space between JAVA_HOME= and $JAVA_HOME:usr/java/bin/java/, so export supposes that
$JAVA_HOME:usr/java/bin/java/ is a second variable. Same case for 1st line too.

export: usage: export [-fn] [name[=value] ...] or export -p

... means it does support/expect multiple variables with name[=value] format.

Remove spaces (after =) and semicolon ; and add / before usr/ (as it should be a full path):

export PATH=$PATH:/usr/java/bin/
export JAVA_HOME=$JAVA_HOME:/usr/java/bin/java/

If still facing errors, take  l0b0's advice  (Problem with installing Android developer files on Eclipse - messed up something with .bashrc) to get new default .bashrc file, then try again adding those two lines.


Ubuntu make and its other uses including use in installation of android studio

This is the description from the package ubuntu-make

  Ubuntu Make is a command line tool which allows you to download the
  latest version of popular developer tools on your installation,
  installing it along side all the required dependencies (which will only
  ask for root access if you don't have all the required dependencies
  installed already), enable multi-arch on your system if you are on a
  64 bit machine, integrate it with the Unity launcher… Basically, one
  command to get your system ready to develop with! `

Here is the documentation

  Do I have to install it every time or is it a file to be downloaded
  only once

Only once it is a package to install other packages, once you install it, it will stay, use this command to install it

sudo apt-get install ubuntu-developer-tools-center

  What other developer tools can we download from Ubuntu make?

Some examples included

Android studio

umake android

The eclipse IDE

umake ide eclipse

The other packages you can install with this:

arduino, idea, rubymine, pycharm, phpstorm, pycharm-educational, idea-ultimate, pycharm-professional,webstorm


I am having problems with displaying battery percentage

In a terminal, try:
gsettings set org.gnome.desktop.interface show-battery-percentage true


How can I eliminate the choice between Windows and Ubuntu every time I boot?

Go to Control Panel, Add/remove programs, double click on Ubuntu

Although Wubi is well known to install Ubuntu inside Windows, it also contains a helper menu if you open an Ubuntu DVD in Windows. It does not offer to install inside Windows by default anymore.

The first option (Reboot) simply reboots the computer.
The second option does nothing (you will reboot later).

These two seemingly useless options are just to let you know that you should boot from the DVD (not use it while Windows is running).

The third option (Help me Boot) actually installs something like the normal Wubi so that you can boot the CD via the hard drive, not using BIOS functions. This is mostly unnecessary except perhaps for very old computers or users who can't get their PCs to boot from a DVD/CD. You still need to have the DVD in the drive - so it doesn't remove the need for it (can't be used with just the ISO).

Since you have Windows 8, you may have UEFI (if it came preinstalled with Windows 8) - in which case, the CD Boot helper will not work.


Welcome to AskUbuntu ;)

open up the terminal (ctrl+alt+t) and then write:

passwd

hit enter. it will ask your current and the new desired password ;)

hope that helps ;)


Dualboot install failed? Locked out of Windows

Try the boot-repair utility described here:  https://help.ubuntu.com/community/Boot-Repair

I use the 2nd option from a live CD, which is best if you have an Ubuntu Live CD handy (should be the one you installed Ubuntu with).


Postgres 12 on ubuntu 20.04 (replication checkpoint has wrong magic 539122744 instead of 307747550)

After hours and hours of research without success I got the solution by trial and errors:
Short Answer
~$ sudo chown postgres.postgres /var/lib/postgresql/12/main/global/pg_internal.init
~$ sudo rm -rf 12/main/global/pg_internal.init
~$ sudo rm -rf /var/lib/postgresql/12/main/pg_logical/replorigin_checkpoint
~$ sudo -i -u postgres
~$ /usr/lib/postgresql/12/bin/pg_ctl restart -D /var/lib/postgresql/12/main

Long answer:
First I tried to restart with the sequence below
~$ sudo -i -u postgres
~$ /usr/lib/postgresql/12/bin/pg_ctl restart -D /var/lib/postgresql/12/main

I got the following result:
pg_ctl: PID file "/var/lib/postgresql/12/main/postmaster.pid" does not exist
Is server running?
trying to start server anyway
waiting for server to start....2021-02-13 16:40:12.633 UTC [3806] LOG:  starting PostgreSQL 12.5 (Ubuntu 12.5-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
2021-02-13 16:40:12.636 UTC [3806] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-02-13 16:40:12.636 UTC [3806] LOG:  listening on IPv6 address "::", port 5432
2021-02-13 16:40:12.681 UTC [3806] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-02-13 16:40:12.824 UTC [3809] LOG:  database system was interrupted; last known up at 2021-01-07 10:56:38 UTC
2021-02-13 16:40:13.138 UTC [3809] LOG:  could not open directory "./global/pg_internal.init": Permission denied
2021-02-13 16:40:13.148 UTC [3809] LOG:  could not remove cache file "global/pg_internal.init": Is a directory
2021-02-13 16:40:13.148 UTC [3809] PANIC:  replication checkpoint has wrong magic 539122744 instead of 307747550
2021-02-13 16:40:13.38After hours and hours of research5 UTC [3806] LOG:  startup process (PID 3809) was terminated by signal 6: Aborted
2021-02-13 16:40:13.385 UTC [3806] LOG:  aborting startup due to startup process failure
2021-02-13 16:40:13.387 UTC [3806] LOG:  database system is shut down
stopped waiting
pg_ctl: could not start server
Examine the log output.

After a brief investigation, I found that the directory /var/lib/postgresql/12/main/global/pg_internal.init had the owner as root.
I change the owner:
sudo chown postgres.postgres /var/lib/postgresql/12/main/global/pg_internal.init

Then I made another attempt (First step):
sudo -i -u postgres

And the result was slightly different:
/usr/lib/postgresql/12/bin/pg_ctl restart -D /var/lib/postgresql/12/main
pg_ctl: PID file "/var/lib/postgresql/12/main/postmaster.pid" does not exist
Is server running?
trying to start server anyway
waiting for server to start....2021-02-13 16:53:26.132 UTC [4024] LOG:  starting PostgreSQL 12.5 (Ubuntu 12.5-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
2021-02-13 16:53:26.132 UTC [4024] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-02-13 16:53:26.132 UTC [4024] LOG:  listening on IPv6 address "::", port 5432
2021-02-13 16:53:26.171 UTC [4024] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-02-13 16:53:26.314 UTC [4025] LOG:  database system was interrupted; last known up at 2021-01-07 10:56:38 UTC
2021-02-13 16:53:26.615 UTC [4025] LOG:  could not remove cache file "global/pg_internal.init": Is a directory
2021-02-13 16:53:26.615 UTC [4025] PANIC:  replication checkpoint has wrong magic 539122744 instead of 307747550
2021-02-13 16:53:26.851 UTC [4024] LOG:  startup process (PID 4025) was terminated by signal 6: Aborted
2021-02-13 16:53:26.851 UTC [4024] LOG:  aborting startup due to startup process failure
2021-02-13 16:53:26.852 UTC [4024] LOG:  database system is shut down
stopped waiting
pg_ctl: could not start server
Examine the log output.

So I decided to delete the file: 12/main/global/pg_internal.init
rm -rf 12/main/global/pg_internal.init

And again I performed step 1
/usr/lib/postgresql/12/bin/pg_ctl restart -D /var/lib/postgresql/12/main
pg_ctl: PID file "/var/lib/postgresql/12/main/postmaster.pid" does not exist
Is server running?
trying to start server anyway
waiting for server to start....2021-02-13 17:00:33.310 UTC [4072] LOG:  starting PostgreSQL 12.5 (Ubuntu 12.5-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
2021-02-13 17:00:33.310 UTC [4072] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-02-13 17:00:33.310 UTC [4072] LOG:  listening on IPv6 address "::", port 5432
2021-02-13 17:00:33.348 UTC [4072] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-02-13 17:00:33.483 UTC [4073] LOG:  database system was interrupted; last known up at 2021-01-07 10:56:38 UTC
2021-02-13 17:00:33.792 UTC [4073] PANIC:  replication checkpoint has wrong magic 539122744 instead of 307747550
2021-02-13 17:00:34.030 UTC [4072] LOG:  startup process (PID 4073) was terminated by signal 6: Aborted
2021-02-13 17:00:34.030 UTC [4072] LOG:  aborting startup due to startup process failure
2021-02-13 17:00:34.031 UTC [4072] LOG:  database system is shut down
stopped waiting
pg_ctl: could not start server
Examine the log output.

So, I removed the file /var/lib/postgresql/12/main/pg_logical/replorigin_checkpoint
sudo rm -rf /var/lib/postgresql/12/main/pg_logical/replorigin_checkpoint
And again I performed step 1
/usr/lib/postgresql/12/bin/pg_ctl restart -D /var/lib/postgresql/12/main
pg_ctl: PID file "/var/lib/postgresql/12/main/postmaster.pid" does not exist
Is server running?
trying to start server anyway
waiting for server to start....2021-02-13 17:08:02.913 UTC [4186] LOG:  starting PostgreSQL 12.5 (Ubuntu 12.5-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
2021-02-13 17:08:02.913 UTC [4186] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-02-13 17:08:02.913 UTC [4186] LOG:  listening on IPv6 address "::", port 5432
2021-02-13 17:08:02.952 UTC [4186] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-02-13 17:08:03.103 UTC [4187] LOG:  database system was interrupted; last known up at 2021-01-07 10:56:38 UTC
2021-02-13 17:08:03.412 UTC [4187] LOG:  database system was not properly shut down; automatic recovery in progress
2021-02-13 17:08:03.481 UTC [4187] LOG:  redo starts at 0/2FFEC58
2021-02-13 17:08:03.481 UTC [4187] LOG:  invalid record length at 0/2FFEC90: wanted 24, got 0
2021-02-13 17:08:03.481 UTC [4187] LOG:  redo done at 0/2FFEC58
2021-02-13 17:08:03.683 UTC [4186] LOG:  database system is ready to accept connections
done
server started

Ok, after this all is recovered, the postgres instalation and data!


ubuntu *sometimes* restarts when i try to shutdown (shutdown -P now, halt, init 0)

Not sure why it would restart, but halting is not the same as powering off. However, upstart actually confused things quite a bit by powering off when one called halt. Note that this bug was fixed in Ubuntu 11.10:

https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/532366

However, I'd suspect that if halt issued an ACPI power off command, and instead ended up rebooting the machine, that sounds like maybe a kernel problem or BIOS incompatibility.


How to remove a pip package installed with sudo -h

Was as simple as the question.
pip3 uninstall virutalenv

did the job


Ubuntu 12.04 Cloud Images Hang on First Boot in Virtualbox

Have you tried running the following in the directory of your Vagrantfile after running the vagrant init but before running the vagrant up commands:

vagrant plugin install vagrant-vbguest

This worked for me, at least with the most recent Trusty Tahr cloud image.


This happened to me while dual booting with Windows 7.

A slow but effective process in my case was to use PhotoRec http://www.cgsecurity.org/wiki/PhotoRec (it recovers most file types, not just pictures).

Good luck!


How do I find the amount of free space on my hard drive?

Open System Monitor from Dash and select the Filesystems tab.

Or alternatively open a Terminal and type:

df -h


Prevent postgresql from restarting via automatic updates

With the unattended-upgrades package, you can blacklist packages you do not wish it to upgrade.

Not sure how deep down the dependency tree this goes.

See: Ubuntu: Automatic Updates

// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
        "postgresql-.*";
//      "vim";
//      "libc6";
//      "libc6-dev";
//      "libc6-i686";
};

`


As dobey said I needed opencl, but the amd-sdk versions of opencl did not seem to work for me (I was probably installing them incorrectly). Most of the opencl installs uninstall fglrx and install nvidia drivers. This is one I found on a forum that got it to work:

sudo apt-get install ocl-icd-opencl-dev

Hope it helps somebody else!


There is a program out the called "crouton".
https://lifehacker.com/how-to-install-linux-on-a-chromebook-and-unlock-its-ful-509039343
Here's where I started.

I'm running it on an ARM processor with a few problems I have yet to figure out. I've run both KDE and Gnome. Works but is a bit rough.


Does my system clock automatically sync to the hardware clock?

I think this page provides the best answer:

  2. How Linux Keeps Track of Time

  2.1 Basic Strategies

  A Linux system actually has two clocks: One is the battery powered
  "Real Time Clock" (also known as the "RTC", "CMOS clock", or "Hardware
  clock") which keeps track of time when the system is turned off but is
  not used when the system is running. The other is the "system clock"
  (sometimes called the "kernel clock" or "software clock") which is a
  software counter based on the timer interrupt. It does not exist when
  the system is not running, so it has to be initialized from the RTC
  (or some other time source) at boot time. References to "the clock" in
  the ntpd documentation refer to the system clock, not the RTC.

  The two clocks will drift at different rates, so they will gradually
  drift apart from each other, and also away from the "real" time. The
  simplest way to keep them on time is to measure their drift rates and
  apply correction factors in software. Since the RTC is only used when
  the system is not running, the correction factor is applied when the
  clock is read at boot time, using clock(8) or hwclock(8). The system
  clock is corrected by adjusting the rate at which the system time is
  advanced with each timer interrupt, using adjtimex(8).

  A crude alternative to adjtimex(8) is to have chron run clock(8) or
  hwclock(8) periodically to sync the system time to the (corrected)
  RTC. This was recommended in the clock(8) man page, and it works if
  you do it often enough that you don't cause large "jumps" in the
  system time, but adjtimex(8) is a more elegant solution. Some
  applications may complain if the time jumps backwards.

  The next step up in accuracy is to use a program like ntpd to read the
  time periodically from a network time server or radio clock, and
  continuously adjust the rate of the system clock so that the times
  always match, without causing sudden "jumps" in the system time. If
  you always have a network connection at boot time, you can ignore the
  RTC completely and use ntpdate (which comes with the ntpd package) to
  initialize the system clock from a time server-- either a local server
  on a LAN, or a remote server on the internet. But if you sometimes
  don't have a network connection, or if you need the time to be
  accurate during the boot sequence before the network is active, then
  you need to maintain the time in the RTC as well.


Changing Language at Login doesn't do anything?

If you go to the Language Support in the System Settings, you will notice that you got two tabs - Language and Regional Formats.

During your login, you selected a different language for menus and windows. However, your regional format didn't change. So for better user experience, change the settings through this Language Support.

In the Language tab, move the language that you want to the upper most. And if you want all user to have the same setting, click on 'Apply System-Wide'.

To have your numbers, date & currency in your regional format, you need to do that in the Regional Formats tab. Select the format that you want in the first combobox. You can choose to 'Apply System-Wide' if you wish to.

Finally, you will have to logout and login again to have this new setting loaded.


I have a new notebook Le Novo ThinkPad E-14 which CtrlL key does not work when combined with other keys under Ubuntu 20.04

There should be no difference between using the left or right [Ctrl] keys on your notebook. That the key combination works when you use the right side but not the left does give a clue, though: your [Fn] and left [Ctrl] keys may be switched.
Perform this test. Try: [Fn]+[Alt]+[T]
If the terminal opens, then we know this is the case. You can swap the keys one of two ways:

via the BIOS at boot (pressing [Fn]+[F2])
via the BIOS Setup Utility in Windows

Hope this helps


Use older version of GCC for application that requires it

You can't get it running in 17.10 .. thats what the releasenote says.

Downgrade to 16.10 or another supported version, or run 16.10 in a Virtual machine.


Black screen after upgrading 14.04 to 16.04 - terminal issues too

If you're network connection is only provided by WiFi, you're probably not online yet and it would fail to connect to anything for updates.

As for the graphics card, did you have Nvidia's proprietary drivers installed? I've been having struggles with Nvidia's drivers and my GT 650M and have had to try a bunch of different versions of the drivers and combinations of settings to get things just right. What fakedad asked about "nomodeset" can be added to your kernel parameters in grub. It is known to fix the black screen at boot. The answer on How do I add a kernel boot parameter? is a pretty good explanation of how to do it.

In case you need to remove the proprietary Nivida drivers, you can do it from the terminal as root or the recovery boot with:

apt purge -y nvidia-*

followed by

apt auto remove -y

That might at least get you booting again with the slower nouveau drivers.


How we can change linux environment variable in python?

There is no way to change the environment variables from a child process. And there is an exactly same question on SO.


How do I enable international character key mapping on a kiosk mode system?

You can set multiple layouts in the /etc/default/keyboard file. For instance, if you open that file for editing and set

XKBLAYOUT="us,de,ru"

you should be able to switch between English (US), German and Russian without a need to first add those layouts via Text Entry.


Firefox is rendering window and pages transparent and flickering

Problem: Firefox show transparent window when set gfx.webrender.all to true in about:config.
Solution: Set it to false and restart the browser then all back to normal.
Source: Improve Firefox Performance on Linux by Turning WebRender On
Explaining: WebRender is the brand new Mozilla render developed in Rust lang that's replacing the old GECKO render developed in C++. However, it's for experimental use yet.


X.Org X Server driver or AMD proprietary driver?

The xorg open source driver is far more stable than the proprietary one, so if you don't need any of the features of the proprietary driver, stay with the open source driver.

Fglrx and fglrx-updates are the same when a new version of Ubuntu is released. Fglrx-updates later is updated when newer drivers are released by AMD, while fglrx is in general not updated until you upgrade to a new release of Ubuntu. This means, that fglrx-updates will probably have better performance, less bugs and more features than fglrx, yet it might in principle happen, that an update is released for it, which contains new bugs (which might even prevent your system from starting a GUI).

Now to the advantages of the proprietary driver:

It has far superior 3D performance, what is also relevant for desktop performance when using a compositing window manager (Unity uses Compiz, which greatly relies on 3D acceleration)
With it the graphics card uses less power (mainly relevant on laptops)
It comes with OpenCL support, meaning that some programs can benefit from the graphics chip (for instance imagemagick, although I think this feature is disabled on Ubuntu)
You can use VAAPI to get hardware accelerated video decoding (for instance in VLC media player), but this usually is only required on very slow CPUs, like AMD C-series or Intel Atom.
On some cards, the open source driver does not support audio output over HDMI, in this case, use the proprietary driver.

Now the disadvantages of the proprietary driver

Did I mention that it's less stable than the open source driver?
On some systems tearing artifacts are visible when playing video files (there is a setting in the Catalyst Control Center to prevent this, yet it doesn't work on some systems)
For some settings one has to use Catalyst Control Center instead of Ubuntu System Settings, for instance if you want to extend the desktop to a second monitor for the first time.

Since they are mentioned in one of the comments, just a word regarding the experimental drivers: I don't recommend to use them, they are at the moment (at least on 12.04) incompatible with some other packages (most notably: hardware video decoding and opencl don't work without ugly hacks). If you really need the latest drivers from AMD, get them from the AMD website and use them to build distribution specific packages.

Long story short: If everything works fine for you with the open source drivers, use these. If you want or need one of the features mentioned above, and you are ok with the very small risk that an update breaks something, use fglrx-updates, otherwise fglrx. Don't use the experimental drivers if you are not sure what you are doing.


ubuntu16.04: Home link in Places is always opened by Phpstorm

Check the contents of the following files:

~/.config/mimeapps.list
~/.local/share/applications/mimeapps.list

and remove any occurrences of PHPstorm from them.


If I've signed the Canonical Contributors agreement, do I have to sign the new Harmony Agreement?

From the www.canonical.com/contributors/faq FAQ:

If I signed the old agreement, do I need to sign the new one too?No, if you previously accepted the Canonical Contributor Agreement 2.5 (or earlier), your future contributions will continue to be covered by that. However, if you wish, you can sign the new Contributor License Agreement, in which case the terms of the new agreement will cover any new contributions.


Update:
Ok so I continued to do some googling, and since I have a clean install I didn't mind the risk of experimenting. Therefore, first went on Software Update/Settings/Additional Drivers, and chose Nvidia 396 (instead of 390), which led me to a login loop.
Thereafter I followed the FIRST instruction here, but no fix.

Finally, I booted through FailsafeX, and chose X.org X server driver instead. I restarted a couple of times, even started windows just to be sure, and it now seems to work.

PS: I don't know exactly what happened, and I'm almost certain that it will reverse soon enough, so if someone knows a solid fix, pls let me know! and if this is a fix, hope it helps :)


How to keep the Firefox Health Report on, but stop the data sharing

In order to achieve this go to your Firefox Health Report (put that into the URL bar and press ENTER): about:healthreport

Then click on the button in the top right hand corner:

So that it becomes:

You have no disabled Data Sharing, this means that the report will still be generated, but no longer shared with Mozilla.


Yes, the shell understands * as all files with any characters in the directory and *.rb as all files with any characters and ending .rb, and expands it as such.

The find command itself accepts globbing.

If you don't quote the * then the shell will expand it before the find command sees its argument, so instead of a glob *.rb passed to find, the names of all files matching the glob in the directory will be passed to find, and find will try to interpret them as arguments, which will likely result in an error, or at least not what you want (it will work correctly only if there are no matching files in the current directory)


How can I use a built-in webcam in lubuntu 18.04.1?

You have to install cheese to use your camera..Open your terminal and type

sudo apt install cheese

You can then use your camera..Hope this will help you.

Thank you..


Issue in creating user by shell script in ubuntu

That was wrong.

deluser ${1}; useradd -m /home/${1} ${1}

passwd $1

There is website where you can check bash syntax here.


Turn off calendar notifications - Ubuntu 20.04

If you added online accounts, go to settings > Applications > calendar, then turn off notifications
Or you can go to settings > online accounts > google account the calendar option


What is the difference between ubuntu-13.10-desktop-amd64.iso and ubuntu-13.10-desktop-amd64+mac.iso?

I can't find the source link at the moment, but I've read that the Mac images disable (U)EFI booting. Apple's EFI implementation doesn't play nice with Ubuntu (well, anything not OS X), so the amd64+mac images only support booting via BIOS, which Macs support for booting Windows via Boot Camp.


Problem with Eclipse: "An Error has occurred. See the log file ......"

this worked for me :

sudo dpkg-reconfigure eclipse-pde eclipse-jdt

Click here! for more details.


You're getting this error because the clamav-freshclam service is running in the background.

Stop it by typing sudo systemctl stop clamav-freshclam.service in a terminal.
Do the manual update afterwards by typing sudo freshclam.
Stop clamav-freshclam from starting automatically on system startup by executing sudo dpkg-reconfigure clamav-freshclam and configuring it for manual updates only, in the corresponding question.

By configuring clamav-freshclam this way, you will be able to select an update server that's closer to you so that it works faster and you will also be able to stop freshclam from giving an error concerning the clamd.conf file everytime it updates clamav, by disabling the clamd daemon notification.


trying to overwrite '/usr/sbin/validlocale', which is also in package libc-bin 2.19-0ubuntu6.3

You have Debian repository in your source list (ftp.us.debian.org...) which is causing this problem.

The latest version of locales available in Ubuntu 14.04 Repository is already installed on your system. Also this package has no file which will replace /usr/sbin/validlocale

So removing this Debian repository from /etc/apt/sources.list should solve your problem.

After editing the sources.list don't forget to execute the following command.

sudo apt-get clean
sudo apt-get update

Or

(Not recommended as it can destroy your system)

You can overwrite this file using following command

 sudo apt-get -o Dpkg::Options::="--force-overwrite" install locales

Here old /usr/sbin/validlocale from libc-bin will be overwritten by new one from locales.


how to adjust "contrast" of a gtk2 theme?

This is not possible in the way you imagine without getting a new or different theme (system > preferences > appearance). Although you can kindof reduce or increase the contrast of a window with compiz, this will likely not give you the output you desire, as it will kindof reduce the contrast of the entire window (text and icons included).

If you want to do it with compiz:

Install ccsm
Open ccsm (System > Preferences > CompizConfig Settings Manager)
Enable the "Color filter" module
Change the key bindings to suit your needs, and see if any of the filters do what you want :)


There are two possible issues here. First of all, cron runs jobs in a special shell which does not read your personal $PATH. If java is not in /usr/bin or /bin, it will not be available to cron. From man 5 crontab:

  Several environment variables are set up automatically by  the
  cron(8)    daemon.  SHELL is set to /bin/sh, and LOGNAME and HOME are
  set from the    /etc/passwd  line  of   the   crontab's   owner.
  PATH   is   set   to    "/usr/bin:/bin".   HOME,  SHELL, and PATH may
  be overridden by settings    in the crontab; LOGNAME is the user that
  the job is running  from,  and    may not be changed.

So, use the full path to java instead. The next issue is that your bash script calls java on a file with a relative path. It assumes that the script will be launched from the same directory as the java file. Again, this is not the case. So, always use absolute paths for your scripts if you want them to run as expected by cron:

/path/to/java /path/to/Cron_Read_Send_CapacityData_To_Graphite  >> /path/to/Cron_Read_Send_CapacityData_To_Graphite.log

Alternatively, you can set the $PATH in the crontab itself:

PATH=$PATH:/opt/bin

*/15 * * * * /home/marshell/graphite_cronjobs/Run_Cron_Read_Send_CapacityData_To_Graphite.sh


Can multiple Linux machines concurrently use a Windows shared folder?

Is it a good idea to mount a Windows share on multiple linux(ubuntu) machines

If it is what you need: yes. We use Ubuntu machine's here (about 100) and also have a single Windows share. Works without problems. By the way: yhe reason for shares IS to share them with others; hence the name.

  Would there be a performance drop?

Not from the amount of users. Other things will be more related to performance, like network capacity.


Windows 10 Dual Boot shared NTFS partition Read Only, Fast Shutdown Disabled

You have to modify /etc/fstab and change 'ntfs' to 'ntfs-3g'.

Remount all disks.

sudo mount -a

Maybe it report you some nfts system error, you can try tu use :

sudo ntfsfix /dev/sda2

To mount and modify the parameters you can use Disk Manager, but in this case you will not be able to see the errors.


How to install Linux applications onto an external hard drive

That is not the way Ubuntu/Linux works. Files that make up an applications go to different directories in your root. Binaries go to a bin directory for instance. So moving an "application" to another disk is not really advisable.

16Gb is a LOT of software if that contains just software and not your personal documents. Assuming that 16Gb also contains your personal documents the answer is very easy: move the contents of your folders in /home/$USER/ (ie. ~/Documtents, ~/Downloads, ~/Pictures to that 2nd disk and symlink them from  /home/$USER/. That will free up space on your ssd.

Example, discworld is my hdd. / and /home are on an ssd. Disk lay-out (w/o ramdisks):

$ df -H
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        99G  7,1G   87G   8% /
/dev/sdb6       365G  204G  143G  59% /discworld
/dev/sdb5        25G  2,3G   21G  10% /home

discworld holds my directories:

rinzwind@schijfwereld:~$ ls -l /discworld/
total 64
drwxrwxr-x 8 rinzwind rinzwind  4096 dec 17 15:42 Aptana_Studio_3
drwxrwxr-x 9 rinzwind rinzwind 12288 jan 10 23:05 Desktop
drwxrwxr-x 7 rinzwind rinzwind  4096 dec 17 15:42 Documents
drwxrwxr-x 2 rinzwind rinzwind  4096 jan 10 19:51 Downloads
drwx------ 2 root     root     16384 apr  6  2013 lost+found
drwxrwxr-x 5 rinzwind rinzwind  4096 apr 21  2014 Music
drwxrwxr-x 2 rinzwind rinzwind  4096 jan  4 01:14 Pictures
drwxr-xr-x 3 rinzwind rinzwind  4096 jan 10 19:12 Steam
drwxrwxr-x 2 rinzwind rinzwind  4096 apr  6  2013 Templates
drwxrwxr-x 3 rinzwind rinzwind  4096 okt  5 12:10 Videos
drwxr-xr-x 4 rinzwind rinzwind  4096 jan 26  2014 VirtualBox VMs

/home/$USER/

ls -l
total 12
lrwxrwxrwx 1 rinzwind rinzwind   19 okt 11 20:44 Desktop -> /discworld/Desktop/
lrwxrwxrwx 1 rinzwind rinzwind   21 okt 11 20:45 Documents -> /discworld/Documents/
lrwxrwxrwx 1 rinzwind rinzwind   21 okt 11 20:45 Downloads -> /discworld/Downloads/
-rw-r--r-- 1 rinzwind rinzwind 8980 okt 11 20:40 examples.desktop
lrwxrwxrwx 1 rinzwind rinzwind   20 okt 11 20:45 Pictures -> /discworld/Pictures/

You can mv the directories on /home/$USER/ to your 2nd disks mountpoint/directory. And  ln -s ~/Desktop /discworld/Desktop would create the symlink for "Desktop". Do the same for the others and you are set to go.