You can install any version of Python on any release of Ubuntu that you wish...as long as you don't try to force your Ubuntu system into using packages that it's not designed for.

REQUIRED: Don't uninstall the (deb) python that came with Ubuntu. The system needs it. If you remove it, you will break your system horribly.

ADVICE: Avoid using deb packages for your custom python if those packages conflict with the system python. Don't force it -- there are lots of non-deb install options for your custom python.
In your case, that means installing your unusual Python from a non-deb source (like upstream python.org) instead of looking for deb packages that simply aren't there for your release of Ubuntu.

ADVICE: When possible, use a Virtual Environment (venv) to keep everything tidy.

OPTIONAL: Keep track of what you install. If you installed it, you are likely to want to change it or upgrade it someday.


Can't install Ubuntu 15.10 on virtualbox 5.0.0

When installing a new release of Ubuntu it may on occasion be that the application version of Virtual Box was not yet able to fully adapt to all changes our new release may have made. Most critical are kernel upgrades that need additional tweaks in VirtualBox to get them running.

When browsing the changelogs from Virtual Box we can see a lot of bugfixes on each version which often also fix bugs that appeared on any new Ubuntu release. At present we can see that e.g. bugs for kernel 4.2. (installed with 15.10) were only fixed from release >= 5.0.2.

It is usually helpful to upgrade Virtual Box to the newest stable version when installing a new distribution release. We should also not forget to update our Guest Additions.
If that did not resolve the issues it also helps to upgrade the guest Ubuntu for bugfixes. If we can not boot to a graphical interface this can also be done from a root shell:

apt-get update && apt-get dist-upgrade

Graphics issues that could not be resolved by the steps above may need an updated graphics driver on the host.


here is a link on moving and copying

http://www.hostingadvice.com/how-to/move-copy-delete-files-linux/

the filter directory you want is in /usr/lib/cups so if get "inside" the directory where you want to start; (to paste a command into a terminal, right-click at the text prompt in the terminal; the flashing light; find PASTE in the menu that appears;)

cd Downloads

then cp pstoricohddst-gdi /usr/lib/cups/filter

should copy the file; you can confirm it is there with

cd /usr/lib/cups/filter

and then ls

which asks the system to LIST what is in that directory; and if it was successfully copied, you should see it listed


How do you change the brightness values for the keyboard function keys?

A value of 200 would be more appropriate. Is there a way to adjust this?

echo 200 | sudo tee /sys/class/backlight/intel_backlight/brightness

But I doubt if that is what you want. Try it and edit the question if this is not the expected result.


Unable to run 2 ethernet connections at the same time

If you are looking for something like load balancing you may like to see https://help.ubuntu.com/community/UbuntuBonding?action=show&redirect=LinkAggregation.

You may also like to have a look at this answer : Two ethernet ports on motherboard. How can I get double the bandwidth?


How do I vary the amount of red or blue light with xcalib

xcalib -help shows us that the options we need to adjust RGB are:

  -red <gamma> <brightness-percent> <contrast-percent>
    -green <gamma> <brightness-percent> <contrast-percent>
    -blue <gamma> <brightness-percent> <contrast-percent>

For example: ./xcalib -red 1.1 10.0 100.0
will set red gamma to 1.1, red brightness to 10% and red contrast to 100%

Here's the README for xcalib.


How do I execute the stats file in SPSS 21?

You can just copy/paste the text in the stats file to the terminal, by drag and drop. This works for me on 14.04.


My stop-and-go GUI - should I just reinstall Ubuntu?

Install Nvidia driver 340 from

System Settings -> Software & Updates -> Additional Drivers


Where to install unpackaged applications?

See for example this question on installing applications. Basically /opt/ or /usr/local/ are good places. See the Filesystem Hierachrchy Standard for details.


A possible solution is the background script below.

What it does

After an (arbitrary) idle time, the script will disable the mouse, making it insensitive to whatever you do with it. I would set this relatively short, so there is little chance of disturbance in between.
A simple keystroke however (any) will enable the mouse again.

Since xprintidle is triggered by either mouse- or keyboard events (not by what happens on screen), the script will not be disturbed by e.g. playing a movie.

That way, you won't have to fear an unwanted mouse action will disrupt anything, while you still have easy access to the controls and your computer.

As always (and as it should be with background scripts) the script is written in such a way that consumes practically no resources.

The script

#!/usr/bin/env python3
import subprocess
import time
# ---
# set your device (mouse), as found from the command: xinput list
device = 8
# set the desired idle time (in seconds) to disable the mouse
set_idletime = 5
# ---

# don't change anything below
idle1 = 0

while True:
    time.sleep(1)
    idle2 = int(int(subprocess.check_output(["xprintidle"]).decode("utf-8").strip())/1000)
    if all([idle1 <= set_idletime, idle2 > set_idletime]):
        subprocess.Popen(["xinput", "set-prop", str(device), "Device Enabled", "0"])
    elif idle2 < idle1:
        subprocess.Popen(["xinput", "set-prop", str(device), "Device Enabled", "1"])
    idle1 = idle2

How to use

The script needs xprintidle:

sudo apt-get install xprintidle

Copy the script into an empty file, save it as mouse_toosensitive.py
Find out the device (number, integer) of your mouse by running in a terminal:

xinput list

In the head section of the script, set both the device number and the desired idle time (see explanation in the script).
Test- run it by running it from a terminal window with the command:

python3 /path/to/mouse_toosensitive.py

If all works fine, add it to your startup applications: Dash > Startup Applications > Add the command:

/bin/bash -c "sleep 15 && python3 /path/to/mouse_toosensitive.py"


I was able to fix this by upgrading the wireless card driver

See this link

Dell Inspiron Intel 7260 Wifi connects and then drops on Ubuntu 14.04

and this...

http://ubuntuforums.org/showthread.php?t=2217691


Unable to merge unallocated space on the same drive

I think I figured it out. It seems like only unallocated space next to each other can be merged. As seen in the image their are 2 partitions in between and thus it cannot be merged.


How to permanently hide dropbox icon in System Tray

Just like others said, the list of hidden icons can be found in ~/.config/plasma-org.kde.plasma.desktop-appletsrc, after hiddenItems=, separated with commas, and the problem is Dropbox icon name includes some ID at the end, which changes in every login.

My workaround is to include all 10000 posibilities, since that ID has always 4 digits. I generated them (you can find them here), and included them at the end of hiddenItems= line (note that the list cannot have any line breaks).

It is not an intuitive solution, but it works perfectly (tested in Manjaro, with KDE Plasma 5.16.2, but should work in Kubuntu as well).

EDIT: bad news. That ID is in fact the PID associated to Dropbox process. By default, maximum PID value is 32768, so there are much more possibilities than I thought. Including them all might be possible, but it would mean 661.2 KiB of data in one single line, and when I try to select it using a text editor, it stops responding, so I couldn't even try to update the solution...


Grub Bootloader issue with Dual Boot/Dual Drive Install Windows 10/Ubuntu 20.10

Im dumb. The solution is to change the UEFI boot option in my bios boot order to UEFI Ubuntu, which makes the laptop but to the Grub2 Bootloader. Inside that contains the entry to the Windows Bootloader on /sda, which when I select loads Windows instead of Ubuntu as it should. This is now working exactly how I wanted it to.


Installing linux and need to change boot menu option to very specific settings

Launch a terminal, and enter the following commands in order:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

sudo apt-get update

sudo apt-get install grub-customizer

This will install Grub Customizer, a GUI program that allows you to configure Grub to very specific settings.


try to load /bin/sh instead of /sbin/init at boot and remove json-c library.

to do it

at GRUB press ESCAPE then press e to edit boot option
On the following screen, highlight the kernel line and press e
On the next screen, which should have a line that says grub edit> append init=/bin/sh and press ENTER
Finally, press b to boot the system.

bash should be load and now you can remove mentioned library.


shortcut to lock computer is ctrl + alt + L


Ubuntu will not start due to full partitions

When you boot into rescue mode, the filesystem is initially mounted read-only.  To mount it read/write, run:

mount -o remount,rw /

Then you should be able to delete some files to free up some space.


unable to add any repository via add-apt

Try adding the PPA manually. Create a file in the /etc/apt/sources.list.d directory called freecad.list.

Note you can really name the file whatever you like but it needs to be in that directory and it needs to have a .list extension. Put this in the file:

deb http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic main
deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic main


11.10 install on eeePc 1001HA locks up at 'Configuring keyboard'

Since writing this question I stumbled upon Fuduntu 14.10.  One last desperate attempt -formatted the drive, loaded the .iso and sailed through the installation and subsequent upgrade.  Delighted with the look, feel and stability of the end result. I believe it uses Gnome 2, not 3 -could that be why it loaded?
I commend this distro to any other 1001HA users.


Weak signal even if I'm only 5 meters away from my modem

Try a speedtest  (download and upload) is the speed the same? and does the signal have the same reach (distance away from modem)? I have that, the signal looks lower, but is the same speed/reach.


Second Monitor doesn't work properly (Ubuntu 14.04, Dell XPS13 Dev. Edition (Intel HD4000))

Suggest switching mini dp adapter.

I originally tried using an Apple Brand mini dp to vga adapter without success. I bought a StarTech (mini dp to 1 HDMI) and it solved my problem.

I've also used the StarTech mini dp to multi (VGA/HDMI/DVI) successfully.


How to install Ubuntu Server to a iSCSI Drive using IBFT

Dorian,

I was able to achieve the requirement in CentOS 7, check my post Install Ubuntu over iSCSI target ibft nic             and   https://www.centos.org/forums/viewtopic.php?f=50&t=58155

By the way, I've observed, using ipxe is fast (installation time is less than 5 minutes) instead of iSCSI capable Network Controllers - I am using Intel PRO/1000 MT Server Adapter dual port with iSCSI firmware (installation time is 30 minutes). If possible, please share your performance observation.

Using Intel bootutil tool iSCSI firmware was enabled.


How to measure single app CPU usage over time?

You can use pidstat for that. It's in the package sysstat.

pidstat -p <PID> 1

shows CPU utilisation of the given process every 1 second until you cancel it.

pidstat can also show lots of other interesting information about a running process, consult the manual page for details.


First download SMPlayer from you default Software Center.Software Center

After installation completed open itSMPlayer

my smplayer looks different because i change theme(it's in option => preference => interface ).
then open any 3d video in it,then click on video option you will get an option called "Stereo 3D filter" click on it Stereo 3D filter
and select your desired option.


What is CryptoTokenExtension in Chromium extensions?

It is the extension that allows two-step verification between hardware.  From the link:

Multi-factor authentication (MFA) is a method of computer access control in which a user is only granted access after successfully presenting several separate pieces of evidence to an authentication mechanism – typically at least two of the following categories: knowledge (something they know), possession (something they have), and inherence (something they are).
Two-factor authentication (also known as 2FA) is a method of confirming a user's claimed identity by utilizing a combination of two different components. Two-factor authentication is a type of multi-factor authentication.

It is supported by Google Chrome since version 38 and Opera since version 40.
Firefox has an add-on for this. And Microsoft has plans to implement it.
Dropbox, GitHub, GitLab and Bitbucket support it too.

Is it safe to use?

Well... the tool itself is there to protect you from misuse. But it all depends on how you treat your hardware I would say. On the other hands... it IS a tracking tool so Richard Stallman will disagree (strongly and furiously) (:))


long delay while opening folder files in ubuntu14.04

May be lack of memory, or a failing disk, since your problem is not the "I have 40,000 pictures in a directory and it's slow to open" sort of thing.
Open a terminal with Ctrl-Alt-t and

Check the free memory

free --human

Post the results in your question.
From the install media, run the memory check to confirm it's OK.
From the install media, maybe run the file system check, but if this is a new install, that's probably not the problem. Command in a terminal will look like (assuming sda and partition one, change to meet your setup)

sudo fsck /dev/sda1

Install the smartmontools and check your disk

sudo apt-get install smartmontools
sudo smartctl -a /dev/sda

(Assuming your disk is sda)


How to install transliteration tool for Ubuntu 14.04?

The LingTools add-on has a Data Conversion component that allows transliteration for any script.  Try the ICU Any to Latin map.  There are also other maps available, or it is possible to write a TECkit map.

Disadvantages:

Data Conversion is currently unstable on Linux (but works well on Windows).
In addition to the add-on, this large package is required for Linux.


Ubuntu 12.04 LTS Unable to boot - No Bootable device

just boot from the livecd and run grub-update on /dev/sda if that's all that's wrong, other wise there isn't much you can do.


How do I remove Evolution from indicator-message?

Delete the file /usr/share/indicators/messages/applications/evolution and you will remove the choice from the envelope menu. Make a copy first if you think you will ever want it back, or just recreate it, it just contains
/usr/share/applications/evolution.desktop

sudo rm /usr/share/indicators/messages/applications/evolution


Best way to remote restart Ubuntu from Windows machine

Out of sight/view, could I have a Windows program open a terminal across the network and tell Ubuntu to restart? Is this what SSH could be used for[?]

Yes. That's effectively how I'd do it. First step is you'll want to install Putty on the Windows computers. This allows you to SSH in. But don't worry about that for now. Let's do this backwards, starting from the Ubuntu machine.

I would write a script on the Ubuntu machine to do the restarting. If you can ssh in, chances are you don't need to do a full reboot. You could argue that you "might as well" but it often means the reboot takes four or five times longer than it needed to be; it's just a waste of time.

You should be able to get away with just restarting GDM (sudo restart gdm) so I'd write an interactive Python script that prompts the user to make sure they're sure they want to restart GDM and then restart it. After that, it would wait for five seconds, and then ask them if it's working. If not, do a full reboot (sudo reboot).

Edit: There's also a possibility you might just be able to restart the application that these screens are displaying without even restarting GDM. I don't know what you expect to fall over but assume all three and give the user the option to restart each sequentially, starting with the app, then gdm, then the machine.

You can use curses to make this look prettier.

Next up you need to make sure your ubuntu user can do these root-level commands. Run sudoedit /etc/sudoers and add something like this:

Cmnd_Alias REBOOT = /sbin/reboot
Cmnd_Alias RESTART = /sbin/restart

useraccount   ALL=REBOOT
useraccount   ALL=RESTART

Subbing useraccount for the username of the account that would be running this script.

You should be able to log in via SSH and test the script now.

The last piece of the puzzle is hooking up SSH to Ubuntu and running the script automatically. You can use a certificate (it's probably more secure) but for this example I'll just use a plaintext password.

putty.exe useraccount@1.2.3.4 -pw password -m commands.txt

Obviously sub out useraccount, 1.2.3.4 and password with real values. commands.txt should be a text file on the Windows computer containing something like this:

python my_python_script.py

Note: The path when you login with be /home/useraccount/ so either put your python script in there or alter the path in commands.txt.

Important Note: Putty will close as soon as its command finishes running. That means your Python script MUST be interactive (at least ask "Press Any Key to Continue" before exiting) or the user won't see any output. This is simple enough. You mentioned Python, so I assume you know (or know how to find out) how to do simple prompts. As I said earlier, a simple curses interface would look the most professional.

Important Note 2: Sometimes a machine/software fails to the point where a hard restart is the only option. If you're the computers in a space that is really hard to get to, it's certainly worth considering making sure you have access to their power supply so you can do a "hard off-and-on" as a last resort. Make sure you use a journalling filesystem so the staff don't screw it up if they use this too often and warn the staff that if they don't use it as a last resort, evil circus people will steal their children, etc. There are few things worse than a staffer who smacks the hard-reset button at the smallest hiccough.


Since the printer works fine on Windows, there is an issue with Ubuntu's software configuration. Confirm that the printer's test-page comes out light to to ensure it isn't an issue with only incoming documents.

Install HP's proprietary printer plug-in by executing hp-plugin-ubuntu;
Enter the new printer wizard (Settings > Printers > Plus icon for New printer);
Select your printer from the left, and choose the Hp plug-in instead of the generic USB printer one;
Delete the old printer, and restart printer (mine didn't work without doing this);
Select a higher DPI in your printer settings (mine now went up to 1200 DPI, a significant boost);


"No devices available" in USB settings of guest OS

After adding your account to vboxusers, it is not sufficient to restart VBox. Log off, log on again, then start Vbox.


'Close-window' keyboard shortcut in Libreoffice

From menus open Tools>Customize
On second tab name "Keyboard" in "Shortcut key" section find "Ctrl+Q" select it then click on  Modify  on the right side.
Below "Functions" under "Category" find "Documents" and select it. In next list which is named "Function" select "Close".
The next one named "Keys" know should show "Ctrl+Q"
Press  Ok and have a good time.


How do I install the necessary JRE to run Minecraft

If you download and install the latest Minecraft.deb package from minecraft.net, all necessary dependencies will be installed, including jre 8.

To install jre 8 manually, you can use the version available in pre-configured apt sources:

sudo apt install openjdk-8-jre

And to install the latest jre:

sudo apt install openjdk-11-jre


Guake disappears randomly on Ubuntu 13.10

There's an even better workaround in that thread that lets you get the running guake back without restarting it, by mbondfusion:

1) Use xwininfo to find your root window ID

xwininfo -name 'Guake!' -int -tree

xwininfo: Window id: 60817461 "Guake!"

Root window id: 143 (the root window) (has no name)
Parent window id: 143 (the root window) (has no name)
1 child:
60817462 (has no name): () 1x1+-1+-1 +64+23

2) Use xdotool to reparent the Guake window:

xdotool search --name 'Guake!' windowreparent 143


What do you mean by "I have my computer encrypted already"?

If you configured ubuntu to encrypt your home directory, then the comment from @Rinzwind is correct and you cannot set auto-login for this user.

However, if you are referring to some other encryption strategy, it should be possible to configure auto-login from the usual way:

Go to User Accounts and select the user in question.
Switch the Automatic Login field to the ON position.


After looking at this answer, I realized that I needed to set the host to 127.0.0.1.

I guess you learn these things as you go.


Starting DesktopCouch or CouchDb on Lubuntu 12.10

Don't install or use desktopcouch. It is no longer maintained or supported. See the EOL announcement for desktopcouch. Also, couchdb will soon be completely disabled on the Ubuntu One servers, as announced recently. It's not stated in that announcement, but notes sync was the last remaining service backed by couchdb on the server. Once it's down, there will be no more couch access on Ubuntu One (syncing with which was the sole reason for desktopcouch). The desktopcouch package has been removed from the archive completely in 13.04.


To Disable CTRL+SHIFT+C in Google Chrome of Ubuntu?

I was able to successfully override the Ctrl+Shift+C shortcut by using the Shortcut Manager plugin and creating a new shortcut for the key combination.

You can then reassign it to trigger a host of pre-configured actions, or any javascript / bookmarklet code of your choosing. I don't really have any experience with javascript, so I can't really figure out how to make it act like Ctrl+C, but as far simply preventing it from bringing up the Developer Tools console, simply setting it to execute:

<script></script>

seems to work.

EDIT

I since found that there is, in fact, a simple way to copy to the clipboard in javascript, so instead of setting Ctrl+Shift+C to an empty script, set it to:

document.execCommand('copy');

or simply use Shortcut Manager's "Import Settings" feature and paste the following:

// ==UserScript==
// @ShortcutManager
// @name Override Ctrl+Shift+c
// @namespace FSBQ9ZTetyiG
// @key Ctrl+Shift+c
// @include *
// ==/UserScript==
document.execCommand('copy');


Cannot resize old ubuntu installed drive, is bios_grub partition safe to delete?

You don't need to use a live Ubuntu.
Deleting the grub_bios partition is risky, don't do this when your PC has no UEFI-BIOS but only an "old" BIOS. I suggest, just don't touch that partition, even when you have an UEFI-BIOS.
You don't need to clone, but making backups is always a good idea, when possible.
A fresh installation would be best.

What you can do to delete the old Ubuntu is:

boot your regular Ubuntu, the one you want to keep
open a terminal and type sudo -i and hit ENTER, this gives you root rights
make a backup of your fstab by typing cp /etc/fstab /etc/fstab.bak  and hit ENTER
edit fstab by typing nano /etc/fstab and hitting ENTER

find the unwanted partitions within the fstab config and delete their entries
press CTRL+O for saving the changes to file
press CTRL+X for quitting the editor

reboot your system (the same system)
open another terminal and give you again root rights by typing sudo -i and hitting ENTER
type parted into terminal and hit ENTER, this starts the partition manager

be very careful when using parted, it's an interactive program, all changes are instant!
type help and hit ENTER to get a command help list
type print devices and hit ENTER to see all storage devices
search for the storage device (probably harddisk /dev/sda) you want to change
type select /dev/sda and hit ENTER to select your desired storage device
type print free and hit ENTER to display partitions of your selected storage device
CAREFULLY!  type rm NUMBER, where NUMBER is the number of the partition you want to delete and hit ENTER - (double check your typing!)
type print free and hit ENTER to verify your changes
OPTIONAL: type resizepart and hit ENTER to adjust partition size of the remaining partitions, make sure to only increase the size of your partitions, don't decrease the size of your partitions! You can only resize partitions which are not mounted, so maybe a live Ubuntu would do better here.
type quit and hit ENTER to quit parted

type update-grub in terminal and hit ENTER (this updates the boot menu)
reboot your system


NTFS support in Linux has improved considerably recently, but it is still surprisingly slow.

While 1.3MB/s seems unusually slow, I could believe it happening if you were copying many small files or something.

At least as a troubleshooting step, you could try formatting the same drive using a different filesystem.  But you probably don't want to do that if you have lots of data on it.


How to Install/Configure/Manage Server/ProxyServer for my small office to control everything ?? (Ubuntu 14.04)

1&2) You should probably look into a firewall instead.  With that, you can just shut off access to various sites.  One easy-to-use solution that could run on your spare desktop is untangle http://www.untangle.com.  Untangle can also block mimetypes i.e. mp3.  You can block .torrent files but actual torrenting apps are more difficult.

If you would like to use the server box with ubuntu as a firewall, you need to do a bit more manual setup.  There is a good intro here https://help.ubuntu.com/14.04/serverguide/firewall.html

3) Some wifi routers can filter on MAC address.  If this is the case for you, you can just enter the MAC of all your trusted PCs/devices.  Although iptables/ufw have MAC filtering it will likely not work from behind the wireless router.  That's why you need it in the router itself.

4) Not sure what you mean by this - if you mean web serving via the server, then you can use Squid web proxy on your ubuntu server. You can automatically route web traffic through Squid using this setup on ubuntu.  I am only allowed 2 links in my answer so google for "ufw squid transparent" or "iptables squid transparent".  I prefer iptables, personally, but ufw is what Ubuntu uses normally.

If you want to use the server as a central filestore you can configure 'cifs' in ubuntu.  I am not sure how that relates to/helps your other problems, though.

5) For this, you want "Quality of Service" rules.  Untangle can do this.  For Ubuntu, look for an app called wondershaper.  QoS will let you cap the bandwidth each machine is using so if someone is abusing your network, you only lose 10% performance (or however you've set it up).


Ubuntu Server image with predefined user and ssh key for mass deployment

You'll need to create a preseed file to pre-configure your user info.

# Locale
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us

# Clock
d-i clock-setup/utc-auto boolean true
d-i clock-setup/utc boolean true
d-i time/zone string US/Pacific
d-i clock-setup/ntp boolean true

# Users
d-i passwd/user-fullname string UseYours
d-i passwd/username string UseYours
d-i passwd/user-password-crypted password UseYours/
#d-i passwd/root-login boolean true
#d-i passwd/root-password-crypted password [crypt 3]
#d-i user-setup/allow-password-weak boolean true

(Reference: https://answers.launchpad.net/cubic/+question/681179)

Ensure your preseed file is listed in the boot configurations (file=/cdrom/...). If you simply add to the existing preseed file, then it will already be referenced by the boot configurations.

Also, here is an example Debian preseed file with other possible parameters, in case it's useful to you.


Change the font size of a unicode character in my bash prompt

There is no escape code for text size (source). Therefore, there's no way to resize a single character in terminal.

Your best bet will be to look through Unicode and find a larger version of the same character. Or you could make the character bold.


I got a G50 and installed Mint 17 Cinnamon (Ubuntu 14.04) on it. Almost everything was running out of the box:

LAN
Wireless
USB
Card reader
Audio
Battery info
Touchpad (+ multi-finger gestures with touchegg)
etc

The only thing that's missing is the Dolby feature (Lenovo warns that it might be only available on Windows). Seems like it's possible to configure, but I've only given it a few hours of research.

In conclusion: you shouldn't have to worry about driver compatibility with a G50.

Update:

Certain x246 encodes produce screen tearing (Intel HD 4400). Adding

CLUTTER_PAINT=disable-clipped-redraws:disable-culling
CLUTTER_VBLANK=True

to /etc/environment fixed it.


Run GitHub Script and Compile specific program

You would need to build the command(s) first - however with no documentation and no Makefile it's going to involve a bit of guess work.

There are 2 .c files - should those be linked into a single program, or are the two separate programs? The only way to find out may be to compile them and see:

gcc -Wall -o SmcDumpKey SmcDumpKey.c

This produces no errors and results in a binary executable SmcDumpKey so we can deduce that SmcDumpKey.c and smc_util.c are separate programs.

Because the current directory is likely not in your PATH, you will need to append it in order for the shell script(s) to find it ex.

$ PATH=$PATH:./ ./tdm_on.sh
ioperm failed: Operation not permitted
ioperm failed: Operation not permitted
warning: output eDP not found; ignoring

so the SmcDumpKey program runs. You will likely want to move the compiled binary to somewhere on your PATH or on the sudo secure_path if you actually want to use it.

What about smc_util.c?

$ gcc -Wall -o smc_util smc_util.c
smc_util.c:27:10: fatal error: IOKit/IOKitLib.h: No such file or directory
 #include <IOKit/IOKitLib.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.

At this point I'm stuck since I'm on an Intel-based system and IOKit is a Mac library. YMMV.

I hope this gets you started. Good luck!


You can edit your ~/.bashrc and append the cd command you want to the end of this file.

cd /desired_directory/

Now when you open the terminal, the current working directory will be this.


Concatenate multiple tiff images into single one page tiff image

feh has a index & montage modes, where it reads multiple images and displays or creates a single image containing a grid of thumbnails with all the images.

The man page has this example:

 feh -irFarial/14 -O index.jpg /opt/images
         Make an index print of /opt/images and all directories
         below it, using 14 point Arial to write the image info
         under each thumbnail.  Save the image as index.jpg and
         don't display it, just exit. Note that this even works
         without a running X server

If you've got libreoffice installed you could try these:

feh -i -O index.jpg /usr/lib/libreoffice/share/gallery/www-back/

That creates an index with names of all the files. Or the following will open feh viewing the thumbnail image, but with no names:

feh  -m /usr/lib/libreoffice/share/gallery/www-back/


It is definitely worth to take a look at Rainbow Stream - a fancy Twitter client on Terminal wrote by Python :)


Installing Ubuntu 14.10 and window Installation type

You have to select the partition where you want to install it and press the "change" button. In that window, you should choose type ("ext4"), mount point ("/") and check the format box.

Linux call each HD as sdX, being  "a" the first one, so if you fisically have 3 HD, you will got in that list "sda, sdb and sdc".

If any of that fisical HD has a partition, Linux will call it as sdX1, sdX2...

So if you install Linux in a partition called sda2, on the "Device for boot..." section you should select "/dev/sda" in order to boot the system from that HD.

Hope it helps


You must have googled before posting repeated questions.

Anyway for determining issues related with heating, you can install a palckage like lm-sensors (lm_sensors to run command 'sensors') so as to see if your system really heats up.(Lm-sensors gives current temperature of the system).

Next try installing power consumption management utility such as powertop. If these are not behind the issue then have installed your graphics card driver from nVidia available at  nVidia official site.
Alternatively if you are not using the extra graphics have generic installed or disable it. Even if this could not solve your heating issue then you only know what process are behind your CPU.

Best of Luck, have hot CPU like you prefer hot girl, coffee and many moooo.

For persistence mode, I prefer to disable the graphics itself if it is the issue behind.


Installing Updates selectively from command line

To get only security updates, follow this answer, but insert only next line in /etc/apt/sources.list:

deb http://old-releases.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse


How to install Windows 7 alongside Ubuntu 14.04

Yes, you have to create a separate ntfs partition for Windows and it should be a Primary one(if your disk has MBR partition table) through gparted.

Run Windows installation disk and select custom option to install Windows on created ntfs partition.

To create a separate ntfs partition from /dev/sda1

Boot Ubuntu installation disk and click on try Ubuntu option on startup.
Open gparted partition editor from dash. If the program is not installed by default then run the below commands to install gparted.

sudo apt-get update
sudo apt-get install gparted

Make sure that all the partitions are unmounted. Now right-click on the /dev/sda1 partition and select Resize/Move option to reduce it's size(actual space needed for your Windows).
After the above operation, an unallocated space will be created just below to  /dev/sda1
Create a new ntfs primary partition from that unallocated space.


remove all letters after space in a line that start with specific character

Given

$ cat file.fasta
>AB3446 human helix ACGTGAGATGGATAGA
GATAGATAGATAGACACA
>AH4567 human beta sheet
ACGTGATAGATGAGACGATGCCC
CACGGGTATATAGCCCAA

then

$ sed '/^>/ s/ .*//' file.fasta
>AB3446
GATAGATAGATAGACACA
>AH4567
ACGTGATAGATGAGACGATGCCC
CACGGGTATATAGCCCAA

replaces everything from the first space (inclusive) onward on every line that starts with >

Alternatively, with awk:

$ awk '/^>/ {$0=$1} 1' file.fasta
>AB3446
GATAGATAGATAGACACA
>AH4567
ACGTGATAGATGAGACGATGCCC
CACGGGTATATAGCCCAA


How to identify my device by their physical path?

The by-path for ATA devices was removed because it was possible for the same device to have multiple different by-path names.

There are a couple of options to get the physical path, including reading /sys/block/, asking blkid, querying udevadm, or querying udisks.

If you want a list of block devices with mountable file systems which are present, and don't want to use any extra libraries, then perhaps the simplest thing is:

udevadm trigger --dry-run --verbose --property-match=ID_FS_USAGE=filesystem

(this doesn't need any root privileges). If you want all block devices, then

udevadm trigger --dry-run --verbose --subsystem-match=block

will give a list, including device-mapper (and also loopback, etc...).

Source: bug #1193705


Touchpad on Thinkpad E550 is recognized as mouse. No Scrolling possible

I used this solution psmouse serio1: alps: Unknown ALPS touchpad in a Lenovo Ideapad Flex 15, and got some improvement: the scrolling now works, but the the touchpad keys are not working anymore.


Is there a tablet-centric desktop available for Ubuntu?

There really isn't any out there currently - but what you may want to install is the new UNE (Ubuntu Netbox Edition) which provides the new launcher application on the destkop itself. Should make using a tablet a lot more effective.

To get this to work you'll need to add this [ppa]: ppa:netbook-remix-team/ppa to your system and install the relavant packages. It took me quite some time to hunt down this repository for some reason. I believe you'll then want to execute sudo apt-get install unity ubuntu-netbook-unity-default-settings and any other packages listed.


Shortly after release, reports were received of a bug in UEFI firmware of laptops from Lenovo, Acer, and Toshiba which  corrupted the BIOS and made the machine unbootable.

In late December the download links of Ubuntu 17.10 were removed from the website. Shortly after, a fixed version of Ubuntu was released as a point release - Ubuntu 17.10.1.

The issue was due to a bug in the Intel Serial Peripheral Interface (SPI) kernel module.

The Q&A Does Ubuntu 17.10 break the BIOS? may also be of interest.

My pronouns are He / Him


Software Centre - where did my "Other" items come from?

The version which is currently installed is no longer available on any of the configured repositories.
Do you have the -proposed repository enabled ? I believe there were some recent uploads to update-manager there which were rolled back, that would explain it...

About to the main part of the question, Software Center is only able to determine the "Origin" of a package if it is still available from an active repository, when the Origin is unknown it's shown on the "Other" item.


Windows 8 and Ubuntu OS installation possible on the same computer?

if you have the install discs and the Windows CD key, reinstalling Windows back onto the PC would be simple.

As for the games, I believe that a couple of the Valve Source games are available natively on Linux, as well as a few other miscellaneous games.  Though, most games aren't compatible or you would need to run through Wine, but that's not saying that they would run properly.


Were there any modifications to udev in order to allow Ubuntu to run on the Nexus 7?

There are no patches to udev, but there are additional rules to modify the android partitions. These can be found in ./etc/udev/rules.d


I have an Acer with Ryzen 5 2500U which had soft lockup on CPU#3 (and sometimes CPU#4). This post helped me: Ryzen/Vega laptop PCIe Bus Error

I personally do not know if this helps Intel CPU's but it helped with Ryzen CPU's

Basically have to add a command to grub menu in terminal sudo nano /etc/default/grub (need to but in your password).
Find GRUB_CMDLINE_LINUX_DEFAULT= line, mine says GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.max_cstate=1".
Exit with Ctrl+X and save.
Update grub sudo update-grub and restart.

Again, I only have personal experience with this helping Ryzen, this might not help Intel at all.


I want to add that when you install, you will have the option to rplace or upgrade your current installation. You can also choose "something else" & partition manually. If you choose anything beside upgrade or install along side, yes, it WILL wipe your hard drive. So if thats what you want, its thaat simple. IF you want to keep your files, run an upgrade OR install it along side your current install.


You don't have to disable ACPI. ACPI is used for many other things including temperature and fan so I would not recommend disabling it.

Go into your BIOS settings and change the setting there if that's the problem.


issue the following command from the terminal sudo apt-get install system-config-samba

After that, go to Dash and open Samba.

Next,  click the Add button (plus) , then browse to the folder to wish to share and open it. Then enable Write and Read permission on the folder.

Next, select the ‘Access’ tab and enable the users you wish to have access to the shares and click OK.

After that, run the commands below for each user account to add it to Samba database. This will allow you to create new password for Samba. It’s always good to use the same password as your Ubuntu account.

sudo smbpasswd -a <username>

That’s it!


Following up on the Glib-GIO-CRITICAL issue, I googled around a little and found it actually was a known issue with libglib.  I had another outstanding problem with that, and question on askubuntu.  I went ahead with rolling back a version, and the problem was corrected.  Details for what was rolled back are here:

How do I downgrade libglib2? (from glib 2.31 to 2.30?)


nginx and apache port number different but always showing apache2 page

Both NGINX and Apache share the same base docroot in a default setup of Ubuntu - /var/www/html.
Both are configured at the package level to not replace the default docroot's index.htm(l) file if it is already present.
Therefore, if Apache is installed first, the NGINX package will not replace the default docroot's index page, and if NGINX is installed first, Apache will not replace the NGINX landing page.
Check your configurations - and use different document roots.  Apache the config line is DocumentRoot, while for NGINX the config line is root.  Both sill have directory path arguments to the location where files and pages will be served out of.
But in a default install without configuraiton changes, they use the same docroot.


Why does turning Caps Lock off take such a long time to work?

This is quite easy to fix. I have successfully used this technique on two people with a 100% success rate:

Put the blade of a knife or tip of a flathead screwdriver underneath the capslock key.
Twist.

The key should come flying off and you can dispose of it the best way you see fit. The recovery from such an operation is surprisingly short. Your little finger (what should be controlling that stuff) should quickly learn to find the shift key.

In all seriousness this is a long-standing but extremely rare bug. By long-standing I mean there are reports of it occasionally popping up all the way back to 2003.

Ultimately this is something you either have to get onto (hunt down an X developer, give them your laptop for a few weeks and probably pay them for their time), or put up with.

I would opt for learning to type properly. It's much quicker with the Shift key.


There is a possibility that if they were installed they would conflict with something else. Or, maybe something is messed up in your software configuration. What I would do first is use the apt-get -f install command like the prompt tells you to, and then try installing again.

If that doesn't work try using aptitude to install gcc. Aptitude usually is able to fix problems automatically when apt-get can't. (As you have just found out) Just install it using:

# apt-get install aptitude

And then just use it like you would use apt-get:

# aptitude install gcc-4.7

You may also want to use aptitude to update your packages and upgrade if the previous command doesn't work:

# aptitude update
# aptitude upgrade


How to launch a virtual machine in qcow2 format in Ubuntu 13.04?

I fixed the problem using the following commands:

sudo apt-get install qemu-utils
sudo apt-get install qemu-kvm
kvm -hda cloudera-quickstart-vm-4.4.0-1-kvm.qcow2 -net nic -net user -m 512

I hope it helps you as well.


Wireless switch controls Bluetooth - Lenovo Thinkpad - Ubuntu 12.10

For me, there was a BIOS setting for the wireless switch. You could choose between "None", "Wifi", "BT", "Wifi & BT". Change it to "Wifi"


What is the (initial) root password for Ubuntu on Nexus 7?

It's ubuntu

You can find more info here:

https://wiki.ubuntu.com/Nexus7/UsingTheDevice

For more information about this, check out:
https://wiki.ubuntu.com/Nexus7/


Deleted /usr/bin/env by mistake, how can I recover it?

The /usr/bin/env file originates from the coreutils package. To restore it, simply reinstall this package. In order to do so, run this command:

sudo apt-get install --reinstall coreutils

There is currently no package in Ubuntu repositories which provides a /usr/bin/dev file. Therefore you don't need to restore it.


How to write Album Artist ID3 tag using lame?

Lame does have ID tags in commandline form. Use them when you are encoding with lame. To tag existing files you may be better served using another method. Refer to the man page by running man lame or even lame -? provides good info.

lame -?

  ID3 tag options:
--tt <title>    audio/song title (max 30 chars for version 1 tag)
--ta <artist>   audio/song artist (max 30 chars for version 1 tag)
--tl <album>    audio/song album (max 30 chars for version 1 tag)
--ty <year>     audio/song year of issue (1 to 9999)
--tc <comment>  user-defined text (max 30 chars for v1 tag, 28 for v1.1)
--tn <track[/total]>   audio/song track number and (optionally) the total
                       number of tracks on the original recording. (track
                       and total each 1 to 255. just the track number
                       creates v1.1 tag, providing a total forces v2.0).
--tg <genre>    audio/song genre (name or number in list)
--ti <file>     audio/song albumArt (jpeg/png/gif file, v2.3 tag)
--tv <id=value> user-defined frame specified by id and value (v2.3 tag)
--add-id3v2     force addition of version 2 tag
--id3v1-only    add only a version 1 tag
--id3v2-only    add only a version 2 tag
--id3v2-utf16   add following options in unicode text encoding
--id3v2-latin1  add following options in latin-1 text encoding
--space-id3v1   pad version 1 tag with spaces instead of nulls
--pad-id3v2     same as '--pad-id3v2-size 128'
--pad-id3v2-size <value> adds version 2 tag, pad with extra <value> bytes
--genre-list    print alphabetically sorted ID3 genre list and exit
--ignore-tag-errors  ignore errors in values passed for tags

Note: A version 2 tag will NOT be added unless one of the input fields
won't fit in a version 1 tag (e.g. the title string is longer than 30
characters), or the '--add-id3v2' or '--id3v2-only' options are used,
or output is redirected to stdout.

Use it like this from a script I run:

        lame  --vbr-new --preset standard --tt "${tt}" --ta "${ta}" --tl "${tl}" --ty "${ty}" --tn "${tn}" --tg "${tg}" --add-id3v2 infile.wav outfile.mp3


stty: 'standard input': Inappropriate ioctl for device (/dev/ttyUSB0 usb 2-1.1: cp210x converter)

Hmm, I have a similar problem:

xpra attach ssh:sophia@192.168.2.231:100
xpra client version 0.12.3
zofie@192.168.4.241's password:
2016-10-08 19:22:47,401 PyOpenGL warning: missing accelerate module
2016-10-08 19:22:47,401 PyOpenGL warning: missing array format handlers: numeric, vbo, vbooffset
2016-10-08 19:22:47,402 OpenGL Version: 3.0 Mesa 10.1.3
2016-10-08 19:22:47,788 detected keyboard: rules=evdev, model=pc105, layout=cz,il
2016-10-08 19:22:47,793 desktop size is 1366x768 with 1 screen(s):
2016-10-08 19:22:47,794   ':0.0' (359x201 mm) workarea: 1366x744
2016-10-08 19:22:47,794     LVDS (270x150 mm)

stty: 'standard input': Inappropriate ioctl for device

...

I also do not know why this xpra freezes...


Let popup appear when logging in to guest account

Create a script using zenity, then autostart that script by putting a .desktop file for the script in /etc/skel/.config/autostart/.The script will run for all new users (copied to the user's $HOME). Because of this, you'll want to do a check on the username. It might look like this (warning, I haven't tested):

#1/bin/bash
if [ "$(whoami|awk -F- '{print $1}')" = "guest" ]; then
zenity –error –title=”Guest warning” –text=”Warning, all your files will be removed when turning off the computer or logging out, better move them on an USB-stick first.”;
fi
exit 0

You'll put that file somewhere accessible and set it to executable. You'll then create a simple .desktop file by looking at an example one and setting it to run the script you've just made, and place that in /etc/skel/.config/autostart/.

This is a great idea and should be standard.


How to increase the idle time that causes auto-lock to log in screen?

Go to System Settings and select screen. Or type in screen in Unity Dash.

You'll get the following screen.

Set the time you want to set or switch it off :)


How can I make Maximus and Metacity compositing coexist?

Install xcompmgr

sudo apt-get install xcompmgr

and add it to your startup applications.

Xcompmgr is a compositing manager that works in most situations where other compositing managers don't, and can even be used alongside window managers such as openbox and icewm, or metacity (with compositing disabled in metacity).


How do I make the panel transparent in GNOME Classic mode?

This is a well-known bug of the classic GNOME environment, as far as I know there is nothing to do about it. You used to be able to patch the panel code so it becomes properly transparent, though it will not work anymore for GNOME 3.


Windows 10 Dualboot, Unable to install GRUB

Executing 'grub-install/dev/nvme0n1' failed ...I suppose it's a typo. There should be a space between 'grub-install' and '/dev/nvme0n1'. And you need to have "/dev/nvme0n1p1" mounted as ESP for your Linux installation since UEFI is being used.


"No such partitition" in grub rescue after uninstalling Ubuntu from dual-boot

Accessing BIOS depends on your specific computer. The key to do that is usually shown during boot (POST).
Either change the boot order or use the one time boot key to boot from Windows 7 installation media (DVD?) and follow instructions in recovery.

Usually fixmbr in the recovery console is enough.

PS - Do not use WUBI. If you want a real dual boot reserve unallocated space for Ubuntu, boot from its installation media and install normally.


Hadoop job tracker and task tracker not running on ubuntu 13.10

Change mapred.job.tarcker to mapred.job.tracker


How to change the font of various terminal emulators?

Gnome Terminal:

Open Gnome Terminal by pressing Ctrl+Alt+T.
Go to: Edit ➤ Profile Preferences.
In the profile window under General tab uncheck ☐ Use the system fixed width font.
Click on font selection button and choose your desired font from resulting dialog.

Xfce Terminal Emulator:

Open Xfce Terminal: Hit Alt+F2, type xfce4-terminal and hit Enter.
Go to: Edit ➤ Preferences
In preferences window under Appearance tab click on font selection button and choose your desired font from resulting dialog.

Konsole:

Open Konsole: Hit Alt+F2, type konsole and hit Enter.
Go to: Settings ➤ Configure Konsole.
In the profile window under Appearance tab click on Select Font button and choose your desired font from resulting dialog.

LXTerminal:

Open LXTerminal: Hit Alt+F2, type lxterminal and hit Enter.
Go to: Edit ➤ Preferences.
In the resulting window under Style tab click on font selection button and choose your desired font from resulting dialog.

Terminator:

Open Terminator: Hit Alt+F2, type terminator and hit Enter.
Right click on terminal window, in the resulting menu click on Preferences.
In Preferences window go to Profiles tab, under General tab uncheck ☐ Use the system fixed width font.
Click on font selection button and choose your desired font from resulting dialog.

Guake:

Open Guake preferences: Hit Alt+F2 and type guake-prefs and hit Enter.
In preferences window under Appearance tab uncheck ☐ Use the system fixed width font.
Click on Font selection button and choose your desired font from resulting dialog.

Yakuake:

Open Yakuake: Hit Alt+F2, type yakuake and hit Enter.
Hit F12 or whatever key you've set to bring Yakuake forward.
Right click on terminal window, in the resulting menu click on Edit Current Profile....
In the profile window under Appearance tab click on Select Font button and choose your desired font from resulting dialog.

Terminals listed below doesn't provide GUI to change font. You can use Font Viewer to view and choose the font. Top open Font Viewer go to Unity dash by hitting Super and search for font viewer.

Urxvt/Xterm:

Open ~/.Xresources in your favorite editor:

gedit ~/.Xresources

For Urxvt add:

URxvt*.font: xft:Source\ Code\ Pro:Regular:size=10

For Xterm add:

Xterm*.font: xft:Source\ Code\ Pro:Regular:size=10

Change Source\ Code\ Pro with the font you want to apply. Change Regular with font style you want to use, like: Bold, Italic, Bold\ Italic. Set the size to your desired font size.

Mrxvt:

Open the ~/.mrxvt file in your favorite editor:

gedit ~/.mrxvt

and add following lines to it:

Mrxvt.xft:              1
Mrxvt.xftFont:          Source\ Code\ Pro
Mrxvt.xftSize:          13
Mrxvt.xftAntialias:     1


To embellish the answer by enzotib ; these players play files in the order they find them in the File Allocation Table (the FAT, in FAT).

FATSort is therefore one potential solution to the problem. The noted warning is for 2 reasons ;

The tool edits the file allocation table right at the bare metal level

It moves the file entries around within the confines of the directory table, so a corrupt filesystem will be more broken than it was before
As long as the filesystem passes a fsck.vfat check, you should be fine.

The author appears to feel that he hasn't devoted enough time to making his code secure

Potentially, you could create a (broken) file allocation table that caused a buffer overrun or similar problem in the FATSort application
In reality, this is unlikely - it's something of a niche application, the opportunities for an attacker to place a specially crafted file system on your MP3 player are limited, and if he had such an opportunity, there are much softer targets he'd go after first
Again, if your filesystem passes fsck.vfat (or a disk check in Windows), you should be fine - this is a belt-and-braces disclaimer by the author

palimpsest / Disk Utility has options to do a disk check from the GUI.

Other programs that sort the FAT can be seen here : http://www.murraymoffatt.com/software-problem-0010.html

Alternate solutions ;

Copy files in the play order

The simplest and most obvious is to copy the files to the player in the order which you wish them to play. Nautilus copies files in an apparently indeterminate order to the player file system for much the same reason - it tends to operate on files in the order the iNodes are arranged on disk.

If your track file names have the track number at the beginning, this is ideal. Most of the command line tools will sort things in lexicographic order. As you note, tools like Midnight Commander will also do this.

# Find the files in the source     | copy them to the target folder
# Note we use the          -print0 |       -0   args because media file names
# commonly contain spaces

find /path/to/music/folder -print0 | xargs -0 cp -t /path/to/target/folder

Create a playlist

Some players support playlist files. I keep scripts in my MP3 player filesystem to support generating these playlists. My player is an iRiver device, which has a specific binary playlist format. If your player supports .m3u playlists, the format is extremely simple, and just consists of commented metadata and paths in a text file. I used to make playlists in Rhythmbox and transform them to the iRiver format ; I've not had occasion to make one using Banshee yet (I only make them for workout purposes and my workouts are very predictable...)


run the following in a terminal:

sudo update-alternatives --config x-www-browser

It will present you a list of available browsers that are installed, and lets you select your default one.


How do you use USB audio interface on Ubuntu to begin recording music? Using Focusrite Scarlett Solo device

try typing "lsusb" in command-line to see if Linux detected the USB audio interface.
If its there in the list you can configure input and output of the device in the sound TAB of the Ubuntu settings application.


Windows backup to ext3 to NTFS & file/path name length limits

You are encountering this problem because generally Windows limits the whole path of a file to 255 characters, even though the actual limit on Linux is 1024.

I don't think this is really an Ubuntu issue, though.

If you want to backup your data, you should consider using Dejà Dup which ships with Ubuntu and has many useful features.


After a particular grep match, I want to transfer all the following contents of the file to another file

With grep you could use -A switch ( --> After Context) and | tail -n+2 to start output with the second line to skip the match.

grep -A $(wc -l < file) mac file | tail -n+2

But using sed is probably better for this case:

sed '1,/mac/d' file

This deletes everything from first line (1) until and including the matching line.

or you could use awk:

awk '{if(m)print}/mac/{m=1}' file

will print a line when variable m is true if(m)print}, which is set to 1/true after the first match /mac/{m=1}.

"Transfer" stdout from a command to a file can be done with redirection: > another_file

sed '1,/mac/d' file > another_file
#or
awk '{if(m)print}/mac/{m=1}' file > another_file


Can you update your question , how much ram do you have ?

If you want the fastest "out of the box" performance, try Lubuntu.

Your other option might be a minimal install and build up, depends a bit on your RAM.

https://help.ubuntu.com/community/Installation/MinimalCD

https://help.ubuntu.com/community/Installation/LowMemorySystems

You may be better off with a light weight distro such as Tinycore.

With those stats (it is an older CPU) I would suggest Lubuntu, Slackware, or a small distro such as Tinycore. You will also want to look at light weight applications

This Arch Wiki page maintains a nice listing: https://wiki.archlinux.org/index.php/Common_Applications


Set font DPI (font scaling) in Xorg for light Window Managers like Fluxbox

Font Scaling

As of KDE5 KDE's systemsettings5->Fonts module has a 'Force Fonts DPI' option. This isn't meant to be used unless it has to be, but when used it works well - it scales fonts for all applications, not just KDE ones.

The catch is that it needs to be applied each time you login to Xorg. KDE does this automatically if you set it up through systemsettings5->Fonts. But in non-KDE environments, for example a setup that logs into Kodi direct from SDDM and uses Firefox started from Kodi for Netflix/Youtube, you can set this manually so it's done automatically each time you login to Xorg:
Create ~/.Xresources with contents:

Xft.dpi:    144

(this file is read by xrdb, and the idea for it came from the systemsettings5->Fonts source code, which is accessible with: apt source plasma-desktop; cd plasma-desktop-*/kcms/fonts/)


How do i install ubuntu 12.04 from a bootable usb pen drive?

First, download the Ubuntu installer image.

Then, on Windows:

Download and run the Universal USB Installer

Or, on Mac:

Convert the .iso image file to a .img using hdiutil

hdiutil convert /path/to/ubuntu.iso -format UDRW -o /path/to/target.img

Transfer the .img to the USB drive

 dd if=/path/to/downloaded.img of=/dev/diskN bs=1m

See: Instructions for installing Ubuntu from a USB drive.


how to remaster ubuntu 14.10 (currently installed )

You can do this by using pinguy builder ,
This is the script used to build Pinguy OS, The script creates a livecd of the installed system and works with *buntu. You can either make a distributable livecd or a backup of your system :

http://sourceforge.net/projects/pinguy-os/files/ISO_Builder/


First, your ClamAV install shows that there aren't any viruses on your Ubuntu install (The Known Viruses entry simply shows how many Viruses ClamAV has in it's scanning database). Secondly, the reason you're receiving the error with Google is most likely not due to the fact that you have a virus on your Ubuntu install (Linux and GNU user-space works a whole lot differently than Windows (unimportant)), but rather that you have another infected computer on your local network, are using an infected VPN to connect, or your IP was recently changed by your ISP to a previously-malicious address that Google is blocking.


There are two questions which need to be answered:

How to copy a directory
How to identify a mount-point of a device

The command to copy a folder is cp -r (a recursive copy)

You'll have to identify the path of your pen-drive.

If the pen-drive uses device /dev/sdb1, you will be able to get the path to the pen-drive (the mount point) using the df

The output of df looks like this:

df

Filesystem     1K-blocks      Used Available Use% Mounted on
udev            16405712         0  16405712   0% /dev
tmpfs            3285172    141288   3143884   5% /run
/dev/sdb1      449093384  72712024 353545700  18% /
tmpfs           16425844    290220  16135624   2% /dev/shm
tmpfs               5120         4      5116   1% /run/lock
tmpfs           16425844         0  16425844   0% /sys/fs/cgroup
tmpfs            3285172       168   3285004   1% /run/user/1000
/dev/sdc1      976759804 389531656 587228148  40% /mnt/hddc1

hence if the device you'd like to use is /dev/sdc1 , the mount-point is /mnt/hddc1

For example, if you need to copy from /home/user/Desktop/folderName to pen-drive on sdc1 , the command will be:

cp -r /home/user/Desktop/folderName /mnt/hddc1


Are there any ebook readers in Ubuntu that support middle button scrolling?

Calibre is an e book reader.

You can change the default application to Calibre for a file type with these instructions: Change Default Applications

Install calibre using Software or sudo apt-get install calibre  if you like the terminal.


How to specify when a daemon should stop during system shutdown?

A hackish solution is to do this:

stop on stopped lightdm

replacing lightdm with whatever DM you are using. This will ensure the FS goes down after all user apps are closed.


How to pass traffic from static ip on my router through Ubuntu firewall to LAN ip

I would suggest that you set up your squid proxy machine to have multiple IP addresses on the WAN facing side - one corresponding to each of your 5 client machines on the LAN (say 192.168.0.3, 192.168.0.4, 192.168.0.5, 192.168.0.6 and 192.168.0.7).

You then set up a squid ACL and tcp_outgoing_address rule as described here to map your internal client LAN addreses to one of the WAN facing IP addresses on squid, e.g. 10.10.10.1 maps to 192.168.0.3, 10.10.10.2 maps 192.168.0.4 etc).

Finally you set up your router to NAT your first external IP to 192.168.0.3, your second one to 192.168.0.4, and so on.


Gaming PC HD/OS/Harware/Software Switch-a-Roo

All this is a bit out of the AskUbuntu Purview, but generally:

Backup: To backup a lot of data to ISOs, one can use Mondo Rescue (here are instructions to install it in Ubuntu, its not just apt-get install but not too hard). Boot Ubuntu live CD (without installing) and use it to backup your data.
Installation order: Install Windows first, and then Ubuntu - the Ubuntu installer will detect the Windows installation and will add an entry to allow you to choose to boot to Windows or Ubuntu when the machine starts. If You install Ubuntu first, then the Windows installation will clobber the Ubuntu boot loader and will not let you load it.
Format of harddive: Don't worry about it - show the Ubuntu installer the drive you prepared for it, tell it to use the entire drive and accept the default format.


I think I screwed up my Ubuntu gnome desktop

The easiest way to do what you're trying to do is to re-install the operating system and restore your files from backup (you do have backups, right?). From what you've described in your question, it's highly unlikely that every setting and configuration can be returned to default.
However, if you would like to try, then dconf may get you part of the way there:
$ dconf reset -f /

Very Important: By running this command, Gnome will be reset completely, this includes Gnome-based applications. You may need to re-enter accounts, reconfigure preferences, rebuild playlists (in Rhythmbox), and the like. Do not be surprised if this also removes the login screen that you wish to keep.
If this only gets you part of the way, you can follow it up with a bit more cleanup. In your question you hint that you may have already done this, but here are the steps to get the default Ubuntu desktop environment re-installed:

Ensure any misconfigured/unconfigured packages are resolved and up to date:

$ sudo dpkg --configure -a

Ensure any missing dependencies are reinstalled and you're completely up-to-date:

$ sudo apt update
$ sudo apt -f install
$ sudo apt full-upgrade

Reinstall the Ubuntu desktop environment and remove any unnecessary cruft:

$ sudo apt install --reinstall ubuntu-desktop
$ sudo apt autoremove
$ sudo apt clean

Reboot.

If the system is still a giant mess afterwards, grab a Live USB stick and nuke the installation from orbit.


Booting Ubuntu on an UEFI system with Windows 8

It is not Windows 8 that locks down the bootloader, it is the BIOS. Windows cannot stop a program from writing to the MBR if it is turned off. The BIOS can, however, refuse to boot if the hash of the boot sector is not what it is expecting.


Explain dual booting and installing on another internal hard drive?

Simple: There is none ;-)
Dual-Booting just means that you will on boot up (after the power button is pressed and BIOS shows POST messages) NOT immediately be greeted by an Operating system as you have two installed. Instead you will be given the option to chose which one to start (Actually you can even dual-boot without that menu but let's ignore that for a second).

Basically an OS is installed on one (or more) partition(s) on physical drive(s) of your computer.
Roughly speaking it creates a special section on the disk which is the either the Master Boot Record (MBR) on BIOS Systems or an ESP partition on EFI systems where it installs the boot-loader. Either way these are small bootable files which launch the appropriate operating system.

Also this software (on Ubuntu most likely GRUB) will provide your "chose OS to start" menu. It can detect other installed OS's like other Linux distributions or Windows (actually it  chainloads the windows bootloader but that's just a side-note).

To setup your PC like this install one OS first (beginning with Windows is recommended) and then the second. Assuming the second is Ubuntu you just select "install alongside Windows" in the installer and it will find unallocated space on a system to assign to Ubuntu. Also it will install a boot-loader as formerly mentioned and will instruct it to search for a Windows install.
It should detect it automatically. On booting you can select which OS to start.

Bottom-Line: There's no real difference and Ubuntu should do a good job with guiding you through the process.


Command line tool to search and replace text on a PDF

As in many cases it’s just text, you can often remove it simply with sed or in fact any text editor – let’s say it says “watermark”:

sed 's/watermark//g' in.pdf >out.pdf

If your PDF file is compressed this doesn’t work, you need to uncompress it first, e.g. with pdftk (How can I install pdftk in Ubuntu 18.04 and later?):

pdftk in.pdf output out.pdf uncompress

If sed’s output is not readable with your preferred PDF reader, try repairing it with pdftk:

pdftk out.pdf output out_pdftk.pdf

Further reading: How to Edit PDFs?

Source: How to remove watermark from pdf using pdftk • Super User


I found the answer! For some reason, my computer overwrote bootmgfw.efi, and rewriting it is quite simple.

menuentry "Windows 10" {
    insmod part_gpt
    insmod chain
    set root='(hd0,gpt5)'
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

Thanks for trying, though!


"ubuntu the partition table format in your disks normally requires" on ubuntu installation

Keep Boot mode in BIOS with "UEFI mode"
go with the "Install Ubuntu" Option.
Choose Something Else option.

Create a EFI Partition of around 500mb
Create a EXT4 Partition of your wish (100gb or 200gb) for installing Ubuntu and Mount it to / (Slash)
If you want to use swap partition, create a swap partition with 2 times of your RAM.
If you want to give additional space for home folder create a EXT4 partition of your wish and mount it to /home.
leave the remaining place unallocated as you can make them after installation.
select the device for boot loader from the drop down option at bottom of the window as /dev/sdX (X is a variable) replace X with your intended drive. if you have two drives they may be named sda and sdb. this is very important. and click "Install Now"
Note: steps 3 & 4 are not mandatory.


I would recommend using Samba to create a network share. This link should help you get a samba share set up. And this link should help in allowing multiple domains to use the share. Personally, I've never had to configure Samba for multiple domains, but between these links, and the man pages, you should be able to get a working, elegant, solution.


Can f.lux work with dual screen (laptop + external) setup?

In my case this topic helped: https://github.com/Kilian/f.lux-indicator-applet/issues/16

Herf prepared a brilliant patch for xflux which has to replace the original /usr/bin/xflux and it works like a charm.


Yes but with caveats ... killall notify-osd is aggressive ... to do this gracefully requires that pending notifications be saved before the offending one triggers killall notify-osd and then reinstate them preserving chronological integrity.

ref:
Close button on notify-osd?
it would be nice if: Can org.freedesktop.Notifications.CloseNotification(uint id) be triggered and invoked via DBus?

Monitor D-Bus to find notifications for removal that originate from the chosen application. Run this script in a terminal or as a background task, changing ap_name_to_silence to the name of the ap chosen for throttling:

dbus-monitor "interface='org.freedesktop.Notifications'"                \
| grep --line-buffered  'string "ap_name_to_silence"'                   \
| sed -u -e  's/.*/killall notify-osd/g'                                \
| bash

Basic Notify structure in dbus-monitor "interface='org.freedesktop.Notifications'" is

    method call sender=:1.278 -> dest=:1.151 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
       string "notify-send"                          this is the app_name
       uint32 0                                      this is the replaces_id
       string ""                                     this is the app_icon
       string "test"                                 this is the summary
       string ""                                     this is the body
       array [                                       this is the actions pairs list
       ]
       array [                                       this is the hints dictionary
          dict entry(
             string "urgency"
             variant             byte 1
          )
       ]
       int32 -1                                      this is the expire_timeout

test silencer with these messages noting "silenced notification" is absent:

notify-send "sum airy" "ephemeral corporeal content"; sleep 5;

gdbus call --session                                             \
    -d  org.freedesktop.Notifications                            \
    -o /org/freedesktop/Notifications                            \
    -m  org.freedesktop.Notifications.Notify                     \
                        ap_name_to_silence                       \
                        42                                       \
                        gtk-dialog-info                          \
                        "The target"                             \
                        "silenced notification"                  \
                        []                                       \
                        {}                                       \
                        5000

notify-send "augend airy" "ephemeral corporeal content - ie. white moo juice\!"

gdbus call --session                                             \
    -d  org.freedesktop.Notifications                            \
    -o /org/freedesktop/Notifications                            \
    -m  org.freedesktop.Notifications.Notify                     \
                        my_app_name                              \
                        42                                       \
                        gtk-dialog-info                          \
                        "Summary"                                \
                        "but now it's autumny and not wintery"   \
                        []                                       \
                        {}                                       \
                        5000

Bookmark:
Is it possible to block NotifyOSD for one application?


how to use setenv to set an environment variable?

I would do it this way:

export ApiKey="57647625454354365"

to check if ApiKey is set correctly do:

echo $ApiKey


Any video player that can show two subtitles at a time?

There's a tool called 2srt2ass that can take two langauages in two separate subtitle SRT files and combines them into one SSA/ASS file, showing one language at the top of the screen and one at the bottom.

Something like that's probably the cleanest solution in terms of playback (you can just use the player you would have anyway) but it's a bit of a faff to get started if you've got lots of videos to do this for.

Alternatives that do the same thing: SrtMerger

There's also an awk script on Ubuntu Forums that might be able to do the same thing.


How to change the language in which official Ubuntu documentation (online) is displayed?

As of 2017-10-12, there is no nice way via the user interface.  There is a bug report asking for a way, bug #1532537.  Please add yourself to the list of affected people.

WORKAROUND

You can call the webpage with the language of your choice by appending .<language code> to the URL.  Examples:

https://help.ubuntu.com/stable/ubuntu-help/index.html.en
https://help.ubuntu.com/stable/ubuntu-help/index.html.fr
https://help.ubuntu.com/stable/ubuntu-help/index.html.de


How do I make my intous 4 wacom affect only one Monitor?

That's not currently possible with Ubuntu. You'd need to program xorg to focus one core pointer towards one specific screen and I don't know of any way that's possible.

You could however suggest it as a feature for xorg by reporting a bug:

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

I suspect that you may be using an nvidia card, if this is the case then you are using twinview which distorts the dimensions of the desktop (because it's fake, it's one desktop over two displays, instead of two desktops like ATI and Intel), to set this up just use xsetwacom:

xsetwacom --list

This will tell you the names of your pen device, then use that in the next command:

xsetwacom --set "Wacom Intuos3 4x6 stylus" TwinView horizontal

To put it back to normal, use:

xsetwacom --set "Wacom Intuos3 4x6 stylus" TwinView none

You should need to set stylus, eraser and pointer to get all your devices set right. Once you can see how it works, copy and paste the commands into a new hidden file called .xinitrc in your home folder, you can use a normal text editor to make the file.

Now you should have good wacom settings when you reboot. (side note: you can use xsetwacom --list param to get a list of all the options you can set.)


AMD Radeon HD 6730M/6770M/7690M XT driver on 14.04.2

because there is an issue in ubuntu 14.04.2 regarding the fglrx driver as discussed in this thread Ubuntu Additional Drivers won't install flgrx


Do I need to format my drive before installing?

Linux does  not run on an ntfs filesystem. You will need to select another filesystem like ext4.
Think about partitioning the disk first.  For instance, two 25G partitions for system installations (one for trying out new releases, one stable one you use until you like a new one better), a swap partition (two times the memory size is the standard for swap size), and a big partition you can use for your files, which you can mount in your home directories.  The system and data partition should be ext4.
partition and select the filesystems and mount points during installation, select "do something else" instead of using whole disk. Really, only a / and swap need be initially defined at this time.
Erase and use whole disk would work, but see #2 for other options.
I always check the size of the disk being used for installation.  /dev/sda is usually the internal hard disk, but check anyway.


Trying to install Gametree Linux on Ubuntu 14.04, error when opening

What is happening?

As you can read on my comment to your question, this problem is caused by a non matched python version between what the program needs and what is installed. By default, Ubuntu 14.04 comes with Python 2.7 that isn't supported by the Gametree installer. So, what can you do? Install Python 2.6 on Ubuntu using pyenv. So, read these instructions:

Installing pyenv

pyenv has a automated installer that can bypass a very tricky installation. To use this, just type on your shell:

$ cd ~
$ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash

This will download and run the pyenv automated installer. Follow the instructions and, at the end of the process, update the pyenv db:

$ pyenv update

Installing Python 2.6 using pyenv

After the pyenv install you will be able to install and run different versions of Python on your system. The version that you will need is Python 2.6, so we will setup this. Using the terminal, type:

$ pyenv install 2.6.9 && pyenv rehash

This will install the last 2.6.x version of Python on your system. Now, we need to make this the default version of Python on your machine to make you able to install Gametree.

Setting up Python 2.6 as system default

This is very simple to do using pyenv. Just type at your shell:

$ pyenv global 2.6.9

Now you should be able to install Gametree without (maybe?) any problems.

Reverting back

After the installation I recommend that you revert the default Python version to your previous sysdefault:

$ pyenv global system

If you still have problems, please, provide feedback and I will update my answer.


fast move window in ubuntu with keyboard

Not sure if this is what you want, but these shortcuts have made my life a lot easier:

Maximize left/right/fullscreen = Ctrl+WindowsButton+(left/right/up arrow)
Move Window to different workspace = shift+Ctrl+alt+(arrows)
Swich workspace = ctrl+alt+(arrows)


How to make a patched DSDT work in 12.04?

A member of the community has described how to do this using grub rather than having to rebuild the kernel with the DSDT override config options enabled, so this may be an easier way to do it, see:

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1045690

Note that the Ubuntu kernel team disabled the use of DSDT override because it is theoretically possible to damage you machine if it is mis-configured.  Also, one can introduce security issues by creating AML that can access memory with kernel privileges. Finally, with a modified DSDT using the DSTD override config option the kernel will be marked as tainted and one will get little or no support from the kernel team with a tainted kernel.


FOR GDM GDM LOGIN MANAGER

Add the PPA repository and Update

sudo apt-add-repository ppa:antonio.chiurazzi/ppa && sudo apt-get update

Install the Ubuntu  Face Authentication /  Face Recognition Library

sudo apt-get install pam-face-authentication

Tweak and Edit The System
Now to add the face authentication module to GDM, Ubuntu's default login-manager:

sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/gdm
sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/gnome-screensaver

Depending on your webcam model/make you may need to install and add libv4l  to preload:
Create the file /etc/ld.so.preload

Paste in the path to the v4l1compat.so file commonly found in /usr/lib/libv4l

Open "Face Trainer" (Application > Other), system will scan your face and add to database so that the system recognize your face while logi

Go  to  System > Administration > Users and Groups, change the password to Asked to login

Go to System > Administration > Login Screen, choose "Show the Screen for choosing who will log in", whis action will disable automatic login.

Done, you can  logoff  the system and test face authentication login in your ubuntu.

http://www.omgubuntu.co.uk/2010/09/login-to-ubuntu-using-your-face/

and

http://www.ubuntubuzz.com/2011/05/face-authentication-face-recognition.html

check these site you will get more info


ssh-add -l Error connecting to agent: Connection refused

This issue seems to be fixed in October 2018 update (version 1809) (GitHub issue).

However you may have not installed this update yet, because October update was postponed and will be released on November 13, 2018 (Microsoft support page).

UPDATE (2018/12/16): I've applied October Update and confirmed that this issue has been fixed.


So I solved this error by going to the

nano /etc/networkmanager/networkmanager.conf

And changing the false to true and changed

nano /etc/networkmanager/systemconnections/my wifi

[ipv4]
method=auto

Then did a ifconfig cause I was previously was running  a vpn with a Google 8.8.8.8 - 8.8.4.4 nameserver
And I had this

 eth0

 Lo: active

 Tun0: active

 Wlan0: active

The thing is, it said I had a internet connection but I wasn't getting a connection to any webpages.
This was the main problem !

Ifconfig tun0 down

Then I ran the

service network-manager restart

I ran this just for precautions

apt-get install nscd
/etc/init.d/nscd restart

The name service cache daemon


Mapping shared folder on Ubuntu server guest through rc.local

One of the benefits of using Virtualbox is ability to add guest-additions to the host making it possible to interact seamlessly between host and guest OSes.

To set this up add the guest additions via either the command line for Virtualbox installs using the official repo, or from the oracle site if using .deb files to install.

Now to setup folder sharing we need to:

Add the guest additions as mentioned earlier
Add the desired folder from:

virtualbox settings menu for the guest OS in question, or

from the the devices menu from the launched VM

Select the options:

Auto-Mount and Make -Permanent

In the guest Ubuntu OS add your user to the group vboxsf:

sudo usermod -aG vboxsf $USER

Restart Ubuntu so the new group addition gets picked up
And note the convention is to name the folder with a "sf_" so look for a file named like so sf_******** in the /media folder. Example: /media/sf_vbox_share

You don't need to manually mount that shared folder, that's what Virtualbox Guest Additions are for.


How to open a specific application like macOS `open -a`?

You can specifically use your desired program's name (if it's able to be used as a command line tool).

For example, urls:

firefox duckduckgo.com
chromium-browser askubuntu.com

PDF:

evince foo.pdf
okular bar.pdf

Images:

gpicview foo.png
feh bar.jpeg

Texts:

gedit foo.txt
mousepad /etc/config
leafpad bar.xml

Video/Music:

mpv  foo.mp3
vlc  bar.mp4

If you want the program to be run detached from the terminal then this is the way that I prefer doing it:

nohup program args &

For example:

nohup firefox askubuntu.com &

Remember that you can always redirect the outputs as usual, e.g. :

nohup firefox duckduckgo.com &> /dev/null &


Take a look at man zcat

You will see that they are the same:

  On some systems, zcat may be installed as gzcat to preserve the original link to compress.

And what they do, which is uncompress a compressed archive and write the entire contents to stdout ie the terminal window.

This is rarely what you want.

$ ls -l Py*
-rw-rw-r-- 1 zanna zanna 20566643 Aug 17 17:12 Python-3.5.2.tgz
$ zcat Py* > huge-file
$ wc huge-file
1859226  7277134 78458880 huge-file

However you might use it to read some old system logs that have been compressed like so:

$ sudo -i
# zcat /var/log/dpkg.log.2.gz | less

But as @Serg points out, there is also zless so this is a Useless Use of cat:

# zless /var/log/dpkg.log.2.gz

You could also redirect (>) the output to a file in these examples because it is so long. Then you could read it in your favourite text editor that allows easier scrolling and searching...

# zcat /var/log/dkpg.log.2.gz > old-dpkg-log

Otherwise, zcat leaves the original file alone and doesn't save a new file or directory, so it provides a way you can look inside an archive without creating any clutter.

You might find a good use for it in a script... :)


Okay, I was just narrowing down solutions here, because there are some known solutions for trackpads with similar "non-clicking" issues. Have you tried clicking on "System Settings", then "Software & Updates", then clicking on the "Additional Drivers" tab? Wait for it to search the available drivers, and enable any keyboard/mouse driver that needs to be installed. See if that works.


Boots to black screen with grub> but can only get exit to work AFTER many attempts

It seems to /boot/ partition is corrupt.
Try reinstall grub from livecd using command:
grub-install
For example:
grub-install /dev/sda


Create Desktop Shortcut for any Application ubuntu 17.10

This is the GUI-only approach:

Open Nautilus ("Files") and browse to Other Locations > Computer > /usr/share/applications
Search for the application you need (e.g. Firefox), select and copy with right click context menu

Paste that icon on your desktop

On first run select Trust and Launch on the message window

The launcher is now trusted and will be displayed with the application's icon


update-manager-text fails with error: AttributeError: 'UpdateList' object has no attribute 'pkgs'

Seems to be a bug. I can confirm it on my 14.04 LTS, 16.04 LTS, 17.10 and 18.04 LTS.

This bug 1385524 has long history - since 13.10.


Unity on Ubuntu 11.10 - The Dash Home button brings up the panel, but is empty

@shantanu How would I reinstall this?  I can do an apt-get remove unity, then apt-get install unity?  I did a complete reformat to make sure that it wasn't a one time thing but it's still happening.

@sanjayasanjuubuntu I need a reputation of 10 to post images on this site, but here is a link.  http://s13.postimage.org/t9m0rirxz/Screenshot.png


To install a package in Ubuntu you can easily just run the command

sudo apt-get install package-name

So for example to install the package apache2 you can use

sudo apt-get install apache2

This default installation method will install the latest version of package founded in your repositories.

So in order to install a specific version you should use the command like this:

sudo apt-get install package=version-number

So for example in case of apache

sudo apt-get install apache2=2.2.21-1ubuntu1

Same for other packages.

PS: Still you may face some problem in dependencies. To solve it you have also to install the same version of dependencies using the same method.

for example in case of apache

sudo apt-get install apache2=2.2.21-1ubuntu1 \
                     apache2.2-common=2.2.21-1ubuntu1 \
                     apache2.2-bin=2.2.21-1ubuntu1 \
                     apache2-mpm-worker=2.2.21-1ubuntu1


Automatically realign partitions from script in command line

parted has a script mode.

-s, --script
              never prompts for user intervention


How to change default launchers in the unity dashboard?

For a customized command & icon you'd need to create a custom .desktop & preferably place in a typical applications dir. like ~/.local/share/applications ; /usr/local/share/applications ; /usr/share/applications, (i'd use the 1st one

The Exec= line for your command, the Icon= line for the icon

You could try including in the .desktop a line like this, may help your .desktop show up in System Settings > System Info > Default applicatons > Music

MimeType=audio/x-vorbis+ogg;

If it doesn't, no matter. Open ~/.local/share/applications/mimeapps.list & in the [Default Applications] section create or edit this line, using the name of your custom.desktop

audio/x-vorbis+ogg=customname.deskktop


You can also run powertop to investigate where energy is used most. U can also use optimize option to see it produces less heath. But for permanent setting there is some work to do. pls google powertop.

sudo apt-get install powertop

Also install tlp as follows: sudo apt-get install tlp.

or install the package by hand: https://launchpad.net/~linrunner/+archive/tlp
then sudo tlp start.


mysql server backup using copying database files

We can rsync mysql database folder /var/lib/mysql to another server. Mysql versions should be same and server should be shutdown.


Is there any way to cancel background noise from being recorded into my microphone? Globally?

Echo cancellation in Ubuntu can be done by running:

pactl load-module module-echo-cancel


Unable to create user on Ubuntu Server with Ansible

I don't think ubuntu has a group named wheel, you can use

addgroup wheel

however it may be best if you what it is you are trying to accomplish.
Are you trying to add to the sudoers group? as this group is sudoers

usermod -aG sudo testuser1


According to the related Sourceforge thread, "Due to the Google API SDK for .NET not playing nice with mono, the plugin will not work with Linux".

That was back in 2014, but I can't seem to find anything saying otherwise. All other Keepass2 plugins I use in Ubuntu have Linux-specific PPA builds, and GoogleSync isn't one of them.


Frozen after wake up from suspension, Ubuntu 20.04

Have you changed the sleep setting in the BIOS? That worked for me (Ubuntu 20.04.02 LTS).

Reboot.
Press Enter at the "Lenovo" screen.
Press F1 to enter the BIOS.
Change "Config -> Power -> Sleep State" to "Linux".
Press F10 to save and reboot.

Prior to this, the LED on the laptop lid stayed solid red when I suspended. Now it pulses slowly (which is what I'd expect from owning previous Thinkpads).


Anything better than Cheese for video capture?

Guvcview aims to provide a simple GTK interface for capturing and viewing video from devices supported by the Linux UVC driver, although it should also work with any v4l2 compatible device.
The project is based on luvcview for video rendering, but all controls are build using a GTK2 interface.
Guvcview (since version 0.9.9) has a control only window, (from console: guvcview --control_only, --control_panel in newer versions), this allows image control on other apps, like ekiga, cheese, mplayer, skype...
Audio.
Guvcview audio support is based on the portaudio library, up until version 0.9.3 the blocking API was used for audio capture, since version 0.9.4 the callback method is used instead, this provides better performance, it is also the preferred method for the portaudio API.
All interfaces (ALSA, OSD, JACK, ...) supported by portaudio should be available in guvcview. Just make sure portaudio was compiled with the desired interfaces enabled.
UVC Dynamic controls.
The Linux UVC driver has an implementation for extension controls (these are vendor specific controls and are supported in the UVC spec.), they are called dynamic controls since they must be dynamically loaded into the driver.
Until today only logitech has supplied specs for their UVC webcam extension controls, these are supported by guvcview.
In new driver revisions admin rights are needed in order to add these controls to the driver, so there are basically two solutions:

start guvcview as root (using sudo) at least once per session, since version 1.2.0 you can do this with the option --add_ctrls avoiding the need to fully launch guvcview

install libwebcam this software has a udev script that should add the necessary controls to your logitech camera.

Install Guvcview to Ubuntu 12.04 via ppa
sudo add-apt-repository ppa:pj-assis/ppa
sudo apt-get update
sudo apt-get install guvcview


Set time limits for specific applications (such as games)

I just made the following script for this purpose. I named it timelimit:

#!/bin/bash

#timelimit - Set daily time limits for specific applications

#Licensed under the standard MIT license:
#Copyright 2013 Radu Rădeanu (https://askubuntu.com/users/147044/).
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

if [ $# -ne 1 ];then
    echo "Usage: `basename $0` APP_NAME"
    exit 1
fi

export DISPLAY=:0

app_name=$@
time_to_play_daily="2:30:00"  # channge as you wish; the format is: H[:M[:S]]
file="$HOME/.count_time_$app_name"

if [ -a $file ]; then
    if [ "$(head -1 $file)" != "$(date +%D)" ]; then
        echo $(date +%D) > $file
        echo $time_to_play_daily >> $file
    fi
else
    touch $file
    echo $(date +%D) >> $file
    echo $time_to_play_daily >> $file
fi

time_to_play_left=$(sed -n '2p' $file)

sec_left=$(echo $time_to_play_left | awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }')

function countdown
{
    sec_left=$(echo $time_to_play_left | awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }')
    local start=$(date +%s)
    local end=$((start + sec_left))
    local cur=$start

    while [[ $cur -lt $end ]]; do
        pid=$(pgrep -x $app_name)
        if [ "$pid" != "" ]; then
            cur=$(date +%s)
            sec_left=$((end-cur))
            time_to_play_left="$((sec_left/3600)):$(((sec_left/60)%60)):$((sec_left%60))"
            sed -i "2s/.*/$time_to_play_left/" $file
            # next line is useful only when you test from terminal
            printf "\rTime left to play with %s: %02d:%02d:%02d" $app_name $((sec_left/3600)) $(((sec_left/60)%60)) $((sec_left%60))
            sleep 1
        else
            break
        fi
    done
}

while : ; do
    pid=$(pgrep -x $app_name)
    sleep 1
    if [ "$pid" != "" ]; then
        if [ $sec_left -gt 0 ]; then
            notify-send -i $app_name "Time left to play with $app_name for today: $time_to_play_left"
        else
            notify-send -i "error" "Your time to play with $app_name has finished for today!"
        fi
        countdown $time_to_play_left
        pid=$(pgrep -x $app_name)
        if [ "$pid" != "" ]; then kill $pid; fi
    fi
done

Don't forget to make it executable:

chmod +x timelimit

Syntax:

timelimit APP_NAME

Important:

You can test this script in terminal, but it should be to run at system startup. To make it to run at startup, see How to run scripts on start up?
This script should be restarted at midnight if you don't turn off your computer at night. To do this you can add a cron job like:

00 00 * * * kill `pgrep -x timelimit` && timelimit APP_NAME

More about: https://help.ubuntu.com/community/CronHowto


Allow member of group to change password of others members of this group

try this:

In /etc/sudoers the item immediately following the equals is the user that the command will be allowed to execute as.

mike  ALL=(user group) /usr/bin/passwd


From what I can tell, your device is not officially supported.

https://wiki.ubuntu.com/Touch/Install

That being said, its always possible that it might work, or partially work on your phone. I wouldn't try it if you rely on this device. But if it's for fun, well, it's your call.