As I understood, I found that solution: find only files in both directory, get the md5 hash of each file, sort, and verify if the hashes matches.

In bash, you can get all the files from a dir (including subdirs) using find with -type f parameter to get only files, and -exec md5sum {} \; to get the MD5 hashes from files. In this way, you must cut off the file names and sort, using |cut -d\  -f1 and |sort to sort the generated hashes. Use this with both dirs, and push the output to a file for each dir:

find path/to/dir1 -type f -exec md5sum "{}" \; |cut -d\  -f1 |sort > /tmp/hashes_dir1
find path/to/dir2 -type f -exec md5sum "{}" \; |cut -d\  -f1 |sort > /tmp/hashes_dir2

After that, you can just compare the generated files:

diff /tmp/hashes_dir1 /tmp/hashes_dir2

If the output of the above is empty, both dir's files have the same content.
If not (for example, there is a duplicated files only in one directory), the output will not be empty.

Edit:
Additionally, you can see the correspondent files cutting off the cut and the sort pipes from the two first commands, pushing the output to the same file, and printing the file with cat and a pipe with sort to compare:

find path/to/dir1 -type f -exec md5sum "{}" \; > /tmp/hashes_dir
find path/to/dir2 -type f -exec md5sum "{}" \; >> /tmp/hashes_dir
cat /tmp/hashes_dir |sort

The correspondent files will appear one next to the other.

Edit2: To see how it works: http://pastebin.com/dW7LrZkR


Is there an easy way to install O3D in Chrom(ium) / Firefox?

After spending a considerable amount of time puzzling over this, I decided to just go ahead and compile it anyway. To make it easier for those who should want to try this in the future, I have prepared a small (yeah, right!) Bash script to automate the entire process.

Short version: if you just want me to give you a command to run, then here it is:

wget http://files.quickmediasolutions.com/install_o3d ; chmod 755 install_o3d ; ./install_o3d

Note: you will be prompted for your root password in order to install some packages.

The script may take a few minutes to run (or even up to an hour) but in the end you should end up with a package (or two) in /tmp/o3d/o3d_root/o3d/build/out/Debug/. This can then be installed for O3D support.

Long version: Google doesn't seem to provide precompiled binaries (that I could find at least) so I visited this page and got the instructions for building it and began constructing a Bash script to perform the actions.

First the script makes sure that you have the right packages on your system. It also checks to see if you provided a path as a parameter which is used to store the repositories (/tmp/o3d is used if no parameter is specified). Then it checks out Google's depot_tools and adds it to PATH (not permanently though). Then the script uses gclient to fetch all of the code from different repositories (believe me, it downloads a lot - like over 500MB of stuff). Unfortunately the DEPS file in the o3d_root/o3d folder seems to have the wrong revision number for breakpad so my script patches it on the fly and re-syncs.

Then the long and tedious process of building the plugin begins. Depending on the speed of your system this can take anywhere from 10 to 60 minutes.

When the process is done, you will find the packages in o3d_root/o3d/build/out/Debug/. Note that the build process may report an error and stop. But as far as I can tell, the error can be ignored because the packages are already built at that point. From there you can simply install the package.

Here is my script in its entirety:

#!/bin/bash

# check all dependencies
echo "Checking dependencies..."
echo "[Note: you may be prompted for your root password]"
sudo apt-get install python gcc g++ libxt-dev libgtk2.0-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libx11-dev fakeroot libnss3-dev libgconf2-dev libcurl4-gnutls-dev libgnome-keyring-dev libdbus-glib-1-dev subversion dpkg-dev build-essential debhelper cdbs

# check to see if a path was specified
if test $# -lt 1 ; then
  INSTALLPATH="/tmp/o3d"
  echo "No path specified, assuming '$INSTALLPATH'..."
else
  INSTALLPATH="$1"
fi

# make that directory
mkdir -p $INSTALLPATH
cd $INSTALLPATH

# checkout the depot_tools
echo "Checking out depot tools..."
svn co http://src.chromium.org/svn/trunk/tools/depot_tools

# export the path to these tools
export PATH="$PATH":`pwd`/depot_tools

mkdir o3d_root
cd o3d_root

# now download the code
echo "Downloading code..."
gclient config http://src.chromium.org/svn/trunk/o3d
gclient sync

# apply our patch to the DEPS file
echo "Applying patch to DEPS file..."
echo -e "13c13\n<   \"breakpad_rev\": \"604\",\n---\n>   \"breakpad_rev\": \"605\"," >DEPS.patch
patch o3d/DEPS DEPS.patch

# re-sync the code
echo "Re-syncing..."
gclient sync

# build it
echo "Building o3d plugin..."
cd o3d
./gypbuild

echo "Done!"


Why is the Purchase Section in Software Center empty?

So now it works!

What I did:

Open software center, go to "Edit->Software Sources"
Disable "Canonical Partner" checkbox
Enable "Canonical Partner" checkbox again
Wait some seconds and restart USC

More info:

How do I enable the "partner" repository?


g++ and gdb problem: debug symbols for shared libraries not found

The problem was eventually tracked down to a legacy custom m4 macro. It failed to detect a library package and clobbered its contribution to the variables that were written to Makefile.in for include paths. The result was a -I with no path in the sequence of many -I directives. Oddly this produced no error ... but it did seem to cause the -g option which immediately followed it to be "swallowed". (The result was a long list of -I paths which ended with "-I -g". It looks like this prevented g++ from processing the -g option.).

Correcting the erroneous m4 macro to produce a non-empty and valid include file path fixed the problem.


No video shown in Ubuntu Touch QML app video player

Answering my own question, it might be linked to this bug, which mentions problems streaming video over http. Indeed, if I store the mentioned file locally instead of streaming, it's shown correctly.

I guess the locally stored files I've tried earlier (WebM, Theora) might have other issues, but that seems unrelated to this issue.


installing tor on ubuntu 14.04 using debuild

Why do you download the source package from the official Ubuntu repositories and build it manually instead of simply installing the binary package from there? If you fetch the source package from the Ubuntu repository, it will be the exactly same version as the binary package.

Just install it the normal way:

sudo apt-get install tor


Multiple displays in Ubuntu/XUbuntu - Displayport with Adapter (DisplayPort to 2x DVI) + ATI Graphics

I found a solution after digging for a while!

The ATI driver (fglrx) with the Startech adapter allowed me to set one monitor at 3840x1080 resolution (which really was 2 1920x1080 monitors passed through the adapter as one giant monitor).  This worked in terms of hardware output, but my desktop was split down the middle between the two DVI outputs because XUbuntu + ATI driver still thinks it's only one monitor coming through the display port.  Enter fakeXRandr!

Read more here:
https://github.com/phillipberndt/fakexrandr

git clone https://github.com/phillipberndt/fakexrandr
make && sudo make install

This points xrandr to a hacked version of libXrandr.so.  Now at this point, I re-ran the config in the ATI driver to pull in the giant monitor (3840x1080) and doing so re-ran xrandr with the hacked lib which finally spit out the two seperate displays recognized by X!

When it works you can do:

xrandr --verbose

Then see that xrandr has detected another logical monitor space ( mine was called DFP_ derived from DFP1 )!

UPDATE - fakexrandr now provides its own tool that lets you customize how to split displays into logical xrandr monitors. See here:
https://github.com/phillipberndt/fakexrandr
Under sections Installation and How To
After configuring with tool fakexrandr-manage, reboot the system to reload xrandr and it will take your fakexrandr configuration into account -- xrandr will then have sub-displays labelled with numbers at the end for each split.

Notes -

I'm pretty sure this solution doesn't solve the MST problem, but the little passthrough box I have is basically configured to output the two DVI displays as one single DisplayPort display.  This works, but is annoying and we have to use a software hack like fakeXRandr to go around it.


bash: "command not found" when calling function defined in ~/.bashrc file in `bash -c` command while opening gnome-terminal tab

To get bash to read and execute ~/.bashrc on startup, start it as an interactive shell:

gnome-terminal --tab -- bash -ic "set-title hey; exec bash"

Now why didn’t your approach of sourcing the file in a non-interactive shell work? I strongly assume your ~/.bashrc begins with something like this:

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

This lets it return without doing anything if the shell where it is sourced doesn’t have “i” anywhere in its $-, i.e. it’s an interactive shell. $- is a special parameter, man bash says:

  - Expands to the current option flags as specified upon invocation, by the set builtin command, or those set by the shell itself (such as the -i option).


Safely move (rarely changing) operating system directories to SSD drive

Make a full system backup. (Read What's a good back-up strategy for 1 desktop PC? first)
Make a full file back-up (Déjà-dup, BackInTime, rsync, ...)
Boot the LiveCD of the Ubuntu version you're currently running
Go to gparted, choose the SSD, create a partition 25% larger then the total size of /usr and /opt, format as ext4
Get the blkid of the new partition
Make an additional back-up only of the fstab file
Edit the fstab of the system and add the correct mount parameters for the new partitions, but do not save yet!
cp --force --preserve --recursive --verbose /dev/HDD/opt /dev/SSD/opt 2>>/tmp/copy_error.txt (and usr too of course\
Verify there are no errors copying.  If there are errors, correct manually.
Rename the old /opt and /usr to /opt_old and /usr_old
verify the copy with diff -r /dev/SSD/opt /dev/HDD/opt_old (and usr)
Save fstab
mount --all

If
(And that's a big if!)

for any of the steps above you go "Huh? What's that?"
you have an encrypted FS
you have any other kind of non-standard non-plain non-Vanilla Ubuntu install

don't do it!

Voilà: That's the safest way!


How to remove .deb package? illegal package name in specifier : character '~' not allowed

Try uninstalling without specifying the .deb extension— IIRC you're only need to pass the package name.

sudo dpkg --remove libnvidia-compute-440

I think you can do that with apt as well.

sudo apt-get remove libnvidia-compute-440


How to send network reconnect message after coming back from sleep

Create a script with your fix in a script on the /usr/lib/pm-utils/sleep.d directory:
#!/bin/sh

case "$1" in
    resume)
      set <interface> down
      ip link set <interface>
esac

Make sure to mark it executable and with the correct permissions.
For better explanation see these other questions:
Run Script on Wakeup?
how to execute a command after resume from suspend?


Updated Ubuntu 16.04, now I'm running Kali?

Yes, you are now using Kali.

I consider this far too destructive and I would file a bug report for this if I was you. Our upgrade should not upgrade you to another (aka. unsupported by Canonical) operating system. Either it should give a big fat warning that there is a personal archive or it should automatically disable manually added personal archives.

What happened is that all packages got updated and those related to Kali also pulled in anything related to Kali. Making it cascade into replacing your system with Kali.

You can remove Kali by disabling their archive and then execute ...

sudo apt install ubuntu-desktop

but ...  it will likely be easier and quicker to re-install if that is possible.

OP Update:

I was unable to get the Kali archives removed and migrate my install back to Ubuntu 16.04. I decided to cut my losses and install fresh, but didn't want to lose any data.

Backup

I booted to the Kali console and logged in to my old user account. I then Used sudo fdisk -l | more to get a list of drives after I plugged in my usb drive. The new drive was /dev/sdb1.

Tip: I made sure that I had enough space on my drive by using du -sh * while in my home directory.

To mount the drive, I issued the following:

sudo mkdir /media/usb/
sudo mount /dev/sdb1 /media/usb

I then copied my files using cp -rv * /media/usb/.


Since your computer is still on, you have a good chance of saving things.

First, sysfs exposes the kernel's in memory view of partition tables. Right now, your kernel has not reread the disk's table and it remembers your partitioning. Inside /sys/block/sda/, there should be one directory for each partition. Each such subdirectory contains a file start and a file size, which represent the partition's location and size, in sectors. Run fdisk and then recreate each partition (in order!) with the information in its sysfs directory. Note that you will have to create a new partition table, too. Make sure your new partition table is the same as the one before. You can check this in /sys/block/sda. If you see sda1 up to sda7 while you only have 6 partitions, you likely had MBR, and otherwise it was probably GPT. You also need to set flags and types for these partitions. Look at /etc/fstab and try to glean information about the types of partitions you have, then check Wikipedia to convert those to codes for your partitioning scheme.

Since you appear to be able to use your filesystem, it's likely that your dd did not get to overwrite any of it, since most of the important bits of a filesystem are at the front. Check /etc/fstab to see which partitions correspond to what part of your system, and then use the amount of data dd copied to get an estimate of how much you nuked. If you overwrote only part of a filesystem a good fsck might be able to fix it a bit (but you've lost a good chunk of data).

Most likely, you overwrote /boot. You'll have to reinstall your kernel (with aptitude) and reinstall GRUB2 (with grub-install) (which got both its first and second stage destroyed). GRUB2 is configured with files in /etc, so you won't have to manually recreate anything.


Are Sony Vaio S series or T series laptops  compatible with both windows 7 and Ubuntu 12.04 in dual-boot installation

Wifi problem seems to be quick to solve - in terminal execute command:

sudo rmmod acer_wmi

and instantly all the wifi networks are accessible. It turns out to be an Ubuntu problem:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/938630


Can't install updates due to boot folder size on 13.04

Note: This solution involves moving /boot into to the linux root drive (/). It also involve grub-update, hence it is recommended to have a live CD/USB with you.

This is one way to forget about this issue, as all the contents will be moved to the root drive, which will have a much larger size.

Create a new copy of all the contents in /boot with the same permissions

  $ cp -pr /boot /boottemp

Unmount the /boot partition

  $ umount /boot

Comment (add a # in the beginning) the entry corresponding to the /boot  partition  in file /etc/fstab
Remove the /boot folder

  $ rmdir /boot
  Make the /boottemp folder the new boot folder

  $ mv /boottemp /boot

Run grub update

  $ sudo update-grub

Reboot the system

  $ sudo reboot


Upgrade from 12.10 to 13.04 fails and APT doesn't work properly

For anyone landing here without the option to reinstall a fresh system, this is what helped me:

I got the same problem after upgrading from 12.04 to 12.10. The upgrade introduces python 3.2 as the default python interpreter.

As discussed here the problem is corrupted .pyc files. Reinstalling python3-distupgrade as suggested did not have any effect for me.

Tl;dr: I ended up needing to reinstall python3 and python3-minimal followed by manually removing all __pycache__ folders in /usr/lib/python3/dist-packages:

sudo apt-get install --reinstall python3 python3-minimal
sudo find /usr/lib/python3/dist-packages -name '__pycache__' -type d -exec rm -rf '{}' \;

Caution: The second command is potentially dangerous if mistyped.


So I managed to do it, I'll write it down, maybe others confronting this problem will make use of it.

When you get to the point where because of the enterprise firewall the installer can't configure APT, just select the next step - Install GRUB and finish installation. Now you can boot in a bare bone ubuntu server. Leave the USB connected, reboot and login to the new server. Mount the *.iso again as your sources.list will contain only the ubuntu server CDROM as repo. Now, when that's done:

sudo apt-get install nano tasksel
sudo tasksel --list-tasks
sudo tasksel install what-ever-you-want-from-list

Now on with configuring the proxy:

sudo nano /etc/environment

and configure proxy there:

ex. http_proxy="http://192.168.X.X:PORT/"

Then go to http://repogen.simplylinux.ch and generate your sources.list, paste it through SSH or somehow, then:

sudo apt-get update

You're done.

EDIT: btw, I tried the USB install from home, without proxy and my experience is that the installer still fails to configure APT and System Clock. So you have to do the after-boot CD mounting anyway if installing from USB. Interestingly, using a normal CD works fine.


I've not used this myself, but there is indicator-brightness which can be found here.


Hard drives unable to rw on ubuntu 17.10 (hard drives mounted at mount point)

Update:

I found a solution. These are the steps I took.

List all the mount points mount -v | grep "^/" | awk '{print "\nPartition identifier: " $1  "\n Mountpoint: "  $3}'
Fix the ntfs partition sudo ntfsfix Partition Identifier
Unmount the partition sudo umount Mountpoint
Mount it sudo ntfs-3g PartitionIdentifier Mountpoint

Hope this helps!


partition created to install Ubuntu appears as "unusable"

The differences between MBR and GPT are e.g. explained in http://www.howtogeek.com/193669/whats-the-difference-between-gpt-and-mbr-when-partitioning-a-drive/. As your disk is probably partitioned with MBR partition table, it is not easy to convert to GPT without data loss (see e.g. http://www.thewindowsclub.com/convert-mbr-to-gpt-disk or http://www.disk-partition.com/gpt-mbr/convert-mbr-to-gpt-without-data-loss.html, all using special software and being meant for mor 'insiders').

Before proceeding, be sure to have an actual backup of all your important files!!

As MBR allows for more than four partitions, when one of the four is a so called 'extended partition' which contains 'logical partitions', the easiest way for you to proceed would be:

Make a backup of the contents of the last partition (there are only 113 MB used, so should be no problem to copy the content)
Delete the backuped partition; this should give you continuous space at the end of the disk; so there are only three partitions left
If you need to have the fourth ntfs partition again, create it as 'logical partition', so the fourth partition should be automatically created as 'extended' and the new one and all others created from now on will be 'logical'
Now the space left should be available to linux for partitioning

If you do not need the fourth ntfs partition, you could skip the step of creating it, and install linux in the available space; the installer should create logical partitions as needed (for '/' and 'swap').

The above description implies that the partitions are in 'disk order', which means their starting blocks are in ascending order. To make sure, you can maybe use the windows disk manager, or start your PC from a linux live disk and run gparted to get reliable information (and do the partitioning).

Edit:

I did not talk about your backup, but about the fourth partition on your disk (sorry for being not precise). Do you know what is on that partition (should be something like drive D: or E: in windows)? If there is nothing important, you just can delete the partition (in windows disk manager or with linux gparted). If there are important files, copy them to a secure place before proceeding.

As I am not a Windows user, I do not know how to create extended/logical partitions from Windows (I was not able to do so in windows disk manager, only from the commandline diskpart (with administrative rights) and there after select disk 0 doing create partition extended.).

If you do not need the fourth partition (drive D: or E: or whatever), just delete it. When installing Ubuntu, you will be able to use the free space now and the installer will create an extended partition automatically.


How to Connect/Disconnect to WiFi Via Terminal

If you are using the desktop versions, the nmcli command for Network Manager could be useful:

nmcli nm wifi [on|off]
nmcli dev wifi [list [iface <iface>] [bssid <BSSID>]]
nmcli dev wifi connect <(B)SSID> [password <password>] [wep-key-type key|phrase] [iface <iface>] [bssid <BSSID>] [name <name>] [--private] [--nowait] [--timeout <timeout>]
nmcli dev disconnect iface <iface> [--nowait] [--timeout <timeout>]
nmcli con up id <id> | uuid <id> [iface <iface>] [ap <BSSID>] [--nowait] [--timeout <timeout>]
nmcli con down id <id> | uuid <id>

In order:

Disable and enable the WiFi.
List available networks (specific to a wireless device and the BSSID (usually the MAC address of the AP)).
Connect to a network, (use password for WPA/WPA2, wep-key-type for WEP).
Disconnect the device and prevent it from automatically connecting again.
Activate an existing connection. The id is usually the name of the file in /etc/Network-Manager/system-connections corresponding to the connection. The UUID is available in the same file.
Deactivate an active connection.


On ubuntuforums.org/showthread.php?t=2177810, I discovered that I should use a different protocol. I'm now using VNC, and once I discovered that I should accept the connection on my main computer, I got it to work. Now to figure out how do it over the internet... I would appreciate any hints.


According to compass-normalize git hub

Installation
It is highly encouraged to install from the RubyGems build which
can be found here.
From the command line:
$ gem install compass-normalize

You can also install the gem from your local clone:
$ git clone git://github.com/ksmandersen/compass-normalize.git
$ rake build
$ rake install

Usage
When creating a new project with compass:
$ compass create <my_project> -r compass-normalize --using compass-normalize

If using an existing project, edit your config.rb and add this line:
require 'compass-normalize'

To use the normalize plugin, just import and include normalize:
@import "normalize";

Note: SO Q&A discussion sudo-gem-install-or-gem-install-and-gem-locations

You can also install gems in your local environment (without sudo) with
gem install --user-install

I recommend you install RVM and start a happy life with portable gem homes and different version of Ruby all living under one roof.

Regarding the second question mentioned in the comments below regarding DEPRECATION WARNING:
There is a known issue in compass which was mentioned here
A branch with fix was published here, updating compass with the fix can be done using:
git 'https://github.com/ably-forks/compass', branch: 'sass-deprecation-warning-fix' do
  gem 'compass-core'
end

Similar issue was mentioned here


What version to use on Dell Insprion 1200?

Xubuntu and Lubuntu use the PAE kernel in the i386 versions, at least for version 12.04.


Ubuntu 16.04 Failed to start Load Kernel Modules

I had this same issue. I had to go into the recovery mode for the 64 Kernel (65 was showing but it wouldn't let me do the apt-get update even after enabling networking) then enabling networking. Then I did an apt-get update and the dpkg --configure -a.

It stalled in the middle of that showing Loading Braille support... I had to press Ctrl+Z to get out of it and then do it again to finish. I think I did this 3 times before it finished unpacking and installing the 66 Kernel.

Once that was done I was able to boot it fine. Once in the GUI I was able to do another apt-get update, dpkg --configure -a and everything was fine. I also ran apt-get autoremove to get rid of all the old kernels. I'm back up again!


You may check this article: Dual-boot Fedora 15 and Ubuntu 11.04 with either side on an LVM partitioning scheme It very detail article. Hope this help.

GRUB boot menu:

Create Custom Layout:


Writing the output of a python command to a file

The instruction

f=open("output.txt","w")

creates a file object named f; however

subprocess.Popen("show tunneled-node-mgr tunneled-nodes",stdout=file)

tries to write to an object named file - which doesn't exist.


As you can see, command namei -mo /var/lib/php5 output is:

     drwxr-xr-x root root /
     drwxr-xr-x root root var
     drwxr-xr-x root root lib
     drwx-wx-wt root root php5

php5 folder permission drwx-wx-wt means:

drwx this is a directory and the owner (root) has read, write and execute permission
-wx  users in root group have write and execute permission, they can't read
-wt  other users have write and execute permission, but can't read. t also tell that this folder can be removed only by the owner

If you want to read this folder you need root privilege, so try this command:

     sudo ls /var/lib/php5

According to sudo manual:

  sudo allows a permitted user to execute a command as the superuser or
  another user, as specified by the security policy.

Be careful to use sudo command, because gaining root permissions, you can do anything and if you mess up, you can compromise the system.


Ubuntu 18.04 stuck at "verifying the installation configuration"

After increasing the VM memory from 1GB -> 2GB I was no longer stuck at “verifying the installation configuration”


MITMPROXY make output human readable to file

mitmproxy has mitmweb tool which allows to open and inspect log files:

PS: I am currently using mitmproxy 4.0.3


Trouble using function keys to change screen brightness, sleep and adjusting keyboard backlight on ROG Zephyrus G15 running Ubuntu 20.04 LTS

I figured it out, I came across this asus-linux.org website and that had the solution. I just had to update my kernel to the latest version(5.11 as of now). I installed the latest kernel with Mainline kernel updater software.
The screen brightness and the keyboard backlight Function keys are working now. And some other bugs were solved.


It is not so simple... the application and system configuration files are easy to eliminate:

sudo apt-get purge <package>

(of course you have to know which is the package that contains your application).

Notice however that this does not delete any configuration file or setting that the application could have created in your home folder or in other places.

For the files that the application has created in the user home directories, this is quite application dependent and more complex to do (and often a good headache for doing upgrades). In general, it is almost impossible to find a generic way of doing it; every application can store data where it wants.

Nevertheless, most applications stores settings in directories of files "hidden" in your home directory, of the style ~/.config/application-name/ or  ~/.application-name.

You can start by searching where they can be with

find ~ -iname "*application-name*"

and researching from here. (Basically, the above command list all files of directories under your home directory that contains the string "application-name", in a case-insensitive way). It will be a trial and error thing.

After you have found all the directories/files containing options for the application, you can delete them (if you are sure that they are for the application alone --- a backup before deleting things is a good thing to do).

Even so, application can leave traces and configuration files in a lot of places. You have to see it app per app to completely clean every trace of it.


Touchpad-indicator appears to work on Lubuntu 11.10 (tested on an eeepc 1005ha). It is not in the official repositories but if you are comfortable with installing applications from a PPA it is available.

To install touchpad-indicator, run the following in a terminal:

sudo apt-add-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator

To set it up:

Menu --> Accessories --> Touchpad-Indicator

This should insert a touchpad icon in the taskbar. Click on this icon and choose 'Preferences' to set the options (including autostart).

NOTE: If you have problems adding the repository, check here for more info.


How do I get the Preferences option in Totem 3.6 on Ubuntu 12.10?

Open a terminal and launch Totem like this:

UBUNTU_MENUPROXY=0 totem

This will disable the global menu for Totem, so the menu that used to show up on the top Unity panel will show up inside the Totem window, but the GNOME "Gmenu" will now show up on the op panel - click it and there you should find the preferences menu along with a few other items.

Screenshot:

To always run Totem like this, open its desktop file as root:
gksu gedit /usr/share/applications/totem.desktop

And change "Exec=totem %U" (it should be on line 5) to "UBUNTU_MENUPROXY=0 totem %U", then save the file.

Via: How To Disable The GNOME Shell AppMenu While Retaining Its Functionality


Everytime that my Ubuntu MATE 18.04 LTS updates something related to the kernel, VMware Workstation stops working and errors out with the same message that you are reporting: Kernel Headers not found.
The following solution works, most of the times, for me.
Manually installing the missing headers
Open a terminal and install the headers that VMware wants; following your screenshot, the command should be:
sudo apt install linux-headers-5.4.0-39-generic

After this installation, restart VMware and it should change the error window for a window of "Several modules must be compiled and loaded into the kernel". Press Continue, and wait until it finishes.If says an error mid-instalation, close VMware and try it again; most of the times I have to go though some errors before it finishes correctly.
Please do note that, at least in my case, the linux-headers version it wants tends to be different every time this error appears.
But sometimes, the solution above will not work, and ocasionally I'll find out that VMware requieres an already-installed header that does not want to be detected (like your problem).
Removing and reinstalling the required headers
We are going to remove the header VMware is referring to and then manually reinstall it.
First of all, run this command to see which header is currently in use:
uname -r

If the current header is the one that VMware is complaining about, then DON'T CONTINUE.Only remove the header version if you know that you are not using it currently.
To remove a header, just do an apt purge like you would do with any other apt package.
sudo apt purge linux-headers-5.4.0-39-generic

Now that's removed, reinstall it again with:
sudo apt install linux-headers-5.4.0-39-generic

Once installed, fire up VMware again and see if it works or not.


Xenial (16.04.1 LTS) goes back to sleep after opening laptop lid

Something similar happens **sometimes* to me to where it wakes up, turns on built-in display and external TV for a moment and then goes back to sleep. Moving the mouse restores as if a normal resume.

I've had other issue of hibernating for 15 seconds when it was supposed to sleep in 2 seconds. I've even had issue of only the illusion of sleeping where screen turns off but fan was still spinning and power light was solid instead of halo. My first issue was when sleep only blanked out built-in display but external screen and all other programs (and sound) were still running.

In addition to the HandleLidSwitch=ignore setting in logind.conf you've made you can also try:

HandleLidSwitchDocked=ignore
LidSwitchIgnoreInhibited=no

"Docked" originally means laptop is attached to a docking station but it also means an external monitor is attached.

I must admit systemd design for IgnoreInhibited sounds like a double negative and it confuses me setting it to no.

The other option is to turn off Ubuntu handling of lid close in power settings with "Do nothing" and make systemd do it all.

The final extreme option (like I did) is write your own script for ACPI event/actions and tell Ubuntu and systemd to do nothing on lid close and lid open.

Anyway, if the suggestion works it's an answer, if it doesn't it's a long comment that won't fit where it belongs. I hope someone posts a definitive answer.


The best approach will be to first reduce the sda6 partition by 15 GB from Windows (though gparted can reduce a windows partition, it's oftenbetter to use windows tools for windows stuff). Then boot on live usb:

In gparted drag sda8 left into the free space,
then sda9 left in the same way.
Choose Execute to implement the changes.
Last, expand sda9 by dragging the right border right into the now
free space,
Execute again.

Though all above should be safe operations, it never hurts to make a backup before messing with partitions.


Look through this Minecraft Forum post.
Upgrade your graphics card
Upgrade LWJGL
Get a new graphics card

Hopefully one of those works or the crash changes.


I tested it on two other machines with the same Ubuntu and it worked out of the box.
It is a long known bug with USB host controller.
I reported it on launchpad:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1088395.
Also I found a very similar bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1088395


Dell N5110 - Byte-DM5710BT paired but not connecting

You can download Bluetooth Manager (search for blueman in the Sofware Center) and it should work. (It worked for me and my friend; we both have XPS 15.)


What to do with private bug reports on launchpad?

As a member of Bug Control, I've had to work with these private bugs on occasion.  There is a specific policy on handling private bugs, and checking for specific information.

For crash bugs, the general thing you have to look for in the private bugs are core dumps and any stacktraces that may be on the bug.  If a core dump is attached, remove it.  If there's stacktraces attached, look through them and identify any possibly private data in the stack trace.  If there looks to be private data, then what you have to do is download the stacktrace, edit out the private data, upload the edited version, then remove the old version.

As well, find any other Personally Identifiable Information, or private information, such as social security numbers, account numbers, passwords, etc., and try and edit those out as well.

For other private bugs, it depends, since there are separate policies for private security bugs which I am not privy to as those are handled by the Security team, and it likely would only be "Private Security" marked if the bug was legitimately a security risk that they could not publicize the information for.

There can also be private bugs that are not against the Ubuntu packages but are against other projects on Launchpad (i.e. not the Ubuntu project or an Ubuntu package).  For those bugs, the managers of that project will be setting forth the policies for those bugs.

Additional information on how to triage Apport crash reports and other private bugs in Ubuntu can be found on the Ubuntu Wiki, in the How to Triage guide, as part of the Bug Squad's knowledge base.  The link will automatically point you to the "Apport reports" section, however for the most up to date information on triage guidelines you should refer to that wiki document.


Can I sync Evolution's notes with Ubuntu one?

I'm not sure what the CalDAV and ON the Web options for notes mean exactly. I think Evolution might store notes in the same format that calendar events are stored, and are thus storable on a CalDAV server. However, no, you cannot sync notes from Evolution on Ubuntu One currently, that I know of.


WxPython offline installation on Ubuntu 13.04

You can download the WxPython package for your architecture at the Ubuntu Packages website, here is the link.

But you should know that that the recommended way would be installing it through the Ubuntu Software Center, with sudo apt-get install python-wxgtk2.8 or with Synaptic Package Manager for example, doing so will allow you to have the latest version of the software by a simple update when a new version is released.

Note: In my case wxPython is already installed, so maybe this package is installed by default on your Ubuntu too.


Set your computer to Suspend or Hibernate when lid is closed.  That will disable your mouse.


After installing 14.04, my computer boots straight to Windows 7

This usually happens when the bootloader for ubuntu is not installed in the Master Boot Record for the harddrive but instead it gets installed into a partition.

My advise is to put the live CD, open a terminal and install grub in the Master Boot Record for your hardrive.

sudo grub-install /dev/sdX

Where X is the letter of your harddrive, probably a.

Take a look at this related question (answer): https://askubuntu.com/a/271367/117382


ML-1740 printer under Ubuntu 13.10 (64-bit) doesn't install

You simply installed the driver. Now go to System Settings > Printers > Add and tell the system if you have a serial port printer, a USB printer, a network printer, etc. and, when prompted, select your Samsung and then ML-1740 and use the driver you installed.


Look I had a temperature problem but not that much. My laptop was about 65 C (high performance), and the fan was working too fast. I found out that my graphics card drivers (AMD Catalyst - not the same as you) were not installed and I couldn't, so I installed them manually from terminal and then the temperature is now about 53 C and the fan works perfectly. To see if you have installed them go to System Settings > Additional Drivers


Does uninstalling Firefox Snap remove bookmarks?

Yes, unlike the Firefox deb package, it erases your profile.
This is despite Mozilla flatly stating that removing Firefox does not remove profiles, with no caveat concerning snap.


Maybe the USB drive was not configured properly. Here is a method which is proven to work :

Use the Disks tool (gnome-disk-utility) to create the Ubuntu installation media properly.

Open Disks and select Restore Disk Image from the menu on the top right of the application.

Choose the Ubuntu installation ISO file and the USB drive to write it to and start restoring.


Your apt-get operations are failing because DNS is not set up correctly on your Ubuntu box, hence apt can't communicate with the specified repositories.

Having your box set its address with DHCP will mean that its DHCP client will automatically set up DNS for you.

Alternately, please refer to this documentation for how to specify the DNS servers your box will use when configuring a static IP address: https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution


Can't mount shared folder in Ubuntu 12.10 Server Guest Virtual Box

Had to do with not having the correct linux headers installed and therefore having a bad install of the Guest Additions.

in console:

uname -r
sudo apt-get install linux-headers-<uname -r>

then I reinstalled the guest additions from ISO provided from Oracle, not the guest additions from the default repository.

Was able to mount after this


How to disable animations to speed up screen updating in Virtual environment

Install Unity Tweak and Gnome Tweak tools.

In the terminal, type:

sudo apt-get install unity-tweak-tool gnome-tweak-tool

To execute them, type tweak in the Unity search bar.


Setup environment variables.

  You should Setup Environment Variables for java because all of java
  based application’s use environment variables to work. Open your
  .bashrc file and add the below coloured line to end of the file. Make
  sure you need to mention your path instead of us. Save and exit.

This is an example taken from http://www.2daygeek.com/how-to-install-java-7-openjdk-on-ubuntu/

magesh@magesh-desktop:~$ nano .bashrc

GNU nano 2.2.6                                    File: .bashrc

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64/bin/java"
JRE_HOME="/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java"
PATH=$PATH:$HOME/bin:JAVA_HOME:JRE_HOME


UBUNTU SOLUTION
If you are using AWS (Amazon Hosting), I could probably facing a cloud problem. I had a Zpanel Server installed on the "free tier" plan, and my MySQL became very unstable.

Sometimes the best solution could be install all over again. (usually I try to make a snapshop, as soon as I have the server up and running)

Well, the other solution, could be only reinstall the MySQL.
Usually this problem appear when you try to change something in the /etc/mysql/my.cnf.

To fix it (works most of time), you will need to follow some steps (these step will try to normalize the MySQL instance)

First, try to reboot the server (if it doesn't work, follow to the next steps):

sudo reboot

Other steps:

First, create a backup from you MySQL folder var/lib/mysql/, just to make sure your data will be safe:
sudo -i
cp -R /var/lib/mysql/ ~/mysql

After that, remove/purge MySQL (this will remove: php5-mysql, phpmyadmin and other libraries, so after the procedure, you will have to reinstall again.

sudo apt-get purge mysql-server-5.1 mysql-common

Remove the folder /etc/mysql/ and its content:

sudo rm /etc/mysql/ -R

Later on, check if the database files are still in the folder /var/lib/mysql/ and if they are not, then copy it back:

mkdir /var/lib/mysql/
chown root:root /var/lib/mysql/ -R
cd ~/mysql/
cp * /var/lib/mysql/ -R

Okay, then install o mysql server again

apt-get install mysql-server

And finally install phpmyadmin and php5-mysql:

apt-get install php5-mysql
apt-get install phpmyadmin

At last, restart the services and check if the status are okay now:

service apache2 restart
service mysql restart

That's it! It should work. I hope it works for you! (don't worry about the old data.That's why we have backup it first)


SPAMASSASSIN : How to enable spamassassin for my email?

You have to press ctrl+X to get out of that nano editor.

ctrl+O - to save the changes made on that file.


Add static IP in Ubuntu 16.04 Host Laptop

Use your localhost? 127.0.0.1.

You will need to bind your docker containers to localhost using something like "docker run -d -p 127.0.0.1:80:5000 base/theApp python theApp.py".

If this isn't an option you can use, you got two options.

The best solution is to bind your mac-address to your ip in all the dhcp-servers.

If you don't have access to the dhcp-server config you need to use a dhcp (dynamic setup) and an sub-interface with a static ip. Just remember to validate this with your network owner, otherwise it can cause network duplicate address errors. There is already a thread on this here askubuntu.com

Just add interface:[interface no] to add another interface configuration.

Example:

  auto lo eth0 eth0:0 iface lo inet loopback

  iface eth0 inet dhcp

  iface eth0:0 inet static
      address ...
      netmask ...


How can I convert .mp4 and .m4a files to .mp3 files automatically, keeping the cover art?

I've written a script that will do this automatically. Just run the script against each .m4a or mp4 file, like this, and it will produce the .mp3 files in the same directory:

convert-mp4-to-mp3.sh *.mp4 *.m4a

You'll need to install these dependencies:

sudo apt-get install realpath libav-tools atomicparsley eyed3

Here's the script. Copy and paste this content and save it to a file named convert-mp4-to-mp3.sh:

#!/bin/bash

set -e

for filename in "$@" ; do
    if [[ "$filename" == -* ]] ; then
        printf "Filename %s must not begin with a dash\n" "$filename" 1>&2
        continue
    fi
    printf "Converting %s\n" "$filename"
    filename=$(realpath "$filename")
    directory=$(mktemp -d)
    cwd=$(pwd)
    output="$(basename "$filename" | sed 's/\.[^.]*$//').mp3"
    cd "$directory"
    avconv -i "$filename" "$output"
    ln -s "$filename" "$(basename "$filename")"
    AtomicParsley "$(basename "$filename")" --extractPix || true
    shopt -s nullglob
    for imagefilename in *.jpg *.png *.JPG *.PNG ; do
        eyeD3 --add-image="$imagefilename":FRONT_COVER "$output"
        break
    done
    shopt -u nullglob
    mv "$output" "$(dirname "$filename")"
    cd "$cwd"
    rm -r "$directory"
done


The theme files will be under /usr/share/themes/. You'll most likely need to edit the CSS files in the gtk-3.0 subdirectory.

Use gcolor2 to find out the current colour of the toolbar - say it is #eeefff. Now figure out what you want the colour to be - say #ababab.

now you update the files - the easiest way is to just replace all occurances of the old colour with the new:

find /usr/share/themes/Cupertino -type f -exec sed -i 's/#eeefff/#ababab/g' {} \;

of course this will replace the old colour with the new everywhere - which may not be what you want. If you want to change the colour of the toolbar only you can figure out which css class specifies the toolbar (experimentation and Google will help here) and change just that.


Recommended to Ubuntu, downloaded to a saved file on desktop

You can use the Ubuntu Windows Installer to install Ubuntu just like another program in Windows.  The link I provided has some instructions as well as a download link.

Once this is installed and configured, you can reboot into Ubuntu and switch back to Windows whenever you want to by rebooting and selecting Windows from your boot menu.


Tried rebooting into recovery and clicking fix filesystem that usually does the job for me.
If not try reinstalling ubuntu if you want to backup your apps to a flash drive and reinstall in your fresh install.
Do this cd /var/cache/apt/archives
Than sudo cp *.deb /home/user/apps
Than copy that apps file to your flash drive or burn it to a cd.
Than reinstall ubuntu etc than cd into your apps directory and run sudo dpkg -i *.deb


Changing screen saver settings without completely removing gnome-screensaver and installing xscreensaver

You can tune your screensavers via xscreensaver but still use gnome-screensaver daemon to run them. gnome-screensaver has no way to tune screensavers due to its author's religious inclinations. I have never seen much trouble replacing it with xscreensaver, except for screen locking. If you need locking, you will have to make a custom button or menu item.


Run command using a file over the internet?

You can use wget (installed by default) or curl (you will have to install curl first)

wget -qO-  http://url_of.iso | dd bs=4M of=/dev/cdrom

curl http://url_of.iso | dd bs=4M of=/dev/cdrom

Assuming you know the url of the iso and /dev/cdrom is your cd, could be cdrom1 or other ;)


Antlr can't be found when building Processing

Had the same message from gluegen package. Google got http://www.java2s.com/Code/Jar/a/Downloadantoptional1531jar.htm for only the class search. Install ant-optional/ant-optional-1.5.3-1.jar.zip( 608 k) solved this problem ( for the next).


Use `less` to view BIG (multi-gigabyte) CSV files

There is a csv column formatting question on another StackOverflow site - does this work for your very-large file?

cat somefile.csv | column -s, -t | less -#2 -N -S


What are Different Bootloaders Available for Ubuntu?

As far as I know, there is BURG (Brand-new Universal loadeR from GRUB). You can set up themes or wallpapers for the bootloader. Here is how you can install it from terminal:

sudo add-apt-repository ppa:n-muench/burg
sudo apt-get update
sudo apt-get install burg burg-themes

To update the boot loader:

sudo update-burg

Source: http://linuxg.net/how-to-install-burg-on-ubuntu-13-04-12-10-12-04-and-linux-mint-15-14-13/


14.04 freezes during installation 'copying files'

Install it without selecting to install the updates during installation. You can also try again with the latest release Ubuntu 15.04.


I think this would be useful to you:

https://tuxwarrior.wordpress.com/2012/10/24/como-instalar-la-tarjeta-wifi-802-11n-dlink-dwa-525-en-gnudebian/

Use this link to the driver instead of the one in the post:

http://victor2012.info/2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_GPL.bz2


I had the same problem on two of my computers.  After a great deal of time - even a conplete re-install, I discovered that it was a simple configuration setting.  Here is what worked for me:

System Settings / Appearance / Select Radiance theme

All my icons magically re-appeared.


Is there an Akonadi-enabled message notifier in Kubuntu (which does not require KMail running)?

I now at least figured out how to find and install LionMail under Kubuntu 11.10. I'm not perfectly happy with it since it does not integrate into the message indicator framework, but it works very well together with Akonadi.

Prerequisites: For compiling you need at least these packages (I hope I did not forget some):

sudo apt-get install cmake kdelibs5-dev kdepimlibs5-dev libakonadi-dev libqtwebkit-dev

Source code: There is a (somewhat outdated) source tarball. Alternatively, get the latest source code from the git repository:

git clone git://anongit.kde.org/plasma-lionmail

Installation: Change into the source directory, build and install the widget

cd plasma-lionmail
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install

If you only want to install the widget for yourself, use ~/.local instead of /usr as a prefix. You do not need to sudo the installation in this case.
Add widgets: Unlock your panel and add the widget 'E-mail notifier'. Viola!

I will still leave the question open if somebody comes up with a better widget or solution (if anyone is still interested).


Using my wifi netgear for syncing my file system

I think that you're looking for rsync

Usage:

rsync -avz /root/temp/ remote_user@192.168.200.10:/home/remote_user/temp/

where /root/temp/ is the local directory and /home/remote_user_temp/ is the remote directory where the syncing is done. You will be asked for the remote_user's password.

Note that rsync depends on ssh, which means that you will have to install it on both machines (so as ssh-client/server is installed in both of them so as to do anything you want with rsync from anywhere)

For more information on rsync's options you can

man rsync


According to more rigorous benchmarks, there are variations in performance comparing 14.04 to 12.04. In some benchmarks, 12.04 is faster than 14.04. In others, the opposite is true. I will list the test, and the faster ubuntu version:

http://www.phoronix.com/scan.php?item=ubuntu_1404_desktop&page=article

QGears2

Rendering: XRender Extension - Test: Text

14.04

QGears2

Rendering: XRender Extension - Test: Gears

14.04

Rendering: XRender Extension - Test: Image Scaling

14.04

OpenArena v0.8.8

Resolution: 1920 x 1080

12.04

Unvanquished v0.26.0

Resolution: 1280 x 1024 - Effects Quality: High

12.04

Unvanquished v0.26.0

Resolution: 1280 x 1024 - Effects Quality: Ultra

12.04

Unvanquished v0.26.0

Resolution: 1280 x 1024 - Effects Quality: Intermediate

14.04

Xonotic v0.7

Resolution: 1920 x 1080 - Effects Quality: Low

12.04

Xonotic v0.7

Resolution: 1920 x 1080 - Effects Quality: High

14.04

Xonotic v0.7

Resolution: 1920 x 1080 - Effects Quality: Ultra

14.04

Xonotic v0.7

Resolution: 1920 x 1080 - Effects Quality: Ultimate

Same

GtkPerf v0.40

GTK Widget: GtkComboBox

Same

GtkPerf v0.40

GTK Widget: GtkCheckButton

12.04

GtkPerf v0.40

GTK Widget: GtkRadioButton

12.04

GtkPerf v0.40

GTK Widget: GtkToggleButton

14.04

C-Ray v1.1

14.04

LAME MP3 Encoding v3.99.3

WAV To MP3

Same

FFmpeg v2.1.1

H.264 HD To NTSC DV

Same


You can use a bash loop - the basic structure would be something like

for file in *.avi; do ffmpeg -i "$file" "${file%.avi}".webm; done

You can add whatever other ffmpeg command line options you require as appropriate.


Maybe simple...

sudo apt-get install gcc

... could be enough?


Having problem with fonts in vim-airline

The solution was to select the font that I have installed (the one with Powerline fixes) in Gnome terminal :

With the gnome-terminal active, click "Edit" > "Profile Preferences"

Now the fonts in tmux work fine.

Link to working fonts for powerline is here :

https://github.com/Lokaltog/powerline-fonts


Not a Ubuntu question, but a Linux query in general: MS-DOS like OS for Linux?

Ubuntu is based on Debian and Debian can run fully on the terminal.  Just choose not to install X11 and you will get a command-line only version of Linux.

For a lengthy list of linux distributions specifically designed to be low-memory, see here.

BasicLinux is particularly small: it can run on as little as 3MB of RAM and is so small that it can fit in 2.8 MB (two floppies!).


If you replace the command:

xset dpms force standby

that you currently use in the shortcut, by the command:

/bin/bash -c "sleep 2 && xset dpms force standby"

It will work exactly as you describe.


Install both libmemcached10 and libmemcached6 ubuntu 12.04

First hold the package libmemcached6 by running,

sudo apt-mark hold libmemcached6

Then install libmemcached10 package by running,

sudo apt-get install libmemcached10


How to connect to a Network SAMBA Printer in Ubuntu?

Here is how to go about it in pictures
System Setup > Devices Printers

Do not click on the Green Add... button on top. Click on additional printer settings... circled above.
You should see a smaller window with +Add button on top left:

In the New Printer window select Windows Printer via SAMBA:

Then fill in the printer server detail. You may also click the browse button and search for printer servers.
Select HP as the printer manufacturer and then then scroll down to find your printer:

Click forward and complete the process.
Hope this helps


Is it possible to reserve/limit the network usage for certain processes (applications)?

There is a software called trickle that does exactly that; it is a userspace bandwidth manager/shaper.

Try

trickle -d 20 rtorrent


rkhunter warning about /etc/.java /etc/.udev /etc/.initramfs

Basically ask Google, but those 3 are not dangerous!

/etc/.java is created by sun-java (and possible also by OpenJDK)
/dev/.udev is created by the udevd daemon
/dev/.initramfs is if I remember correctly where the initial ram filesystem is mounted during the system boot process.


Because it wouldn't be useful to install (for example) wget for amd64 and i386 on the same machine.
One of them could be first in PATH, and so only that one would be executed when you ran wget.

Installing binaries from multiple libraries at the same time is only useful for shared libraries.

Oh, also, multiarch doesn't use /usr/lib32, that's a hack used in bi-arch (which we've never really done in Debian/Ubuntu). The multiarch libraries live in /usr/lib/x86_64-linux-gnu/ for amd64 and /usr/lib/i386-linux-gnu/ for i386.

You can find the name of that directory by running:

$ dpkg-architecture -qDEB_HOST_MULTIARCH
x86_64-linux-gnu


'Your system is running in low-graphic mode' after installing AMD fglrx drivers on a 6600M

From the AMD wiki support site:

There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU's. Newer systems (those with PowerXpress >= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU's, and systems with older ATI GPU's have a mux, but don't quote that.
Intel/ATI Hybrids
TODO: Status unknown at this time

That line in 12.6 used to say that it was not possible to use Intel/AMD hybrid adapters with the fglrx drivers.
The best you can do is use the open source drivers or investigate further inside your BIOS and check if you can disable the Intel card completely.


xrandr can't set up right screen resolution for screen 1 (ubuntu)

Please follow the following steps:

Define a new mode with your preferred resolution setting (cvt 1360 768 was used to compute those numbers):

xrandr --newmode "1360x768" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync

Add this mode to your output:

xrandr --addmode DVI-D-0 1360x768

Force the desired mode on your output:

xrandr --output DVI-D-0 --mode 1360x768

Blatantly stolen from xrandr's manpage – they really worth reading.


wrmsr not working since upgrade to Ubuntu 16.04

I found a workaround by upgrading my kernel from the default (4.4.0-24-generic):

$ sudo rdmsr 0x1a4
rdmsr: open: No such file or directory
$ sudo modprobe msr
$ sudo rdmsr 0x1a4
0
$ sudo wrmsr 0x1a4 0
$ uname -r
4.6.0-040600-generic

I also confirmed it on 4.6.2:

$ uname -r
4.6.2-040602-generic

I later reproduced it again on 4.4.0-24-generic.


Top post edit
By the way, I see the issue you're talking about with the double-clicking. Just launch dosbox and run, or make sure your binary is inside of the .wine/drive_c if that's not the behaviour you want.
end edit
You say dosbox is throwing an error when you run:
tachyonsos@tachyons-desktop:~$ wine '/home/tachyonsos/Desktop/TC.EXE'
Correct your sound settings.
If that doesn't work, put it inside the ~/.wine/drive_c.

On my box, when I installed via software center it put a compiled binary in /usr/bin like this:

Configuration files are in ~/.dosbox.  The wiki tells us how to configure the file and determine our midi parameters.  To get those utilities we need sudo apt-get install pmidi.

Then we can see something like this:

So with gedit ~/.dosbox/dosbox-0.74.conf we can make this:

midiconfig=

look like this:

midiconfig=14:0

Which gives us this:

Next I added all the way at the end on the next line from where it says MOUNT lines here

mount C: /home/username/dosboxc

Now when I double click an exe it tries to load in dosbox, as it should since I installed that last.

Now I make launchers for the EXEs I want to launch with wine to include the wine command and the URL.

You don't launch things in Dosbox with shortcuts.  You load up dosbox and run them.  At least that's what I do, and it works for me.

I definitely see no bug here.

Oh, and finally since I installed it anyway:

I needed to test that the sound was working anyway.


Restore Apple Magic Trackpad 2 settings on Ubuntu

I found a way to make these settings permanent.
Add this section to your /etc/X11/xorg.conf file:
Section "InputClass"
    Identifier "Apple Magic Trackpad"
    MatchIsTouchpad "on"
    MatchUSBID "05ac:0265"
    Driver        "synaptics"
    Option        "VertScrollDelta" "50"
    Option        "HorizScrollDelta" "50"
    Option        "MinSpeed"        "0.6"
    Option        "MaxSpeed"        "1.3"
    Option        "AccelFactor"     "0.08"
    Option        "VertResolution"  "1"
    Option        "HorizResolution" "3"
    Option        "TapButton1"      "1"
    Option "TapButton3" "2"
    Option "VertEdgeScroll" "on"
    Option "VertTwoFingerScroll" "on"
    Option "HorizEdgeScroll" "on"
    Option "HorizTwoFingerScroll" "on"
    Option "CircularScrolling" "on"
    Option "CircScrollTrigger" "2"
    Option "EmulateTwoFingerMinZ" "40"
    Option "EmulateTwoFingerMinW" "8"
    Option "CoastingSpeed" "0"
    Option "FingerLow" "2"
    Option "FingerHigh" "2"
    Option "MaxTapTime" "125"
EndSection

These two options will do the trick as xinput:
Option "FingerLow" "2"
Option "FingerHigh" "2"

Update the USB ID with your device ID, get it with "lsusb"
Hope that helps.
Regards.


As long as you don't use different keyboard layouts (or need to type in a phonetic language such as Japanese using English letters) then it is not necessary.  There may be a few programs that for some reason require it, but if they do you can simply reinstall it. I would suggest you go ahead and remove it. If there are problems it's easy enough to undo, but I would guess that everything will work fine.


The solution is described here: Xubuntu - change default terminal to Terminator

In short, just type:

sudo exo-preferred-applications

and select the new terminal emulator.


Computer Turns Off instead of Suspending/Sleeping

Firstly, thank you for submitting a very detailed and well set-out question.

I have a similar system set-up to you and have had almost the exact same situation occur, regarding suspend-resume for ages now.

I just found a fix which seems to work, detailed in a couple of other places including on this site. Suspend and resume problems seem to be rife in Ubuntu, for some reason.

The solution is simple:

Edit the file /etc/default/grub (as root)
Change the line with:

GRUB_CMDLINE_LINUX=""

to:

GRUB_CMDLINE_LINUX="acpi_sleep=nonvs"

run update-grub (as root)

As I say; this seems to work for me, so I hope it will work for others, too.

Suspend fails (reboot on resume) and no hibernate option


Ubuntu 14.0.4 LTS Crashes and freezes many times just after installation

You need to install a proprietary driver for you video adapter.
Run in terminal

sudo apt-get install nvidia-346 nvidia-prime

and reboot.


Update:
sudo apt update && sudo apt upgrade

Add missing configuration file to network manager:
sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf

Restart network manager:
sudo systemctl restart NetworkManager


Proprietary drivers for ATI x1250 are no longer available (support for this card is not in newest drivers and older drivers (that inlude support for this card) are not available with new Xorg in Ubuntu 10.04 or newer).

There's free (opensource) driver for this card -- radeon -- and it's in default installation of Ubuntu.


I've got almost the same laptop (UK version) and I'm on 12.10, and get a slightly different error with permission denied instead. For me the problem is the redirect which needs to happen as root instead of as you.

Try this instead:

sudo sh -c 'echo 8 > /sys/class/leds/samsung\:\:kbd_backlight/brightness'


"Module rtl8192ce not found" - Howto reinstall Ubuntu's realtek driver? (on12.04)

You can get an updated version by doing, with a temporary ethernet connection:

sudo apt-get install linux-backports-modules-cw-3.6-precise-generic
sudo modprobe rtl8192ce


How to fix broken package manager - java oracle

You need to clean your archives, this happens because you tried to install Oracle 7 JDK and now the partial installed package lingers around causing this error to occur every time you install something. To clean your archives you have multiple options, two of them the official way to go and one if the other two fail.

The usual command to use here is:

sudo apt clean

Alternatively the following will do the same:

sudo apt autoclean

If both of the above fail, you can do the following:

sudo rm /var/cache/apt/archives/*\.deb
sudo rm /var/cache/apt/archives/partial/*

This should fix this error occurring every time.


Find and replace in whole buffer for emacs23

I can't reproduce your issue, but it might be that you have cua-mode enabled, and it prevents from turning off transient-mark-mode. Try to toggle M-x cua-mode until you'd get disabled, and after this toggle M-x transient-mark-mode until you get it disabled. Then check if this solves you issue.

Source

As a side note, it sounds strange to me, that you like Emacs23 (since you were using it for years) and hate Emacs24. What went wrong when you tried Emacs24?

Edit

Here's query-replace-regexp-to-the-end-of-buffer-or-in-a-region defun which does what you want:

(defun query-replace-regexp-to-the-end-of-buffer-or-in-a-region (point)
  "If there's a region - query replaces regexp in region,
   otherwise replaces from current point to the end of buffer."
  (interactive "d")
  (let (start end)
    (if (use-region-p)
        (progn (setq start (region-beginning)) ;; then
               (setq end (region-end)))
      (progn (setq start point) ;; else
             (setq end (point-max))))
    (set-mark start)
    (goto-char end)
    (apply #'query-replace-regexp
           (let ((common (query-replace-read-args (concat "Query replace regexp") t)))
             (list (nth 0 common) (nth 1 common) (nth 2 common) (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end)))))))

Just bind it to some key, maybe even to M-%.


How to install on computer running windows XP

You can create your own boot-able USB, just go to
https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu

You'll need to partition your HDD to install it to so you don't lose Windows! Or alternatively you can get Virtualbox. You can partition your HDD in Windows by using "Computer Management," clicking "Disk Management," and shrinking your main Windows partition so that you have the amount of Unallocated space you want for your Ubuntu installation. You can also do it in the Ubuntu Installer by clicking "Install alongside Windows" or doing a custom installation and partitioning your drive manually.


Boot device not found after installation of Windows 8.1 and ubuntu 14.0.4

It is not the smartest answer, but you may solve it with Easy BCD. It's a tool used to modify the booting options. Download it to Windows 8, install it and there you will get the option to modify Windows boot by adding Ubuntu to boot list. Despite It worked for me, later on I decided to uninstall Windows 8.1 cause It made Ubuntu to boot unproperly (in my case).


Minecraft 1.7 Closing on Ubuntu 12.04 64bit

I remember having trouble with MineCraft and having to install 'liblwjgl-java' from Synaptic package Manager (or you can use Software Centre) to get the game working properly, or you can type the following in a Terminal window:

sudo apt-get install liblwjgl-java

Failing that pop onto minetest.net and get the free MineTest 0.4.9 game which is very lightweight and runs native on any platform...


How to find the bitrate of an mp3 file via command line?

MediaInfo is further solution to do that (not only on mp3).

sudo apt-get install mediainfo

Example:

mediainfo Aphrodite_-_Superman_\(dnb\).mp3 | grep "Bit rate"

Output:

Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps

Another Example:

mediainfo Aphrodite_-_Superman_\(dnb\).mp3 | grep 'Bit rate  '

Another Output:

Bit rate                                 : 192 Kbps

Get exactly the audio bitrate via mediainfo in bps:

mediainfo --Output='Audio;%BitRate%' '/MY/MEDIA/FILE.MP3'

or in Kbps:

mediainfo --Output='Audio;%BitRate/String%' '/MY/MEDIA/FILE.MP3'


I did use boot-repair-disk and it helped alot. If you have any booting problem you can check it.


Some .desktop files not working anymore in 19.04

In case some has the same issue, it just does not work when you have an extension like Dash to Dock with the workspace isolation setting enabled or Workspace Isolated Dash.

I don't know what the issue but in that case launching new Firefox instances is not supported.

Switching back to the standard Dash or disabling any dock workspace isolation solves the issue.

I also opened an issue in Gnome Shell.


So, yes you do need to choose 'update existing driver' and install the expansion pack in the same driver as you installed the base game. Pretty logical maybe.


Please open a terminal and do:

sudo -i
apt-get remove --purge bcmwl-kernel-source
echo brcmsmac >> /etc/modules
exit

Now download this package and transfer it to the desktop on a USB key or similar: http://mirrors.kernel.org/ubuntu/pool/multiverse/l/linux-firmware-nonfree/linux-firmware-nonfree_1.11_all.deb  Install it from the terminal with:

sudo dpkg -i Desktop/linux*.deb

Reboot and let us have your report.


'gnome-screensaver-command -l' does not work as well as super+L on Ubuntu 18.04.3 LTS

You may use the native way of sending a message to a D-Bus message bus. Run the following command to invoke the screen-lock:

dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock


printing distances of desired character based on occurance

How about something like this

perl -F, -alne '
  my @a = split "C", @F[1];
  my @b = (map { $_ ? length $_ : "" } @a);
  print join ",", (@F, join "c", @b)
' file.csv
c32_g1_i1_3,SCIPKHEECTNDKHNCCRKGLFKLKCQCSTFDDESGQPTERCACGRPMGHQAIETGLNIFRGLFKGKKKNKKTKG,1c6c6cc8c1c13c1c31
c32_g1_i1_6,ACAERKKKCTKDDDCSCCGKWDKCSCNWPGREGCFCMRGMMATRLWKMAKC,1c6c5c1cc5c1c7c1c14

Or more compactly

perl -F, -alne '
  print join ",", (@F, join "c", (map { $_ ? length $_ : "" } split "C", @F[1]))
' file.csv

To get the desired behavior when there is a trailing C in the input, it is necessary to modify the split command with an explicit LIMIT parameter as noted - somewhat opaquely - in the split() perldoc :

  Empty trailing fields, on the other hand, are produced when there is a
  match at the end of the string (and when LIMIT is given and is not 0),
  regardless of the length of the match.

So the expression becomes

$ perl -F, -alne '
  print join ",", (@F, join "c", (map { $_ ? length $_ : "" } split "C", @F[1], -1))
' file.csv
c32_g1_i1_3,SCIPKHEECTNDKHNCCRKGLFKLKCQCSTFDDESGQPTERCACGRPMGHQAIETGLNIFRGLFKGKKKNKKTKG,1c6c6cc8c1c13c1c31
c32_g1_i1_6,ACAERKKKCTKDDDCSCCGKWDKCSCNWPGREGCFCMRGMMATRLWKMAKC,1c6c5c1cc5c1c7c1c14c

(inspiration for the map taken from the quikest [sic] way to remove empty array elements)


I had the same problem this morning! For no apparent reason.

I manage to restart nautilus by

killall nautilus
nautilus -q
nautilus

I'm trying to figure out what caused the mysterious failure.


Wifi disconnects when Ethernet connected

Umm...by default, ubuntu disconnects wireless networks if an active ethernet cable is connected. i dont think there is a way of bypassing that


How to skip the terminal update installing progress when the updates is in progress on the unwanted application

If you just want to update one application and skip all other updates, run:

sudo apt-get install [package-name]

Otherwise, if you want to exclude one package from being updated, follow the instructions from How to forbid updating of a specific package?.


Boot with your USB.  Download and execute this:

Try to repair the boot with this: https://help.ubuntu.com/community/Boot-Repair


How to install `workman` layout in Ubuntu?

Click the next link to download it: deekayen-workman-fb07f45.tar.gz. Extract workman.iso15.kmap or workman-p.iso15.kmap file from /deekayen-workman-fb07f45/linux_console/ directory.

Then move it to the /usr/share/X11/xkb/symbols/ directory using terminal:

sudo cp workman.iso15.kmap /usr/share/X11/xkb/symbols/workman

After, run:

setxkbmap -v workman && xset r 66

You should get something similar to this:

Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc(pc105)+workman+level3(ralt_switch)
geometry:   pc(pc105)

To switch back to QWERTY run:

setxkbmap us; xset -r 66


How to run python script from computer and do to the file in flash drive

(Please copy/paste all texts instead of posting screenshots)

All the issues you are facing are related to the pathes of files
The python script python.py should be named with something else than 'python'. There is no issue with this name but since the python interpreter is named 'python', this can be disturbing

The python script billywork.py is located on the desktop
~/Desktop/billywork.py

To make it executable

OPTIONAL Shebang :
- Edit the first line to specify the path to the python interpreter
#!/usr/bin/python is for generic python interpreter version
You can get the path of a program with the command whereis as whereis python
This optional line is called the shebang
The #! syntax used in scripts to indicate an interpreter for execution
With a (correct) shebang and an executable script you can run it simply by typing /path/to/script.py, in you case ~/Desktop/billywork.py

Without shebang, the script have to be called as paremeter of the interpreter program. That is python ~/Desktop/billywork
- Make the billywork.py script executable
chmod +x ~/Desktop/python.py

Customer_List.txt file location
Get the full path of the file by dragging and drop the file to a terminal window
/media/thanapong/F91B-8B18/Customer_List.txt is the full path of the text fileEdit the python script parts where the file location should stand.


Getting permission denied when I attempt cp ExampleTxt /home

"/home" is a directory which contains all users' home directories (much like Users folder in Windows). As mentioned by Nmath in the comments, normally only the admin has permission to alter any files in there. Your "home directory" is actually /home/cslinux, assuming your username is cslinux.
The closest, most easily doable thing to what you are attempting is achieved by:
cp /home/cslinux/Test_Directory/ExampleTxt /home/cslinux/

This copies ExampleTxt to the /home/cslinux directory instead. Notice I used an absolute path for ExampleTxt so that the command works independently of the directory you are in.
Also, an alternative way to write /home/cslinux would be "~". Using that, the above command can be shortened to this one:
cp ~/Test_Directory/ExampleTxt ~/


Install package gimp-dcraw. This is simple plugin that uses dcraw to decode RAW files and pass them to GIMP. All editing like colors, tone curves, stamps etc. are done with GIMP built-in editing tools, plugin only asks for optional decoding parameters.


Unity crashed after upgrade from 12.04 to 12.10

I think this is also what I am experiencing... For me the problem is that the graphics driver claims to support OpenGL and GLX but lacks important features for Unity. Due to some changes in Unity it won't fall back to slow mode automatically. Try to add the following file:

# /etc/X11/Xsession.d/99try_slow_mode
export LIBGL_ALWAYS_SOFTWARE=1

Then reboot and see if it works. This essentially forces all applications to fall back to software 3D rasterizer which is slow. I think they are currently trying to add some smarter fallback and I'd like to see that it gets fixed.

It also looks like there is currently nothing one could do to disable some effects in Unity so it will work with implementations of older graphics drivers.

To revert back simply delete the file and reboot.

Amendment: Just in case someone wants to collect this, my GPU is AMD Mobility Radeon 7500 [RV200]...


Skype installation fails, cannot install ia32-libs

Try install ia32-libs with this: ia32-libs installation askubuntu answer.
Then try install Skype again.


I had the same issue with my ati card (switched to nvidia now) but I didn't have atis newest driver back then...have you tried to go to the ati page and download the newest linux drivers? It's the amd catalyst 11.10 drivers released october 31


Try adding:

dtparam=audio=on

to usercfg.txt in /boot/firmware


How do I change group ownership on folders created by a specific user?

Use find to do this:

find -type d -user $USER -exec chown :groupname {} +

it will finds all directories which belongs to the user $USER and changes the group of them to groupname.

Note: $USER is the current user you can change it with your desired one.


This is how I PXE boot:

LABEL Ubuntu
Menu label Ubuntu
kernel images/ubuntu/casper/vmlinuz.efi
append boot=casper vga=normal locale=de_de netboot=nfs nfsroot=192.168.178.33:/volume1/TFTP/boot/images/ubuntu rw initrd=images/ubuntu/casper/initrd.lz persistent

Look into to scripts directory cor casper and casper-helpers script and you see what they do.


1st check if mariadb is running. You can not connect to it if it is not.
You forgot to do
sudo mysql_secure_installation

to set up a user and password.
Regarding this command please also ...

remove the anonymous user
remove the test database
disallow root login remotely

Generally you can do it like this too:
sudo -i
{admin password}
mariadb

and then set up a user and a password. Try to avoid using common names as a user (ie. no root, admin, your user name etc) and use a personal username. It makes it 1 more thing someone needs to guess.


Opening programs very slow on ubuntu 12.10

Add your application to the Startup Applications list and see if delay still occurs or not. If so, then it might be a misconfiguration with your preferred hardware and Ubuntu.


Remove the space character after the = in

CDIR= $(pwd)

sh doesn't allow any spaces around the =.

CDIR= $(pwd) means "Run the output of pwd with the variable CDIR unset."

As you can't run a folder you get Permission denied.


How to update to kernel 3.8 rc7 Ubuntu 12.10

Instructions for installing a new "mainline" kernel aren't specific for any version. Just install the packages.

Go to the download page for Ubuntu mainline kernel packages.
Select the kernel version - e.g. v3.8-rc7-raring
Download the packages fit for your architecture. For 64 bit this is all amd64 marked, for 32-bit this is i386. Also pick the architecture-independent packages marked with all. So:

64-bit: 1, 2, 3, 4.
32-bit: 1, 2, 3, 4.

Install them all at once:

sudo dpkg -i /path/to/Downloads/linux-*3.8.0*.deb

Update your Grub bootloader (most general installations are running Grub).

sudo update-grub

Done.


Create the installer USB.

See our tutorial at https://ubuntu.com/tutorials/create-a-usb-stick-on-windows.
The tutorial is for an Ubuntu Desktop installer. If you are building a Server, then simply substitute an Ubuntu Server .iso instead. The process of making the USB installer is identical for both.

Boot from the installer USB that you created.

Follow the prompts.
Stick to the default settings for an easy, fast first install. The default settings are reasonable for the vast majority of users. That's one reason Ubuntu is popular.
If something goes wrong, or you don't like the results, then simply reboot and re-install.

Boot into your installed system.


Using zcat

meld <(zcat file1.gz) <(zcat file2.gz)

Example

% cat foo
foo

% cat bar
bar

% gzip foo bar

% meld <(zcat foo.gz) <(zcat bar.gz)

% diffuse <(zcat foo.gz) <(zcat bar.gz)


Built-in keyboard/touchpad and usb keyboard/mouse don't work after updating ubuntu from 16.04 to 17.04

If you have a USB mouse and keyboard the first & easiest thing you could try is logging in and going to Settings>Keyboard and make sure your layout is setup correctly / detected in some way.

Option 2 - if above doesn't work.

Hold Shift when the laptop is booting at the BIOS screen, if your built in keyboard works use it (or USB keyboard) to select the recovery menu option.

Recovery > Root option

mount / -o remount rw

dpkg-reconfigure keyboard-configuration and select your keyboard

exit to boot into the desktop.

If none of the above fixes it, post an update for more complex troubleshooting steps.


Removing a particular version of libfontconfig1

The problem is solved by removing a libfontconfig1:amd64 section in
/var/lib/dpkg/status.
Then I ran sudo apt-get -f install (had to remove /usr/share/doc/libfontconfig1/ directory). The idea is described
here.

Also, the original goal was to install openjdk-7-jdk (this is why I had to dpkg libfontconfig1), answer was helpful.


Go to this link:

First option check on Linux
Second option check on Linux (deb)
Then click the Search button

The next screen provides many files you can download but selecting the first tool only: Driver Install Tool should select the appropriate ones needed and install them.


Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

use the command sudo nano /etc/mysql/my.cnf and change the bind address to your local host or 127.0.0.1 then save and close the my.cnf window.

Then run the below command

sudo service mysql start

then try login mysql -u root -p


Brocken package for libavcodec54 & libx264-123 in ubuntu 14.04LTS

Try the below commands on the terminal,

sudo apt-get clean
sudo apt-get install -f

How i know?

Your error report clearly states that, it faces an error while uncompressing the downloaded archives.This is mainly because of incomplete download of archives.

dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2

So deleting all the archives inside /var/cache/apt/archives directory(sudo apt-get clean) and fixing the broken packages (sudo apt-get install -f) will solves your problem.


Without an access to the server's logs etc it is not possible to determine the exact cause.

Most probably you provided your username and password to another service, and this data has been misused. For example my sister created an account with the badoo server, which asked her for her email credentials "to easier synchronize her address books" or something. Then all her contacts got spam from badoo. Don't give your secret data to anybody.
Or your email account has been hacked. Somebody could have guessed your password, or AOL database was compromised. Use strong passwords and https:// when logging into your account.
Or your Ubuntu box has been compromised. This is in my opinion the least probable (though not impossible) cause. Reinstall.


Ubuntu 16.04 on extended partition. Would formatting primary partition affect boot? (new Linux user)

Perhaps. Depends on where you installed GRUB's bootloader into. If it was installed into /dev/sda1, reformatting would break GRUB. If, as recommended, it was installed into /dev/sda . you can reformat /dev/sda1 with no problem.


How does update-grub decide which kernel to set as the default?

update-grub calls grub-mkconfig, which in turn runs shell scripts in /etc/grub.d. One of them is /etc/grub.d/10_linux, which uses the shell function version_find_latest to keep iterating through the list of remaining Linux kernels, from latest to oldest.
The shell function version_find_latest is defined in /usr/share/grub/grub-mkconfig_lib, using helper function version_test_gt (also defined in the same file).  This function uses a mix of sed regular expressions to detect prereleases, git versions, etc., and finally resorts to dpkg --compare-versions to compare two point revision strings.
You can actually try it out in the shell without compiling any kernels or changing any grub configuration:
$ source /usr/share/grub/grub-mkconfig_lib
$ version_find_latest vmlinuz-5.6.7-aaa vmlinuz-5.1.12 vmlinuz-5.6.7-git
vmlinuz-5.6.7-aaa


Low display resolution Nvidia GeForce 9600 GT

Same issue:
Second Screen Resolution Nvidia (Ubuntu 14.04 LTS)

Shortly

I declared a new display setting on Nvidia X Server Setting. And by saving it to correct place made it persistent after reboot.

-SOLUTION

Check if you have the right driver. It should be from Nvidia. See image.

Open Nvidia X Server Settings by searching computer or by terminal command below:

if installed:

sudo nvidia-settings

If it is not installed. Do this:

sudo apt-get install nvidia-settings

And choose X Server Display Configuration. It should look something like the image below.

Choose second screen, in my case it is CRT-1.
Open Configuration drop-down menu. Choose New X Screen. And Click Advanced at the bottom.

Then you should see Resolution settings inputs. Enter your Screen resolutions. It may come with like 1024x768. Change it to your need. I could  not change ViewportOut. But we can Proceed.

Last part is saving those settings.

After entering your resolution there is a button at the bottom
Save to X Configuration File .

Click it and save the file to this destination.
/etc/X11/xorg.conf

Reboot and go to Settings > Diplays you will see more options at resolution drop-down.


Running a command in terminal after youtube-dl has finished

Youtube-dl -o output.file link && sleep 4 && mv output* /to-directory
or even better:
Youtube-dl -o /to-directory/output.file link as you would not have to move anything later on.

If youtube-dl indeed runs in background and is set to exit after downloading,
You can use:

youtube-dl -o output.file link; while :;do sleep 1; [[ $(ps -C youtube-dl -o pid=) ]] || break;done; mv output.* /to-directory/

Explanation
while :; - an infinite loop meant to wait for youtube-dl to finish.
[[ $(ps -C youtube-dl -o pid=) ]] || break - check if there exists a process id for youtube-dl. if exists, loop again. End the loop otherwise.(using break).

NOTE: pidof Youtube-dl command can be used to obtain process ID for a program. however, as youtube-dl is called using python3, it has not process of its own. Thus pidof youtube-dl would not yield a value in this case. as such, ps command has been used to obtain the pid.


Unable to login to steam ; Steam is having trouble connecting to the servers

I had the same problem under 13.04.

Finally, it was that I'd typed wrong the password. Enter in the steam page and check you're writing the password right.


How could I mount a Asustor NAS (EXT4 Raid1) partition to uBuntu?

Partitions are defined as RAID not as a proper filesystem. You can't directly mount them. You need to create a raid device first.
Try this how to: https://blog.sleeplessbeastie.eu/2012/05/08/how-to-mount-software-raid1-member-using-mdadm/


I would unpack the ubuntu binary to /usr/local and install the .deb when it becomes available, either in a ppa or as a backports.


How do I use the "did you mean" feature in ubuntu?

The suggestion in your example isn't provided by Ubuntu's shell, but rather is part of the help.autocorrect feature built into Git itself.

There was discussion last year of adding an interactive "yes/no" prompt to Git, but some of the details were never decided upon so that work is still incomplete.

If you're looking for something to make this kind of suggestion for any command, you might like to try using the Z shell (zsh) instead of Bash. It offers general-purpose spelling correction for both commands and filenames, and provides an interactive prompt:

$ ehco hello > test.txt
zsh: correct 'ehco' to 'echo' [nyae]? y
$ cat tesst.txt
zsh: correct 'tesst.txt' to 'test.txt' [nyae]? y
hello

Changing shells isn't something to take lightly, though. By using any non-default shell you'll likely hit a few road bumps that will require time and effort to resolve.


When I start my PC, it shows grub rescue

If you don't have touched the deleted partition/disk (?), you might be able to recover the files in it, if it's not encrypted.

You could try to use photorec or testdisk from a LIVE USB.

One important point, is how did you delete the disk drive ? The method you used will determine what you will be able to recover or not.


Switch from encrypted partition to unencrypted (Error: cryptsetup: evms_activate is not available)

I somehow "fixed" it - however, I don't know for sure, which of the following actions was responsible:

I chrooted again, then I ran

dpkg-reconfigure grub-pc
dpkg-reconfigure linux-image-2.6.38-8-generic

update-grub
grub-install /dev/sda
      (these last two steps I had already done before without success)

Also, I completely removed /etc/crypttab now (previously, I had only commented the line).

The error is gone now, but I would prefer to accept an answer which explains what happened here, and how to solve the problem a little bit less "chaotically" :-)


Why can't I access my server via SSH or HTTP on my host machine, but i can on a virtual machine?

Check and see if the sshd_config file for the server that you can't connect to has something different in it from the other two servers that do work.  Also try and run "ssh -v" maybe that will tell you something.


Once you open the torrent file with Transmission, then a popup window appears asking you where to download the file (destination folder/path) and on that same window the files to be downloaded appear with a check box on their side (normally all boxes are checked), so what you'd like to do is to uncheck what you don't want to download (do that on that same window). Then hit OK and downloading will start.


If you want the VM (using virtualbox) to access an internal bluetooth device then it is not possible. From Virtualbox

  There is no progress and there will not be any progress in medium
  term. Bluetooth devices could work when connected via USB but we don't
  plan to support any internal bluetooth hardware so far. It's a lot of
  work with a questionable benefit

Otherwise if you are using a bluetooth USB then check this answer here

if you using vmware products this might help


Firefox: open downloaded files with system default application

Use /usr/bin/xdg-open (it's part of xdg-utils package) to open all the files.


Ubuntu 19.04 Disco Dingo umlauts and accents. I have searched, yet not found. Anywhere

Try:

Ralt+"+o : ö  (that's right-alt, then ", then o)
Ralt+"+A : Ä

etc

also:

Ralt+s+s: ß
Ralt+e+=: €
Ralt+L+=: ₤


What is a good wireless usb lan adapter for xubuntu 10.04 and works with usb 1.0?

My TP-LINK work great for me up until the 11.10 realese you may find problems there if you are thinking to going to 11.10 but with the version your on ubuntu auto detected it and allowed you to join wireless networks. And even better, Its fast.

http://www.tp-link.com/en/products/details/?model=TL-WN821N

But you might want to look at something like this

https://www.thinkpenguin.com/gnu-linux/penguin-80211g-usb-wireless-network-adapter-w-linux-gnu-support


If you want to mount windows partiton,you may use following command. It will delete the hibernation file

sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /media/Windows

To boot into your windows, you need to repair your windows partition using windows cd, but it will delete the grub.

So first repair your windows partition and then re-install grub.


How do I get the old user-based login screen to work in 18.04

If you already have lightdm installed, then a terminal enter

sudo dpkg-reconfigure gdm3

And select the lightdm option from the ncurses menu then restart. After changing your background, the login screen should now show the new background.

If you don't have lightdm installed you can install it with

sudo apt install lightdm


Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

This usually means you have another window open somewhere that is running updates or installing software. You can only run one dpkg process at a time. Ensure that other operations are finished and you do not have another package manager like synaptic running when you run an apt-get command


GRUB won't recognize Window 7 on different HDD in Laptop

I can supply a more step by step way of doing the fix in the linked answer.  Big picture, we are going to manually add a Windows entry to grub.  Most of this procedure is finding the needed information to do that.

  Find where the windows bootloader resides by mounting the efi partition, and searching for bootmgfw.efi.

On my system (a 64 bit Win 8.1 / Ubuntu dual boot) the EFI partition is already mounted.  If it is not on  your system, please comment to that effect, and I will revise the answer.

Find the EFI partition by issuing the command lsblk in a terminal window.  On my system it is mounted at /boot/efi on partition sda2

cd to that directory and look around for the file bootmgfw.efi. On my system it was located at /boot/efi/EFI/Microsoft/Boot Seems a bit redundant but whatever.

  Find the uuid of the drive

in a terminal type sudo blkid and enter your password when prompted.  This will list all your drives and their UUIDs.  In my case I wanted the one for sda2.

  add this to /etc/grub.d/40_custom

in a terminal type gksudo gedit /etc/grub.d/40_custom and supply your password

Add this entry to the file.  Where it says UUID replace the text UUID with the value of the UUID you obtained in step 2.  After the (${root}) replace /efi/Microsoft/Boot/bootmgfw.efi with the path you found in step 1.

menuentry "Windows x86_64 UEFI-GPT" {
    search --fs-uuid --no-floppy --set=root UUID
   chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
}

  and finally run update-grub

Type sudo update-grub into the terminal.


In a normal dual-boot configuration, you need to see the GRUB menu. In many Ubuntu installations, to bring up the GRUB menu, you need to hold down one of two keys, immediately after the computer's splash screen...

SHIFT if you have an older BIOS computer

ESC if you have a newer UEFI computer

From the GRUB menu, you can select which OS to boot.

To make the GRUB menu appear without holding down any key, you need to modify /etc/default/grub.

sudo -H gedit /etc/default/grub

Find the lines that say:

GRUB_TIMEOUT_STYLE=none
GRUB_TIMEOUT=0

And change it to:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10

Then do:

sudo update-grub

without a hack, you can't boot a Windows 10 backup from a USB stick.
it looks like your 1TB disk is already configured for dual-boot. Not configured well, but configured.

Update #1:

With Dell tech support's help, (updated the firmware and Windows 10), and switched the monitor's HDMI cable from Intel Graphic card to Nvidia graphic card, I was finally able to see Dell Logo and F12 worked to bring up boot menu.

Update #2:

I deleted all partitions used by previously (wrongly) installed Ubuntu. This time, I had to add boot option of USB boot under UEFI (in BIOS), then booted from USB live stick (Ubuntu), created four partitions : ESP/SWAP/root/home, then Voila, Ubuntu is installed properly.


Reinstallation of Ubuntu WSL 18.04 and Python3-pip installation issues

What to check after reinstallation
In my case, I realised that even after re-installation, the issues persist. However, I realised that Hamachi's LogMeIn client was not in offline mode, which caused its Ethernet connection to interfere with Ubuntu's internet connection (but not on Windows OS). This is why when I pinged google.com it returned PING google.com(2404:6800:4003:c03::8a (2404:6800:4003:c03::8a)) 56 data bytes and stopped. The steps that @Kulfy took to help troubleshoot pointed me in the right direction, which made me realise that there was an additional Ethernet connection running.
In the future, if anyone still faces issue with their internet connection, even after reinstalling, please check that you do not have any antivirus software or other servers running at the same time, which may interfere with your Ubuntu's internet connection.
Go to Control Panel→Network and Internet→Network Connections on Windows to check whether you have additional servers running. Disable them (if found) and retry.


sudo rm /var/log/*.gz

will delete every compressed log from /var/log/. The current active logs will remain in the directories.

Before you do that

du -hc /var/log/*.gz

will show a grand total at the bottom showing you what the size is of what will be removed by the rm command as per file what the size is. This grand total should not be that high (on a server that is running 425 days I have 380k in total and it has apache, mysql, postgres, tomcat and jasperserver running all adding to /var/log/). If though this is a high number I would suggest you investigate -why- these logs are large and fix the problem it is logging if any or to turn down the amount of logging (by not logging regular messages but just errors and warnings).


Yes, an alias is just a shell-only rename. The scope of an alias is only the shell that you are currently in. safe-rm is just a wrapper that does some blacklist checking to prune the arguments list, it still calls rm under the hood (it also calls rm explicitly with /bin/rm so the alias does not affect the script)

It is not, however, safe in that it does not prevent a user from using rm explicitly either by unsetting the alias or by explicitly calling /bin/rm. safe-rm is only to prevent accidents, not a security feature, this is what permissions are for. You can still easily delete blacklisted files if you actually want to do that.


How do I access an encrypted home folder from a dual-boot machine?

Unfortunately, it looks like no Windows support for ecryptfs is planned:
Is there a windows port of this available or in the works?


No network, no USB, how to back up files from encrypted home directory

Ok, so here's what worked:

Boot into recovery mode, resume, log in. Open a terminal. Copy data from /home to /opt (or really anywhere outside of /home). Reboot.
Boot off of live CD. Plug in external drive. Mount encrypted filesystem (good instructions here: https://evilshit.wordpress.com/2012/10/29/how-to-mount-luks-encrypted-partitions-manually/). Copy files from encrypted filesystem to external drive.

Rinse, repeat.


Replace Windows XP with linux (preferably Ubuntu)

If you have an internet connection during the installation, then you can try the net installer for Ubuntu from http://cdimage.ubuntu.com/netboot/. First, click on the version you want to install, then click on the architecture, then click on 'mini.iso'. Follow this tutorial to burn the image onto the disk.


What causes "PKCS#7 signature not signed with a trusted key"?

I vaguely understand PRIME (nvidia driver 360ish+) is a new nVidia dual-GPU buffer swapping technique that is closely integrated to the window manager, which means multiple levels of the device have to have some sort of DRM handling, and it can cause untrusted errors.
As a workaround you could try:

You can try uncommenting the existing line under [daemon] that says Wayland=false in /etc/gdm3/custom.conf (Ubuntu 18.04+)
if you have dual GPU change BIOS settings from Switchable to UMA (this will disable your GPU)
Switching from nVidia drivers to nouveau drivers (I don't recommend)
Unplugging any USB devices that may be suspect (USB devices may cause this)
Changing GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1" and running sudo update-grub after (I believe this enables the DRM for PRIME)

However in my personal experience this is a warning, not a critical error, and your boot issue may be caused by something else. For example, I have this warning, and in certain configurations it blasts this error once a second into the log I see when I hit (Ctrl+Alt+F7), but my computer runs fine. I can boot my laptop with many of this errors/warnings and it doesn't seem to break anything, I can even run games fine.

So even though this error looks bad, you may want to look around for other culprits if you aren't booting. It may be a false alarm.