Installing Ubuntu on new Harddrive without running into GRUB problems

Actually apart from it,you didn't need to worry about your bootloader.
------- Since you are dual-booting, the boot-loader should go on /dev/sda itself. Yes, NOT /dev/sda1 or /dev/sda2, or any other partition, but on the hard drive itself..------------
As you mentioned,you had installed your windows in SSD & ubuntu in HDD, and now you want to remove/change HDD.
It is more better and convinient ,if you install new ubuntu in you SSD or say in local disk C and leave rest of HDD's or local disk D/E etc for saving your backups and for other personal files/data. because SSD's are fastest drive for booting.
I assumed  that  during installation, you created your root & home directory for ubuntu is in the SSD because you installed UBUNTU in it .obviously.
so now,

you can dual boot into your SSD both windows & SSD as well.

you can also remove HDD without hesitation and freshly install new UBUNTU on new HDD

just stick bootable usb and follow the instruction wherever you want
to install   UBUNTU

and for more details how to install/reinstall ubuntu as a dual-boot see this answer.


How do I increase the UDP receive buffer size?

Type:

sysctl -w net.core.rmem_max=8388608

This sets the max OS receive buffer size for all types of connections.

from Linux Networking Documentation

  Resolving Slow UDP Traffic

  If your server does not seem to be able to receive UDP traffic as fast
  as it can receive TCP traffic, it could be because Linux, by default,
  does not set the network stack buffers as large as they need to be to
  support high UDP transfer rates. One way to alleviate this problem is
  to allow more memory to be used by the IP stack to store incoming
  data. For instance, use the commands:

sysctl -w net.core.rmem_max=262143

  and:

sysctl -w net.core.rmem_default=262143

  to increase the read buffer memory max and default to 262143 (256k -
  1) from defaults of max=131071 (128k - 1) and default=65535 (64k - 1).
  These variables will increase the amount of memory used by the network
  stack for receives, and can be increased significantly more if
  necessary for your application.


Ubuntu SDK suggests that I develop for 32 bit systems

There's still quite a lot machines that runs on the 32 bit architecture. (Quite alot of people i know, still runs on the 32 bit architecture.) So it would be a good choice to make it available for those people. Ubuntu usually comes preloaded with the libraries needed to run 32 bit applications, in a 64 bit environment.
If it refuses to run, install the ia32 library, using this command:

sudo apt-get install ia32-libs

And for the last question, no. You won't be able to 100% guarantee it to work out of the box on all linux distros, as some come with other packages preloaded.


How do I completely remove/uninstall an application?

You could use apt-cache search KEYWORDS to search for the package name which contains KEYWORDS in its description.

You can also use dpkg -l PACKAGENAME to list all installed packages that match the pattern PACKAGENAME. You can use ? (one arbitrary character) and * (any number of arbitrary characters) as wildcards.

Then use sudo apt-get autoremove --purge PACKAGE to remove PACKAGE completely, including configuration and all no longer needed dependencies.

Example for PiTiVi:

Find out the package name:

$ apt-cache search PiTiVi
pitivi - non-linear audio/video editor using GStreamer

Purge the package and its dependencies:

$ sudo apt-get autoremove --purge pitivi
[...some output...]


Need software to record from external system

If you have used recording software in the past, such as Sony Sound Forge, Adobe Audition, or if you never used such recording software you may wish to give a chance to Audacity.

With Audacity you may choose which sound signal you wish to record from: Line Input, Microphone or any available in your sound card. This will create the waveform when recording and when finished you will be able to adjust audio levels by mastering your audio with useful plugins included in the installation.

From the site:

  Audacity is a free, easy-to-use and multilingual audio editor and
  recorder for Windows, Mac OS X, GNU/Linux and other operating systems.
  You can use Audacity to:

  Record live audio.
  Convert tapes and records into digital recordings or CDs.
  Edit Ogg Vorbis, MP3, WAV or AIFF sound files.
  Cut, copy, splice or mix sounds together.
  Change the speed or pitch of a recording.
  And more! See the complete list of features.

Audacity is included in the default software sources of Ubuntu and you can install it from Software Center.

Illustrations

First of all we need a common "Y" cable with 1/8" stereo miniplug and 2 RCA male connectors as this:

I am going to use a common TEAC cassette deck player with pitch like this:

(Note: The Audio Mixer is not needed and the snake is optional...)

In the back side of the cassete deck player, I am going to plug the both the RCA male connectors in the corresponding RCA female OUTPUT connectors as shown in the next picture:

Remember that "the corresponding RCA female OUTPUT connectors" may read something like "OUTPUT", "Line Out", "Out", etc.

After that, we need to plug the 1/8" stereo mini in the other edge of the cable, to the corresponding "Line Input" of the computer. I am using a Desktop computer so I am going to plug it in the Blue jack as shown in the next 2 pictures (hand thanks to Jessi Yems)

Audacity usually comes ready to record from "Line in". If you experience some problems when getting the audio signal from line in, try changing the default line input IN AUDACITY. After which you can check your sound settings in the Input Tab in order to see if the sound card is getting some sound signal as in the next example:

If you need further support don't hesitate to leave a comment. Thank you.

Good luck!


How can I get my onboard mic to work while I'm using my AMD video card for sound playback?

I suggest you to install Pulse Audio and try checking options in it.

in terminal sudo apt-get install pulseaudio or use the software center


How to set up charging threshold in ubuntu 14.04

TLP docs state unequivocally that charge thresholds are possible for ThinkPads only. I'm not aware of any other laptop brand where you may apply thresholds within Linux.

Did you look into BIOS/UEFI setup?


I solved this problem. This problem was caused due to secure boot and EFI_SECURE_BOOT_SIG_ENFORCE in linux kernel  4.4.0-20 and later.

I installed the nvidia-364 drivers and entered the key when asked.
Then i rebooted the system. when blue screen of mok management appeared i pressed any key to changed it. Then it asked for password characters. then it let me to disable it. i reinstalled the nvidia 364 after booting in insecure mode. and it worked like charm.

You may not need to do all the steps.
Some people are saying you only need to disable the validation by running

sudo apt install mokutil
sudo mokutil --disable-validation

I did not try this because my problem was already solved.

Many people are not able to install virtual box modules due to the same implementation of  EFI_SECURE_BOOT_SIG_ENFORCE.

You don't need to move ./.Xauthority file or change permissions of /tmp folder or do any another workarounds if you are affected by the same issue.As many people are saying these work arounds.

You can read here in detail https://wiki.ubuntu.com/SecurityTeam/SecureBoot.


Speakers are not working after upgrading to 12.04

I've noticed that the pulsaudio settings get messed up in upgrades sometimes.

try removing the .pulse or .pulseaudio folder in your home folder and restarting.
or at least move it some place else allowing pulseaudio to generate a new configs if any are needed.


Cannot use Thunderbird properly with proxy setting

I suspect there's something wrong with https support.
If the proxy is set to relay https traffic while it can't handle it then you'll have no connection.
What happens if you try to go to https://www.google.com with firefox while the proxy is set? Note that the link above says https (so ending with 's')


sudo apt-get install nautilus-open-terminal does not work

You can try this:

1) Open the "Software Sources" application.

2) Make sure you have enable the "universe" repository, or you should enable it.

3) Close the software source app and open a Termianl and type:

sudo apt-get update
sudo apt-get install nautilus-open-terminal

The package "nautilus-open-terminal" is in universe repository.

http://packages.ubuntu.com/raring/gnome/nautilus-open-terminal


Recursively rename files - oneliner preferably

find . -name '*.txt' -print0 | xargs -0 -n1 bash -c 'mv "$0" "${0/oldname/newname}"'

Obviously, that rename pattern is just a simple example, but beware that as is it will edit the whole path, not just the filename.


Try creating the USB drive with Universal USB installer under Windows http://www.pendrivelinux.com/downloads/Universal-USB-Installer/Universal-USB-Installer-1.9.5.2.exe

it works great with me -every time.

I would suggest redownloading the ISO file


How can I install the Network Security Toolkit (NST) in Ubuntu?

The Network Security Toolkit is a Linux-based Live CD distribution(similar to Fedora/RedHat) and is not meant to be installed as discrete Ubuntu package.

There are numerous packages used in NST(i.e wireshark, ntop, and nmap) that can also be installed independently of the NST Live CD. But, you will need to find them separately and install them one-by-one through either Synaptic, the command line, or the Ubuntu Software center.

See the list of packages offered by NST here. Many of the tools included in this distribution are listed in Sectools.org's Top 125 Network Security Tools list.

The NST ISO can be downloaded from Sourceforge.

For an overview of the NST package, see NST General Information.


You have a bogus pwd (print working directory) command, somehow. I took a look at the referenced line in the postinst script. It is trying to "save" the working directory by storing the output of pwd in a variable, and then, on the referenced line, switching back to this directory after doing a few things in other directories. The problem happens because the pwd called somehow has empty output.

Run the command which pwd. If the output isn't /bin/pwd, find out why and fix it.


To disable incognito on chrome/chromium you need to edit the policies. Doing this will prevent you from opening an incognito window via Ctrl+Shift+n, and will also grey out the incognito window option in the options tab in the corner.

If you're using chrome, create the folder /etc/opt/chrome/policies/managed.
Or if you're using chromium, create the folder /etc/chromium/policies/managed.

Then create a file in that directory named test_policy.json. It can have any name you want, but it needs the extension to be .json.

Open it in your favorite  editor and put:

{
    "IncognitoModeAvailability": 1
}

That should do it!

Source: http://www.chromium.org/administrators/linux-quick-start and
http://www.chromium.org/administrators/policy-list-3


How do I Install Ubuntu 11 on a Dell Latitude E6400 with a Sata Hard Disk?

I had a similar issue in that I was merely going into the one time boot option of (F12)...after going into the BIOS and resetting the boot priority I was able to get Ubuntu to load right up on my Toshiba laptop.  Have you tried changing the boot priority?

Cheers!


Unable to install tor: chown missing operand

This should solve the problem. Replace USERNAME below with actual username.

32-bit instructions

Install tor as follows:

sudo add-apt-repository ppa:upubuntu-com/tor
sudo apt-get update
sudo apt-get install tor-browser

Now change folder ownership of /usr/bin/tor-browser to your current user with this command:

sudo chown -R USERNAME /usr/bin/tor-browser

64-bit instructions

Install tor as follows:

sudo add-apt-repository ppa:upubuntu-com/tor64
sudo apt-get update
sudo apt-get install tor-browser

Now change folder ownership of /usr/bin/tor-browser to your current user with this command:

sudo chown -R USERNAME /usr/bin/tor-browser <BR>

Thanks for pointing the mistake amc. Fixed it now.


How can I reduce Unity 3D's memory usage?

Your netbook with "Intel Atom" is 32bit and your "Acer Aspire AO 722 with AMD C-60 processor" is a 64bit processor, running Ubuntu 12.04 64bit. So, the simple answer is Yes, It is normal to use more resource for a 64 bit OS, than a 32bit OS.

As for comparison, I run Ubuntu 12.04 32bit with Unity 3D. It consumes around 350~ MB of RAM.

My Suggestion:
Though, You did not mention how much RAM you have, I will suggest to use 64bit Ubuntu with Unity 3D, If you have have >= 2GB and You are not a power user with graphics intensive work. But If you do lots of graphics intensive work, and have RAM less than 2GB, I recommend to use either Unity 2D or Xubuntu or Lubuntu.

For a detailed discussion about 32bit and 64bit, you can check this question
You can also read this page for a neat discussion about 32 bit and 64 bit system


How do I move/home folder to a luks encrypted external drive?

Migrating /home and other apparent issues

First of all, it would appear that your root partition at /dev/mapper/xubuntu--vg-root is not configured in /etc/fstab. That will need to be fixed. Second, your /boot partition is rather small. Be diligent about removing old kernels or you will have problems installing updates once your /boot partition gets filled to 100%. Creating a larger boot partition and putting home on a separate drive altogether can be easily accomplished with manual partitioning during install. See how to go about that in my post here if you're interested, but it only applies to new installations.

I should be able to help you with the migration and getting your root partition back into /etc/fstab. Since you've indicated that you've already made changes to one or more of these files, I'll assume that you already know how to edit files as root or with sudo. You'll need to make any file changes mentioned below in this way.

Grabbing a system image:
We're going to be making some significant system changes. If you have a "working" system right now, you should use a tool like Clonezilla to grab a system image to restore from in case anything gets really messed up! While this isn't absolutely necessary, I strongly advise it!

Fixing /etc/fstab:
Edit /etc/fstab and add a line at the top that reads as follows:
/dev/mapper/xubuntu--vg-root   /   ext4    errors=remount-ro   0   1
Without that line, your computer won't even boot.

Migrating /home:
There are a few parts to this. You must move all of your documents to the external drive. You must update your /etc/crypttab file so that your system can decrypt your external drive during boot. This means you're going to have to enter a password to decrypt your internal disk and then you'll have to enter another password to decrypt your external disk. There are ways to unlock two disks while providing only one password, but I won't get into that here. If you want to know more about that read here and here. You must also update /etc/fstab so that your system knows how to mount your home directory. Finally, you need to update your initramfs.

Copy the contents of your home directory to the external drive. In a terminal, run the following, changing the path to the external drive as necessary. Each of these commands could take several minutes to run.

Create hashes to be used later for verifying integrity of copied files. It's not absolutely necessary, but it's nice to be able to confirm that nothing got corrupted while being copied.
sudo find $HOME -type f -exec md5sum '{}' >> $HOME/checksums.md5 \;
Copy everything in your home directory to your external drive
sudo cp -ar $HOME/. /media/$USER/My_external_drive
If you created checksums of all your files, go ahead and check them. If you were logged into your account, be aware that some files may naturally change between the point of creating checksums and checking the copied files. If there were any failures, just make sure they aren't important files.
cd /media/$USER/My_external_drive
sudo md5sum -c checksums.md5 | grep "FAILED"
You'll also need to delete everything from /home so it can be used as a mount point, but we don't want to do that from your local xubuntu install. We'll wait until we're ready to reboot and use a live CD/USB for that.

Updating /etc/crypttab:
Open /etc/crypttab for editing and add the following line, replacing the x's with the actual values of the UUID for your LUKS partition on your external drive.
luks_home  UUID=39af7a74-xxxx  none    luks,discard
Updating /etc/fstab to include the new /home partition:
Open /etc/fstab for editing and add the following line to the end
/dev/mapper/luks_home  /home   ext4    defaults    0   2
Update your initramfs
sudo update-initramfs -k all -u

Things to check:
Your /etc/fstab file should now look something like this:

/dev/mapper/xubuntu--vg-root   /   ext4    errors=remount-ro   0   1
# /boot was on /dev/sda1 during installation
UUID=f2c4a3ef-longstringofnumbers /boot           ext2    defaults        0       2
/dev/mapper/xubuntu--vg-swap_1 none            swap    sw              0       0
/dev/mapper/luks_home  /home   ext4    defaults    0   2

Your /etc/crypttab file should now look something like this:

sda5_crypt UUID=4426b1a1-longstringofnumbers none luks,discard
luks_home  UUID=39af7a74-xxxx  none    luks,discard

If you find any problems with the /etc/crypttab file and you make changes, be sure to run the update-initramfs command again from point 4.

Reboot into live OS
Once you're sure you have everything you need copied over, it's time to erase everything from /home so it can be used as a mount point. Get your live CD/USB, and boot from it.

Once booted, you'll need to decrypt and mount the LUKS partition on
your internal disk. Run the following commands to do so, entering your encryption password when prompted

dev=$(sudo lsblk | grep -B1 "sda5_crypt" | grep -oP "sd[a-z]\d\b" | awk '{print "/dev/"$1}')
sudo cryptsetup luksOpen $dev internal_crypt
sudo mount /dev/mapper/xubuntu--vg-root /mnt

Now your old home partition should be located at /mnt/home. Let's delete everything inside
sudo rm -fr /mnt/home/*

Reboot into local installation:
At this point, you're ready to reboot. With your old home directory emptied out, shutdown the live OS and reboot into your system. Your system should now ask for two passwords, one to decrypt the internal drive and one to decrypt the external drive. Assuming you enter both of these correctly, your system should boot up, and your home directory should reside on your external drive.

Verifying that the external drive is being used as /home:
If everything is pretty much where you left it in your home directory, you're golden. You can type mount | grep "/home" into a terminal window. It should show that your LUKS partition on your external drive is mounted at /home.


How to change the permissions of the sound devices so only audio users can read and write

Did you check this one to know the device file. Taken from the man page of dsp.

  OSS  4.0  (and later) will create audio devices under
  /dev/oss/
         directory.  For example /dev/oss/sblive0/pcm0 is the first audio device
         that  belongs  to  the  first Sound Blaster Live! or Audigy card in the
         system. These direct devices are used  when  an  application  needs  to
         access specific audio device (instead of the default one).

   You  can use the ossinfo(1) utility with the -a option to get a list of
   the available audio devices in the system.


Xubuntu 14.04 Synaptics Touchpad works on login screen, stops working after login

I updated Uubuntu on my laptop and the touchpad/mouse stopped working as well. After some searching, I found a temporary solution:

With xinput you can see the input hardware. Then giving
xinput --enable id you can enable the chosen device.

I guess this is a bug of the last kernel, anyway.


Attempted Installing Ubuntu on Windows 8.1 UEFI, Confused about booting in UEFI, Legacy Mode

Enabling BIOS/CSM/legacy support was a mistake. You now have Windows installed in EFI mode and Linux installed in BIOS mode. Most computers make it difficult to switch from one boot mode to the other, so such mixed-mode installations are difficult to manage.

To fix it, install an EFI boot loader for Linux. As detailed on the page to which I've just linked, several are available; but as part of the normal process of EFI boot loader installation requires that you be booted in EFI mode, you can't do this from your current Ubuntu installation -- at least, not without jumping through some extra hoops. There are several ways around this, one of which is:

Download the USB flash drive or CD-R version of my rEFInd boot manager.
Prepare a USB flash drive or CD-R from the downloaded image.
Boot the rEFInd medium you've just prepared. This may require using your firmware's built-in boot manager or going into the setup utility and disabling BIOS/CSM/legacy support. If you use the boot manager and see two entries for your boot medium, select the one with "UEFI" in the description string.
In rEFInd, you should see an entry for Windows and one or more entries to boot Linux kernels. Select one of the latter and Ubuntu should start. Note, however, that if you used a separate /boot partition, you'll need to hit F2 or Insert twice, rather than Enter, to launch Ubuntu. When you do this, a simple line editor will open, in which you must enter a root= specification pointing your kernel to your root filesystem.
In Linux, install the boot loader of your choice. Two relatively easy ways to do this are:

Install the rEFInd Debian package or PPA, as described on the rEFInd page. This will set up rEFInd as your default boot program.
Run Boot Repair again. This should install the EFI version of GRUB. Note that this path leaves more to chance than the preceding one; at this point you really don't know that the way Boot Repair sets things up will work, whereas you know that rEFInd will boot Ubuntu.


How to get bash to stop escaping $ during tab completion?

I've found that bash versions >= 4.2.29 have a new direxpand shopt setting. (See man docs/bash.1 if you check out a new bash, or see bash.1 from line 8951)

If one uses Quantal Quetzal 12.10 or otherwise gets hold of (or checks out and builds) a new bash, then:

shopt -s direxpand

Gives me the behavior I want, need and love.

Workaround: In the meantime, Ctrl+Alt+E instead of Tab does what I want too. But is awkward.

BTW, There are several threads called "bash tab variable expansion question?" in gnu.bash.bug. From reading them, I found the info here.


Is it possible to make Ubuntu ask for my password before mounting USB drives?

You could try encrypting your usb drive on filesystem level. Take a look at Ubuntu Community Help Wiki EncryptedFilesystemHowto. It explains in a quite detailed way the steps you have to take plus it has some examples.


How to make display arrangement persistent in Ubuntu 17.10?

Your output says you have Wayland, not X11, as the display system. I am pretty sure that is why xrandr is not cooperating.

If you change to X11, I have a suggestion. For systems using X11 graphics, I use arandr, a small GUI program that is compatible with all X11 desktops. It allows you to arrange monitors and the save the configuration. Upon reconnect, the setting can be loaded.

Little glitches like this caused Ubuntu to change default from Wayland to X11 in more recent Ubuntu.


Sound Input device (microphone) not working

I had a similar problem - no sound input device driver detected. I used pavucontrol, as explained here and it solved the problem:

Install pavucontrol: sudo apt-get install pavucontrol
Run: sudo pavucontrol
Go to the "Input Devices" tab
Click the lock icon to unlock the channels
Under "Port", select the correct microphone (front or rear)


How do I enable all four cores on my Toshiba P70-A notebook? (only one enabled now)

The answer is odd, and rather simple, however taking more than a day to determine the root behind this issue. There have been many problems with almost every distro of linux on this machine, from no wireless, graphics issues etc.etc. I realized I couldn't have been the only person with this processor running linux, so I managed to find some forums regarding the same issue with this particular chipset running only one core.

And it turns out if you run in acpi=off, then the kernel will only utilize one core, and on one thread. That solution worked for that particular individual, however acpi=off was the only way to actually install linux, period. nomodeset would get you to the install screen, but the try out ubuntu/kubuntu screens were... just not there, not rendering. And as this was listed as a viable option for getting rid of the black screen problem, I had done just that, without any mention that this would disable cores, wireless networks, the fan etc.

After many attempts at different solutions, I had decide to do a fresh install with nomodeset anyway, despite not being able to render the desktop. Upon restarting after the installation, everything worked fine. Every issue i've had seems to have been resolved, minus testing if unity still breaks.


How do I turn on the login startup sound theme?

This help was given to me a few hours ago by mtashev and it worked:

Click Startup Applications in the system menu at the top right of your computer.

Click ADD, name it > GNOME Login Sound  In the command field type >  /usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login sound"

Make sure the checkbox is checked.

Reboot

Enjoy


What causes some windows to have different resolutions than others?

The following discussion explains how to configure the resolution with xrand.

I don't believe that Ubuntu is compatible with 4k, I have been trying to configure it for several weeks and failed.

1) Configure some of the most popular applications to scale correctly on 4k high-dpi.

2) Follow this instruction to configure Ubuntu apps (spotify, steam and many other apps) for high-dpi

For your issue with steam I quote HiDPI Archive Steam page

  Steam

  Official HiDPI support

  Starting on 25 of January 2018 in the beta program there is actual support for HiDPI and it should be automatically detected.

Steam > Settings > Interface, check "Enlarge text and icons based on monitor size" (restart required)

  If it not automatically detected use GDK_SCALE=2 to set the desired scale factor.

  Unofficial

  The HiDPI-Steam-Skin can be installed to increase the font size of the interface. While not perfect, it does improve usability.
  Note: The README for the HiDPI skin lists several possible locations for where to place the skin. The correct folder out of these can be identified by the presence of a file named skins_readme.txt.

  MetroSkin Unofficial Patch also helps with HiDPI on Steam with Linux.

3) Create a desktop entry and run a custom script

Delete and Create a new desktop entry for an application to run a custom terminal command. For ex. the desktop entry for chrome could run google-chrome --force-device-scale-factor=2 command to fix the dpi issues.
The steps are described in this discussion

Other examples for spotify and virtual box.

4) Set up a custom script to fix java application resolution


Xubuntu says there is no install because your disk is encrypted, so the Xubuntu installer can't tell there's an existing Ubuntu install, and doesn't know it can be decrypted. Op success on that front.

The best way to swap from Ubuntu to Xubuntu is just to install the Xfce desktop on the existing system.

How do I switch to Xubuntu?

Once you're happy with the xfce desktop and have confirmed it works, you can optionally go the extra mile with sudo apt-get remove ubuntu-desktop, although I personally would keep it installed as a backup desktop.


Make new instance of main window, python gtk

If you want to start a new window of your application in the same process, you can just create a new instance of the window class that Quickly created for you.

My app is called quickly-gtk, and in the python module ./quickly_gtk/init.py I have the following lines (at the bottom of the file):

# Run the application.
window = QuicklyGtkWindow.QuicklyGtkWindow()
window.show()

If you call that again it start a new instance of your primary window.  However, the code Quickly produces is really meant to run one instance of this window at a time, so you will have some side effects you will need to code around.

For example, Quickly connects the window closing event to a callback that ends your whole process.  If you have multiple windows, you'll need to override the on_destroy() method of your window.  There are likely to be other issues you'll come up against doing this.


How can I force alsa to always "unmute" the Headphone Jack Sense?

This seems to have been fixed by an update to Pulseaudio and ALSA.


You can loop through the file using while ... do loop:
$ while read i; do printf "Current line: %s\n" "$i"; done < target_files_list.txt

In your case you should replace printf ... with sed command you want.
$ while read i; do sed -i -- 's/SOME_TEXT/SOME_TEXT_TO_REPLACE/g' "$i"; done < target_files_list.txt

However, notice that you can achieve what you want using only find:
$ find /path/to/files/ -name "target_text_file" -exec sed -i -- 's/SOME_TEXT/SOME_TEXT_TO_REPLACE/g' {} \;

You can read more about -exec option by running man find | less '+/-exec ':

   -exec command ;

          Execute command; true if 0 status is returned.  All
          following arguments to find are taken to be arguments to
          the command until an argument consisting of `;' is
          encountered.  The string `{}' is replaced by the current
          file name being processed everywhere it occurs in the
          arguments to the command, not just in arguments where it
          is alone, as in some versions of find.  Both of these
          constructions might need to be escaped (with a `\') or
          quoted to protect them from expansion by the shell.  See
          the EXAMPLES section for examples of the use of the
          -exec option.  The specified command is run once for
          each matched file.  The command is executed in the
          starting directory.  There are unavoidable security
          problems surrounding use of the -exec action; you should
          use the -execdir option instead.

EDIT:
As correctly noted by users
terdon and dessert in the comments
it's necessary to use -r with read because it will correctly
handle backslashes. It's also reported by shellcheck:
$ cat << EOF >> do.sh
#!/usr/bin/env sh
while read i; do printf "$i\n"; done < target_files_list.txt
EOF
$ ~/.cabal/bin/shellcheck do.sh

In do.sh line 2:
while read i; do printf "\n"; done < target_files_list.txt
      ^-- SC2162: read without -r will mangle backslashes.

So it should be:
$ while read -r i; do sed -i -- 's/SOME_TEXT/SOME_TEXT_TO_REPLACE/g' "$i"; done < target_files_list.txt


Error message when opening MS Teams. "We're still developing Teams for Linux"

I had the same issue when using the apt package. I was able to get it working via the snap package.

sudo snap install teams-for-linux


Sync notes between Android phone and Ubuntu?

I just use text files in a Dropbox folder, in conjunction with Dropbox clients on "real" computers and the Android Dropbox App on my phone. Simple, but it works really well. And if you need something more sophisticated, using .doc files and .xls files with OpenOffice (on the PCs) and DocumentsToGo (on the phone) also works very well (DocumentsToGo is the only Android app I've paid money for, but there's nothing free to compare with it).


Only loopback in /etc/network/interfaces - But internet works?

Because those are managed by NetworkManager, which does not care about the interfaces file. Its configuration is stored in gconf, not in a form easily editable from the command line.


I think you are probably making a mistake in editing the kernel line after you press 'e'. I used this tutorial: http://www.howtogeek.com/69753/how-to-cut-your-linux-pcs-boot-time-in-half-with-e4rat/

The first time you modify grub entry by pressing 'e'

you should see a line like this:

linux /boot/vmlinuzXXXXXXX-genric root=UUIDXXXXXXXXXXXXXXXX ro quiet splash vt.handoff=7

all you have to do is , click on the first word "linux" then press right arrow key -> to go to the last character 7. Then press space bar and enter following line:

init=/sbin/e4rat-collect

When you make the addition the line should look like this:

linux /boot/vmlinuzXXXXXXX-genric root=UUIDXXXXXXXXXXXXXXXX ro quiet splash vt.handoff=7  init=/sbin/e4rat-collect

After this CTRL+X

If you follow the tutorial i gave above, you have to repeat this process of pressing 'e' one more time to modify same line as above. Above given tutorial says add 'single' instead of the line we added last time, this does not work. I used 'text' and then pressed CTRL+X.
so second time my line looked like this:

linux /boot/vmlinuzXXXXXXX-genric root=UUIDXXXXXXXXXXXXXXXX ro quiet splash vt.handoff=7  text


running git status resets permissions on index file

Does your git repository reside on a Windows filesystem by any chance? files in .git shouldn't be executable, the 777 permissions are a dead giveaway that this is hosted on a non-native filesystem. git status seems to be merely restoring the permissions to the correct values (they should be 644 for the index file, that's correct).

All my git indices have 644 permissions and they work without a problem.

On the other hand, the 777 mode shouldn't affect git's function in any way. If you're not seeing any ill effects other than the mode change, I wouldn't worry too much about it.


Solved.

With help of Cairo Dock Shortkeys menu I could configure the lock.

To install Cairo Dock:

sudo add-apt-repository ppa:cairo-dock-team/ppa
sudo apt-get update
sudo apt-get install cairo-dock cairo-dock-plug-ins


If you use

sudo apt-get dist-upgrade

Those packages should be forced to update.

dist-upgrade will install all pending updates, with their new dependencies. If for some reason, you don't want to do that, you should use apt-get install package-name dependency-package-name instead.


I have found a cure for this which has worked for me

Ubuntu 13.04
Packard Bell

Intel® Core™ i3-2350M CPU @ 2.30GHz × 4
Intel® Sandybridge Mobile
64-bit

THE ORIGINAL PROBLEM

The F11 and  F12 control the brightness, but although the tooltips showed that the brightness was changing, the screen didn't change.

THE CURE

I cured this by opening and editing the grub menu.

Open Terminal with  Ctrl + Alt + T
I typed in sudo gedit /etc/default/grub, entered my password
I changed the line which read GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="acpi_backlight=vendor"
Saved and Closed gedit.
in Terminal I updated the Grub with sudo update-grub
I re-booted the laptop

Everything is now working.


Thumbnails of images larger then 10MB are not displayed

There is a setting in Nautilus (the file manager) that you can change.

Open up Nautilus.
Go to Files > Preferences.

Go to the Preview tab, and change the "Only for files smaller than 10 MB" setting to the number you want.

You can choose from 100 KB to 4 GB (in pre-defined increments).


remove the Nvidia driver package with dpkg -r nvidia-367
(you must select other driver in order to uninstall)
configure pending packages with dpkg --configure -a
purged packages: How can you completely remove a package?
update and upgrade: sudo apt-get update  and sudo apt-get upgrade


Homework?

History:

http://www.netneurotic.de/mac/unix/images/UNIX.png

http://en.wikipedia.org/wiki/File%3AUnix_history-simple.svg

http://www.levenez.com/unix/

http://www.ubuntu.com/about/about-ubuntu

https://wiki.ubuntu.com/MarkShuttleworth

Versions and release & support until dates:

http://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29#Releases

https://wiki.ubuntu.com/Releases

https://wiki.ubuntu.com/Releases

http://en.wikipedia.org/wiki/List_of_Ubuntu_releases


There are several (possible) solutions for your problem documented here.

It boils down to using Windows software (possibly under Wine) or using the closed source plugin for XMMS.  XMMS 1.x itself isn't part of Ubuntu anymore, but maybe you can use it via MPlayer.

You can then convert the music to another format using one of those tools.


I can't test right now in Ubuntu GNOME, but in Ubuntu 14.04 under the "Mouse and Touchpad" settings there is an option for "Disable while typing":

Since 14.04 uses the same Settings as GNOME, I'd guess this should be similar for your version. Try uncheck the box and see if that fixes it.


Cannot find unity-tweak-tool in Software Centre

I am also running Ubuntu 16.04 x64 and confirm that both applications you mention appear in Software Centre on my system.

The problem could possibly be your software sources. Check the "Software & Updates" screen within "System Settings". The picture below shows how mine currently looks. I believe "Universe" would be required for Unity Tweak Tool.

It would also be worth checking the server in the "Download from" drop down. If you select "other", you can test for the best server.

Hope that helps.


Does Gstreamer support the MP3 Surround format?

To my knowledge, it does. You can try your mp3s in Totem (Movie Player), and set the output to ac3 passthrough or which ever format best suites you:


Install Realtek Audio drivers in Ubuntu 20.04 (Intel Nuc nuc10i7fnh)

I finally made it work. Even if it's not DELL, this magically works!
https://community.intel.com/t5/Intel-NUCs/NUC10i5-headphones-jack-audio-not-working-with-Ubuntu-20-04/td-p/643946
add "options snd-hda-intel model=dell-headset-multi" to "/etc/modprobe.d/alsa-base.conf"
Then reboot. Works like a charm.


Brightness hotkey doesn't work properly on my hardware

Using terminal & typing `xrandr' produces

xrandr
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 8192 x 8192
LVDS1 connected (normal left inverted right x axis y axis)
   1366x768       60.0 +
   1360x768       59.8     60.0
   1024x768       60.0
   800x600        60.3     56.2
   640x480        59.9
VGA1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 410mm x 260mm
   1440x900       59.9*+   75.0
   1280x1024      75.0     60.0
   1280x960       60.0
   1152x864       75.0
   1024x768       85.0     75.1     70.1     60.0
   832x624        74.6
   800x600        85.1     72.2     75.0     60.3     56.2
   640x480        85.0     72.8     75.0     66.7     60.0
   720x400        70.1
DP1 disconnected (normal left inverted right x axis y axis)

Now see my VGA1 is connected (I have a dual display) so we need to change its brightness
use:

xrandr --output VGA1 --brightness 0.7

one can change 0.7 to anything but 0! Also you can make this a default startup script

Update:
Brightness Control key re-enable

gksu gedit /etc/default/grub

then change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
GRUB_CMDLINE_LINUX="acpi_osi=Linux"

then save and run:

sudo update-grub

and then restart the system for changes to take effect.


How do I recover my lost windows partitions after installing ubuntu 16.04 lts?

There is a way to make it possible to experiment without destroying the [original] drive: Clone it to another drive with ddrescue, and do the recovery work on the cloned copy. If you make a mistake, you can clone from the original drive again.

See this link, and links from it for more details. (It is written for pendrives, but can be applied to all kinds of mass storage devices, also hard disk drives, solid state drives and memory cards.)


Where are my "recent documents" in Unity?

Mouse-oriented method
To access the recent documents in Unity, click on the dash icon. And then click on Find files icon in the bottom and there, you can access the list of recent documents. It is the third lens from the left in a default install of Ubuntu.

Keyboard-shortcut method
There is a keyboard shortcut to quickly access the recent documents as well. Press Super + F to do so.


why device files do not open with vim or nano

You are right, everything is file in Linux. But vim or nano can not handle those types of files. So when you open them they shows empty. Actually they contain info in a manner that is not human readable.

If you try to open with emacs like

sudo emacs <file>

You get the message,

File exists, but can not be read.

If you wish to see what is inside try,

sudo cat /dev/disk/by-level/<file>

You could see different random characters.

Note:

The file at /dev/disk/by-level/<file> is actually a softlink to /dev/sdbx. You can see using this in terminal,

$ ls -l /dev/disk/by-level/<file>
lrwxrwxrwx 1 root root 10 Jan  7 17:33 /dev/disk/by-label/<file> -> ../../sdbx


Here's a program that does what you want:

#!/usr/bin/env python
# coding: utf8

import time
import sys
import commands

USER = commands.getoutput("cat /var/log/auth.log | grep " +
    sys.argv[0]).split("sudo:")[1].split()[0].strip()

def is_idle():
    return int(commands.getoutput("xprintidle")) >= 10 * 60 * 1000

def is_night():
    return time.localtime().tm_hour in (22, 23, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)

def is_stumm():
    return "RUNNING" not in commands.getoutput(("sudo -u %s pacmd " +
        "list-sinks | grep RUNNING") % USER)

def main():
    powersave = False
    while 1:
        if is_idle() and is_night() and is_stumm():
            if not powersave:
                print "going into powersave mode"
                commands.getoutput("echo powersave > " +
                    "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor")
                powersave = True
        else:
            if powersave:
                print "going into ondemand mode"
                commands.getoutput("echo ondemand > " +
                    "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor")
                powersave = False
        time.sleep(0.5)

if __name__ == '__main__':
    assert commands.getstatusoutput("xprintidle")[0] == 0, (
        "you need to `sudo apt-get install xprintidle`")
    assert commands.getoutput("whoami") == "root", (
        "you need to be root to run this program")
    main()

Note your preferences:

... >= 10 * 60 * 1000
... tm_hour in (22, 23, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
and
"RUNNING" not in ...

I'm using pulseaudio to find out if a movie is playing. This also affect music.


How can I make indicator-sound showing controls for output that is actually playing?

Based on Takkat's comment and question pulseaudio module-switch-on-connect it finally works and when Bluetooth headset is connected, volume controls and sound switches to newly connected device, when disconnected it falls back to default device.

Done by editing /etc/pulse/default.pa and adding these lines:

load-module module-switch-on-connect
set-default-sink "output name"

To get "output name", use pacmd list-sinks | grep name: and copy your desired output name wihtout the < >.

In my case for example it was set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
would set alsa_output.pci-0000_00_1b.0.analog-stereo as default device so when I disconnect headset, it would fallback to it.

Line load-module module-default-device-restore should be present and uncommented in /etc/pulse/default.pa by default, so no need to add it, but if it has to be added, it should be early in the config, there is a notice in the default.pa:

  This (module-default-device-restore) should be loaded as early as possible so that subsequent modules
  that look up the default sink/source get the right value.

Pulseaudio must be restarted to make the changes in config effective. To just test it out effective until next restart, settings are possible with commandpacmd:

$ pacmd set-default-sink "output"
$ pacmd load-module module-switch-on-connect


I want to dualboot Windows 8.1 and Ubuntu 14.04

Try this..

Install Ubuntu 14.04 alongside Windows 8.1 in 10 easy steps


MySQL backup - incremental and differential

Run:

xtrabackup --backup --target-dir=/path/to/targetdir --datadir=/var/lib/mysql/

You may need to install it with:

sudo apt-get install xtrabackup


How to get back data after Ubuntu installation?

You said the data was on sda5 before, it's still showing up in lsblk. Try to mount it & see what's there now?

And next time, always backup data BEFORE installing an OS! Sometimes it overwrites the wrong data, by mistake or bug.


What does `apt-get -b source ` do exactly?

apt-get -b alone doesn't do anything, it has to be used in conjunction with two other options.

Run sudo apt-get build-dep <prog_name> to build dependencies for the program first
Run sudo apt-get -b source <prog_name> to actually download the source code and build it.

In my test just now with nano text editor, after running sudo apt-get build-dep nano and then sudo apt-get -b source nano, apt actually ran make file to compile all *.c source files and then deb-buildpackage to actually build the deb package for installation.


COMODO antivirus installation problem on Ubuntu 16.04LTS

The libssl version on 16.04 is newer than Comodo wants. By the way: ours is newer due to security fixes (...) so the Comodo package you used is too old for 16.04. Comodo got an update on the 31st of August. Make sure you download the latest version as this is more likely to fix the dependency.

If you still get the dependency problem you will need to install an older version manually. You can find the version from precise here. Use dpkg to install this and then install Comodo.

Mind also that the only real use case for anti-virus software is to scan files before you send them to Windows machines. It will not find any virus inside Linux files (since we do not download random software from the web and download software from our repositories and as those are virus free we don't need a virus scanner).

Regarding things in comments:

It will also not prevent phishing nor will it prevent you from problems related to malicious websites. There are other tools for that. For those you have rkhunter, ispprotect (Website malware scanner), chrootkit, lynis and several more. Also be aware that most of those rootkit scanners are also flawed (99.99% of what they claim is a problem is a false positive) and it is best to use 2 or more rootkit scanners and compare results. When 2 or more believe there is a problem you might have one. If only 1 does it is very very likely a false positive.


Cloud-init nocloud set hostname dynamically from dhcp

It appears that you need to set /etc/hostname to localhost in order for the DHCP hostname to be considered. See context_update_kernel_hostname() in hostnamed (https://github.com/systemd/systemd/blob/master/src/hostname/hostnamed.c#L267).

If you've already removed any hostname lines from /var/lib/cloud/seed/nocloud[-net]/user-data then cloud-init shouldn't be messing with the hostname anymore. Make sure you also run sudo cloud-init clean to remove any cached data from cloud-init.


Problem with 3 monitor configuration (2 monitors and a TV)

You can't use both DVI connectors and HDMI -- it's not just an Ubuntu/Linux thing, it's a physical limitation of the card.  You can only use two of them (any combination) at any given time.

To connect a third display, you'll need to connect it via displayport (you can get displayport -> dvi adapters, etc).


Prevent nano from keeping history of searches

Open the file /etc/nanorc (run sudo nano /etc/nanorc) and comment out the line set historylog in this section:

## Enable ~/.nano_history for saving and reading search/replace strings.
set historylog

Which should then look like this:

## Enable ~/.nano_history for saving and reading search/replace strings.
# set historylog

Then exit&save and you're done!


How do I install altitude? (.sh file, game)

First you need to go through GUI, when you right click on the file and goto permissions tab then you get an option to make the file executable as in the picture.

and then you have two methods to install the game.

Method 1:

Open Terminal.
Go to the directory you have the file.
Type ./filename.sh and hit Enter.
Or you can type bash filename.sh.

Method 2: (Easiest way)

Double-click on the file the way you open any other file.
That should install the application by running the script in .sh file.
Follow the prompts (if any) while installation which should look the same as they look in Windows.
That’s it. You are all set.

Hope this quick tip helped you install the application.


Duplicate Application Icons appear in Dash

Well it came down to a simple capital letter to confuse Dash.

/usr/share/applications/docky.desktop

~/.local/share/applications/Docky.desktop

Removing the latter desktop entry solved the issue.


Home wifi network not searching web using Ubuntu

My idea is that there is kind of proxy installed. Things to be checked are Wi-Fi and Network in Settings. On the other hand, contrary to other browsers, Firefox may use its own Connection Settings (in preferences - Network Settings). There are 4 possible choices: No proxy, Auto-detect, system proxy and manual proxy. At last, and it worked for me, you can remove firewall in terminal (Ctrl+Alt+T) with sudo ufw disable.


Is there a PPA to get the latest Mono and Monodevelop versions?

http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives

Debian, Ubuntu, and derivatives
Add the Mono Project GPG signing key (if you don’t use sudo, be sure to switch to root):

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

Next, add the package repository (if you don’t use sudo, be sure to switch to root):

echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

Update your package cache if necessary (i.e. run apt-get update), and run a package upgrade to upgrade existing packages to the latest available. Then install Mono as described in the Usage section.

Note: While the APT package is built against Debian Wheezy, it is compatible with a number of Debian derivatives (including Ubuntu) which means you can use the same repository across all these distributions.


What's a simple way to recompile the kernel?

1. Use apt-get source to download the Ubuntu version of the kernel

apt-get source linux-image-$(uname -r)

gives a folder that contains, for example:

linux-3.2.0                linux_3.2.0-26.41.dsc
linux_3.2.0-26.41.diff.gz  linux_3.2.0.orig.tar.gz

The bolded diff includes all the Ubuntu/Debian customizations.

2. To build a stock kernel with your own .config, use the "old-fashioned" Debian make-kpkg method

This is the alternate old-fashioned way described in the wiki:

sudo apt-get install kernel-package

If you are compiling a kernel for the first time:

sudo apt-get build-dep linux-image-$(uname -r)

Then cd into the source directory (here, linux-3.2.0), and either run make oldconfig to create .config file with your running kernel's configuration, or copy a third-part .config to this directory.

Depending on whether you want a text or graphical config, install:

(Text)

sudo apt-get install libncurses5 libncurses5-dev

(Graphical)

sudo apt-get install qt3-dev-tools libqt3-mt-dev

And then run:

(Text)

make menuconfig

(Graphical)

make xconfig

When done, just run:

fakeroot make-kpkg -j N --initrd --append-to-version=my-very-own-kernel kernel-image kernel-headers

where N is how many jobs to run in parallel (usually the number of CPUs you have), and my-very-own-kernel is a custom string to identify this build.

When done, the kernel image and header files will be ready as debs in the parent directory; you can install them with sudo dpkg -i, which will also take care of adding GRUB entries, etc.


According to this thread, a user solved his problem with Kamal Mostafa's PPA. But, this PPA is no longer supported and point out another one. Again, there is an explanation saying that Oneiric already includes this kernel. But, on some systems a boot parameter is still needed: acpi_backlight=vendor.

So, before you boot your system via Grub, just press "e" and put acpi_backlight=vendor at the end of kernel line. And start your system with Ctrl+X. If that works, edit your Grub file for permanent solution.

gksudo gedit /etc/default/grub

Change this line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with this

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

and update grub:

sudo update-grub


During boot: An error has occured while mounting(13.04)

sudo blkid

to see if the UUID has changed. If it has, change your fstab accordingly.


I want to install a dual boot windows besides the already installed Ubuntu Studio 19.10, what do I need to do or know prior to that

So, I've researched, and as far as I can tell, it's very, but very difficult to run XP from an UEFI laptop, so, the answer is YES, we can, but it's not something I'm gonna pursue because 1)it's too much the hasle, it's not worth it; and 2)I lack the knowledge to run it from an UEFI system.


Ignore finger resting at the bottom of trackpad [unibody macbook pro]

Ubuntu 11.10 doesn't support proper detection of trackpads for macbook pros (I'm assuming it's an integrated button trackpad). This is changing in 12.04. However, for the time being I would recommend using this driver:

https://github.com/BlueDragonX/xf86-input-mtrack

(Thanks to C S for pointing out it's in the repos) Install the driver: xserver-xorg-input-mtrack

sudo apt-get install xserver-xorg-input-mtrack

Add this to your xorg.conf file after installing the driver:

Section "InputClass"
    MatchIsTouchpad "on"
    Identifier      "Touchpads"
    Driver          "mtrack"
    Option         "IgnorePalm" "true" EndSection

Restart your xserver (or computer) when finished. There are other fun options, take a look at the github page for more.


Cannot ping localhost when resolv.conf.d/head modified

Turns out somehow my etc/nsswitch.conf is missing (no idea why though).

Fixed this problem with echo 'hosts:files dns' | sudo tee /etc/nsswitch.conf, but maybe a better option will be to obtain the default nsswitch.conf file.


Ubuntu 12.04 not loading after installing updates - initctl: Event failed

You had to remove all the packages that was related to nvidia by running the below command on Virtual console(Ctrl+Alt+F1),

sudo apt-get purge nvidia*

Then restart your pc by running this,

sudo shutdown -r now

I hope it would works.


/etc/modules seems to be loaded by /etc/init/module-init-tools.conf. The first argument is the module name, other arguments are the parameters. Adding the following to /etc/modules seems fine:

thinkpad_acpi fan_control=1

To load this module and set these parameters in the very early stage of boot, add the previous line to /etc/initramfs-tools/modules file. After a change in that file, you need to regenerate the ramdisk:

sudo update-initramfs -u

As a possible alternative, you can try to add the options to the kernel line (I haven't tested it myself, but it seems to work for settings like i915.modeset=1. Edit /etc/default/grub and find the line with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Replace it by something like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash thinkpad_acpi.fan_control=1"

To get a list of options for a kernel module:

modinfo -p thinkpad_acpi

This did not work for i915, for that I had to run:

modinfo i915 | grep ^parm

To get the current value of a module parameter, run:

sudo cat /sys/module/MODULE/parameters/PARAM

For the fan_control parameter of the thinkpad_acpi module, you have to run:

sudo cat /sys/module/thinkpad_acpi/parameters/fan_control

If this function returns an error, check if the module was loaded and whether the option exist or not.


What is the linux-oem-20.04-edge package?

The linux-image-oem-20.04-edge package contains the latest kernel v. 5.10, as you can see here. And there's a good chance it has support for newer WiFi hardware.


Getting a MIMO UM-710S USB Powered 7 Inch LCD Mini Display to work

You will need to install the xserver-xorg-video-displaylink package to get support for this class of devices (identifiable by connecting via USB and presenting a green screen on successful initialisation). The X server does not currently support hotplug events on the USB bus, so you will need to create an xorg.conf file to use such a device. An example xorg.conf file is included in the package (under /usr/share/doc/xserver-xorg-video-displaylink/examples).

If the above is not working for you, please file a bug against xserver-xorg-video-displaylink: there may be some variation between displaylink devices, which may not be handled completely by the existing driver (but any such lack of support is a bug to be fixed, rather than a result of user error).


Accidentally deleted .desktop entry, how do I recreate it?

I assume you mean /usr/share/xsessions/ubuntu.desktop file.

Here is the contents of that file:

[Desktop Entry]
Name=Ubuntu
Comment=This session logs you into Ubuntu
Exec=gnome-session --session=ubuntu
TryExec=unity
Icon=
Type=Application
X-Ubuntu-Gettext-Domain=gnome-session-3.0

Save it to /usr/share/xsessions/ubuntu.desktop and you have your session back. For editing purpose, you can use the TTY logins via Ctrl-Alt-F1 shortcut.


After changing Compiz configuration, I can't use account

You can reset compiz by removing its configuration files. As you have already noticed, these files are stored per user. Log-in to the terminal (ctrl-alt-fX) and move the following directory

mv ~/.config/compiz-1 ~/.config/compiz-1-backup

Log out (exit) and log in via your GUI (ctrl-alt-f7). If all is fine, remove the backup directory.


How to connect moodle server running Ubuntu server to outside world?

DNS helps you with getting IP address from a textual domain name but it cannot help with IP address visibility.

You need to configure NAT on your router(s) to forward requests from outside internet to your server. One of the easiest ways to achieve this is port forwarding.


Genesys Logic, Inc. USB 2.0 33-in-1 Card Reader (internal)

If it helps, I had a couple of those "33-in-1" card readers. They never worked in Linux, Windows or anything with electricity. I am not saying all but from 7 I tested 4 had the same issue. Of those 4 only one slot of SD worked, the rest did not. So maybe the problem might be the device and not Linux. I suggest to test it on Windows and if it is bad, buy a new one and test it on the place you are buying it from.


Just create an icon theme that depends on a another standard theme like Humanity. You can use the other Icon Theme as a base and just replace the icons you want to replace. This way users can select your theme or the standard theme if they wish, and even change the "inherit" variable to the theme of their choice.


one possible approach would be:

Create the script with just root acces (for safety sake)

sudo su
sudo echo 'echo "Hello world, I am `whoami`" > /tmp/test' > /path/to/script.sh
sudo chmod 700 /path/to/script.sh

Then change the sudoers file (according to mutliple tutorials everywhere)

sudo visudo

insert the following line at the end

youruser    ALL = NOPASSWD: /path/to/script.sh

This grants your user to use the sudo command on exactly that script without password. This is the reason, why the root access permission is needed on the script - the script could get modified otherwise.

Now add a custom startup command with the command

sudo /path/to/script.sh

Check with the command

sudo cat /tmp/test

if it worked. the result should be

Hello World, I am root

Hope that helps and meets your requirements.


don't worry, here is the similar problem to yours, just jump to the link and check the answers, hope it helps

How to boot ubuntu, when windows was reinstalled?


Can I configure Mutter to unredirect fullscreen windows?

Your best bet might be to just use compiz instead of mutter. They way you can do that is to install ubuntu-tweak, find the session-control and replace mutter with compiz --replace.

Make sure you have compiz and compizconfig installed. In the compiz config settings, go to general, and choose undirect fullscreen windows.

To DIRECTLY answer your question, I don't think mutter can do that as yet.


The package libdrm-nouveau2:i386 needs to be reinstalled

The package libdrm-nouveau2 exists in the official repos. The :i386 extension is not part of the package name. It denotes that you want to install the 32-bit version of the package. Type:

sudo apt-get --reinstall install libdrm-nouveau2:i386 to force its re-installation.

The :i386 is not even needed if you have installed the 32-bit version of Ubuntu.  You can safely omit it from the command.


Audacity ruins microphone input in Ubuntu 16.04.2

This happens when the record speed (say, 11,025 Hz) is different from the default playback speed (say, 22,050 Hz).  When the same data is played back at double speed, the sound plays twice as fast and sounds twice as high, leading to the standard "chipmunk" effect.  If you go to 44,100 you'll get four times as high/fast.

A common cause for this is the Audacity project Hz setting is different from the setting that you are recording at.  .Wav files get stamped with a particular frequency when they are saved, and so always play back at that frequency with all standard players.  The Audacity project frequency is found in a small white window in the lower-left-hand corner of Audacity's window.  Check that this is appropriate for what you think you're doing.

You can save existing files at a different frequency to save them.

Resampling turns a file from one frequency/speed into a different frequency/speed without changing its apparent sound.  In this case, you don't want to resample, as the data is correct but the sound (speed) is wrong, not vice versa.

If this happens in recording and not simply playing back outside of Audacity, then you've got a problem with the default recording speed of your PC somehow not writing into .wav files.


Jorge,

Maybe you should try installing it as a shell script.  That's how I installed all of the Frictional games.  Did you buy it through the Humble Indie Bundle or just the individual game?  If you got the bundle, you should have the option of downloading the games through the software center or downloading each of the games as separate files from the Humble Indie Bundle servers.  If you didn't, perhaps if you email Frictional and explain the situation, they'll let you download the shell script, and you can try it that way.


Welcome. In the XFCE "Menu," you can search for the name. Does it show? In the "Software" application, you can look under the "Installed" tab, and if you find it, "Launch" from there.

How did you install it anyway? Command line in a terminal? Synaptic? Software manager?


Creating a startup disk on a partition of a USB drive

I had the same problem. I had a USB Hard drive that had some data on it but was about 80% free that I wanted to use to test out Live CDs on. But the “Startup Disk Creator” would only recognise the disk as a whole and wanted me to erase it, despite it having three partitions (two of which were empty and Ext file systems).

I found a way around this however. I used GParted to delete and recreate the two empty partitions but this time making them FAT32 partitions (the same as the first partition) and also making them both Primary partitions. Once this was done the Startup Disk Creator recognised all three partitions and I was able to use one of them to create a Startup Disk, whilst keeping my content on the first partition. I am not sure why this worked, but it did.

I hope this is of help to people.


Message at startup: "ata3.15: exception Emask 0x10 SAct 0x0 SErr 0x280100 action 0x6"

There are several ways to do this. One easy way is to check the boot messages:
dmesg | grep ata4

One of the output lines should list the name of the device. In my case,
$ dmesg | grep ata1
[    0.661885] ata1: SATA max UDMA/133 abar m131072@0xfcc80000 port 0xfcc80100 irq 39
[    1.136128] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.137690] ata1.00: supports DRM functions and may not be fully accessible
[    1.138275] ata1.00: disabling queued TRIM support
[    1.138277] ata1.00: ATA-9: Samsung SSD 850 EVO 250GB, EMT02B6Q, max UDMA/133
[    1.138279] ata1.00: 488397168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    1.139271] ata1.00: supports DRM functions and may not be fully accessible
[    1.139809] ata1.00: disabling queued TRIM support
[    1.140580] ata1.00: configured for UDMA/133

This tells me it's a Samsung 850 EVO 250GB.
ata4 corresponds to /dev/sdd -- the d being the 4th Sata Disk.
It should also correspond to SATA connector 4 on your motherboard.


VideoCard Driver, flash crash and low pixels?

Here's what you want to do:

sudo apt-get purge fglrx
sudo apt-get install fglrx

The instructions you followed before were not for your graphics card. fglrx is the package name of the driver (named Catalyst) for supported ATI cards.


I got exactly this problem today, on my ubuntu 20.04.1 system with kernel 5.8.0.50-generic! I tried all sorts of solutions offered on the net, but the only thing that worked was to boot into 5.8.0-49 once and then back to 5.8.0-50. Just as MohammedSimba suggested! I guess I will hold off re-booting for as long as possible ...


Which IDE's run on Ubuntu 14.04 and work for Brightscript Development?

I don't think there is a correct answer for this, however, I will throw a non IDE option out there.

There is a definition bundle for Sublime Text.  This isn't an IDE, but still an option depending on what you prefer.

To install Sublime Text 2 in Ubuntu 14.04.

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text-installer

Once Sublime is installed, you can install the bundle with the following.

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
git clone git://github.com/cmink/BrightScript.tmbundle.git

Information on Brightside Definition Bundle

https://github.com/cmink/BrightScript.tmbundle


Ubuntu 18.04 Boots Even Slower After Disabling Networking & Putting 'noresume' to the Boot kernel?

You can probably disable network waiting altogether:

What does NetworkManager-wait-online.service do?

Remove the journal flush service and vacuum it instead:

What is the use of systemd-journal-flush.service?
Systemd logs (`journalctl`) are too large and slow

Slow snapd times can be sped up by jiggling your mouse at boot time:

Long boot delay on Ubuntu loading/splash screen following regular dist-upgrade on clean SSD install (18.04)


Ubuntu 12.04 dual screen - live version OK but does not work after installation

Just curious, did you open Nvidia as Root?  sudo nvidia-settings if not, changes CAN'T be saved, as you need to be in the utility as root.


Keyboard shortcut to access desktop on ubuntu 17.10?

Super+D should "show desktop" (Super is usually the key with Windows logo).

Also view this page which lists all the shortcut keys.

As there are so many, here is a quick selection...


Why won't my setup see the partitions on my hard drive?

Solved it myself in the end. After quite a while. Found a setting in BIOS that allowed me to switch between IDE (active) and RAID. I set it on RAID and next thing I know I got my Ubuntu installed. Unfortunately, Windows wasnt installed with RAID drivers so after installing Natty I switched back to IDE and they both work just fine.

Thought somebody might want to know.


Ubuntu 16: pip install installs to python 3 instead of 2

after installing both

sudo apt-get install python-pip
sudo apt-get install python3-pip

under Ubuntu 16.04 I can simply use

pip2 install module
pip3 install module

to install the desired module for Python2 or Python3, respectively.

I hope that is helpful and works for you, too!


Is the command line structure the same for Linux and Ubuntu?

Just to clarify:

Linux is the kernel that Ubuntu and many other distributions use.
Linux is not an operating system.
A Linux distribution is a set of software that includes an operating system as well as other utilities that make the operating system useful. (ie gnome)
Because they are different things, a distribution and a kernel are not comparable items.

Ubuntu is a Linux distribution that uses the Linux kernel, the standard GNU toolkit and a whole lot of other free software stacked on top.

The command-line utilities are not provided by Linux. Most core utilities are provided by the GNU project. Some are specific to the distribution (eg apt-get is specific to Debian-based distros). The rest come from any number of other independent sources.

Depending on your definition of 'command-line structure', every GNU distribution uses the same 'command-link structure'. I would consider android, for instance, a Linux distribution but not an GNU distribution. Most Linux distributions adhere to the Linux Standard Base. This sets out the rules for where files go, and how things are structured (amongst other things).

On the other hand, you could also say that 'command-line structure' changes based on the shell that you use.


You should only ever create pools by using

/dev/disk/by-uuid/92e3fea4-66c7-4f59-9929-3a620f2bb24c

or similar like

/deb/disk/by-id

do the following to get the present mappings

ls -l /dev/disk/by-uuid

or

ls -l /deb/disk/by-id

I prefer by-id, but always make 100% sure you are using the correct disk. Don't just blindly look at where the disk is mapped to. Using by-id I've had stale entries that map to the same device. Double, triple check and confirm.


Drag-and-dropping files not working in Ubuntu 17.10

It seems it's a bug with Wayland.

As a workaround you may switch back to Xorg following this Q&A: How do you switch from Wayland back to Xorg in Ubuntu 17.10?


how to login with previous open programs when ubuntu is log out or shutdown like in kde

Im afraid the ability to save sessions was dropped in Ubuntu 11.04 due to numerous side effects. There are currently no plans to re-enable it, which is a shame. Source.


Kubuntu 15.04: https://web.archive.org/web/20151110133002/http://cdimage.ubuntu.com/kubuntu/releases/vivid/release/

Kubuntu 15.10: https://web.archive.org/web/20160517131813/http://cdimage.ubuntu.com/kubuntu/releases/15.10/release/

Kubuntu 16.10: https://web.archive.org/web/20170606120152/http://cdimage.ubuntu.com/kubuntu/releases/16.10/release/

Kubuntu 17.04: https://web.archive.org/web/20171222021400/http://cdimage.ubuntu.com/kubuntu/releases/17.04/release

Kubuntu 17.10: https://web.archive.org/web/20180628191845/http://cdimage.ubuntu.com/kubuntu/releases/17.10.1/release/

Kubuntu 18.10: https://web.archive.org/web/20190629160724/http://cdimage.ubuntu.com/kubuntu/releases/18.10/release/

Kubuntu 19.04:

https://old-releases.ubuntu.com/releases/kubuntu/releases/19.04/release/
https://old-releases.ubuntu.com/releases/kubuntu/releases/disco/release/


Custom daemon script: works, but does not run at boot / startup

I'm answering this for completeness, even though you already went with an Upstart job (and that is the way to go, I'm not suggesting here you go back)....

I think the key thing you missed first time around was the runlevel.  I'm going to guess you are used to RPM distro's where it's typically runlevel 3 for multiuser and runlevel 5 for GUI?

In Debian and Ubuntu, there's really only single user (1) and multiuser (with GUI if installed).  And multi user is runlevel 2.  So your symlinks failed because you never got to RL 3.

Using the update-rc.d command makes managing the symlinks easier.

In any case, I'm writing this up for anyone else you might actually need it.  Though I would suggest they convert the script to an Upstart too!


Reinstall grub by booting a Ubuntu DVD/usb3, mount your instal partitions under /mnt, chroot into / mnt, run grub-install /dev/sda, and set the default os in /etc/grub/defaults.

https://help.ubuntu.com/community/Grub2/Installing


Fan noise, too hot, lagging, Ubuntu 16.04 on laptop hp pavillion g6

determine which process is using your cpu by running top or ps aux in your terminal(ctrl+alt+t)

post output here or try killing the process by running "kill PID" in the terminal. PID is the second column in "ps aux" first column in "top"


Add an editor to a list of terminal system editors

To add an additional alternative application to the Debian alternatives system, use

sudo update-alternatives --install link name path priority

To add an additional editor, run a command as:

sudo update-alternatives --install /usr/bin/editor editor /usr/bin/your-custom-editor 50

where the third entry after --install is the executable of your custom editor. The first entry is the generic command that loads the selected editor, the second the name of the group of alternative applications. The number must be given and indicates a priority.

After that, you should be able to select your custom editor with either sudo update-alternatives --config editor or sudo select-editor.

You can learn more about the Debian alternatives system here.


Default Action for Cancel-Dialog in Gedit nearly not visible

If you're on Ubuntu 18.04 and if you have installed gnome-tweaks, you can check out the various themes already available to you. For the purpose of your question, if you select High Contrast, you should see something like this:

It isn't pretty but the contrast is stark.

Another option is to install materia-gtk-theme from the repos. With Materia, you'll see this:

When you install materia-gtk-theme, you'll also get the dark variant and that looks like this:

Of course, you can always search the internet for more themes! The only caution is that you don't install themes that are not compatible with your system's version of gtk3. So, probably avoid themes made more than a couple of years ago.

Edit:

A hack which may work for you is to create the plain text file ~/.config/gtk-3.0/gtk.css if such a file doesn't already exist and then to edit it to contain the following on a line by itself:

* { outline-width: 5px; }

You can see the result (with Materia-light) in the image below:

You can change 5px to whatever you're comfortable with. This hack works with some themes but doesn't work with others such as Ambiance.


How do I change the DNS server on Kubuntu?

The simplest way to set your own DNS servers is shown below. (This may, or may not, solve your problem, as we don't know what changes your Uncle made to limit your Internet access.)


A corresponding question was asked about Thunderbird.  The solution provided there worked for me:

go to go to /usr/share/hunspell/
delete the languages you do not want (e.g.  rm de_BE.* to delete Belgian German)

I am not sure why you got the message about incomplete language support - I didn't have that problem.

But in addition, you may still have manually installed dictionaries in Firefox.  Interestingly, just disabling/uninstalling wasn't enough (e.g. via Tools | Add-Ons).  To get rid of the languages I didn't like, I went to ~/.mozilla/firefox/*.default/extensions and deleted the dictionalry-folders e.g. rm -r de_BE*  that did the trick.


Re installation of bluedevil or any substitute for it

As asked Naveen issued the command. Read the output carefully which tells me that "obex-data-server" is not installed. Then I simply issued command "sudo apt-get install obex-data-server". After installed Bluedevil by "sudo apt-get install bluedevil". And my problem is solved.


1.Download java

http://www.oracle.com/technetwork/java/javase/downloads/index.html

2.Open terminal type commant

cd Downloads

tar xzvf jdk-8u25-linux-x64.tar.gz

sudo mkdir /usr/lib/jvm

sudo mv ~/Downloads/jdk1.8.0_25/ /usr/lib/jvm/

sudo chown -R root:root /usr/lib/jvm/jdk1.8.0_25

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_25/bin/java" 0

sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_25/bin/javac" 0

sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_25/bin/java

sudo update-alternatives --set javac /usr/lib/jvm/jdk1.8.0_25/bin/javac

sudo gedit ~/.bashrc
    export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_25
    export PATH=$PATH:$JAVA_HOME/bin

. ~/.bashrc

java -version

echo $JAVA_HOME

echo $PATH


Bionic - Group addition using usermod -aG doesn't take effect until the next reboot

It's NOT "an issue", it's just how groups work.

The login program reads /etc/groups to set the group membership of your initial process, which will be inherited downwards to processes it creates.

Eventually, a process does sudo usermod -aG docker prahlad, which updates /etc/groups, but, by design, does NOT change the group membership of the parent of the parent of the process that ran sudo usermod -aG docker prahlad, nor does it run login to edit your processes' group memberships.

As a long time sysadmin, I'm sure I want to be able to add some random user to some random group WITHOUT messing with MY group memberships.

If you want to make immediate use of your new group membership, you could read man newgrp, and do:

sudo usermod -aG docker prahlad
newgrp docker


17.04 cant install programs outside of software center

I had trouble installing Brave, gave up for a while and tried again and finally got this to work:

$ wget -O brave.deb https://laptop-updates.brave.com/latest/dev/ubuntu64
$ sudo dpkg -i ./brave.deb

I got an error about missing dependencies. So I did this next:

$ sudo apt --fix-broken install
$ sudo apt-get upgrade
$ sudo apt-get update

I don't know what I did, I am really new at Linux, only had Ubuntu installed for about 2 months. Hope it works for you.


Okular review (annotations toolbar) not available

Try turning off the Obey DRM, in Settings -> Configure Okular


Trying To Install Java 8.. Unable to locate package openjdk-8-jre

OpenJDK8 is not included in Ubuntu 14.04 repositories.

You can install Openjdk8 to Ubuntu 14.04 from a PPA this way:

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jre


Broadband gets connected but can't browse anything further google!

At first, try restarting your router and your computer. It may be possible that your router was reconfigured by windows.

Take a look at the /etc/resolv.conffile .

Open terminal and enter :

sudo gedit /etc/resolv.conf to open the file.

make sure that you have a line like nameserver 192.168.2.1 , where 192.168.2.1 is the address of your router.


i do not know your motherboard ,so 1st step is to check if you have IOMMU and if is disabled

lspci | grep "IOMMU"

if it is disabled(prefer in bios) or your motherboard do not have it,then
we need to make crossfire chain

aticonfig --cfa --adapter=0,1

and then just type

aticonfig --cf on --adapter=0

then we check crossfire status with

aticonfig --lscs

If you get message that is enabled then you can proceed to some bench to actually see benefit.

Most cards 99% still need crossfire link (bridge)... Do not forget that one to attach between cards.


Upgraded to Windows 10, destroy my Linux partition, boot-repair didn't do anything

Nothing you can do to fix.  Your Linux install has been, shall we say, obliterated.

You can reinstall, but you'll have to resize partitions with gParted live.


The latest version of Firefox for Ubuntu is version 60.0.2.

Try

sudo apt update && sudo apt upgrade


ubuntu 14.04 does not boot after fresh installation

You're running into some variety of Secure Boot error. My hunch is that your computer lacks the keys needed to boot Ubuntu; or possibly there's a bug involved, probably in your EFI's Secure Boot implementation. (I've seen some computers refuse signed copies of Shim, which is the tool that Ubuntu uses as a Secure Boot solution.) It could also be that you've got some odd mixture of signed and unsigned copies of GRUB.

The easiest workaround is to disable Secure Boot. Unfortunately, details of how to do this vary from one computer to another. This page of mine shows four examples of how to do it, but I've heard descriptions of some that vary significantly from any of mine.


18.10 frozen after installing on an Xiaomi Mi Notebook Pro

Same thing happened to me, turns out it's Nouveau drivers not playing well with the Nvidia MX150. I solved by starting in recovery mode, going to root terminal, and using ubuntu-drivers autoinstall to install Nvidia proprietary drivers.


This looks like a kernel bug, so I suggest filing a bug report in LaunchPad against the linux package, attach the image to the bug report.  Also, run apport-collect and specify the bug number so the kernel developers can get enough machine specific info to help them fix the bug.

See https://wiki.ubuntu.com/Kernel/Bugs for more details on how to file a bug.


Difficulty in connecting to wifi on my Ubuntu 14.04. HP-pavalion g6

Assuming that the network you want to connect to is (you didn't specify, but it is the loudest):

Wireless Access Points
MyHP_Network:    Infra, <MAC 'MyHP_Network' [AC1]>, Freq 2412 MHz, Rate 54 Mb/s, Strength 90 WPA WPA2

You can follow the tutorial on linuxconfig.org.


Can I perform a distribution upgrade without rebooting?

I think you want to restart dbus.  I thought I remember reading somewhere that restarting dbus (for when dbus is upgraded) would restart x too, so they opted for a reboot.

But since you want all that: sudo service dbus restart


How to move window buttons to right in Ubuntu 16.04

If I understand you correctly and you are on (Vanilla) Ubuntu 16.04 with GNOME Shell installed (version 3.18.4) the following command should move the buttons to the right:

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

To set them back, the command is:

gsettings set org.gnome.desktop.wm.preferences button-layout 'close,maximize,minimize:'


Lost wifi connection since i connected ethernet cable

Try this in a Terminal window:

sudo ifconfig wlan0 down
sudo dhclient -r wlan0
sudo ifconfig wlan0 up
sudo iwconfig wlan0 essid "YOUR ESSID"
sudo iwconfig wlan0 mode Managed
sudo dhclient wlan0


Issue resolved.

To remedy my problem I did the following:

Boot into failsafe graphics mode and login with normal user (or boot to terminal instead)
purge nvidia and bumblebee if installed sudo apt-get purge nvidia* bumblebee*
install nvidia prime sudo apt-get install nvidia-prime
Reboot

This resolved my issues after a reboot. I was able to login with no issues and verify that both graphics cards are usable and that Nvidia proprietary driver version 331.38 is in use.


I don't know which implementation of cloud middleware you are referring to, but openstack supports building clouds from a single VM or laptop up to multi-node hardware installations. Check out their tutorials for privately deployed clouds.


Running driver-select script gives Error 1 and 2

The driver alx doesn't exist in that version of compat-wireless. It is in later versions which may or may not compile depending on your Ubuntu version. For example, alx is present in compat-wireless-3.5.4-1-snpc which compiles perfectly in Ubuntu 12.10 but probably not in earlier versions.

When you get errors at 'make,' it isn't going to build the driver correctly, so stop.

Please be sure you have the prerequisites build-essential and linux-headers-generic installed.


Found it. According to the file blt4l_1.3_Ubuntu-precise-steamrt on the website https://github.com/blt4linux/blt4l/releases/ there is already a prebuilt libblt_loader.so (wasted 2 weeks compiling this) and a README.md saying

  Move the contents of this folder in to your PAYDAY 2 folder, so that
  it looks like this:

PAYDAY 2/
    mods/
    libblt_loader.so

  Open Steam, and open the properties for PAYDAY 2. Select "Set Launch
  Options", and set it to:

env LD_PRELOAD="$LD_PRELOAD ./libblt_loader.so" %command%

  If your PAYDAY 2 folder is in a different library folder, change the
  path accordingly.


HEV/H.265 videos are not playing using VLC plug-in in Ubuntu 14.04

Many vlc issues will be solved by using mc3man's multimedia PPA for Trusty Tahr. First backup your vlc config:

mv ~/.config/vlc ~/.config/vlc_bak

Then add the PPA:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade

This should update your existing packages but to be sure you can run:

sudo apt-get install vlc vlc-libde265

And this should kick start your media playback...


Hey Alan if I am not mistaken the Synaptics Touchpad should be found under System > Preferences > Mouse under the Touchpad tab. This instruction is according to this guide on help.ubuntu.com. I hope this helps. Any more questions just comment.


What are the recomendation for dual boot between Windows 10 and Ubuntu 19/18.04

There are a couple of things to check:

install Ubuntu the same way windows is installed: legacy or EFI. Otherwise you can only boot one and need to pick the other way by entering BIOS and selecting it.
disable fast boot in BIOS if available.
disable secure boot in BIOS if available.
if you use an SSD set it to AHCI.

If the installer is created with EFI enabled you can rename (or remove) /sys/firmware/efi/ on the pendrive (by mounting it as writeable) and it will install the system in legacy.

Command line to check if the live session was started with UEFI or legacy BIOS:

$ [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
UEFI

It is easiest to create unallocated space on the partitions you want to use for Ubuntu. Makes it easier to recognize. Try to put base Ubuntu (/) on an SSD if available. Quicker boot and quicker loading of configuration. In theory you can use D: to store your personal files, though I would advice to create a partition to store these.


Apache refuse to restart after renewing certboot, I have tried others experience here doens't work all

It seems that port 80 is already in use. So, look into what is using port 80.

You can find the process using port 80 by the comand lsof -i:80' or if you want to free port 80 then you can kill the process by running command sudo kill -9 $(sudo lsof -t -i:80)

After this please restart apache2 with the command sudo service apache2 start

I hope it will help you.


DNS sometimes works, but it is very slow.

network-manager is meant to manage your whole workstation's networking requirements in 12.04 along with resolvconf and dnsmasq-base.

dnsmasq-base is just the executable dnsmasq file which network-manager runs using a separate config and no start-up scripts.

resolvconf rewrites /etc/resolv.conf whenever one of the 12.04 integrated packages tells it via scripts that something has changed.

It doesn't sound like it's correctly installed if you don't have that dns=dnsmasq line in your config. It might also account for the slowness.

You could try dpkg-reconfigure on network-manager and on resolvconf

Alternatively if you are using programs like VPNs that are not integrated with network-manager or other non-compatible programs, you could de-install network-manager and resolvconf completely and rely on isc-dhcp-client to set up your network and DNS, or pppd if you're using a modem.

dnsmasq under control of network-manager is intended to speed up DNS look-ups through caching, but if you de-install network-manager, then you'll also get rid of dnsmasq - at least it won't run on its own. You need the regular dnsmasq package to get it starting up and running at boot time.

You don't say if you need DHCP or you have static IP addresses.


Will upgrading from 12.10 to 13.04 wipe my hard drive?

if you are doing the upgrade via the software manager then no it just upgrades ethe os and does not touch anything else


How To Record Compressed Video From TV Tuner Using VLC

In the past I've had the following work for me:

ffmpeg -f oss -ac 2 -ar 48000 -i /dev/audio1 -acodec pcm_s16le -f video4linux2 -s 720x480 -r 3000/101 -i /dev/video0 -sameq -aspect 4:3 -target ntsc-dvd a.vob

Of course both the -target and frame rate -r 3000/101 would have  to be changed for PAL.


admin no longer has access to shared folder

It sounds like your user is no longer a member of the vboxsf group - you can check by using the id command in a terminal or getent group vboxsf

If that's the case, you can add the user back with

sudo gpasswd --add <username> vboxsf

or the equivalent adduser or usermod command

You will probably need to log off and back on for the change to take effect


try to remove the old version of chromium and the language pack and then update you repository cache and reinstall them

sudo apt-get remove chromium-browser
sudo apt-get remove chromium-browser-l10n
sudo apt-get update
sudo apt-get install chromium-browser
sudo apt-get install chromium-browser-l10n


Install Grub Customizer and check your settings. Maybe it's set to automatically boot the previously booted system, or GRUB is only visible for a short time.


out it into your startup applications as a script.

power key, type "startup" , startup applications, add, put your script in

bash "/home/...wherever/DisableTouchscreen.sh"

seeing as the id to often changes on reboot this is for my touchscreen as per xinput *ELAN0732:00 .this is the script

list=$(xinput | grep $search | grep pointer)

device_id=$(echo "$list" | sed -n 's/.*ELAN0732:00.*id=\([0-9]*\).*/\1/p')

for i in $device_id do echo

xinput disable $i

done

this probably disables both touchscreen and pen, but the pen activates when I use it for the first time for any given session.


Hit Ctrl+c during do-release-upgrade. Did I break it?

Your /etc/apt/sources.list was most probably changed to the new version at the point you aborted the upgrade. This will make do-release-upgrade or apt-get dist-upgrade behavior unpredictable.

Change it first with (assuming you were upgrading from 11.10):

sudo sed -i -e 's/precise/oneiric/g' /etc/apt/sources.list
Then do a sudo apt-get update followed by a do-release-upgrade.


OVH - Dedi 14.04 Server - Raid Reconfiguration Help for a Total Noob

The short answer:

Using ovh's CP choose reinstall and tick custom install.
Select Install all on first disk.
Install.

Log in as root and the other drives are completely unallocated. You can act on them as you would any other drives and there is no pre-installed raid to overcome.

Also, I decided to go with backups over raid 5 or 6 after reading about the odds of a volume failure after a drive failure. See:  http://www.datamation.com/storage/data-storage-the-myth-of-redundancy-1.html


Are there any performance issues in having two different file systems on the same disk?

I honestly have no idea what that guy is talking about in the last paragraph on the page you linked.

There is absolutely no problem at all with having different file systems on the same disk. If anything there needs to be an additional kernel module loaded for mounting the file system, but that doesn't affect performance nowadays at all.

I've personally been using ext4, ntfs and fat at the same time for years and have had no issues.


What is the public address of installed app?

The public-address is the address assigned to the machine so in the case of discourse here it would be public-address: 10.0.3.3


Linux's error #5 is an I/O error. This almost always signifies failing hardware, which is also consistent with your other symptoms. I recommend you check the disk's SMART status to see if it's failing. If SMART says the disk is OK, you could try replacing its cable or moving it to a different SATA port (if the computer's a desktop), since bad cables and connectors can sometimes cause problems. If the SMART results look bad or if a cable swap doesn't help, you may need to replace the disk.


Cannot upgrade, "could not download the release notes" error

Because Natty is just out, the servers are a bit crowded.

Consider the next traffic graph for the default Dutch Ubuntu mirror:

The traffic has been increased by four times because of the new Ubuntu release. Switching to a less used mirror improved the download speed for me. A list of mirrors, sorted by country, can be found at https://launchpad.net/ubuntu/+archivemirrors

See also How can I get apt to use a mirror close to me?


archived .deb file error-specified file is not found using dpkg

What is the reason for attempting to install linux-image-3.16.0-49-generic_3.16.0-49.65-14.04.1_amd64.deb manually?

If you're trying to update your system, please try the following commands. Aptitude is really good at fixing issues:
sudo aptitude update
sudo aptitude upgrade

Another method is to use apt-get:
sudo apt-get update
sudo apt-get upgrade


That is the Actual Usable space.

There is a difference between the manufacturer's unit of measurement of size. That and the system has to use space as well.

A Picture of my Nexus 5, and Ubuntu touch has never been installed.


Sudo specific actions for specific directory

Create file /etc/sudoers.d/any-descriptive-name-here with such content:

user ALL = NOPASSWD: /bin/ln -s /source/location /destination/location

This allows user execute command /bin/ln -s /source/location /destination/location without password. Require password or not, create user list, allow by group, etc. - see man sudoers

Also note that delegating sudo permissions could more than easily open security hole.


2D CAD application for Ubuntu 14.04 ---> output DWG/DXF files

There are lot of apps to use. check this UbuntuEngineering.

But as a first choice I advise you to use FreeCAD.

Quoted from official site:

  FreeCAD is a parametric 3D modeler made primarily to design real-life
  objects of any size. Parametric modeling allows you to easily modify
  your design by going back into your model history and changing its
  parameters. FreeCAD is open-source and highly customizable, scriptable
  and extensible.

  FreeCAD is multiplatfom (Windows, Mac and Linux), and reads and writes
  many open file formats such as STEP, IGES, STL, SVG, DXF, OBJ, IFC,
  DAE and many others.

You can install it using command line:

sudo apt-get install freecad


As stated in the Boot chart Documentation, the data collection process uses:
/proc/stat          system-wide CPU statistics: user, system, IO and idle times
/proc/diskstats     system-wide disk statistics: disk utilization and throughput
/proc/[PID]/stat    information about the running processes: start time, parent PID, process state, CPU usage, etc.

Therefore,

Yes

These are CPU cycles wasted waiting for I/O

a. The disk throughput is a number in MBps/sec measuring the data that gets read/written to/from the disk.
b. The Disk utilization is a % between 0 (meaning idle) and 100 (meaning fully occupied)

"Unint. sleep" is the abbreviation of "Uninterrupted sleep" (See 2. above)

"Sleeping" means "not doing anything" which would be not very good while performing a boot... (Also see 2. above)

A simple example:
Let's suppose you do video conversion: you will read very little disk, but use 100% of 1 CPU, then the Disk Utilisation will be 1% and the total CPU on a dual-Core CPU will be 50%
Now you do a file copy: 1 CPU will be at 1% and the Disk Utilisation will be at 40%; now you do 2 file copies at the same time: CPU will be at 2% and Disk Utilisation will be at 80%.
If you do a third file copy at the same time, Disk Utilisation will be at 100%, but CPU% will go up and show 20% "I/O Wait": it doesn't go any faster: the CPU is just waiting until it can push some more data to the disk.
This is just an example: the % depend on the availability of RAM, CPU and the speed of your disk!


System tray not being displayed correctly Ubuntu 14.10 64-bit


How can I install a specific version of OpenJDK? (1.8.0_131)

I have found mirror hosting debian packages for OpenJDK (1.8.0_131).

You can download following debian packages for your required version 1.8.0_131.

openjdk-8-dbg_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-demo_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jdk-headless_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jdk_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jre-headless_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jre-jamvm_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jre_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-source_8u131-b11-2ubuntu1.16.04.3_all.

Above packages are for Ubuntu 16.04 LTS. You can copy to any other system and install manually using sudo dpkg -i command.

You can also download following tar file for manually installing openjdk using same link.

openjdk-8_8u131-b11-2ubuntu1.16.04.3.debian.tar.xz
openjdk-8_8u131-b11.orig.tar.xz