How do I download, install and play Second Life on Ubuntu 64-bit

For your 64 bit system, I'd first try the Kokua viewer from kokuaviewer Downloads.  That should install and run on your system without problems (assuming you have the sound already working).  The voice chat feature works, but its implementation does not have Linden Labs' blessing, so may go away in the future.  In that case, you will have to switch to the approved mechanism and run the secondlife Windows voice program under wine (like you would have to do for the official viewer).

If you really want to get the necessary 32 bit libraries, here is a list from the second life bin file:

$ ldd do-not-directly-run-secondlife-bin
    linux-gate.so.1 =>  (0xf773d000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf76ef000)
    libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf763f000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7635000)
    libhunspell-1.3.so.0 => not found
    libopenal.so.1 => /usr/lib/i386-linux-gnu/libopenal.so.1 (0xf75be000)
    libalut.so.0 => not found
    libgobject-2.0.so.0 => /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 (0xf755f000)
    libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xf7435000)
    libGLU.so.1 => /usr/lib/i386-linux-gnu/libGLU.so.1 (0xf73bb000)
    libGL.so.1 => /usr/lib32/nvidia-375/libGL.so.1 (0xf7338000)
    libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf71ed000)
    libfmodex.so => not found
    libGLOD.so => not found
    libSDL-1.2.so.0 => not found
    libgdk-x11-2.0.so.0 => /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0 (0xf712c000)
    libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 (0xf7129000)
    libgtk-x11-2.0.so.0 => /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 (0xf6c33000)
    libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf6c08000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf6c03000)
    libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf6bba000)
    libaprutil-1.so.0 => not found
    libapr-1.so.0 => not found
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf6a42000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf69ed000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf69d0000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf681a000)
    /lib/ld-linux.so.2 (0x565c8000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf67ff000)
    libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xf67d3000)
    libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0xf67ca000)
    libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xf6755000)
    libGLX.so.0 => /usr/lib32/nvidia-375/libGLX.so.0 (0xf6735000)
    libGLdispatch.so.0 => /usr/lib32/nvidia-375/libGLdispatch.so.0 (0xf66b5000)
    libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf668e000)
    libpangocairo-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0 (0xf6680000)
    libpango-1.0.so.0 => /usr/lib/i386-linux-gnu/libpango-1.0.so.0 (0xf662f000)
    libgdk_pixbuf-2.0.so.0 => /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0 (0xf6606000)
    libgio-2.0.so.0 => /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0xf643d000)
    libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xf6430000)
    libXinerama.so.1 => /usr/lib/i386-linux-gnu/libXinerama.so.1 (0xf642c000)
    libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xf6419000)
    libXrandr.so.2 => /usr/lib/i386-linux-gnu/libXrandr.so.2 (0xf640c000)
    libXcursor.so.1 => /usr/lib/i386-linux-gnu/libXcursor.so.1 (0xf6401000)
    libXcomposite.so.1 => /usr/lib/i386-linux-gnu/libXcomposite.so.1 (0xf63fc000)
    libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xf63f8000)
    libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xf63f1000)
    libcairo.so.2 => /usr/lib/i386-linux-gnu/libcairo.so.2 (0xf62b0000)
    libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf629b000)
    libgmodule-2.0.so.0 => /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 (0xf6295000)
    libatk-1.0.so.0 => /usr/lib/i386-linux-gnu/libatk-1.0.so.0 (0xf626e000)
    libpangoft2-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangoft2-1.0.so.0 (0xf6256000)
    libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf6252000)
    libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf624a000)
    libthai.so.0 => /usr/lib/i386-linux-gnu/libthai.so.0 (0xf623f000)
    libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xf6219000)
    libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xf6200000)
    libpixman-1.so.0 => /usr/lib/i386-linux-gnu/libpixman-1.so.0 (0xf614f000)
    libxcb-shm.so.0 => /usr/lib/i386-linux-gnu/libxcb-shm.so.0 (0xf614b000)
    libxcb-render.so.0 => /usr/lib/i386-linux-gnu/libxcb-render.so.0 (0xf6140000)
    libharfbuzz.so.0 => /usr/lib/i386-linux-gnu/libharfbuzz.so.0 (0xf60dc000)
    libdatrie.so.1 => /usr/lib/i386-linux-gnu/libdatrie.so.1 (0xf60d2000)
    libgraphite2.so.3 => /usr/lib/i386-linux-gnu/libgraphite2.so.3 (0xf60aa000)

and the voice program:

$ ldd SLVoice
    linux-gate.so.1 =>  (0xf772f000)
    libortp.so => /usr/local/vm/work/Second_Life_5_0_3_324435_i686/bin/./../lib/libortp.so (0xf76fb000)
    libsndfile.so.1 => /usr/local/vm/work/Second_Life_5_0_3_324435_i686/bin/./../lib/libsndfile.so.1 (0xf76a1000)
    libvivoxsdk.so => /usr/local/vm/work/Second_Life_5_0_3_324435_i686/bin/./../lib/libvivoxsdk.so (0xf7055000)
    libvivoxplatform.so => /usr/local/vm/work/Second_Life_5_0_3_324435_i686/bin/./../lib/libvivoxplatform.so (0xf6f57000)
    libvivoxoal.so.1 => /usr/local/vm/work/Second_Life_5_0_3_324435_i686/bin/./../lib/libvivoxoal.so.1 (0xf6f0f000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf6ec8000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf6ebe000)
    libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xf6ea5000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf6ea0000)
    libidn.so.11 => /usr/lib/i386-linux-gnu/libidn.so.11 (0xf6e6c000)
    libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf6e66000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf6e48000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf6cd1000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf6c7c000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf6c5f000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf6aa9000)
    /lib/ld-linux.so.2 (0x5659d000)

Note that some libraries are missing in my setup, but they don't affect what I do.  Also, the (Linux) voice library setup is pretty useless since the libvivoxoal never got set up completely (like the Kokua setup did), so the Linux voice program can never run.  The approved voice setup is to install Windows SL under wine, and run that SLVoice under wine.  That does work successfully with the 32bit SL Linux SL viewer.


Using Ubuntu 10.04, is developing sites in my home folder instead of /var/www a significant security risk?

It is not a security risk, you may secure /home/me/sites the same way as you do /var/www. Sometimes on servers /home may be on different partition with different size than /var and disk usage or performance optimization may come to consideration.


How to Assign Swap space for Ubuntu 12.04LTS?

You should take a look at this : How to add a swap file. By creating this swap file, you shouldn't damage your existing data


Unable to get a static IP to work on Ubuntu 14.04 with a Raspberry Pi 2

You are misconfiguring your DNS servers here.  Only in very very specialized cases are you going to set your DNS servers to be your computer and the default gateway.

If you don't know what DNS servers exist on your environment then just use Google name servers:

dns-nameservers 8.8.8.8 8.8.4.4

Once done reboot the RPi - it should then accept the new network settings... or it won't in which case we have to do more work to fix.

I also suggest using allow-hotplug eth0 instead of auto eth0 in the off chance you may need to boot without an Ethernet connection.  This will prevent a boot hang up if networking fails to configure.


How does one properly copy a file into multiple folders and subfolders without overwriting the file contents in the destination folders?

You should restrict find to only listing directories:

find folder -type d -exec cp file.txt {} \;

Additionally, in future, when you're cp'ing to a directory where the directory name comes from some other command, use the -t option to make sure it actually is a directory:

find folder -type d -exec cp -t {} file.txt \;

From man cp:

-t, --target-directory=DIRECTORY
      copy all SOURCE arguments into DIRECTORY

So, if a file is provided as an argument to -t, cp will automatically complain.

Another answer to that question does use -type d.


nvcc fatal : Value 'sm_86' is not defined for option 'gpu-architecture'

Check the allowed values for gpu-architecture with
nvcc --help

For my CUDA 10.1 install, I get:
Allowed values for this option:  'compute_30','compute_32','compute_35',
        'compute_37','compute_50','compute_52','compute_53','compute_60','compute_61',
        'compute_62','compute_70','compute_72','compute_75','sm_30','sm_32','sm_35',
        'sm_37','sm_50','sm_52','sm_53','sm_60','sm_61','sm_62','sm_70','sm_72',
        'sm_75'.

So sm_86 is not an allowed value.


Ok, after shortly switching to Windows and then back again, so restarting the computer this works again. I'm still curious how it could happen that such a basic thing as opening pdfs got broken.


HP UEFI doesn't boot Ubuntu automatically

The path that needs to be entered as the Custom Boot image is:

When using Secure Boot: EFI\ubuntu\shimx64.efi
When not using Secure Boot: EFI\ubuntu\grubx64.efi

This is one of two workarounds. The other would be to copy /boot/efi/EFI/ubuntu/(grub|shim)x64.efi to /boot/efi/EFI/BOOT/bootx64.efi.

Source: https://bugs.launchpad.net/linuxmint/+bug/1309395


To view logfiles Multitail is quite nice!

And if you want to know more about the Apache Logfiles here are some interesting links:

http://www.cyberciti.biz/faq/apache-logs/

http://www.the-art-of-web.com/system/logs/#.UTFNx1Fx2PI

http://httpd.apache.org/docs/1.3/logs.html


reliably restarting services using upstart or runit

Upstart is perfect for it, see respawn stanza: http://upstart.ubuntu.com/cookbook/#respawn. Upstart is an init process, pid 1, parent of all other processes.


Skype and dropbox installation problems and Nvidia problems

It is my understanding that there is a bug in installing external deb packages in Ubuntu 14.04.     They are aware of it but nothing has been done as far as I can tell.

However the posted work-around is to use sudo command form the terminal:

sudo dpkg -i packagename.deb

However, I have tried this with Dropbox it to install.   Also the package in the Ubuntu store is as of yesterday out of date.

You should also update your repositories for Dropbox in Trusty.

Cheers and Good Luck


Why does not app update appear in Software Center?

I opened USC and can see the later version of your app there.


Why are there files ending with ~ on my system?

I know for a fact that Vim always creates a backup ending in ~ for any file you edit as default behavior. Whatever editor you're using is likely doing something similar.


python packages installed system-wide may not be available for python versions installed in anaconda directories.

Try instead to load your script using the full path to the system interpreter:

$ /usr/bin/python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>>


Why the application menu bar hides under the main menu bar in Ubuntu 14.04

You can set Menu-bar Showing setting from System-settings>Appearance in Behavior as follows:

If Title-bar overlapping than you can move via Alt+ Drag Mouse with left-click In appropriate direction.


You weren't particularly clear on your hardware setup, but a P4 with a GeForce2 (I think that's what the NV32 means here) is a thirteen year-old computer system. First of all, while that's officially above the minimum specs for Ubuntu, it's terribly slow compared even to a 2007 computer. You need to accept that fact.

The graphics card is quite old, and unsupported by NVidia. Your slow graphics are probably due to an accelerated driver not being installed. I think you can install the nvidia-96 driver to get acceleration, but you still shouldn't expect something wonderfully snappy.

Honestly, your system is more appropriate for Lubuntu (or maybe Xubuntu or Ubuntu Mate). The system will respond much better on these OSes.


Lot of details are missing here. I couldn't find a link for it online which would have answered many questions. But on a general note, unless application specifically exposes an option inside its configuration file or as a commandline option for font, you cannot set a font size for the entire app. IMO, look inside a user manual that should tell you how to achieve this.

http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm.java.doc.diagnostics.60%2Fdiag%2Fappendixes%2Fenv_var%2Fenv_jvm.html

Link above talks about specifying a directory of fonts that will be avaliable to the application. Mind you that link talks about IBM JVM and not Oracle JVM( Formerly Sun JVM)

http://www.herongyang.com/JVM/System-Get-and-Add-System-Property.html

This link listed all the available system properties for java command and font isn't one of them.

This question should be posted on StackOverFlow for more exposure and more precise answer.


I see the Xubuntu mouse in your question. Maybe it would work for you with xfce4-terminal instead of gnome-terminal.

An alternative is to install lxterminal of Lubuntu or some other terminal emulator, for example sakura or terminator.


How can I imagine a "Java based" website ? If there are any .html files you can try

apt-get install apache2

I hope I could help you


Ubuntu installer gets stuck with flashing screen

I switched to Ubuntu instead of Debian on the VM host so I could have a more recent QEMU/KVM/virt-manager and this doesn't seem to be a problem anymore. Not Sure what happened.


Can XTerm do all the things Terminal can do?

Yes and no. As far as commands go, it's the same since it uses the same shell (bash) that every other terminal on your system does.

But xterm is a basic terminal emulator which does not support features you may be used to with the regular (gnome-) terminal such as multiple tabs, etc. Other things such as changing fonts is also more difficult (people often find the xterm default font too tiny.)

The reason for this lack of features is that xterm depends only on the core X server, unlike gnome-terminal and the others. It will run even on an Ubuntu that has no graphical environment installed, and uses very little memory (but that doesn't matter unless you have a very old computer)

Note that you can get additional features within xterm by using a text-mode session manager such as byobu (screen), but for most users it's easier to stick to gnome-terminal or alternatives such as xfce4-terminal, etc.


What testing is done to make sure no packages in the repos have malware?

NOTE: This is answered more in-depth by a member of Ubuntu Security Team in this answer. My answer below was written two years prior to the linked answer.

Canonical has Ubuntu Security Team, which is a paid group, that  professionally reviews and supports software submitted to Ubuntu archives, as well as releasing fixes (aka the security updates) .

From the Ubuntu Wiki:

  The Ubuntu Security Team often performs audits on software before it
  is to be officially supported. Once vulnerabilities are found, the
  Security Team uses responsible disclosure to let others know about the
  issue.

The Ubuntu Security Team doesn't work on the packages alone but does collaborate with others, in particular Debian security team, and vulnerability trackers such as MITRE CVE database , and maintains its own CVE Tracker.

The same wiki page also lists that they're actively involved in development of tools to protect form new vulnerabilities; among others , the tools are AppArmor, CompilerFlags, etc.

In particular, Security Team FAQ states:

  Software installation tools that come bundled with Ubuntu, such as the
  Ubuntu Software Centre and Update Manager, validate packages when they
  are installed to make sure they are secure and have not been
  manipulated or trojaned during their download. Also, a large subset of
  packages in the archive are officially supported by the Ubuntu
  Security Team and get timely updates for security issues that may arise

So in other words put by thomasrutter , the packages are signed cryptographically to ensure their validation.

The specific repositories that Security team oversees are stated in the FAQ as well:

  All binary packages in main and restricted are supported by the Ubuntu
  Security team for the life of an Ubuntu release, while binary packages
  in universe and multiverse are supported by the Ubuntu community.

Of course, software nowadays runs in millions and millions of lines of code, in variety of languages, so as our esteemed moderator ThomasW.   noted properly , the security team are humans too, and they can't possibly keep track of everything.  So yes, some vulnerabilities and bugs can slip through , especially in universe and multiverse repositories , but there are people and mechanisms in place to ensure that those vulnerabilities and bugs don't run rampant .


If it is just one host I would edit the hosts file.

sudo nano /etc/hosts

192.168.1.134     webcam.schifer.loc

that is [ip address]     [machine.LANname]


How to delete Ubuntu from my Laptop completely? (no Windows)

Simply delete all partitions and data from your hard disk.
You can make a bootable USB that contains a disk manager like gparted, or just use GUI tools like "Disks" in a live Ubuntu session by selecting "Try Ubuntu" when booting from Ubuntu installation media.  You can even use disk formatting tools from a Windows bootable USB.


Login screen keeps coming back (bash_completion related)

If you think it's that file that's responsible, you could reset it back to the packaged defaults by reinstalling the bash-completion package. We have to be a little more forceful to get it to copy the configuration back, but this should work:

sudo rm /etc/profile.d/bash_completion.sh
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall bash-completion

Reboot and see where that gets you.

It has just struck me that you might have problems getting to a terminal to enter this! There are several options there but here are my favourite:

Recovery Mode's root console
A LiveCD/USB cross-mount/chroot

They should both set you up as root on your install, and from there you should be able to action a change. If nothing else just delete the current bash_completion.sh file. That should allow you to log back in normally, albeit without Bash autocompletes.


record videos in avi with the Gnome’s built-in screen recorder

AVI is an old and rather primitive container format for video. It also cannot hold the modern, more efficient video codec Gnome use. Gnome’s built-in screen recorder does not support it, and likely will never support it.

If you really need the video without further editing in AVI format, you will need to transcode the original video. If, however, you edit the screen recording in a video-editor, then you can work directly with the files that the screenrecorder created and simply write out your edit as AVI with the appropriate video codec if there is a need.


How to run app "quietly" on ubuntu vps via ssh

There are two solutions - you will most likely use a combination of them.

install byobu, it gives you as many virtual screens as you want, you can switch between them any time. You can even let those sessions running when you log out from the VPS.
When you start an application and append & then it runs "in the background" until you fetch it to the "foreground" again or kill it, but that is not useful for apps that write to the screen all the time like top does


Might be good to check the SMART data on your drive.  Gnome Disks can do this.


First you can quickly know how many workspaces you have with the following commands, open a terminal and type:

dconf read /org/compiz/profiles/unity/plugins/core/hsize
dconf read /org/compiz/profiles/unity/plugins/core/vsize

It should return 2 for both if you have 4 workspaces.

Now with an external monitor, you don't really have 8 workspaces even if this kind of picture can be confusing because both screen are creating an extended desktop (if you are not mirroring), a workspace is delimited here by the orange line:

To answer your question, there's no way to specify the number of workspaces per display (the unity plugin only store global values) but you can force a given window to stay always on visible workspace. I often do that for my mail client that I left on my laptop monitor. It's like having a single workspace. Just click the title bar of your application and select "Always on visible workspace":


You can use the chown command:

sudo chown username:username -R /media/

Replace username with your username.


Multi-server setup for Windows clients with Ubuntu servers

You can set up a second Samba server that is configured as a domain member. You will need to join it to the PDC using the "net join" command. After the second machine is joined to the domain the workstations should be able to access it without re-entering credentials (assuming they log on to the domain through the PDC).

See also http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/domain-member.html


Share Wireless connection with Wired Ethernet Port

I had a MacMini running Ubuntu 9.10 using the Wireless connection for internet.  Then I connected my Xbox360 into the MacMini's ethernet port in order to use Xbox Live.

It's ridiculously easy.  Simply right click on your network manager and choose "Edit Connections".  Then in the "Wired" tab, you can either use your existing wired connection, (or create a new one by hitting the "Add" button, name your new connection "Shared Network Port" or something similar), pop into its IPv4 tab and in "Method", choose "Shared to other computers".  Apply everything and close the network manager windows.

Now when you need to plug something into that ethernet port, you can share your WIFI internet conenction simply by clicking on network manager and choosing the "Shared Network Port" entry there.

If you want this to be a constantly used ethernet connection used for sharing and nothing else, feel free to edit "Auto Eth0" instead of creating a new entry like I describe above.  Creating a new entry gives you some flexibility to choose however.

Note that this uses a bit of NAT (network address translation) magic to work properly, so the Xbox360 (or whatever you plug into your wired port) will get a funky IP address.

From memory, it will only be able to see the internet too - I don't think you can see the host computer, the one with the internet connection.  You can set that up, but it requires a bit of messing about with DHCP servers, I believe.  I didn't need it, so I didn't go down that road.


intel - AX210 won't work after 21.04 upgrade

I have the same problem, after upgrading to the latest kernel.
I reverted to 5.11.0-11 kernel, and it works.


Unlock Unity lockscreen from command line

For Ubuntu 16.04 and later:

loginctl unlock-sessions

No need for root, but needs session permission obviously.

Note:
By default gnome-screensaver-command -d doesn't work anymore in Unity but with this workaround (enable on-screen keyboard) it does. Works for both 14.04 and 16.04.


Imposes changing root user home directory any disadvantages?

Yes, many.

Anything you run as root which modifies configuration or state in $HOME will update the contents of /home/dave, probably causing the modified files to end up owned by root, which in turn will make them impossible for you to modify without being root (which may break some programs (vim and most shells being prime examples, command history will end up only usable by root).
Anybody with write access to /home/dave can theoretically trivially run commands as root. Keep in mind that many CLI tools have startup files in $HOME that get run, not just parsed, when you start them. .bashrc and .vimrc are trivial examples, both of which allow anybody who can write to them to run arbitrary commands with the privileges of the user who executes bash or vim in a way that uses them.
Some things that might be in /root should not be readable by any other users for security reasons. The prime example is stuff like SSH or GPG keys, but there are others. Merging /root with another home directory makes it much harder to ensure these secrets stay secret. Note that this is why /root exists at all, old UNIX systems just used / as root's home directory, which leaked lots of info to other users.
Any misconfiguration in config files in /home/dave that makes it impossible for the dave user to log in will also make it impossible for the root user to log in. This makes any configuration changes much more risky.

Note that the second and third points are potentially serious security issues, even on a single user system. Always remember that any attack that manages to get the ability to run code as your user can do anything your user can do.

If your goal is to simply share configuration across the whole system, you can avoid all but the last issue above by using the configuration files under /etc instead of in home directories. These are the system-wide defaults for configuration, so modifying them modifies configuration for everyone on the system. Almost all interactive CLI tools that have some form of configuration that isn't inherently user-specific have configuration files under /etc.


How to ping an IDN domain with its non-ASCII name?

From the dig man page:

  IDN SUPPORT

  If dig has been built with IDN (internationalized domain name) support, it can accept and
         display non-ASCII domain names. dig appropriately converts character encoding of domain name
         before sending a request to DNS server or displaying a reply from the server. If you'd like to turn off the IDN support for some reason, defines the IDN_DISABLE environment variable. The IDN support is disabled if the variable is set when dig runs.

so it is supported ...

What you probably need is http://packages.ubuntu.com/saucy/idn2 It is in devel so probably not installed by default.

  idn2

  Internationalized domain names (IDNA2008) command line tool

Then this will work:

ping $(idn2 ąćęłńóśźż.pl)


Does Ubuntu 14.04 LTS support safe remove USB

Yes there is a way of doing this, but if you're asking the question, you're probably not going to like the answer: Auto-unmount USB drive


PyTorch on Ubuntu RuntimeError: CUDA error: all CUDA-capable devices are busy or unavailable

I think your problem is related to cuda cc version that is installed with your card. From what I know you should compile from source and make sure cuda cc is compatible with pytorch version. Please refer to https://github.com/pytorch/pytorch/issues/31285


Switch from casper-rw file to casper-rw partition

You can use mkusb to create persistent live drive. It creates a partition for persistence by default and automatically. The picture shows the steps in the wizard interface to create a persistent live system with mkusb version 12 alias dus.

See the following links for more details,

How do I make a persistent live USB of Ubuntu 16.04?

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent

mkUSB-quick-start-manual.pdf


Tool for recovering deleted data from a flash drive

TestDisk

  find lost partitions and data for
  External and Internal Drive for all of
  these file systems, ext2, ext3, ext4
  and encrypted partition. for windows
  FAT12/FAT16/FAT32 and NTFS boot
  sector.

For Recovering data from external Hard drive
Type testdisk on your terminal and follow this well written step TestDisk Step-By-Step

For Recovering files from internal and External hard drives there is PhotoRec which comes with TestDisk.

type photorec on your terminal

Select your drive and hit enter to proceed and follow the instruction.

Extundelete

  extundelete is a utility that can
  recover deleted files from an ext3 or
  ext4 partition


The gentleman has 2 problems:
1. He needs NVIDIA 8400GS support
2. Ctrl+Alt+F1/F2/F3/F4 doesn't work.

Issue #1 - You should try going into the hardware drivers of your Ubuntu settings manager.  I forgot what Ubuntu 12.04 looks like in Unity or Gnome.  So I cannot guide you there.  If this does not work out, I would suggest doing a distro upgrade to 13.04 (Raring).  That I have done before in the Xubuntu flavor and it worked like a charm.  Why do this?  The hardware support of older graphics boards improved in the kernel and Xorg software.

Issue #2 - I have been trying myself to find out how to get back Ctrl+Alt+F1/F2/F3/F4 functions from years gone by.  This is a life saver when things go really bad on the desktop and you need to break in with a tty to perform trouble-shooting.  All I get now in 13.04 and 13.10 with Ctrl+Alt+F1 are dead desktop keyboard typing and mouse when I do that although, fortunately, Ctrl+Alt+F7 takes me back to sanity.


Why is it taking so long to open the Ubuntu Help Center?


I have a Lenovo Laptop - G50. I found that my wireless also disconnects every now and again. I installed Windows 7 and found it doing the same. The only way I could get it working in Windows was with the Specific Brand driver from the website. Even the Windows driver wouldn't make it work for longer than a few minutes, it had to be the specific driver from the website. I now use a USB wireless adapter in Ubuntu which solves the problem. Luckily I don't use wireless that often - I am usually on a cable.


How to dual boot windows 7 and ubuntu 18.04?

By default GRUB is set disabled in most systems, you can set it enable while your system is booting by clicking escape button. Already check it? Check if whole installation is correct; means if installation is complete? You might be missing some step in installation.

If you are in desperate need of Ubuntu, you can try Oracle virtual box or VMWare. It's very easy to install in Windows, and they are sandboxed; it means whatever happens inside it will not affect your global system, here windows. It will provide all the functionalities you'll be needing in dual boot. Its easy and more safe, and practically it is recommended. If you want to know exact procedure, visit online or comment it.


Give scheduling rights with security.conf

After changing user groups, or editing /etc/security/limits.conf, you need to logout and login again to make it work.

They are not going to be effective right away in your current session.


DKMS build failing without meaningful error

Remove the manually copied biokernbase.ko from /lib/modules/3.13.0-123-generic/kernel/drivers/misc/.

Edit dkms.conf like this... (keep the original as a .bak file)...

PACKAGE_NAME="biokernbase"
PACKAGE_VERSION="3.1.2.1"
CLEAN="make clean"
MAKE[0]="'make' all KVER=${kernelver}"
BUILT_MODULE_NAME[0]="biokernbase"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="yes"

Perform a sudo dkms build again and see if this fixes the problem.


It seems that the line -device hda-microphone which emulates a microphone caused this, because Windows sets the microphone to 100% and this seems to change the microphone settings for the host. Nvida drivers have nothing to do with this.


Is it possible to create separated unencrypted ext4 filesystem?

Since you have an ext4 filesystem already, you can just:

dropbox stop
sudo mkdir /my_dropbox_home
sudo chown -R $USER:$USER /my_dropbox_home
mv ~/Dropbox /my_dropbox_home/

Then run dropbox with that fake home folder:

HOME=/my_dropbox_home dropbox start

I got that trick from this answer.

If you didn't have an ext4 filesystem, then you could create a file with an ext4 partition inside it, and then mount that partition.  I wrote a script to do that.  Use at your own risk though!


php application asking intl but already installed

try this if original solution does not work for you:
By default, symfony2 is able to manage the "en" extension but to get other language, you have to install the php-intl extension.

The easiest option is to install it with the composer, because it expose global variable for you ... etc

All of this is explained here symfony/components/intl.

For the composer extension installation it's symfony/components/using_components.

So after eading this, you need to execute :

composer require symfony/intl

DO NOT FORGET TO RESTART YOUR APACHE2 SERVER (sudo service apache2 restart)

source: https://stackoverflow.com/questions/25723804/a-php-platform-install-ask-me-intl-extension-but-it-seems-already-installed


Nothing has changed, it works exactly the same. There should be no errors. By simply using Ubuntu Software Center or apt-get install you can install all of the software.

However it seems you didn't upgrade correctly and are facing a lot of issues.

sudo apt-get install -f

Use that to fix several issues with dependencies. You may want to apt-get remove affected packages.


Go to System Settings -> Appearance

You'll see this:

Try going back to the Default theme.

If that doesn't resolve your issue try removing any third party themes you may have installed.

I can't verify as I"m not running 14.10 but it might be related to this bug http://osdir.com/ml/ubuntu-bugs/2013-09/msg09060.html


For example let me assume, you have an executable myscript. You need to run it from a terminal as,

/path/to/myscript

User level Change

If you  add the PATH of that executable to ~/.bashrc, you can run the executable with name only from anywhere (Avinash Raj already mentioned), as

myscript

But the change will be affected in user level. That means if you have any other user(s) they could not access the executable with name only. If they have proper permission they need to run the executable as,

/path/to/myscript

Also, you will not be able to run the script as sudo as it is not in PATH of root, To run as sudo you need to use,

sudo /path/to/myscript

system level change

If you put your script in /usr/local/bin it can be accessed system wide and for all users. In that case any user can run your executable as (subject to having proper permissions)

myscript

In that case you can run the executable as sudo also as,

sudo myscript

Now choose one way depending upon your need.


Can't add domain to resolv.conf on Ubuntu 18.10

So, i've installed and configured squid and everything works fine. You dont need to add domain to resolv.conf in this version.


From conky configuration file changes from own_window_type override in own_window_type normal.


How to delete the lines from a file that do not contain dot?

One way with sed

sed '/\./!d' file

/\./ match literal dot (escaped with \ because otherwise. matches any character)
!d delete everything except the matched pattern

If you want to edit the file in place, add -i to the command after testing. (You can also add .bak to the -i flag sed -i.bak ... to create a local backup of the file.)

sed -i '/\./!d' file


Alt + sysrq + REISUB doesn't reboot my laptop

Alt+SysRq has been disabled to fix a bug. The disabling of Magic-SysRq was considered a bug itself and it has since been re-enabled (#1025467). If it is still disabled for you, you can re-enable it:

Ubuntu 12.04 and older

Edit the file /etc/sysctl.conf to include the line

kernel.sysrq=1

Ubuntu 12.10 and newer

Starting with Ubuntu 12.10 a more fine-grained control of which Magic-SysRq features are enabled is possible. Just edit the file /etc/sysctl.d/10-magic-sysrq.conf.

The file is well documented and tells you exactly how to enable which features. The current default was picked for security purposes and should only be changed if you know why you need to (for security implications see #194676).


How do I set the nameserver (dns) for Ubuntu's initramfs?

Taken from https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

 ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:
 <dns0-ip>:<dns1-ip>:<ntp0-ip>

This parameter tells the kernel how to configure IP addresses of devices and also how to set up the IP routing table. It was originally called nfsaddrs, but now the boot-time IP configuration works independently of NFS, so it was renamed to ip and the old name remained as an alias for compatibility reasons.
If this parameter is missing from the kernel command line, all fields are assumed to be empty, and the defaults mentioned below apply. In general this means that the kernel tries to configure everything using autoconfiguration.
...

In your case use for enp1s0 as network device (you might need also use eth0):
IP="192.168.0.10::192.168.0.1:255.255.255.0::enp1s0:off:<DNS-Server>"


Menu bars for Gnome apps not being replaced by global menu

Maybe to install indicator-appmenu will solve the problem.

Run in terminal

sudo apt-get install indicator-appmenu

Take a look at How do I disable the global application menu?


Wireless not working properly or directly not working

If you have access to a 3g dongle or Ethernet, connect to it and open a terminal then:

sudo apt-get update && sudo apt-get install bcmwl-kernel-source

Reboot and WiFi should be working


How to manually install wpasupplicant 2.1?

You can install by typing:

sudo apt-get install wpasupplicant

Download the wpasupplicant from here:

Do the required changes in .config

install wpa_supplicant by:

 #make && make install

Configuration

Set wpa_supplicant.conf to the following:

More Detail here:


Why do I have to `source .profile` in every terminal I open?

The reason for this is that ~/.profile is only sourced by login shells. When you open a new terminal window, the shell that starts is a non-login shell by default. If you log out, and log back in, the change to ~/.profile will be effective in all your terminals, because ~/.profile is sourced when you log in to your session.

It's not the case that different terminal windows have a different environment, but that sourcing ~/.profile only executes ~/.profile in the current shell (that's exactly what the source command does).

By contrast, a change to ~/.bashrc will immediately affect any new terminal window you open, or any Bash shell you start by typing bash, because it is sourced by all interactive Bash shells.


15.10 Dell Vostro 3700 display brightness fn+key change problem

I had kind of bug that I figured out recently, I don't know if is the same problem.

The button of backlight change when pressed, but it didn't affect the backlight in fact. I tried installing xbacklight and using xrandr to set the backlight and nothing.

Finally, I tried go in BIOS and change with the same button of keyboard, and(I don't know why), it works!! When I came back to ubuntu, the problem was solved.


Way to manually enable Screensaver/Clock Screen?

OS - Ubuntu 19.10

Run the below command

gsettings set org.gnome.desktop.screensaver lock-enabled false

Create a shortcut with below command

gdbus call --session --dest org.gnome.ScreenSaver --object-path /org/gnome/ScreenSaver --method org.gnome.ScreenSaver.SetActive true


What about this:

ls | python -c 'import sys, os; print len([os.system("mv %s %02i.%s" % (name[:-1], int(name.split(".")[0][4:-7], 16), name.split(".")[1])) for name in sys.stdin])'

Assumes the files to be renamed are exactly those that ls would print; supply anything more relevant, if this is not the case.


This can be done with ffmpeg

good to know:
The 3GP file format stores video streams as H.263 or H.264 codecs and various audio streams format are allowed.

Important limitation of this format is the resolution of the H.263 video stream. As 3GP format was developed to work on 3G mobile phones, it can work only with sizes of 128x96, 176x144, 352x288, 704x576 or 1408x1152 pixels.

Native valid 3GP format

ffmpeg -i inputVideo.avi \
  -f 3gp -vcodec h263 -vf scale=352x288 \
  -acodec amr_nb -ar 8000 -ac 1 \
outputVideo.3gp

-f 3gp : Output file format is 3GP.
-vcodec h263 : Output file will use H.263 codec for video stream.
-acodec amr_nb : Output file will use AMR_NB codec for audio stream.
-vf scale=352x288 : Resize the image to a supported resolution
-acodec amr_nb : Specifies output audio codec
-ar 8000 : Convert audio streams into 8000Hz audio streams. This is required by the AMR_NB encoder.
-ac 1 : Transform audio from stereo into mono. This is also required by the AMR_NB encoder.

Complicated?Yes, it is... With luck, 3GP has been extended to support H264 : no more image size limitation and a bunch of audio codecs supported.

Using H.264 video codec and AAC audio codec

ffmpeg -i inputVideo.avi -f 3gp -vcodec libx264 -acodec aac outputVideo.3gp

-f 3gp : output file will be using 3GP format.
-vcodec libx264 : use libx264 encoder to produce H.264 encoded streams.
-acodec aac : audio stream will be encoded using AAC encoder.


according to last comment, I have installed the OS in emulated graphic card, then I reboot from gpu passtrought and everything works perfectly !

My start script :

#!/bin/sh

#network configuration
/usr/bin/tunctl -t tap0
/sbin/brctl addif br0 tap0
/sbin/ifconfig tap0 up

#passtrought configuration
echo '0000:02:00.1' | tee /sys/bus/pci/devices/0000:02:00.1/driver/unbind

modprobe vfio
modprobe vfio_pci

echo 1002 68f9 | tee /sys/bus/pci/drivers/vfio-pci/new_id
echo 1002 aa68 | tee /sys/bus/pci/drivers/vfio-pci/new_id

#virtual machine start
/usr/local/bin/qemu-system-x86_64 -M q35 -m 6144 -enable-kvm -smp 2 \
-bios /path/to/OVMF.fd \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 -vga none \
-usb -device usb-host,vendorid=0x0461,productid=0x4d20 -device usb-host,vendorid=0x0b38,productid=0x0003 -soundhw ac97 \
-drive file=OS-image.img,index=0,media=disk,format=raw \
-vnc :0 \
-netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no -device e1000,netdev=mynet0,mac=52:55:00:d1:55:01 \
-device piix4-ide,bus=pcie.0,id=piix4-ide  -device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on -device vfio-pci,host=02:00.1,bus=pcie.0 \

exit 0


18.04.02 server - Static IP will not set during install

The new Subiquity Installer has a few problems, the alternate Ubuntu download (ubuntu-18.04.2-server-amd64.iso) allows you to install using the traditional installer which is better until the issues are ironed out, YMMV.


Please refer to this link. As per that Intel certifies Linux kernel 4.2 onwards for that wifi card. As per your logs you are still on linux kernel 3.13 which is not certified by Intel and may not work even after work around that you are trying to do.

So my advice is to upgrade to Ubuntu Desktop 15.10 which has Linux kernel 4.2 and it will work.

I had Intel 3165 and struggled a lot with Ubuntu Desktop 14.04 LTS. Finally i decided to fresh install Ubuntu 15.10 and that fixed the problem. Same i will suggest for you - it will save time and efforts.

You can refer to my thread here

I could only fix it by installing Ubuntu 15.10 which comes with Kernel 4.1/4.2. With the upgraded kernel in Ubuntu Desktop 14.04 LTS i used to get some what intermittent connection issues with the work around suggested in that thread.

When you are installing Ubuntu 15.10 - i will suggest connect your laptop via Ethernet cable. Once everything is installed then you can test your wifi card also. It should work.


What is the ubuntu-minimal package and do I need it?

ubuntu-minimal is a metapackage.

Here's partial output of the apt show command:

apt show ubuntu-minimal
Package: ubuntu-minimal
Version: 1.417
Priority: important
Section: metapackages
Source: ubuntu-meta
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 48.1 kB
Depends: adduser, apt, apt-utils, bzip2, console-setup, debconf, debconf-i18n, eject, init, initramfs-tools, iproute2, iputils-ping, isc-dhcp-client, kbd, kmod, less, locales, lsb-release, mawk, mount, netbase, netcat-openbsd, nplan, passwd, procps, python3, sensible-utils, sudo, tzdata, ubuntu-advantage-tools, ubuntu-keyring, udev, vim-tiny, whiptail
Recommends: rsyslog

A metapackage is a list of software that specifies what is installed on your system during the initial installation process and when you upgrade from one version of your OS to another. See What are the downsides of removing ubuntu-desktop metapackage? for example.

Removing a metapackage is otherwise harmless.

While you maybe able to remove vim-tiny, the benefits would be negligible and somewhere down the line some other software you install may pull it back in.


"A script on this page may be busy, or it may have stopped responding" everytime I wake up my laptop

I expect the problem is with your session expiring on the server.

When your client, Firefox tries to initiate communication it will use the expired session_ID / cookie. In gmails case, the server expires sessions when you log out, or if there has been no communication with the client for a few minutes about 15. Gmail, uses ajax to continuously check if the client is connected. It maintains a list of all currently active connections sessions using unique sessionID associated with an account.

When you go into hibernate, you browser looses its connection to the server, and your session will expire on the server. When you try to reconnect, the scripts on your client will try to connect using a sessionID the server does not know exists, as it destroyed that session when it could no longer detect that your client was connected.


wacom intuos draw(small) vs genius mousepen i608x for Ubuntu 16.04 LTS

I have bought wacom intuos draw. I have to say, it is a great tablet.

Now to the important part. I wasn't able to get my wacom to be detected by Ubuntu 16.04. It shows "No tablet detected". Though the pen works.

I was able to use the pen pressure on Krita (https://krita.org/en/) straight away. But not in InkScape and gimp.

Following codes were used to see if my system detects the tablet:

xinput --list

    ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Wacom Intuos S 2 Pen stylus               id=9    [slave  pointer  (2)]
⎜   ↳ Wacom Intuos S 2 Pad pad                  id=10   [slave  pointer  (2)]

lsusb

Bus 003 Device 002: ID 056a:033b Wacom Co., Ltd

So, it does detect but something is up.

I have tried troubleshooting. Linking few of them here and also other links I found helpful (This is to help those who are seeing this page. A small quick references):

https://www.youtube.com/watch?v=FMM0n_fuqlA
Ubuntu 14.04. 2 does not recognize my Wacom Intuos tablet draw (ctl-490b)
https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1575887
https://medium.com/@ahris/setting-up-wacom-tablets-with-ubuntu-16-04-d7277e4a595d
Wacom Intuos Draw Tablet not detected in System settings and MaptoOutput does nothing
https://docs.gimp.org/en/gimp-tool-dynamics.html

(please do check elsewhere whether these troubleshooting are safe for you or not. I didn't face any problem. And I also, reverted back to the original settings after troubleshooting didn't help. So, make a backup, or remember the original settings, when ever you can.)

I have moved back to windows, though I believe after sometimes I will eventually find a fix and come back to Ubuntu.


Can I just get rid of Windows altogether?

We can not decide this for you but there is a method where you can have both with just using Ubuntu as your single operating system:

Install Ubuntu
Install either virtualbox or vmplayer
Install Windows inside virtualbox/vmplayer.

It looks like this:

Do not forget to backup data you need to keep.


This works very nicely on my system:

find $HOME/.wine -name '*.lnk' -type f -exec bash -c 'wine winemenubuilder "$0"' {} \;

It does the following:

scans your Wine drive for windows .lnk files
creates a Linux .desktop file for each .lnk file
creates a folder $HOME/.local/share/applications/wine
places all of the newly created .desktop files in there

Pretty cool?

References:

Winemenubuilder


How to prevent Okular from remembering last position in the file?

Here is a simple, harmless workaround. Run in your shell:

alias okular="/usr/bin/okular -p 1"

Now okular will always open the doc on page 1.

To make this change permanent, add the alias to your shell's config file, such as ~/.bashrc or ~/.bash_aliases.


Evolution and Gnome Calendar keep asking me for my online account password

By default, Evolution is set to automatically collect email every 30 minutes. Go to the Evolution preferences and change the setting to either: manual, or never check, or remove the checkmark that enables this function. I don't have Evolution installed here, so I can't give you the exact location where you can find that setting.

Cheers, Al


Screen flickering loop on boot loading screen

Try this...

In terminal...

cd /etc/default # change directory

sudo -H gedit grub # edit the grub settings

Find:

#GRUB_GFXMODE=640x480

Change it to:

GRUB_GFXMODE=640x480

Save the file and quit gedit.

sudo update-grub # update GRUB

reboot # reboot the computer

Check for screen issues.

Update #1:

Then try this...

You may have a problem with an older computer, with an older GPU. Try this...

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /      # to remount the disk r/w

sudo pico /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Then reboot.


Setup suspend-on-lid-close/Fn+F4 outside of KDE/Gnome?

Ryan Thompson described how the system works in an answer to my question earlier.

So, you just need to change /etc/acpi/lid.sh to do whatever you want instead of blanking the screen.


Can i use closed source application for artworks or icon in my application for the showdown?

Yes as long as the icons you create are your own work. If you create new images you are the copyright holder and can do with them as you please. In this context photoshop or corel are legally no different from a pen and paper - adobe own the rights to photoshop's code, but not the rights to everything produced with it (if they did people would soon stop using it!).


Can't upgrade to 11.04 due to partial upgrade

it sounds like you are trying to upgrade from lucid (10.04) to natty (11.04). Which is not allowed.

You have to first upgrade to maverick (10.10) and then to natty (11.04).

you can however upgrade from 10.04 to 12.04 (LTS to LTS) if you want to wait until precise is released in April.

Take a look at these questions and answers:

Is it possible to skip releases during an upgrade?
How do I upgrade straight from a very old release to the latest one?
How to update from 10.04 to 10.10?


As pointed out by @Sebastian, it looks like you have no mount point set for the drive so there is no place for this drive to mount.
When you mount a drive using fstab, you need to specify a mount point.
For example if you look closely at your first entry, you can see that your main drive is mounted at /
UUID=81353260-b5a5-4b72-9fce-432e7c620fdc /               ext4    errors=remount-ro 0       1

Where would you like to mount the drive? Also, you must make sure that the mount point exists.
If you want to, you can create a mount point to mount the drive to. You could run the following command to create a mount point for the drive:
sudo mkdir /media/storagedrive

Then, to mount your drive to /media/storagedrive/, you would use the following line in fstab:
UUID=b3b0f384-9e2e-45f5-8995-932f1113f59d /media/storagedrive/               ext3    defaults 0       0

Also, to access this drive, just go to that mount point if it doesn't show up as an extra drive in your file manager.

Alternatively, if you want to mount the drive to somewhere in your home directory, you could create a mount point named "extradrive" in your home directory like in this example:
mkdir ~/extradrive

Then, assuming your username is fixit7, you would use the following line in your fstab file:
UUID=b3b0f384-9e2e-45f5-8995-932f1113f59d /home/fixit7/extradrive/               ext3    defaults 0 0


Changing default applications doesn't work in system settings or on file types

If the fault message went on to say Not a directory then simply browse to ~/.local/share and remove, rename or move the file named applications which shouldn't be there and is preventing the creation of an applications directory.

Open a terminal to check is there is a applications file, type on a terminal

nautilus ~/.local/share

or press Ctrl+h with nautilus open and navigate to ~/.local/share.

If there is a file called applications there, rename it, or delete it (if find renaming it more secure, just in case).


Why do I get "Host not found" when using a restricted Squid proxy in Elinks?

I think you have to write localhost:3128, and you missed the sintax a little, it's set protocol.http.proxy.host, without the first dot.


Ubuntu 12.04 running on VMWare player does not see Windows Drives

That's rather the way virtualization works. When you define your virtual machine you define what it is and what data it can see. When you run that machine it can't do anything outside of what you have defined.

This is a reason virtualization is often used for testing or "sandboxing" -- it can control both innocent and malicious program errors from destroying important data.

I believe that one can define additional disk resources for vmplayer by defining and using .vmx files that point to additional file strorage for the virtual machine; and that there is a wizard for defining such additional hardware. I don't know about the availability of these features.

Ubuntu also has includes a virtual-manager and qemu-kvm which can be used to define virtual machines and what they contain.


Cmake error while building gromacs (ubuntu 14.10 64 bit)

Please compile cmake again and use this ./configure (The default value is /usr/local):

sudo make uninstall
make clean
./configure --prefix=/usr
make

And you should use sudo checkinstall and not sudo make install to get a .deb file:

sudo apt-get install checkinstall

It may be that you first need to delete your old cmake installation:

sudo apt-get remove cmake
sudo apt-get remove cmake-data

and than install the compiled version with:

sudo checkinstall

That's all =)


cannot open files since workspaces act weird

This is rather embarrassing, but after I thought I had checked everything, it turned out there was one thing I hadn't checked: one cable needed to be jiggled a little. Now things work as good as new. Thanks anyway.


You get this error because the exfat filesystem is not installed in Ubuntu by default. exFAT is a proprietary and patented by Microsoft.

Since Ubuntu 13.10, this package is in the main repository. Just install exfat-fuse and exfat-utils:

sudo apt-get install exfat-fuse exfat-utils

Source: Pablo Bianchi - Mount unknown filesystem exfat


How can I prevent a mount from being displayed as a removable media?

I am mounting the nfs shares in my dormitory with this:
https://help.ubuntu.com/community/Autofs


Autohide in Dash to Panel on Ubuntu with GNOME

Open Tweaks (install it using sudo apt install gnome-tweaks, if you haven't already). Go to Extensions and click the gear icon next to Dash to Panel to open its settings. At the bottom of the settings window you will find the Panel Intellihide option. You can enable this to make the panel intellihide (hide only when obstructed by another window) or click the gear icon to select another hiding option.


bluetooth does not appear in pulseaudio as a possible source/sink

On my system this problem was caused by gdm starting a pulseaudio client and grabbing the bluetooth audio card before the user's client could. I fixed it by disabling pulseaudio for the gdm user:
in

/var/lib/gdm/.config/pulse/client.conf

added:

autospawn = no
daemon-binary = /bin/true


You might look into setting up an IPv6 tunnel, particularly if you need addresses strictly for private use (or for the use of people outside the US.)

You can tunnel an HTTP server with PageKite.
ChunkHost is currently running a free beta, if you need a VPS temporarily or will be willing to pay for it in the future.

Unfortunately, unless you are in charge of the network you don't get to control allocation of IP addresses.
When / if network providers finally switch over to IPv6 there will be plenty of addresses for everyone; hopefully we all will be able to get static IPs then.

Because NAT is bad.


Before you start, this is a complex task and you need to have in-depth knowledge of the TCP/IP protocol so if you don't own this book already, buy it!
Depending on where the packets take a wrong turn, you will have to: (increasing number means increased difficulty)

Use gufw's listening report:

to see whether the packets actually arrive to your machine.  This is the simplest way of seeing what's going on.

Use sudo tcpdump -i interface to have an even deeper knowledge what's happening on your machine...

Sniff your network using something like wireshark to see the packets that actually get transported on the LAN and which are never responded to.  The last one needs 2 machines: the "sniffing machine" that sniffs the network that the other machine is connected to.  Also, you need to enable a monitor port on your switch (a.k.a. "mirroring port" or "SPAN" port) or use an old-style HUB.

The last one will allow you to follow the entire path of the packet (which is what your question is about)
For further information, read the manuals of the respective tools otherwise you will be like a kid trying to figure out an old-fashioned phone!  >:-)


Apparmor problem with ecryptfs mount on mysql folder

I did some more digging and I think i got the answer.  Despite what i saw from some posts that apparmor does not care about the mount source folder, apparantly it does look to where the source folder is from when doing the mount.  this is actually good security.  i tried adding the source folder as an alias in apparmor and it now works.  i have also change the mount to automount.  the quirk that I last described also went away.  I will edit my orginal post for these points.

A follow up question I have now is the performance for having ecryptfs supporting mysql, any pointers for this?  Thanks.


Creating multiple virtual adapters over a single physical NIC

Use this link for help on VLAN configuration
https://wiki.ubuntu.com/vlan

OR

To add a new virtual network interface, based on an existing (physical) interface.

The below example is a virtual IP based on eth0 (physical)

sudo vi /etc/network/interfaces

auto eth0:1
iface eth0:1 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.0
network xxx.xxx.xxx.0
broadcast xxx.xxx.xxx.xxx

auto eth0:2
iface eth0:2 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.0
network xxx.xxx.xxx.0
broadcast xxx.xxx.xxx.xxx

auto eth0:3
iface eth0:3 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.0
network xxx.xxx.xxx.0
broadcast xxx.xxx.xxx.xxx

save the file and restart the networking services

  sudo invoke-rc.d networking restart

now run sudo ifconfig -a should be able able to see all above configured interfaces


Ubuntu 16.04 shows only wallpaper, cursor and flashing icons

Disable Secure Boot in BIOS. With Secure Boot enabled proprietary drivers will never load. Then run in a terminal

sudo apt purge 'nvidia.*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-367 nvidia-prime

The 367 driver is a recommended by Nvidia LTS driver.


Try:

echo "options iwlwifi 11n_disable=8" | sudo tee -a /etc/modprobe.d/iwlwifi.conf

And then reboot and check the results.


Can't find installed packages in Lubuntu

dpkg -L Pjsip command will show you where the installed files are.


Re ubuntuone and xubuntu - sounds very similar to this question and answer: Ubuntu One for Xfce or Xubuntu?

Its been tidied up in 11.04 so that you dont have to install all the Gnome dependencies and other Gnome files

To summarise - use Software Centre and search for "UbuntuOne".

If you want to use the terminal so that you are content to see all the additional packages being installed then

sudo apt-get install ubuntuone-control-panel-gtk

This will install the main control panel & other services to allow you to sync with the UbuntuOne folder in your Home folder.

To launch the Control Centre - create a menu link to run /usr/bin/ubuntuone-control-panel-gtk


Your primary answer to this will be found at the end of the Intel article itself:

  Intel highly recommends checking with your system OEM for updated firmware.  Links to system manufacturer pages concerning this issue can be found at http://www.intel.com/sa-00086-support

Basically, they are telling you that the manufacturer of your computer will need to provide updated firmware.  If, like me, you cannot update the firmware in your machine, we can only hope that at some not distant point in time an updated intel_microcode package will be available for Linux.

It is worth noting that this is not strictly about Ubuntu or Linux in general:  The problem is a firmware issue and related to the underlying machine rather than the OS. How quickly this becomes resolved will largely depend upon how seriously the manufacturer approaches this problem. As of the time that I write this, the Intel support page links to statements by Dell and Lenovo, and apparently Lenovo intends to issue an update by 2017/11/24.


Missing packages during manual package install

I fixed this problem with:
sudo apt-get install -f


Yes, you can. Chances are the laptop has UEFI or Secure Boot which complicates things.
Also the laptop probably has a recovery partition. Keep it! Normally you should be able to reinstall Windows 8 using the recovery disk if you decide you need it. I'm pretty sure the Windows 8 partition can be removed, but not the recovery partition!

There is more information about UEFI/Secure Boot at the Ubuntu Documentation UEFI wiki.


What (input) types of files can ffmpeg convert and to what (output) files?

There is an inbuilt list of codecs supported from the version of ffmpeg you have installed.

In a terminal type

ffmpeg -formats

This will give you a rather long list of supported formats beginning e.g. like below. All codecs listed with D can be used as input, all those listed with E can be used as output.

File formats:
 D. = Demuxing supported
 .E = Muxing supported
 --
  E 3g2             3GP2 format
  E 3gp             3GP format
 D  4xm             4X Technologies format
 D  IFF             IFF format
 D  ISS             Funcom ISS format
 D  MTV             MTV format
 DE RoQ             raw id RoQ format
  E a64             a64 - video for Commodore 64
 D  aac             raw ADTS AAC
 DE ac3             raw AC-3

For more information on codecs, and details on their usage see:

Multimedia Wiki: Video Codecs
Multimedia Wiki: Audio Codecs


Decrypt encrypted disk to make second partition

"Great security comes with great responsibility"...  ;-)

The conclusion of @user68186 is correct: backup everything and recreate.  I would back up everything twice: one system back-up using CloneZilla disk-to-image (will be encrypted as well) and one file backup (please do that one unencrypted to avoid more trouble later on, use your current back-up program.) of the following directories:

bin        Videos     Desktop    Pictures
Documents  Music      Public     Downloads  Templates

Read this Q&A on the strategy to use.  You’re definitely user type 4!


Desktop feels slow: ati X600 card's fault?

In my experience, changing to raster rendering vastly improved KDE4s speed and responsiveness.  do this:

sudo apt-get install kde-config-qt-graphicssystem

and then find qt rendering settings in systemsettings.  Select raster and logout/back in.


Why does division in bash arithmetic compute most percentages as 0?

bash cannot handle non-integer arithmetic. It will give you the correct result as long as all the expressions are integers. So you need to avoid getting a non-integer value somewhere in your calculation.

In your case, when you are evaluating 1 / 5, 2 / 5 etc. it creates the integer zero values in bash correspondings to some non-integer values and the results are coming out to be zero accordingly. Precedence of division and multiplication are the same and same precedent operators are always executed left to right as they are placed in the expression.

One work around will be to do the multiplication first and then the division so bash never has to handle non-integer value. The corrected expression will be,

$ max=5; for e in $(seq 1 1 $max); do percent=$(( $e*100/$max )); echo "echo $e / $max : = $percent"; done
echo 1 / 5 : = 20
echo 2 / 5 : = 40
echo 3 / 5 : = 60
echo 4 / 5 : = 80
echo 5 / 5 : = 100


What is the Window Title Bar height in Pixel?

From What causes the deviation in the wmctrl window move command:

$ xprop | grep FRAME
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 28, 0

Whenever you get a windows position and move it to that same position it shouldn't move on the screen but it does due to the height of the title bar. So in my case I would need to subtract 28 from the y-coordinate and move to that spot.

Improving performance
You will find the command takes about 10 seconds to run:
$ time xprop | grep FRAME
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 28, 0

real    0m9.989s
user    0m0.017s
sys     0m0.004s

This is extraordinary slow. To speed up the search pass a Window ID:
$ time xprop -id $(xdotool getactivewindow) | grep FRAME
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 28, 0

real    0m0.012s
user    0m0.011s
sys     0m0.003s

Now it's only a hundredth of a second, faster than a blinking eye.


Urgent notifications not showing up in fullscreen mode

Yes this is very annoying. For workaround, I use zenity's warning dialog-box. It has the benefit of popping up even over full-screen applications:

zenity --warning --text='Battery Low' --no-wrap

Getting the current battery percentage programmatically via script is very easy, but will require a little bit of research on your part, because of variability among systems and manufacturers. Start from here.

Here is my script setup:

This is batteryLevel.sh :

#!/bin/bash

upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep percentage | sed -r 's/[^0-9]*([0-9]+).*/\1/'

This is batteryStatus.sh :

#!/bin/bash

upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep state | sed -r 's/.*\:\ +(.*)/\1/'

Finally, this is batteryInfoNotify.sh :

#!/bin/bash

upperThreshold=99
lowerThreshold=20

echo upperThreshold=$upperThreshold
echo lowerThreshold=$lowerThreshold

zenity --info --text='Battery level monitoring started...' --no-wrap 2>&1 >/dev/null

while [[ true ]]; do
    status=$(~/Scripts/batteryStatus.sh)
    level=$(~/Scripts/batteryLevel.sh)
    msg="Battery Level now is $level%"

    echo "Battery $level% and $status"

    case $status in
        charging | fully-charged)
            if [[ $level -gt $upperThreshold ]]; then
                echo 'Upper threshold crossed...'
                zenity --warning --text="$msg" --no-wrap --timeout=8 >/dev/null 2>&1
                espeak -v en+m7 -p 60 "$msg"
            fi
            ;;
        discharging)
            if [[ $level -lt $lowerThreshold ]]; then
                echo 'Lower threshold crossed...'
                zenity --warning --text="$msg" --no-wrap --timeout=8 >/dev/null 2>&1
                espeak -v en+m7 -p 60 "$msg"
            fi
            ;;
        *)
            echo unexpected battery status
            ;;
    esac

    sleep 30s
done

All of these are in my ~/Scripts and batteryInfoNotify.sh is called at session startup everytime because I set it up so in GNOME Startup Appications.


Bumblebee indicator icon on unity bar does not show up Ubuntu 13.04

Download the icons from github (location: /bumblebee-ui-master/icons) and put them in your ~/.icons folder (if you don't have one create it). Everything should work just fine now. Even the menu entries for Bumblebee Applications Settings and Bumblebee Indicator will start showing up normally at the dash.


File dialog is crashing, where do I report the bug?

The short answer is: file the bug in Launchpad, using ubuntu-bug, against any relevant package. Filing a good bug, even if it's against the wrong package, is still useful: it's easy for someone better placed to redirect it in to the right one, and much easier than dealing with a bug that doesn't have a stacktrace or other technical information.

As far as which package it should go against:

Filing against one application that does show the problem is a good place to start.
Choosing the package corresponding to the innermost stack frame that's not really generic like libc would also be reasonable, so (just going off what you show here) libpixman could be reasonable.
The file dialog for gedit comes from libgtk2 (or maybe libgtk3 depending) so that could also be ok.

This stack trace looks truncated so getting the actual right one by reporting with ubuntu-bug would be much better.


How can I boot into an Ubuntu command line without having to install Ubuntu?

You can switch to the TTYs to get a command line. Try CtrlAltF3 (or F4 ...), and CtrlAltF1 to go back to the GUI.


PAM configuration error can cause “The system is running in low-graphics mode” error

Short recommendation: if you have both PAM errors and the low graphics problem, try to fix the PAM problems first.

I had this line in /etc/pam.d/common-account to enable time restrictions (it worked on the 32 bit installation):

login  account  required  pam_time.so

I commented that line out, rebooted, and the PAM problem disappeared, AND the 'low graphics' problem disappeared. Further testing showed that editing the line to:

account  required  pam_time.so

allowed the time restrictions to work without causing PAM errors or the low graphics error.
I can't explain why the PAM error caused the low graphics error, but I hope this information helps someone else.


It should work the way you want if you wrap the command in a command group or subshell:

{ time ./blur-effect 4k.png 4k_out16.png 16 15 ; } &>> Output.txt

or

(time ./blur-effect 4k.png 4k_out16.png 16 15) &>> Output.txt

See Write output of time in a file, why are parentheses needed?


Is it safe to use a second hand laptop after reinstalling ubuntu on it

Short Answer
YES
Long Answer
YES, but...
A laptop with Ubuntu 14.04 installed by the previous owner is on average safer than one with Windows installed on it. Windows was well known for having "worms", "viruses" and "Trojans". These days Windows is better but the historical events are still at the back of most peoples' minds. This history naturally affects the thinking of many (but not all) new users to Linux / Ubuntu as well. I think it's important to point out how less likely viruses are.
There are some Linux binary programs that can capture your keystrokes. A previous owner could have such a program installed and another program to transmit your recorded keystrokes to an Internet address. The fact you erased the hard drive and installed Ubuntu 16.04 should have eradicated it.
Thinks to remember:

As I mentioned in comments below your question, unless an ex-spouse or the NSA sold you the used laptop you shouldn't worry all that much.
If an owner setup the machine to spy on you and you purchased the machine then that means the machine is your property. Any data collected by the previous owner makes them guilty of willful trespass. Also the police could consider charging them with the intent to commit fraud, blackmail or theft (via on-line banking). Most people would not take this risk.

General points about keyloggers:

Employers can legally use them to spy on employees because the employers own the computers
High school principals have been known to spy on students in bedrooms by remotely activating webcams to the school's laptop the student is using.
Libraries who charge say $12 for a yearly library card probably could not use keyloggers but recently my city library made library cards free so I guess they probably could legally do it.
If you live in a shared home or other people have access to your computer at work you may want to install your own keylogger on your own computer to see if others are accessing it when you are away.

In the comment section of your question, myself and others were guilty of hi-jacking your question with talk about BIOS and ROM chip reprogramming. That is extremely unlikely unless you are the owner of a bitcoin exchange that the US Federal Reserve or US Treasury was keen to eradicate. However that would also mean you wouldn't be buying a used computer in the first place.


Installing ubuntu without graphics terminal(gfxterm)

You'll have to modify the boot disk to redirect output to the serial port appropriately.

Download an ubuntu server amd64 iso file
Create a USB boot disk using unetbootin
Modify the following files. If you still use legacy bios boot mode, modify isolinux/isolinux.cfg, isolinux/txt.cfg, syslinux.cfg. If you use UEFI boot mode, modify boot/grub/grub.cfg only.

isolinux/isolinux.cfg

# D-I config version 2.0
include menu.cfg
default menu.c32
prompt 0
timeout 0

isolinux/txt.cfg

default install
label install
  menu label ^Install Ubuntu Server
  kernel /install/vmlinuz
  append vga=normal initrd=/install/initrd.gz -- console=tty0 console=ttyS0,115200n8 nosplash debug -

syslinux.cfg

CONSOLE 0
SERIAL 0 115200 0

default menu.c32
prompt 0
menu title UNetbootin
timeout 100

label unetbootindefault
kernel /ubnkern
append vga=normal initrd=/ubninit nomodeset askmethod console=tty0 console=ttyS0,115200n8

boot/grub/grub.cfg

menuentry "Install Ubuntu Server" {
    set gfxpayload=keep
    linux   /install/vmlinuz  file=/cdrom/preseed/ubuntu-server.seed vga=normal console=tty0 console=ttyS0,115200n8 ---
    initrd  /install/initrd.gz
    }

Install ubuntu as usual by connecting to the serial port. On first boot, enter editing mode of grub boot option with key e, when you see grub boot menu on serial console.

Add console options after ro in linux boot options

linux ..... ro console=tty0 console=ttyS0,115200n8

and then press Ctrl+X to boot.

Post install, edit the grub configuration (/etc/default/grub) as follows

GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_TERMINAL='serial console'
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

following which you must run update-grub to update the menu entries.

Source: Ubuntu Serial Install


Kubuntu 15.04 KDE 15.08 language problem

Staging depots (as CI) are not meant for every day use in a stable production environment.

Wonder who gave the recommondation w/o a warning?

The content of CI-stable will after a prolonged testing period merge to the backports-ppa, by then the language files will go into production and missing terms will be added by the official team.

Further reading -> http://wire.kubuntu.org/
-> http://wire.kubuntu.org/?p=424
...
About CI-staging: scarlettgatelyclark.com/2015/kubuntu-kde-applications-15-08-3-bugfix-release-is-ready-for-testing/

extracted content: "... Once this has been tested and placed in Wily backports, I will backport it to Vivid."

edited 17.11. 3:46

Thanks to your question a comment was now added to the ppa-description:
Direct landing PPA - highly fluctuating DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING. ppa:kubuntu-ci/stable-daily is much nicer

You should also pin kde-l10n-de back to 15.04.xx version (with backports-ppa activated in your case), otherwise you won't receive updates of this package. If you are not familiar with this process, you find it well described in: (https://wiki.ubuntuusers.de/Apt-Pinning)
If you don't get along by yourself - they have a forum to ask. Their motto is: "Fragen ist menschlich"


Who created the default Ubuntu wallpaper?

I think it's a worf of the  Canonical Design Team Blog.

Update: Now that i've read a little, i believe Canonical held some sort of contest where users could contribute with artwork, Wallpaper competition i believe, and maybe some user won and got his wallpaper published.

You can read more here:

https://launchpad.net/ubuntu/maverick/+source/ubuntu-wallpapers/0.31.6
https://bugs.launchpad.net/ubuntu/+source/ubuntu-wallpapers/+bug/621287
https://bugs.launchpad.net/ubuntu/+source/ubuntu-wallpapers/+bug/625193
https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/629216
https://blueprints.launchpad.net/ubuntu/+spec/design-m-wallpaper-competition


Broken Package Manager? The suggested "apt-get -f install" is failing!

Usually this happens when mismatched package versions are hand-installed with dpkg or gdebi without some of the dependencies having a resolution. (dpkg/gdebi and other .deb level tools will try to install a package where dependencies are unmet, leaving it in the half-installed "unconfigured" state, which apt considers to be broken. apt, software center, synaptic, and other high-level package management will usually catch these errors from reading the dependencies before installing the package and stop you before you break things, unless the error happens late in the installation, such as what happens when a package in the repository is broken and tries to write files owned by another package)

So long as the packages causing the error are not system critical and can be removed without causing a huge cascade of dependency problems, the quickest way to resolve an error like that that apt-get can't resolve on it's own is to back the offending packages out until apt-get -f install is able to take care of the problem, then apt-get update, apt-get upgrade, and finally try what you were doing again through apt-get.

In your case, I'd start by backing out  libcupsimage2:i386  ia32-libs-multiarch:i386 and skype:

apt-get remove libcupsimage2:i386  ia32-libs-multiarch:i386 ia32-libs skype

If the situation is more complex, and creates huge cascades of failed dependencies, then the alternative is to figure out from the dependency messages what went wrong and try to specify a solution by naming the packages necessary to resolve the dependency problem. Usually these sort of situations arise from mixing packages from multiple repositories such as backports or PPAs, and you solve them by specifying a particular version of a package that wouldn't normally be considered by apt because of pinning, or by explicitly telling apt-get to go back to versions in the official repository (apt-get will not downgrade a package to solve a broken situation unless explicitly told to do so - so if you installed a newer version of a library by hand, and packages on the system have a dependency on the specific version, you have to update one or downgrade the other until the dependency mess is resolved.)


Are you running 64 bit Ubuntu? Last time I looked, it won't run on 32 bit systems regardless of any efforts you make.

I've put a complete(?) tutorial on using Oracle-xe on 64 bit Ubuntu on
http://www.antikytherapubs.com/ that should get you going. I put this together after attempting to use several other on-line instructions that I couldn't get to work, although I don't believe I'm familiar with the site you mentioned. One difficulty is that Oracle doesn't supply a .deb themselves, and some .deb files built on certain systems don't always contain all the dependencies.

Scroll down that page and you'll see a link to either view or download the Database Design Note for using Oracle on Ubuntu (and other Debian based systems).

A version of this app note was also published in an earlier issue of Full Circle magazine - a free monthly Ubuntu magazine if you're not familiar with it (several years of back issues available if you're just getting started with Ubuntu).

I hope this helps.

Frank


On desktop Telegram: how can I make fonts bigger? i.e. increase fonts size?

click the 3 lines (the hamburger) in the upper left corner, select settings
scroll down to default interface scale, select desired percentage
it will prompt you to restart the program, select ok
I hope this helps :)


I had this problem on Xubuntu 20.04, there is a work around.
Edit:

/usr/share/easyabc/easy_abc.py

Go to line 4456:

self.mc.Load('NONEXISTANT_FILE____.mid')

Hash it out:

#self.mc.Load('NONEXISTANT_FILE____.mid')

Save the file. This cured the problem for me.
I found it here:

https://sourceforge.net/p/easyabc/discussion/general/thread/524f3f9c/?limit=25


Why isnt there a KDE client for ubuntu one

Ubuntu One for KDE is Alpha Software, which if you would like to test, then proceed otherwise stop right there and install the GTK Version.

To install UbuntuOne Alpha 1:

 sudo add-apt-repository ppa:apachelogger/ubuntuone-kde
 sudo apt-get update
 sudo apt-get install ubuntuone-kde

Note that This was released around 10.10 times so... again this is (outdated) alpha  software.

Known issue: in case the "ubuntuone-client-gnome" package is installed, make sure you remove it before installing "ubuntuone-kde".

Source.


Higher precision (smoothness) touchpad scrolling

A partial answer is:

id=`xinput list | grep -Po "[Tt]ouch[^=]*id=[0-9]+" | grep -Po [0-9]+`
prop_id=`xinput --list-props $id | grep -P ".*[^C][^i][^r][^c][^u][^l][^a][^r]\sScrolling Distance" | grep -Po '\([0-9]+\)' | grep -Po "[0-9]+"`
xinput --set-prop "$id" "$prop_id" 15 15

to make the scrolling step smaller; after that, in Firefox there are mousewheel.default.delta_multiplier_x and mousewheel.default.delta_multiplier_y which can be changed to make the scolling distance on each step smaller as well.

Setting the scrolling distance much less than 15 (in my case) makes scrolling in quite a few applications unusable.


Using sed to add characters at the end of a line adds a new line

The issue was a \r character at the end of each line that I did not know about. This makes the cursor return to the beginning of the line. I noticed this by trying to echo "$cardname""|""$set_code" which output

|M13idic Slime


I added new RAM modules to my system, now I get unexpected shutdowns, why?

Suggest you revert to your original memory configuration and run with that for a week. If the problem does not return, then change to the 16GB configuration. If the problem then returns, your memory is defective.


One method is to use Ubuntu Software Center. Open it and use the arrow down next to "installed". It will list (from bottom up) PPA's installed:

When you click on a PPA (TLP as an example) it will list the software included in this PPA. A green 'tick' means the software is installed. If none are the PPA is unused.


Where is a particular snap program located

Snap applications should be located in /snap/bin/
If the application does not show up properly in the Desktop Search or Applications Menu or equivalent used by your Desktop Environment, please file a bug report with the Snap author.


The answer is cups-pdf

sudo apt-get install cups-pdf

or from Ubuntu 16.04 on

sudo apt-get install printer-driver-cups-pdf

If there's no such folder, create PDF at your home:

mkdir ~/PDF

Now you're set to go. From MS Word, do Print -> Select PDF as printer -> wait for the printing to complete (it takes some time).


Installing Ubuntu 16 and stuck at boot checks

This may sound silly but did you use the same iso for both the usb and dvd? It might be corrupted, this has induced rage a few times for me.

Download the image, run a hash check and then try to install again with the usb.

Also is your SSD by any chance an nvme disk? Ubuntu has trouble with some of the newer hardware.


Ubuntu 16.04.3 Live USB Doesn't like my Nvidia Gtx 1070 - Getting weird stripes/dot-matrix looking text

I'm getting the same error running a GTX 970 and an i5-7600k. I'm not sure why, but for some reason the Nouveau drivers aren't happy with my new hardware even though the GTX 970 always worked fine in the past for Live CDs on my old system. Maybe the new CPU has something to do with it? My old install boots fine because it already has proprietary NVIDIA drivers on it, but the live USB gets a very similar screen to what you're seeing.

The fix:
Switch to your integrated graphics as the primary GPU and boot on there. Be sure to unplug all monitors from your GPU. For some reason, even though I set integrated graphics as my primary GPU using a secondary monitor, the the Nouveau drivers still detected my first monitor and caused the boot to fail.

If you plan to make a fresh install, be sure to boot it and install the NVIDIA drivers before switching back to your NVIDIA card.


/etc/profile.d/kwin.sh file doesn't exist

You need to create the file yourself and add the commands to it. Just leaving this here in case anyone misunderstands what they are supposed to do. :)

Add these commands to an empty text file, and save it in /etc/profile.d as kwin.sh. If it doesn't work immediately, restart your computer or log out and back in.

export __GL_YIELD="USLEEP"
export KWIN_TRIPLE_BUFFER=1

https://wiki.archlinux.org/index.php/NVIDIA/Troubleshooting#Avoid_screen_tearing_in_KDE_.28KWin.29


I was able to find a simpler way to do this.

GNOME Tweaks has an option for selecting the application you want to run during startup.


How do I install Alientvault SIEM manually?

It does not deserve the effort. OSSIM uses a highly modified Debian system and dozens of third-party applications, glued with several source code changes. Install and configure all these components in Ubuntu from scratch it would be a nice challenge but painful.

Why you need to install it on Ubuntu? It would be more easy to add to AlienVault these features.


Unable to install latest version of Codeblocks

dear friend the version available on ubuntu repositories is 10.05.
if you want to install 12.11 or 12.12
download it from here

http://www.codeblocks.org/downloads/binaries

or use codeblocks PPA

https://launchpad.net/~pasgui/+archive/ppa/


Where can I change the automatic lock screen preference?

Open up the screensaver preferences: System ➜ Preferences ➜Screensaver.

You will see a slider to set the idle time:


Menus not visible in some apps in Xubuntu 12.04

I think I solved this particular problem.  I was having problem with a lack of menus in gnome-shell as well.  I went into dconf editor, clicked on 'org' then on 'global menu.'  I then unchecked the 'enable global menu' box.  Since then, I have been able to see menus in both xubuntu and gnome-shell.  I haven't noticed any loss in functionality in global menu when I'm logged into Unity.  Thanks everyone for the answers.


How to auto start a service if the server restarts

I need 1 particular service to start in event of the server restarting please can you tell me the command?

The question really depends on your Ubuntu version. If you have 15.04 and newer with systemd, it is straightforward action:

systemctl enable service_name

for other services, it may differ since the system is still using init scripts.

  Also, is there a way I can remotely log into the server without using putty but a GUI app?

There are some. But you will be probably looking for something like VNC.


Bash script to monitor file change and execute command

Linux provides a nice interface for monitoring all file system events like creating, modifying, removing files. The interface is inotify family of system calls, the userspace utilities leveraging these calls are provided by the inotify-tools package in Ubuntu (available on the universe repository). If you don't have it already, install by:

sudo apt-get install inotify-tools

inotify-tools provides inotifywait and inotifywatch binaries, we need the first one.

So you want to run the command asciidoctor -q some_file when any .adoc file is modified (some_file will replaced by that), if so assuming your .adoc files are in directory /foo/bar, you can set the watch:

inotifywait -qm --event modify --format '%w' /foo/bar/*.adoc

-q enables the quiet mode,  no info from inotifywait itself
-m enables monitor mode, otherwise it will exit after the first event
--event modify, we are only interested in modify event i.e. when a file is modified. Other possible values include open, close etc.
--format %w, we only want the file name that is modified rather than bunch of other info as we will use the file name as input to another command
/foo/bar/*.adoc will be expanded to all .adoc files under /foo/bar directory

Now the above will show you the filename whenever any is modified, now to run the command on the filename (assuming the command takes arguments via STDIN):

inotifywait -qm --event modify --format '%w' /foo/bar/*.adoc | asciidoctor -q

You can also setup a recursive watch on the directory, you will then need to use grep to filter the desired files only. Here setting the watch recursively (-r) on directory /foo/bar and using grep to filter only .adoc files:

inotifywait -qrm --event modify --format '%w%f' /foo/bar | grep '\.adoc$' | asciidoctor -q

When watching directories the output format specifier %w resolves to the directory name, so we need %f to get the file name. While watching files, %f would resolve to empty string.

Note that, you can also run inotifywait in daemon (-d) mode, you can also script the whole  thing, and/or run in background, and/or play with it more other options.

Also, you can replace asciidoctor with any other command of your choice, if you want.

Check man inotifywait to get more idea.


An alternative to Alin's answer is to create a file /etc/lightdm/lightdm.conf and add the following content:

[SeatDefaults]
autologin-user=<YOUR USER>
autologin-user-timeout=0
user-session=ubuntu
# Uncomment the following, if running Unity
#greeter-session=unity-greeter

Next time you start, auto-login should work like expected.


I have found out the problem is my mouse oddly enough.

I have an ASUS Republic of Gamers mouse which is probably made by Logitech or uses the same guts.  Supposedly these mouses are the issue.  Not sure on the actual fix, but I unplugged the sucker and restarted and all is well, but now I have no mouse besides this track pad...


Sudo user without the permission to edit sudoers

Edit the sudoers with the visudo command

sudo visudo

Add the user like this

theusername ALL=ALL, !/usr/sbin/visudo

Which will explicit disallow the user from running the visudo command with sudo.

However, this does not prevent them from running

sudo -s

to drop to a root shell, from which they can run the visudo command.


Ubuntu show grub boot menu and do not auto boot?

What you tried:

sudo nano /etc/default/grub
GRUB_TIMEOUT=0

Then run sudo update-grub

Does not work because grub automatically changes a time out of zero to 10. What you need to do is this:

sudo nano /etc/default/grub
GRUB_RECORDFAIL_TIMEOUT=0.1
GRUB_TIMEOUT=0.1

Then run sudo update-grub


BIOS and EFI require entirely different boot loaders. (To be sure, GRUB2 is available for both environments, but those are different GRUB2 binaries -- sort of like Firefox being available for both Windows and Linux.) Thus, to boot on both BIOS and EFI computers, a medium needs to include both BIOS and EFI boot loaders. You've already got an EFI-mode version of GRUB2 installed, so that means you must install a BIOS-mode boot loader. I recommend avoiding GRUB2 for this, simply to avoid the possibility of conflicting or confusing GRUB2 configuration files. That said, it is possible to get both BIOS-mode and EFI-mode GRUB2 installations to coexist; I simply don't know the details of any "gotchas." You might want to look into SYSLINUX for this task, but I'm afraid I can't provide step-by-step installation instructions.


FGLRX has been deprecated in 16.04, and I think AMD are moving over to an open driver stack.

If you have a little google around for "fglrx in 16.04" you should find some reports on this quite easily.

So at the moment you are out of luck !


Whilst internet sharing over ethernet client PC cannot connect to internet

Windows 10, in order to better spy on and gather information secretly on it's users, employs a non-standard Proxy setup, and after the "Creator's Update" (that will trash your privacy settings, activation, and apps unless you turn all the "phone home" settings, camera, and mic back on) will not allow connection through a "screen" or "firewall" like a Linux box that could block, or track the snooping.  If you have dual-boot to Ubuntu 16.04, or newer, and boot into Ubuntu you will find your connection is just fine once you make the required IP and DNS adjustments.  You will need to read 50-200 pages, depending on your expertise level, to understand how to get clear communication between Win10 and the Net through a Linux box.  It's just not worth the trouble because the next Win10 update should "fix" this "feature".

Easiest solution: Find the article on the Ubuntu website detailing the step by step resizing of the Win10 partition and install Ubuntu for dual boot.  Use an ext3 or ext4 FS so Win10 can't trash your Linux installation - it's widely reported. Boot into Ubuntu (turn on machine, press ESC, press F9(on an HP computer) for the OS menu, select the Ubuntu boot option, press Enter).  Mount the Windows partition using any file manager like Caja, Nemo, etc.  You now have access to all your Windows files AND CAN CHANGE ANYTHING - BE CAREFUL!  Now you can transmit and receive any files you like to and from your Windows partition.  Make a special directory for this to make your life easier.

BTW, AT&T ships most new devices with the default network you have selected, choose a network mask with some other number than "1".  I would use anything from 40-245 myself.  Much harder for hackers to guess.

Hope this helps.

fudoki


Why does my browser display all-white (blank) text after installing some fonts?

Install MyUnity and reset your font settings . click here!  MyUnity and open it and select fonts in the menu. Reset all to its defaults and give a restart. look at the image

source : MyUnity


Make screen turn blank (no standby) when closing laptop lid

You need to set the appropriate setting in your power manager. If you're using Xfce, then in xfce4-power-manager you can access Preferences, then you can set in the Monitor tab the timeouts for Put display to sleep or Switch off display. Thus the power manager will turn the screen off after a given timeout period. You need to set this setting in both the On AC and On Battery tabs.

It doesn't look like you can easily trigger this behavior When laptop lid is closed in Actions tab.


How can I get Ubuntu? . I cant download it

You have several options:

ask someone to download the install media for you
ask someone to send you an install CD by post
ask the staff at the cyber café to download the Minimal Install version which is just around 30Mb (More info here: https://help.ubuntu.com/community/Installation/MinimalCD), ofcourse you will need Internet connection during the install. Perhaps you can ask them to let you plug your laptop on their network.