How to know the number of pins on my laptop's ram?

From this prompt, the key pieces of information to look at are:

Location: DIMM0
Size: 1024MB
Form Factor: SODIMM
Type: DDR2
Speed: 667MHz

The prompt tells you that you have a SODIMM module with a frequency of *667*MHz occupying the first slot in your motherboard. Since the speed is 667MHz, that likely coincides with the maximum support memory clock frequency for your motherboard.

The # of pins in a DDR2 SODIMM module is 200. For questions like this, I always consult with Google. All you have to do is plug in the relevant information (i.e type, form factor).

Note: check how many SODIMM slots are available, and the maximum memory supported by your OS, and motherboard BEFORE you purchase.

Tip: If you're using a 32-bit flavour of *nix, you're going to be limited to 4GB of RAM.


UEFI install of Ubuntu 16.04 only boots under dual/legacy mode

May be best to see details, use ppa version with your live installer (2nd option) or any working install,  not older Boot-Repair ISO:
Please copy & paste link to the Boot-info summary report ( do not post report), the auto fix sometimes can create more issues.

https://help.ubuntu.com/community/Boot-Repair

https://sourceforge.net/p/boot-repair/home/Home/

You can check if install is UEFI or BIOS. But how you boot install media UEFI or BIOS is then how it installs. The UEFI settings in UEFI/BIOS are only for the system once installed. Often best to have UEFI Secure Boot off, but then you have options to boot in either UEFI or CSM. CSM - UEFI Compatibility Support Module (CSM), which emulates a BIOS mode, only available with secure boot off.

But how you boot install media is separate. If Secure Boot is off, you should get two boot options for the live installer. One clearly UEFI and other just description of flash drive. My system has UEFI:PMAP or PMAP to boot live installer. The PMAP only is BIOS boot. Most use name or label of flash drive where mine had PMAP.

[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"

If using legacy/BIOS/CSM boot on a gpt drive, you need a bios_grub partition. For UEFI boot you need an ESP - efi system partition. Best not to use MBR(msdos) with UEFI. Windows does not allow MBR with UEFI, but Ubuntu will let you install that way. I suggest always using gpt now. The only time to use MBR, is if drive will have Windows booting in BIOS boot mode.

In UEFI you often have to turn on allow USB boot or full USB support or similar setting. If Secure Boot is on, USB boot not allowed as not considered secure, so allowing USB boot is a separate setting.


What happens when you make a hard link to a file in /mnt, and then unmount?

You cannot create hardlinks across mount boundaries.  You'll get something like:

ln: failed to create hard link ‘X’ => ‘Y’: Invalid cross-device link


Elantech touchpad not recognised on Kubuntu 15.10

I am using Ubuntu 15.10, not Kubuntu, but I was was able to get the touchpad functional by compiling a custom kernel with one change.  My understanding is that Kubuntu and Ubuntu really only differ in the Desktop Manager (KDS vs. Unity or GNOME) so I would think the kernel fix should work for you as well.

I am not a real expert either, but I found the guide to doing so here:

https://florisvanvugt.wordpress.com/2015/12/26/making-asus-ux305ca-touchpad-work-in-ubuntu/comment-page-1/#comment-17

I ended up pulling down the 4.4-rc8 kernel from the repo and building that (instructions via a different URL at the link provided) after making the one line modification and so far the touchpad is working as expected, tap, scroll, etc.

Hopefully this would be a solution for you as well.


alacritty is a terminal emulator. It's the drawing on your GUI that lets you do thing as if you were on the console.

tmux is a terminal multiplexer like screen that lets you run multiple terminal sessions within a single terminal but that can remain active even if you end your terminal application or connection.

You can connect to tmux from within alacritty or any other terminal emulator or ssh, etc connection. You can even connect to the same session from multiple terminals.

Start alacritty however you start it.
Type tmux attach || tmux new to attach to an existing session or start a new one.
Use tmux attach -t target-name || tmux new -s target-name to attach or create to a specific session.

Alternatively a script file:

~/bin/tmuxed:

#!/bin/bash
tmux attach -t MyFavSession || tmux new -s MyFavSession

Create a shortcut or edit the Alacritty menu entry to...

alacritty -e $HOME/bin/tmuxed

...to start alacritty with the tmux attach/new command automatically.


The libapache2-mod-ruby package is no longer available in Ubuntu 14.04. It was dropped in Ubuntu 13.10. From the changelog:

  Deleted in saucy-release (Reason: upstream project dead, requires substantial upstream port...)

You should disable or remove the module if you don't needed it (or look for other options such as building from source). To disable the module:

sudo a2dismod ruby
# or
sudo rm /etc/apache2/mods-enabled/ruby.load

Thanks to @eyoung100's comment, there's a new project started at https://github.com/mikeowens/mod_ruby. The old project, at https://github.com/shugo/mod_ruby, is clearly long dead.


How can I download my Ubuntu One data using a PowerMac G5, Mac OS X 10.5.8 (or a rooted Nexus 4 + remote fs)

Download the G5 powerPC image of Ubuntu here,
Make a bootable USB.
Boot to the live USB and install Ubuntu One.
Copy your files to another HDD/USB or dropbox.

Failing that find a friend with Windows/Ubuntu and use their computer to install Ubuntu One. You must act fast however as you only have until 31st July 2014 before file services are terminated (see this link).


How do i change to boot from host partition?

Welcome to Ask Ubuntu!
From what you have told us there is a fair probability that your /etc/fstab file uses the partition numbers (eg /dev/sdb1 etc...) to mount things correctly. See the manual for gdisk:
-s
Sort partition entries. GPT partition numbers need not match the order of partitions on the disk. If you want them to match, you can use this option. Note that some partitioning utilities sort partitions whenever they make changes. Such changes will be reflected in your device filenames, so you may need to edit /etc/fstab if you use this option.
To edit your /etc/fstab file boot into a live environment, mount sdb4, and edit with your preferred editor


How do you disable the global menu in digikam?

From subscribing to the bug, someone reports:

  Today I removed the package "appmenu-qt".
  All applications based on QT will start now without the global menu.
  All other apllications are starting with global menu.
  Digikam is working now, but I would like to have the global menu.


The swap partition wasn't mounted, something I discovered only after running testdisk and copying everything to another partition. I can only assume that was the issue, they were large files.


Not video player works at all Xubuntu 13.10

By default Ubuntu disables some 3rd party sources, which might include some video playback.

From the Settings Manager option in menu open "Software & Updates". Try to check "Software restricted by copyright" and "Proprietary drivers" - then go to Other Software to check software from "Canonical Partners" and "Independent" which is some third-party software as well.


Empathy logs into chat networks, without beeing started?

This is the default behavior of gnome shell and allows (at least in theory) for better integration with the new GUI.  You can log out of chat by using the selection box under your name in the top-right menu (change setting to unavailable).

Under 'preferences' in Empathy is a box marked 'Automatically connect at startup'.  If you uncheck this, Empathy should not sign you in to your chat accounts at log in.


How to install libmlt++3 version bigger than 6.0.1 (for kdenlive) ubuntu 18.04LTS

You can use packages from the “Kdenlive” team PPA:

sudo add-apt-repository ppa:kdenlive/kdenlive-stable
sudo apt-get install kdenlive

It provides both libmlt and kdenlive packages.

Update 2019-04-14: installation fails before 2019-04-13. I have contacted PPA owner about the issue and today it installs normally.


Problem in background transparency on Terminal

Did you try clicking on edit --> preferences and select the appearance tab and change the background transparent to none (solid color)?

Background Tab

Appearance Tab


How to lock Deluge's configuration files to prevent their modification?

Deluge only reads the conf files on startup so although you can prevent settings being saved to disk they will still be applied in code, until next restart. A file such as core.conf.new does not mean that the application has updated core.conf, it is simply a temporary file.

The only option would be to modify the ConfigManager code or use the development version of Deluge that has multi-user support but there is no time-scale for release.


Login Screen on 13.10 keeps looping back to login (XOrg/NVIDIA problem?)

The only way I found to get this issue corrected was to reinstall my nvidia driver and reboot my PC. I used the exact same installer I used when I did it the first time last month.

During installation the installer told me that some changes had been made; since the driver was originally installed that was not made. My nvidia and the installer offered to correct the issue the best they could. So it seems to me that some update Ubuntu pushes out is conflicts with the nvidia driver that then causes the login loop. So far all seems good.


It should be pretty safe to do what you did.

Usually, when an Ubuntu update needs to replace a configuration file, it detects if the file has been modified and asks you what it should do.

You can then choose to keep your version, and then the updater creates a new configuration file with extension .dkpg-dist which contains the (updated) configuration for the new package version (in your case nginx.conf.dpkg-dist).

You can then easily check which are the differences between the new config file and your custom one and decide if you want to incorporate them (usually a good idea to keep current with new defaults, security fixes, etc).

You can also choose to instead install the new version, or maybe some kind of option/default you use forces the "overwrite" without asking, but even then your customizations are not lost.

You'll find a nginx.conf.dpkg-old which contains a backup of your nginx.conf before the upgrader "overwrote" the configuration.


realtek wireless not functioning on Toshiba after installing 12.04

Do you have build-essential installed? You may have better luck with the later version of the driver: https://dl.dropboxusercontent.com/u/58267392/rtl_92ce_92se_92de_8723ae_linux_mac80211_0007.0809.2012.tar.gz


Is there a way to check which file has been taken biggest space?

You can use the du command, then sort the output:

du /some/path/ -h | sort -hr | head

The -h flag makes du use human-readable output (aka using K,M, etc. suffixes instead of simply spewing bytes). The -h flag for sort makes it sort such human readable numbers and -r sorts in reverse (descending order).

This will take a long time.


It will be something along these lines.  You might have to tweak this, as I don't use log.io.

Ideally, the server program would be capable of receiving its listening sockets as already-open file descriptors.  That would make it easier to use with several service management systems.  It does not, however.  Hence the tricky ordering and dependencies.  This is something that you might want to take up with the authors of the program.

# log.io-server.service

[Unit]
Description=log.io server
Documentation=http://askubuntu.com/a/822099/43344
After=network.target

[Service]
Type=simple
Restart=always
# Some people use "logio" as the name of the dedicated user account.
User=ubuntu
ExecStart=/usr/local/bin/log.io-server

[Install]
WantedBy=multi-user.target

# log.io-harvester.service

[Unit]
Description=log.io harvester
Documentation=http://askubuntu.com/a/822099/43344
# This is because the server's socket is not opened early.
After=log.io-server.service
# Starting this will auto-start the server as well.
Wants=log.io-server.service

[Service]
Type=simple
Restart=always
# Some people use "logio" as the name of the dedicated user account.
User=ubuntu
ExecStart=/usr/local/bin/log.io-harvester

[Install]
WantedBy=multi-user.target


How to downgrade from 19.10 beta to mainstream 19.10?

As @jake stated, it automatically moved to the stable branch when 19.10 came out.


Are /proc/sys/net/ipv4/icmp_echo_ignore_all and net.ipv4.icmp_echo_ignore_all equivalent?

Yes, see man sysctl (emphasis mine):
sysctl is used to modify kernel parameters at runtime.  The parameters available are those
listed under /proc/sys/.  Procfs is required for sysctl support in  Linux.   You  can  use
sysctl to both read and write sysctl data.
It depends on what you want to do. For one-off changes, I suppose it makes no difference. For maintaining a configuration, /etc/sysctl.conf and /etc/sysctl.d are much more convenient.


What in the world is wrong with my Ubuntu Touch app?

Your .desktop is hard-coded to look for your QML files in /usr/share/twobuntu-app.  Instead, make your Exec line:

qmlscene $@ twobuntu-app.qml


Go to System > Administration > Computer Janitor. You can find all the packages that can be removed.

But, I am not sure whether it happens in 10.10


I found the solution, I tired to change the permissions of the glassfish folder and worked for me. The cmd to change the permissions is sudo chmod -R 777 /path-to-Glassfish-folder


The print statement is gone in Python 3 and was replaced with a print Function.

Take a look at: https://stackoverflow.com/questions/826948/syntax-error-on-print-with-python-3


how to change xyz@abc where i need to change xyz when terminal starts

What you see (xyz@abc) is the bash prompt:

xyz is the username
abc is the hostname

You can tune it by modifying the variable PS1 in the file ~/.bashrc. You may see the Ubuntu documentation: Customizing Bash Prompt.

Simply open ~/.bashrc file in a text editor like nano, create new line filled with a copy of the PS1 definition. For your need, you will replace the \u username tag by coco if you want to see coco in place of xyz.

Inside of ~/.bashrc:

if [ "$color_prompt" = yes ]; then
    #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]coco@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    #PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    PS1='${debian_chroot:+($debian_chroot)}coco@\h:\w\$ '
fi

Some readings:

How to: Change / Setup bash custom prompt (PS1)
.bashrc PS1 generator


Check your internet connectivity. Try ping www.google.com to see if it's working correctly.
Try to check / change your DNS. To do this, follow the answers from this question: What is the proper way to change the DNS IP?


how to change root pass word in ubuntu 16.04 LTS on SAMSUNG Linux On Dex

From googling the default password seems to be secret. See here, you have to scroll down a bit but it says that the sudo password for Linux on DeX is secret.

Afterwards you can do sudo passwd root (NOT sudo su passwd root, not sure what su is doing there) to change password of root user.

Hope this helped!


installing ubuntu 14.04 theme from zip file?

It works well enough here. Perhaps try the following:

sudo apt-get install git
mkdir $HOME/.themes && cd $HOME/.themes
git clone https://github.com/baurigae/polar-day --depth 1

Then the tweak tool should be able to find 'Polar-day' in its listing. Below is a screenshot showing this on my own Trusty Tahr installation:

It is a bit of a pain that the theme is only released on git but easy enough anyway to get a copy...


Connection to ppa.launchpad.net not private?

It's because of the firewall of your ISP. I had the same issue, just use a VPN and check.


The default signal sent by killall is SIGTERM
The following command uses SIGKILL which sometimes is needed in order to kill a process:
killall -s KILL node

More info killall man

killall sends a signal to all processes running any of the specified
commands. If no signal name is specified, SIGTERM is sent.
Options:
-s, --signal
Send this signal instead of SIGTERM.


It's been quite a while since you asked, but I was having the same problem with an iMac and here's what I did:
I added the following line: options snd-hda-intel model=imac27_122 to the file /etc/modprobe.d/alsa-base.conf. Notice how I appended my mac's model to the end of the line. Perhaps you could try it, only changing your model.


After Ghostscript update 9.26 ,HP printer will not print

Answering my own question: By updating (on 6/3/19) using: $ sudo apt-get update and following this with: $ sudo apt-get install ghostscript,  the printer works well.  As a check, I backdated ghostscript to 9.18 and then used the Software Updater and this time the update worked the printer well, which it didn't the previous half dozen or so times that I used it. It seems Ghostscript has finally gotten the update fixed.


How to remove fade effect when "Hiding all normal windows" with CTRL+ALT+D shortcut (show desktop)?

Similar functionality of hiding all windows and showing the desktop is right now provided by several plugins: Show Desktop, Fade to Desktop and Ubuntu Unity Plugin, that seem to conflict with each other. Among those you'd of course choose Unity Plugin if you are using Unity, but it has no configurable option to control the fadeout.

More about the current status of the problem an proposed fixes here - https://bugs.launchpad.net/compiz/+bug/1063171 and here - https://bugs.launchpad.net/unity/+bug/1067534.

The simplest workaround I have found so far that allows to achieve the requested effect is to go to Ubuntu Unity Plugin -> Switcher and disable Show minimized windows in switcher in CompizConfig Settings Manager. Obviously not a very elegant solution, but those like starting showdesktop after unityshell with gconf, proposed in bug 1067534 have been explicitly forbidden in bug 1063171 and will remain such until Unity 7 or compiz 0.9.9.0.


the only way to get flashplayer working on linux now is to install chrome or chromium which has a built in plugin. Adobe don't directly support linux anymore for flash (or much else)


How to save GNOME Terminal contents with ANSI escape codes?

Unfortunately, l0b0 the answer out of the box is: This is not possible.

There are two ways you can attempt to rectify this, by running script at all times on your terminal and logging all output. Open up gnome-terminal, go to Edit->Profile Preferences, then the tab Title and Command and for your custom command use this:

bash -l -c 'script -q -c bash $HOME/sessionlogs/$BASHPID.sessionlog.$(date +%Y%m%d-%H%M).txt'

Make sure 'sessionlogs' exists under $HOME.

The other way has been removed and added as a second answer on this question.


Create USB installer to install Ubuntu from the command line?

Have you tried with # dd if=path/to/image.iso of=/dev/sd#  ?


I am having  Sony Vaio ( installing Ubuntu 12.04 ) and my problem solved following this link

http://ubuntuforums.org/showthread.php?p=11910629#post11910629


So the best way to look at this is the cumulative stats for all the CPUs. I just ran the following:

cat /proc/stat | grep "cpu "; sleep 1; cat /proc/stat | grep "cpu "
cpu  72793 633 14979 2271004 2783 0 517 0 0 0
cpu  72794 633 14980 2271403 2783 0 518 0 0 0

The change between the two sets of results is the number of USER_HZ consumed.  So, I get

user: 72794 - 72793 = 1

nice:  633 - 633 = 0

system: 14980 - 14979 = 1

idle: 2271403 - 2271004 = 399

iowait: 2783 - 2783 = 0

irq: 0 - 0 = 0

softirq: 518 - 517 = 1

steal: 0 - 0 = 0

guest: 0 - 0 = 0

guest_nice: 0 - 0 = 0

So the total USER_HZ consumed is 1 + 0 + 1 + 399 + 0 + 1 + 0 + 0 + 0 = 402.  This is for a 4 thread machine, so that comes to ~100.5 USER_HZ per CPU, which is about right for some statistical sampling on a 100Hz jiffy clock. A longer sample period will lead to a closer result to the jiffy clock rate.

You can do the same for all the n CPUs in a system, cpu0.. CPUn-1.  Just compute the delta of the stats between each sample period, sum up the deltas and it will invariably be roughly equal to the number of CPUs x jiffy clock rate.


Ubuntu 13.10 bootable USB shows black screen with blinking cursor only

I've downloaded the 32 bit version of Linux Mint and it worked. Used Universal USB Installer to create bootable USB. I guess every 32 bit version of Linux will work


What's this large filesystem mounted in /media in Ubuntu running in VirtualBox?

That large file system belongs to your host OS since you set up a shared folder, this is how Virtualbox names its shared folder sf_<name_of_shared_folder>. See my image below:

See my df -h run from Virtualbox:

george@george-VirtualBox:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           396M  6.1M  390M   2% /run
/dev/sda3        37G  7.9G   27G  23% /
tmpfs           2.0G  216K  2.0G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/loop0       29M  371K   27M   2% /mnt/vfs
/dev/sda1       1.9G  107M  1.6G   7% /boot
/dev/sda4        25G  2.0G   22G   9% /home
leap            909G  691G  219G  76% /media/sf_leap <-- from host OS, that my Hard drive use %
tmpfs           396M   40K  396M   1% /run/user/1000

Except:

  With Linux guests, auto-mounted shared folders are mounted into the /media directory, along with the prefix sf_. For example, the shared folder myfiles would be mounted to /media/sf_myfiles on Linux and /mnt/sf_myfiles on Solaris.


How do I fix the automounting of USB drives after installing Openbox on Ubuntu 16.04?

Here is an easy solution that worked for me.:
  https://github.com/six-k/automount-usb

I spent a long time trying alternatives.


How to increase my Ubuntu Memory from 4Gig to 16G

In VirtualBox select the Ubuntu guest OS.
In the VirtualBox toolbar click the yellow gear Settings icon.
In the left pane select System.
Select the Motherboard tab.
Move the Base Memory slider which controls the amount of memory provided to the virtual machine from 4GB to 16GB.

Click the OK button in the lower right corner.

The steps for changing the base memory of the guest OS are similar for VMware and Windows Virtual PC. As a rule of thumb the base memory allocated to the guest OS should not exceed 50% of the available physical RAM. If you are running multiple guest OSs at the same time, the base memory allocated to all of the currently running guest OSs together should not exceed 50% of the available physical RAM. If you assign too much memory to the virtual machine, the machine may might not start.


Creating Ubuntu bootable disk in Windows using my phone

No you cannot safely proceed. While HTC phones usually only mount the SD card, rather than their own storage, you will definitely format whatever storage device you currently have mounted. That means, even if you don't remove the OS itself, you will lose data - and most likely data you wouldn't want to lose.
I recommend getting an actual USB drive (4GB stick minimum), which should be available at really low pricing nowadays.


Install Ubuntu 12.10 on Windows Using Windows Installer

A Wubi-installation is rather simple:

download (in Windows) the installer and excecute it
the installer does it's thing and downloads your ubuntu-system
Let the proces run until it's finished
restart your computer and select in a tekst-mode Ubuntu to start up
enjoy Ubuntu ! (first run updates before you do anything else)

This is the easiest way for having Ubuntu with the WUBI-method.

A side note: a Wubi-installation isn't as powerfull as a full (dualboot) installation of Ubuntu. But it gives you an impression of what to expect. Advisable is to do a dualboot for having Ubuntu at it's full speed. Another downside is: when Windows breaks up, you lose your Ubuntu-installation as well (keep in mind).


Tiling window manager with multimedia key support out of the box

I managed to get it working. I just appended the following to my i3 Config file:

# Multimedia Keys
#increase sound volume
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+
#decrease sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%-
# mute sound
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle


auth.log growing huge due to suspend.target

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Is the recommended way of preventing hibernation and sleep by debian. To get around the problem with /var/lib/auth.log growing to massive sizes, edit /etc/logrotate.d/rsyslog to add a maxsize 10M:

/var/log/syslog
{
    rotate 7
    daily
    missingok
    notifempty
    delaycompress
    compress
    postrotate
        /usr/lib/rsyslog/rsyslog-rotate
    endscript
 }

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
    maxsize 10M
    rotate 4
    weekly
    missingok
    notifempty
    compress
    delaycompress
    sharedscripts
    postrotate
        /usr/lib/rsyslog/rsyslog-rotate
    endscript
}

You may also want to add a logrotate.timer to /etc/systemd/system in order to override the default one to run hourly instead of daily:

# /var/lib/auth.log was being filled to 7 GB due to hibernate.target being masked,
# which created a log entry very, very frequently. So /etc/logrotate.d/rsyslog was edited to set a
# maxsize of 10M for that log, and here we are going to run logrotate hourly
[Unit]
Description=Hourly rotation of log files
Documentation=man:logrotate(8) man:logrotate.conf(5)

[Timer]
OnBootSec=30s
OnUnitActiveSec=60m

[Install]
WantedBy=timers.target


Renaming files using mmv:

$ mmv '???-*' '#4'
       ^^^ ^    ^
       123 4    4

You could also match digits with range match:

$ mmv '[0-9][0-9][0-9]-*.txt' '#4.txt'
         ^    ^    ^   ^        ^
         1    2    3   4        4

(recursively rename files):

$ mmv ';???-*' '#1#5'
       ^^^^ ^    ^ ^
       1234 5    1 5

;  Expands to any number of directories (same as **/).
*  Matches any char zero or more times.
?  Matches any single character.
[] Matches a list or and a range of characters.
#  References to the nth wildcard char in the from pattern.


Install 32 bit from USB, not a COM32R, then no PAE, 64 bit doesn't work either

type "live" and hit enter. I had the same problem and it worked for me.

Source: http://ubuntuforums.org/showthread.php?t=2262661


KtimeTracker

:~$ apt-cache show ktimetracker

  Description: time tracker tool  KTimetracker is a time tracker for
  busy people who need to keep track  of the amount of time they spend
  on various tasks.  .  This package is part of the KDE PIM module.
  Homepage: http://pim.kde.org/

KDE-PIM & KDE & Kubuntu

http://userbase.kde.org/Kde-pim

http://www.kde.org/

http://www.kubuntu.org/

The KTimetracker manual from the KDE UserBase

http://userbase.kde.org/KTimeTracker

The KTimetracker Handbook

http://docs.kde.org/stable/en/kdepim/ktimetracker/


Try:

rfkill unblock all

..or what RobinJ mentioned, try the hardware switch on your laptop:


On 18.04 LTS you should install fdisk package to obtain /sbin/sfdisk (see packages.ubuntu.com for reference):

sudo apt install fdisk


what is the esp/efi partition?

The ESP (Efi System Partition) is a partition that contains, among other things, one or more bootloaders, which are loaded by the UEFI firmware upon startup, and which are necessary in order to boot an installed operating system;

  would i end up with a bricked computer that wouldn't even boot to UEFI/BIOS if it were to mistakingly get removed

If you have only one ESP and no other bootloaders installed, deleting it will make all of the installed operating systems unbootable until a new ESP or a bootloader is installed; however this has nothing to do with being able to boot into the UEFI; the UEFI is a stand-alone piece of software built-in into an EEPROM soldered on the motherboard (which makes the UEFI, much like the BIOS, something erasable only using dedicated tools), which is meant, among other things, to search for and load a bootloader present in the ESP or in the MBR of a drive.

  is it fixable if it does?

Yes, all it takes it's either creating a new ESP (using, for example, an Ubuntu Live DVD) and (as Rod Smith pointed out) reinstall the bootloader(s) in it or installing a bootloader (such as grub) in the MBR of one of the drives.


Sharefolder is not created on guest machine

I understood what was changed. On modern Ubuntu versions automatically created mount-points are in unsername subfolder of /media - that is /media/username (instead of simple /media).

So if you have installed VirtualBox guest-additions, setup auto-mount

and reboot the guest, then it should be shown as sf_mountpoint on the desktop (GNOME - left, MATE - right):

 or

and in the filemanager

 or

The link to official documentation - is 4 Guest Additions → 4.3 Shared folders → 4.3.2 Automatic mounting.


Problems to upgrade from 18.04.5 to 20.04 LTS, again!

The trick is to do this, in terminal...
sudo apt-get update
sudo apt-get upgrade
reboot
Then start Software Updater. Boom.


Can anyone recommend me a good to-do application?

You can try using 'NitroTask'. It is a simple, nice, and very useful To do list management apps.

It has these features, I was looking for a long time:

Simple addition and deletion of task
Theme support, include 5 themes. (awesome feature).
Task synchronization with Dropbox and Ubuntu one (Cool!!)
Multi Language support
Sort by Title, Date or Priority. (very handy if you have a long list)
Custom default background image support. (Can be used for killing boredom)

To install it, use these command by opening a terminal using Ctrl + Alt + T shortcut.

sudo add-apt-repository ppa:cooperjona/nitrotasks
sudo apt-get update
sudo apt-get install nitrotasks

 This is currently available for Ubuntu 11.10, 12.04 and 12.10

I think, you will enjoy this software.

Here is a screenshot below:


Why aren't my animated .gif images animated?

OP fixed the problem, was with privoxy

  privoxy settings are meant to filter out gif's :: FIXED


The problem seems to be that "unknown".

Here says the same as you said you have, install gnuplot-x11 : Not able to get graphs on screen with gnuplot

Maybe trying to do a reconfiguration of the package?

sudo apt-get purge gnuplot*
sudo apt-get install gnuplot-x11


Since the bluetooth adapter is an Atheros AR3012 it might suffer from a bug that will cause it to sometimes fail to load firmware during a cold boot.  A workaround that has worked for me is to blacklist ath3k with echo "blacklist ath3k" | sudo tee /etc/modprobe.d/ath3k.conf and then you can use terminal after booting to load ath3k with sudo modprobe ath3k or you can gksudo gedit /etc/rc.local and add modprobe ath3k above the last line that has to be exit 0, save, exit gedit, and reboot


Can't fetch from old-releases.ubuntu.com

The website seems down.

There is a website that can check it for you:
http://www.downforeveryoneorjustme.com/old-releases.ubuntu.com

This could be permanent but I do not remember there to be a notice it would be taken down. Maybe it is down for maintenance.


Unable to resume upgrade from Ubuntu 20.04 to 20.10 after not enough free disk space error

Solution
sudo apt upgrade did not show anything, but sudo apt update did show a package that was kept back.
It was qtcam because the repo was stuck on xenial, I updated the repo to use bionic and I updated packages normally.
After that the upgrade UI was still not working but using sudo do-release-upgrade did work and I could upgrade to Ubuntu 20.10 normally.


Ubuntu on Laptop with switchable Graphics Card (AMD)

Ubuntu will not automatically choose the VGA for you, you should do it manually.

first, install AMD Catalyst by running this command:

sudo apt-get install fglrx

After that, reboot your computer. Then you can access the aticonfig command. First, it needs to be initialized:

sudo aticonfig --initial

reboot your PC again, then Run AMD Catalyst Control Centre and you will have the option of switchable graphics like Windows.

EDIT: it's always the best practice to install additional drivers using GUI because you can see if the driver is compatible with your system before actually installing it. Using the command line will install the driver anyway, it does not look if your hardware supports the driver or not.


Go to System Settings then to
Workspace Behavior / Desktop effects
and uncheck Screen edge
resulting in removing the blue shadow from the task manager.


Compiling c++ program with boost header file

When you include any headers files, Those library file should be present in either /usr/local/include or /usr/include on Linux.

It seems your lib is present in home directory, I would suggest you to run below command and then try to compile your code.

sudo apt-get install libboost-all-dev

Thanks.


This is done in their various VirtualHost files as thus:

<VirtualHost *:80>

        ServerName ensignremake.app
        DocumentRoot /var/www/html/ensignremake/public/
        DirectoryIndex index.php

    <Directory />
         Options FollowSymLinks
         AllowOverride None
    </Directory>

        <Directory /var/www/html/ensignremake>
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog /path/where/you/want/the/error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        php_value error_log "/path/where/you/want/the/error.log"

</VirtualHost>

Please note from the most upvoted answer on the link below that other php flags can be set for individual apps but not needed if already set globally in php.
And the right permissions must also be set for your custom locations or apache will write to it's own log files

Source:

https://stackoverflow.com/questions/176/error-log-per-virtual-host


How to set environment variables separated by dots

Thanks a lot for your reply AB. However i found a much better solution.
I simply added in the CATALINA_OPTS variable of tomcat in the file /usr/share/tomcat7/bin/setenv.sh:

export CATALINA_OPTS="-Dhost.name=localhost"

This worked exactly as I wanted.


Buzzy Sound-MSI B450 Mortar Ubuntu 18.04

Check this solution from ArchWiki. It worked for me on a MSI B450M Bazooka with Fedora 29 when I was listening to music while working and suddenly sound got garbled. This distro uses Pulse Audio, so I just needed to kill and restart the sound server.

pulseaudio -k
pulseaudio --start

The problem may come from the newer implementation of Pulseaudio server, which "uses timer-based audio scheduling instead of the traditional, interrupt-driven approach". There's an option to change this behavior permanently editing /etc/pulse/default.pa file, and changing the line

load-module module-udev-detect

to

load-module module-udev-detect tsched=0


OverGrive not launching after install [previous board answers not solving issue]

This worked for me:

pip install --user --upgrade oauth2client

Wim


The utility update-initramfs looks in var/lib/initramfs-tools. You will find an entry for that old kernel there. Removing it:

sudo rm /var/lib/initramfs-tools/4.4.0-13-generic

will get rid of that error

(the locale issue is something else entirely...)


Rhythmbox - Can't add music from other harddrive to playlist

I store my music in a separate drive as well.  Go to the Music part.  Select the song you want to add. Click Edit -> Add to Playlist.  The default is New Playlist.  You can rename it after you add the first song.  Go to the next song, click Edit > Add to Playlist.  This time the playlist you created for the first song should be an option.  Add it there.  Keep doing this until you have the songs you want.


What are Kernel Version number components (w.x.yy-zzz) called?

Calling w the version, x the major revision and y the minor revision is semantic versioning using change significance. Linux hasn't used that semantic versioning in a long time. Until 2003, Linux used odd-even versions (odd numbers are unstable, even numbers are stable). And then came 2.6, which lasted a geological age in software terms (till 2.6.39, 8 years).

Then, pretty much arbitrarily, Linus bumped the version to 3.0. And that ended all of that semantic versioning's applicability to Linux versions. And when 3.20 was due, Linus switched to simply incrementing w whenever x got large enough that he ran out of fingers and toes to count it.

So, now, the kernel version is just w.x, the y from upstream indicates a patch released - Ubuntu just keeps it 0, and z, as already noted, is the ABI number.


The easiest thing to do is:

Remove your existing Chrome icon from the Unity launcher
Open the Unity Dash and make it non-maximized

Type "chrome"
Drag the Chrome icon to your desktop
Right-click on the Chrome icon on your desktop and choose "Properties"
Modify "Command" to insert --scroll-pixels=50 before %U and close the window
Move the icon from your desktop to some folder (where it will stay)
Drag the icon from the folder to your Unity launcher


According to betblocker.org:

  Please remember that once the tool is activated you cannot remove the restrictions until your selected restriction length has expired.

Only they can tell you what that means.

Instead of circumventing the software, have you considered if there is an option to make your Facebook or YouTube interactions less impeded?  Maybe you can provide feedback by contacting betblocker and see if they can work on helping you, and others, in similar situations.

In the meantime, you can investigate which packages you do have installed (sudo apt list --installed or sudo dpkg -l).  You can use grep to filter the output.  grep is CaSe SeNsItIvE by default.

Examples:

sudo dpkg -l | grep bet
sudo dpkg -l | grep Bet

Once you find the name of the package, it can be removed with apt, or dpkg:

sudo apt remove NAME
sudo dpkg -r NAME

If you cannot find any packages, you can look through the list, without using grep, and see if you find any suspicious packages.  Don't go removing random packages, but you may see something glaring.  Double-check before you remove anything, and if you do, back everything up.

If you have the original package (.deb), you can use dpkg-deb to inspect the package file, which contains data such as the name, and files that it installs.  I downloaded the latest, so it could be different:

$ dpkg-deb -f /tmp/bet-blocker_1.0.0_amd64.deb
Package: bet-blocker
Version: 1.0.0
License: SEE LICENSE IN LICENSE.md
Vendor: Komshita <komshita@gmail.com>
Architecture: amd64
Maintainer: Komshita <komshita@gmail.com>
Installed-Size: 269983
Depends: gconf2, gconf-service, libnotify4, libappindicator1, libxtst6, libnss3, libxss1
Section: default
Priority: extra
Homepage: http://bet-blocker.com
Description: BetBlocker
  Bet Blocker, blocks unwanted websites

$ sudo dpkg -r bet-blocker

As noted, you'll need to make adjustments to your /etc/hosts in addition to removing the package.


No certificate files inside of /usr/lib/ssl

I suspect that if you create the folder /etc/ssl/certs/java/, it will allow the sudo update-ca-certificates to complete.  It looks like it just isn't able to create the file because it's parent folder doesn't exist.


tomcat7 installation fails with error code 1

Please try this solution if you can start installation from scratch:

sudo aptitude purge tomcat7
whereis tomcat7
sudo rm -rf /etc/tomcat7 /usr/share/tomcat7
sudo apt-get autoremove
sudo apt-get autoclean
sudo aptitude install tomcat7


Ubuntu 12.04 - default Radeon driver does not work at all

https://help.ubuntu.com/community/BinaryDriverHowto/ATI

Installation

NOTE: If you are switching from another OEM's hardware, NVIDIA for instance, you must uninstall the driver for that hardware before installing the AMD/ATI driver.

Using the Ubuntu repositories (recommended)

The easiest way to install binary drivers is to use the built in Hardware Drivers manager in Ubuntu.

In Ubuntu 10.10, this is found under System -> Administration -> Additional Drivers.

After the fglrx driver is installed, reboot your system and login. To check whether the fglrx driver is working, open a terminal and type:

fglrxinfo

If fglrx is installed and working well you should see an output similar to:

fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 4300/4500 Series
OpenGL version string: 3.3.11399 Compatibility Profile Context

Using the Ubuntu repositories (alternate command line method, including hardware acceleration)

For users who find that the Additional Drivers method does not work correctly, the driver may also be installed from the Ubuntu repositories using the terminal. Hardware acceleration can also be activated, which some users may find helpful. The hardware acceleration piece has been tested on Ubuntu 12.04 Precise Pangolin.

(Note: this method will not work for these legacy cards and the legacy driver for them will not work with xserver. If you have one of these cards, you will have to use the default open source driver or purchase a different card. Unfortunately, this list is not exhaustive and some cards included in this list may also refer to products sold under different model names.)

(Note: If your machine has hybrid Intel/AMD switchable graphics, please consult the Ubuntu Forums thread here first. At the time of writing, the method described below MAY NOT WORK for Intel/AMD switchable graphics. If you have an Intel/ATI hybrid, it is advisable to wait until further instructions are available.)

Save backup copy of xorg.conf in case this doesn't work.

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK

Remove/purge current fglrx and fglrx-amdcccle (If you have used a method outside of aptitude, apt, Software Center or Synaptic, follow the other party's instructions for removal.)

sudo apt-get remove --purge fglrx fglrx-amdcccle

For some users, the fglrx-updates and fglrx-amdcccle-updates packages do not work. If you attempted to install them, also do

sudo apt-get remove --purge fglrx-updates fglrx-amdcccle-updates

Reboot
Install the driver.

sudo apt-get install fglrx fglrx-amdcccle

Generate a fresh xorg.conf BEFORE REBOOTING!

sudo aticonfig --initial

If you are using multiple AMD/ATI graphics cards, use

sudo aticonfig --adapter=all --initial

Reboot again.
Use the Catalyst Control Center to make final adjustments to your monitor setup.

If, after rebooting, you are presented with the message "Could not apply the stored configuration for monitors", do not be alarmed. It simply means that you will have to use the Catalyst Control Center to configure your monitors as you should even in the case where this warning is not shown. This most likely to happen with multiple monitor applications (particularly if the monitors are of different sizes) and multiple graphics card applications.

If you cannot get the Catalyst Control Center to launch from an icon, try from the terminal:

gksudo amdcccle

To get hardware acceleration (tested on 12.04 Precise Pangolin), you need to add four more packages.

sudo apt-get install xvba-va-driver libva-glx1 libva-egl1 vainfo

You can test to see if you have installed them correctly thus:

sudo vainfo

When installed correctly, you should get the following:

libva: VA-API version 0.32.0
Xlib:  extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
vainfo: Supported profile and entrypoints
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD


Numix-circle icons not effective in Unity-greeter

You can install Ubuntu Tweak and change login theme and icon theme.
Download Ubuntu Tweak and run this command to install it:
sudo dpkg -i <download_path>/ubuntu-tweak_0.8.7-1-trusty2_all.deb

Once you have installed it, go to Tweak tab and select Login settings. To edit this area you have to Unlock setting (click relative button and insert password). Now you can select Numix-Circle icons.

I hope this will help you.


LUbuntu installed "successfully" and now blank screen on boot?

The Intel graphics drivers are not installed by default, that's why it causes blank screen.

Hold Right Shift key during boot to access Grub menu, then press e key to edit commands.
Look for the words quiet splash on screen, use arrow keys to navigate and add nomodeset just after quiet splash(leave a space before and after nomodeset).
Press F10 to boot into a low resolution desktop.
Now use Synaptic package manager(included in Lubuntu 16.04) to search and install xserver-xorg-video-intel and reboot.

Edit: You may need to enable Restricted, Multiverse and Canonical Partners options in Software & Updates to get access to the Intel drivers.


Its the same hotkey in both Unity and Gnome-shell

In Unity, press and hold Alt to display the Global menu - then press the corresponding shortcut key - for example Alt+F

In Gnome-Shell - likewise, use the same key-combination.


How does Ubuntu know my native language?

If you have an internet connection during install:

wget -O - -q http://geoip.ubuntu.com/lookup

For me this results in ...

<?xml version="1.0" encoding="UTF-8"?>
<Response><Ip>???????</Ip>
<Status>OK</Status>
<CountryCode>NL</CountryCode>
<CountryCode3>NLD</CountryCode3>
<CountryName>Netherlands</CountryName>
<RegionCode>05</RegionCode>
<RegionName>Limburg</RegionName>
<City>Roermond</City>
<ZipPostalCode></ZipPostalCode>
<Latitude>51.1927</Latitude>
<Longitude>5.9884</Longitude>
<AreaCode>0</AreaCode>
<TimeZone>Europe/Amsterdam</TimeZone>
</Response>

If you do no have one it will not show any default settings.

Not sure but if there is already a Ubuntu installed I would expect it to fetch those settings from the current installation too (ie. /etc/localtime) if there is not internet connection (not sure but seems logical to me ;) )


How to disable automatic updates on Kubuntu 20.04?

WARNING: Disabling Unattended Upgrades is NOT recommended for most users. Doing so may leave your system vulnerable.
Prerequisite: You need to know how to use a text editor and proper use of sudo before starting. If you are unfamiliar with those, then you really should not be trying to stop Unattended Upgrades yet.
This method won't damage your system.
Open a terminal and carefully edit the following config file: /etc/apt/apt.conf.d/20auto-upgrades
It looks like this:
    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Unattended-Upgrade "1";

Change both "1" to "0". Save and close.
In order to restore Unattended Upgrades, change both "0" back to "1".


Is it possible to have KDE 5.6 and Unity 8 side by side?

Yes, you can install them side-by-side. There will be an option to select a desktop at login. However, Ubuntu 16.04 only provides Plasma 5.5, not 5.6, so you would need to enable the Kubuntu Backports PPA.

If you only want the desktop, and not any of the applications, the kubuntu-desktop package will install everything you need. If you want essentially a Kubuntu system, install kubuntu-full.


How to install last version of unity in ubuntu 12.04

Sadly, there isn't the 7.10 package of Unity available in repositories, nor PPA's. Hence you should build from sources and backport the build dependencies, but still that doesn't assure you that your system will stay stable.


Installing ubuntu on a non activated version of windows

The Ubuntu installer does not see any operating system(s) on your hard disc(s) so it will advice to format the disc (wipe the disc and format it to ext4 if you choose ext4) and then to use the whole disc to install Ubuntu.

Only if you want to save anything that is currently on the disc you might want to back that up; but as you said: there is not OS yet.

So nothing to worry about :)


use cd to move to the directory (folder) containing the items you want to delete, and then use rm to delete contents. Refer to the manual entry for rm for more usage information: man rm


Panel keeps showing what it was showing during Logon/Unlock on Ubuntu 16.04

Switching Dash Blur in CompizConfig Settings Manager from "No Blur" to "Active Blur" and "Static Blur, then back to "No Blur" solved this issue.


Error running Master PDF Editor 4 - missing libQtSvg.so.4

After searching the web, I found how to install the shared library by installing the package libqt4-svg.  However, subsequently running masterpdfeditor4 caused a segfault core dump.  So, I installed some other KDE dependencies and then it launched fine.

(I just did sudo apt-get install konsole, but there is likely a way to only install the dependencies it actually needs)


If your concern is mainly to access Youtube and not about resolving the Flash problem, you can try HTML5 for Youtube.

In case of HTML5, YouTube doesn't need Flash and hopefully, your problem should be solved.

Recent versions of any modern browser should support HTML5.


How to create doc file using 'touch' command on terminal

Use the desired extension when you are using the touch command:

touch file_name.doc

or

touch file_name.ppt

Then open that file and input some data. It will be automatically changed into a valid office file.


Strange titles appear while in recovery mode

It's completely normal, nothing to worry about. It happens simply because recovery mode runs dialog window directly from the top terminal level, so all the kernel messages are directly shown on your screen, interfering with the dialog window. And yes, it's sometimes annoying, but hey - it's recovery mode, not the ordinary environment you will be working on daily basis.


If you're installing another package at the same time this error will occur.
 Make sure you are not using another package manager such Synpatic or Ubuntu Software Center.
If you're not then reboot will correct this problem.


“quickly tutorial ubuntu-application” not working

According to the comments of this answer the package quickly-ubuntu-template was missing. If you install the package quickly the package quickly-ubuntu-template is not installed because it is just recommended. You can see this with apt-cache show quickly. So you have to manually install that package.:

 sudo apt-get install quickly-ubuntu-template


Okay, I think launch csm should be disabled because this is legacy mode.
If you disable launch csm and it still wont boot, set up a live disk using startup disk creator, or unetbootin. From the live disk install linux boot-repair. (just google it) Run it and do the recommended procedures. Please let me know where you are at with this problem!


Problem when trying to install fpdb on ubuntu machine

Regarding BeautifulSoup and wnck, I managed to solve this problem by installing these two packages:

sudo apt-get install python-beautifulsoup
sudo apt-get install python-wnck

I didn't get errors for matplotlib/gtk and pylab, but I guess that's because I had already installed the Python packages listed on this wiki page before.


Linux uses CUPS, the Common Unix Printing System. It's most easily configured by pointing your browser to http://localhost:631/admin (Use your login userid and password when prompted). You should see:

Click on Find New Printers

You may also find help at https://www.cups.org/ or https://epson.com/Support/wa00821


Open Terminal (Alt+Ctrl+T), and enter this:

sudo -H gedit /etc/hostname

Enter your password, and then a file will open. Just change the name to the new hostname, and save the file. Do the same with the hosts file, by running:

sudo -H gedit /etc/hosts

Edit the name to your new hostname after 127.0.0.1 and save.

Restart your computer, and it should be done.

Edit: Use gksudo instead of sudo. It's safer.


Ubuntu 18.04 hangs at boot after running `nvidia-xconfig`

This worked for me:
At startup, press Esc. Right after the logo disappears press once, don't press it too many times to get to grub.
In the next window I had 3 options:
Ubuntu
Advanced options for Ubuntu
System setup

Choose Advanced options for Ubuntu.
Next, select:

Ubuntu with Linux *version* (recovery mode)
root
OK.

Press Enter once and type:
rm /etc/X11/xorg.conf
reboot

Worked fine. But now I have another question: I was not required to enter my root password, anyone could have altered my system. What can I do to protect root access?


Remove "Places" and "Applications" from Dash to Panel in GNOME shell on Ubuntu 18.04

Go to Tweaks > Extensions > Places Status Indicator --> Toggle this to off.

Go to Tweaks > Extensions > Applications menu --> Toggle this to off.


Try update system maybe new update will help. Maybe you havent updated system for long time. Also googling problem may help find slow fix.
I googled and found this is bug thats now beeing in fixing process so maybe even after month it will be fixed. U can help fixing by coding or commenting
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/605176
https://wiki.ubuntu.com/Testing/Laptop/Maverick/Reports/DellLatitudeE6510


Is it possible to have different GTK+ theme in Unity and Gnome Shell?

Building upon the previous answers:

For 11.10

#!/bin/bash

if [ "$XDG_CURRENT_DESKTOP" = "Unity" ]
then
  gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
  gconftool-2 --set --type string /apps/metacity/general/theme 'Ambiance'
  gsettings set org.gnome.desktop.interface icon-theme 'Faenza-Ambiance'

else
  gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
  gconftool-2 --set --type string /apps/metacity/general/theme 'Adwaita'
  gsettings set org.gnome.desktop.interface icon-theme 'Faenza'

fi

For 12.04 and 12.10

#!/bin/bash

if [ "$XDG_CURRENT_DESKTOP" = "Unity" ]
then
  gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
  gsettings set org.gnome.desktop.interface icon-theme 'ubuntu-mono-dark'
  gsettings set org.gnome.desktop.wm.preferences theme 'Ambiance'

else
  gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
  gsettings set org.gnome.desktop.interface icon-theme 'gnome'
  gsettings set org.gnome.desktop.wm.preferences theme 'Adwaita'

fi

Add this script to Startup Applications (Add => Command sh path/to/script).


How to shrink my NTFS (Windows 7) partition and expand my linux partition?

You can not edit the partition that you have booted with.
Use Gparted Live CD or simplt your Ubuntu installation medium (it has gparted). Boot from it. Run Gparted. Use GUI to do changes and press the Apply button. Remember, the process of applying can take hours and if you stop it prematurely you will have one of the partitions lost.


In cases like this, removing the program and reinstalling it may not achieve much if the issue is because a user inadvertently changes some feature, via the graphical user interface. In other words, some file in the user's home folder has been changed and that file is not replaced by removing and reinstalling the program.

Here, since the application is Kate, I ran find -iname "*kate*" from the home folder.

$ find -iname "*kate*"
./.config/katemetainfos
./.config/katesyntaxhighlightingrc
./.config/katemoderc
./.config/katepartrc
./.config/kateschemarc
./.config/katevirc
./.config/katerc
./.cache/khelpcenter/help/__en__kate__index.docbook
./.cache/kate
./.local/share/RecentDocuments/kate.desktop
./.local/share/kate
./.local/share/kate/anonymous.katesession
./.local/share/kate/sessions/Mine.katesession
./.local/share/kxmlgui5/kate
./.local/share/kxmlgui5/kate/kateui.rc
$

Renaming all these files, excluding those in ~/.cache, would remove all user-modified configurations. Then, by a process of trial and error, it should be possible to identify the problematic file.

In the present case, the user found that renaming ./.local/share/kate/anonymous.katesession to anonymous.katesession_old and restarting Kate restored the initial functionality albeit at a price of losing some settings.


Xubuntu 14.04 partial update hangs on boot

solution was something complety silly.  I had to remove my AMD video card.  It boots fine now using the integrated Intel Graphics.


Add to your .vimrc:

command D :normal iimport pdb; pdb.set_trace()^V ESC

Note:

That is indeed two is. Essentially this command does everything that you do when manually entering that text (press i to start insert mode, type the remaining text, etc.).
The ^V ESC means: Press CtrlV to get into verbatim mode, and then press Esc. This will enter Esc as a character (visible as ^[).

Now, in you can go to command mode and use the D command to have this text inserted:

:D

You can also map this to a normal mode shortcut, perhaps.

Instead of ^V ESC, which will bring you out of insert mode, you can add ^V Enter (same thing, press Enter instead of Esc) to go to a new line and remain in insert mode.


Network goes down and does not come back up on it's own

The solution was to run sudo killall dhclient.

It turns out that at one point this server was running with DHCP.

The /etc/networking/interfaces file was edited while the interface was still up, so ifdown -a didn't kill dhclient. When the DHCP lease expired, dhclient would run, attempt to get a configuration, fail, and reset the IP to a default configuration, taking the server offline.


According to an Ubuntu Forums thread there was a patch added to the ppa for network manager but it is no longer offered.

The page lists the following code however that you can try.

--- network-manager-openvpn-0.7.1~20090213+bzr14.orig/properties/auth-helpers.c
+++ network-manager-openvpn-0.7.1~20090213+bzr14/properties/auth-helpers.c
@@ -718,6 +718,7 @@
 static const char *advanced_keys[] = {
    NM_OPENVPN_KEY_PORT,
    NM_OPENVPN_KEY_COMP_LZO,
+   NM_OPENVPN_KEY_FLOAT,
    NM_OPENVPN_KEY_TAP_DEV,
    NM_OPENVPN_KEY_PROTO_TCP,
    NM_OPENVPN_KEY_CIPHER,
@@ -1005,6 +1006,13 @@
        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
    }

+   value = g_hash_table_lookup (hash, NM_OPENVPN_KEY_FLOAT);
+   if (value && !strcmp (value, "yes")) {
+       widget = glade_xml_get_widget (xml, "float_checkbutton");
+       gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
+   }
+
+
    value = g_hash_table_lookup (hash, NM_OPENVPN_KEY_PROTO_TCP);
    if (value && !strcmp (value, "yes")) {
        widget = glade_xml_get_widget (xml, "tcp_checkbutton");
@@ -1112,6 +1120,10 @@
    if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
        g_hash_table_insert (hash, g_strdup (NM_OPENVPN_KEY_COMP_LZO), g_strdup ("yes"));

+   widget = glade_xml_get_widget (xml, "float_checkbutton");
+   if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
+       g_hash_table_insert (hash, g_strdup (NM_OPENVPN_KEY_FLOAT), g_strdup ("yes"));
+
    widget = glade_xml_get_widget (xml, "tcp_checkbutton");
    if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
        g_hash_table_insert (hash, g_strdup (NM_OPENVPN_KEY_PROTO_TCP), g_strdup ("yes"));
--- network-manager-openvpn-0.7.1~20090213+bzr14.orig/properties/nm-openvpn-dialog.glade
+++ network-manager-openvpn-0.7.1~20090213+bzr14/properties/nm-openvpn-dialog.glade
@@ -935,6 +935,20 @@
                     <property name="position">3</property>
                   </packing>
                 </child>
+                <child>
+                  <widget class="GtkCheckButton" id="float_checkbutton">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="label" translatable="no">Use the _Float option</property>
+                    <property name="use_underline">True</property>
+                    <property name="response_id">0</property>
+                    <property name="draw_indicator">True</property>
+                  </widget>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="position">3</property>
+                  </packing>
+                </child>
               </widget>
             </child>
             <child>
--- network-manager-openvpn-0.7.1~20090213+bzr14.orig/src/nm-openvpn-service.h
+++ network-manager-openvpn-0.7.1~20090213+bzr14/src/nm-openvpn-service.h
@@ -43,6 +43,7 @@
 #define NM_OPENVPN_KEY_CERT "cert"
 #define NM_OPENVPN_KEY_CIPHER "cipher"
 #define NM_OPENVPN_KEY_COMP_LZO "comp-lzo"
+#define NM_OPENVPN_KEY_FLOAT "float"
 #define NM_OPENVPN_KEY_CONNECTION_TYPE "connection-type"
 #define NM_OPENVPN_KEY_TAP_DEV "tap-dev"
 #define NM_OPENVPN_KEY_KEY "key"
--- network-manager-openvpn-0.7.1~20090213+bzr14.orig/src/nm-openvpn-service.c
+++ network-manager-openvpn-0.7.1~20090213+bzr14/src/nm-openvpn-service.c
@@ -88,6 +88,7 @@
    { NM_OPENVPN_KEY_CERT,                 G_TYPE_STRING, 0, 0, FALSE },
    { NM_OPENVPN_KEY_CIPHER,               G_TYPE_STRING, 0, 0, FALSE },
    { NM_OPENVPN_KEY_COMP_LZO,             G_TYPE_BOOLEAN, 0, 0, FALSE },
+   { NM_OPENVPN_KEY_FLOAT,                G_TYPE_BOOLEAN, 0, 0, FALSE },
    { NM_OPENVPN_KEY_CONNECTION_TYPE,      G_TYPE_STRING, 0, 0, FALSE },
    { NM_OPENVPN_KEY_TAP_DEV,              G_TYPE_BOOLEAN, 0, 0, FALSE },
    { NM_OPENVPN_KEY_KEY,                  G_TYPE_STRING, 0, 0, FALSE },
@@ -640,6 +641,10 @@
    if (tmp && !strcmp (tmp, "yes"))
        add_openvpn_arg (args, "--comp-lzo");

+   tmp = nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_FLOAT);
+   if (tmp && !strcmp (tmp, "yes"))
+       add_openvpn_arg (args, "--float");
+
    add_openvpn_arg (args, "--nobind");

    /* Device, either tun or tap */

To apply this patch to the source of your current network-manager-openvpn plugin as follows:

mkdir ~/build-tmp
cd ~/build-tmp
apt-get source network-manager-openvpn
cd ./network-manager-openvpn*
wget http://onemyndseye.doesntexist.com/onemyndseye-ppa/patches/nm-advoptions-float.patch -O ./debian/patches/nm-advoptions-float.patch
echo "nm-advoptions-float.patch" >>./debian/patches/series
sudo apt-get build-dep network-mananger-openvpn
sudo apt-get install libglade2-dev devscripts build-essential
sudo dpkg-buildpackage

Good luck.


Open a terminal and add the missing key with below command

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 327574EE02A818DD

Then run

sudo apt-get update


grep regex pattern causes unexpected command behavior

Use this:

grep -rn "\$\('\|\"\)" /path/to/directory

Your problem is actually two-fold :

From grep's perspective, You are using the Extended Regex syntaces i.e. (, |, ) without escaping them (to treat them special) inside your Basic Regex pattern. To overcome this either escape all those to treat them special or use the -E option of grep.
Another problem caused by the above not escaping issue is that $() is the bash command substitution pattern, as you have not escaped the relevant characters bash was treating the pattern $() as command substitution. Note that the \\$() actually makes the command \ plus command substitution as first \ will make the second \ literal and the remaining command substiturion pattern will be left as it is.

Also note that -i is needless here as we are not searching alphabatic characters. You might be interested in printing the file names :

grep -Hrn "\$\('\|\"\)" /path/to/directory

Another thing is that you could get away without escaping $ (indicates the end of line) in this case becasue there are characters to match after $, as a result grep will treat it literally :

grep -Hrn "$\('\|\"\)" /path/to/directory


I tried multiple methods none of which removed the eclipse installation in /opt. So finally I manually removed the folder

aniket@aniket-Compaq-610:~$ cd /opt
aniket@aniket-Compaq-610:/opt$ sudo rm -rf eclipse

Doing this will uninstall eclipse. But it will still appear in the unity search. To remove it from search as well delete eclipse.desktop file from /usr/share/applications

aniket@aniket-Compaq-610:~$ cd /usr/share/applications/
aniket@aniket-Compaq-610:/usr/share/applications$ sudo rm eclipse.desktop

If you want to remove your existing eclipse settings execute

rm -rf ~/.eclipse/


Scene builder does not open in ubuntu 17.04?

Permisssion denied most likely means, you have to allow the file to be executed.

Open a terminal and use

cd /home/decoders/Downloads/

to change to the Downloads directory. Now type

chmod u+x JavaFXSceneBuilder2.0

to allow the execution of that file.


Can I remap keys from a specific keyboard in X11?

You could look at a tool like KeyFuzz, which will do exactly what you're looking for. The learning curve is a little steep at first, but with a little help from evtest (to find the scan and key codes for your specific keyboard), you can set up a custom remapping for just the one keyboard.
Notes:

The latest version of KeyFuzz (0.2 as of this writing) was last updated in January 2006, but the code still compiles just fine on Ubuntu 20.04. I speak from experience on this.

The evtest tool can be installed like this:
$ sudo apt install evtest

From there you can use it by calling the tool with sudo:
$ sudo evtest

This will give you something like:
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:   Sleep Button
/dev/input/event1:   Lid Switch
/dev/input/event2:   Power Button
/dev/input/event3:   AT Translated Set 2 keyboard
/dev/input/event4:   Video Bus
/dev/input/event5:   HDA Intel PCH Mic
/dev/input/event6:   HDA Intel PCH Headphone
/dev/input/event7:   HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event8:   HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event9:   HDA Intel PCH HDMI/DP,pcm=8
/dev/input/event10:  HDA Intel PCH HDMI/DP,pcm=9
/dev/input/event11:  HDA Intel PCH HDMI/DP,pcm=10
/dev/input/event12:  ThinkPad Extra Buttons
/dev/input/event13:  Integrated IR Camera: Integrate
/dev/input/event14:  Integrated Camera: Integrated C
/dev/input/event15:  Synaptics TM3289-002
/dev/input/event16:  TPPS/2 Elan TrackPoint
Select the device event number [0-16]:

Choosing a device will then print the keymap to the screen and pressing keys will then show individual details about each press:
Event: time 1612367786.809999, type 4 (EV_MSC), code 4 (MSC_SCAN), value 21
Event: time 1612367786.809999, type 1 (EV_KEY), code 33 (KEY_F), value 1
Event: time 1612367786.809999, -------------- SYN_REPORT ------------

With this, you can create your custom mapping document for KeyFuzz.


How to update libreoffice 6.3 to 6.4 via terminal

6.4 is not in the PPA yet. If you really want it then:

Download the archive with the installation packages (.deb) from the LibreOffice web site (https://www.libreoffice.org/download, in "Choose you operating system" select "Linux (64-bit) (deb)", then Download)
Extract the file you've just downloaded and install the .deb packages you get:

$ tar -xf LibreOffice_*_Linux_x86-64_deb.tar.gz
$ cd LibreOffice_*_Linux_x86-64_deb/DEPS
$ sudo dpkg --install *.deb

If there is an error about missing packages, issue a

$ sudo apt-get install -f

to install missing references or refer to readmes/README_en-US for further help.


ubuntu 11.10 install 4.4.3-0ubuntu2 package dependencies

Yes, ubuntu-desktop is extremely important, your system cannot function without it. This is a bug in the required dependencies of gnuplot, please report it on launchpad.net.


Failed to spawn bluetooth main process: unable to execute: permission denied

I had the same problem with the sixad package and instructions at the Ubuntu wiki for Sixaxis

$ sudo chmod +x /usr/sbin/bluetoothd

$ sudo service bluetooth restart

Fixed it for me. I'll take a look at the sixad package to see if I can find where the permissions were mangled.

EDIT

I think this happens when you try sixad --boot-yes. This will disable the newer v4 bluez Bluetooth stack in favor of the sixad driver based on bluez v3. You can only use one or the other, until sixaxis is supported by bluez v4.

I also needed to manually sudo hciconfig hci0 up after setting sixad to start at boot, as for some reason sudo hciconfig -a showed my bluetooth device as down. Need to investigate more.


This doesn't answer your exact question, but might be worth considering...

Require the 5 users to use a password, as normal. However, in order to log in they also need a one-time password for Google Authenticator's PAM module - which they'd get from a 6th user (their manager, for example). The 6th user would need to be present with them when they logged in, because OTPs only remain valid for a short time. The 6th user would also need Google Authenticator - i.e. an app on their smart phone.

I've not tried this - I've not used the Google Authenticator PAM module at all - but assuming you were happy with the "6th user" approach I see no reason why it wouldn't work. Depending on your needs (or paranoia!) you could also require a YubiKey for the 6th user.


From reading your question I assume or contemplate that bad blocks were created from the sudden shutting down of the processes going on in the HDD. To solve it you can do

fsck /dev/sdg

Or you can even analyze the bad blocks that were created with the command

badblocks -v /dev/sdg (not recommended according to the man page)

For any further guidance or help please refer to the following site
https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/


How to use keyboard navigation in nautilus when sidebar is hidden?

Use the Tab key (repeatedly) to switch focus from the title bar to the files pane.


Fan noise after upgrading to Ubuntu 16.04

You need to establish which fans are making the noise by running the PC with the sides off and listening to each fan. Is it the CPU fan, the GPU fans (I see you have two graphics cards), or the case fan(s)? You can test if a fan is the one making the noise by gently touching its centre with a finger to  stop it.

You also need to establish whether the increase in noise is accompanied by a rise in temperature and where.

To do this install lm-sensors and configure it. Then install psensors and study the fan speeds and temperatures. Instructions are here lm-sensor and fanspeed instructions

Once you have established which fans are running faster and making noise you need to determine whether they are running faster because the relevant system component is heavily loaded. Then the solution will be to reduce the load on the component by adjusting the power management settings or finding a bug.

If the fans are running faster than you like and the relevant system component is not getting too hot you can slow the fans. There are two routes to doing this. If the relevant fan can be controlled by your BIOS I recommend doing this. If not then install and configure fanspeed.


ATI x1400 12.04 OS cannot see that it is a sepparate video card

It may be that Ati have dropped support for your graphics card in the current binary driver which leaves you with the open-source drivers that come with Ubuntu to do most of the work...  This has happened before with a friends pc and Ati's own binary driver just didn't want to work on his current setup...


PlayOnLinux can handle installation settings for you.

Download install files from here and install it.

When you run it, you can select "Install" and there is an option to install Office.  It will guide you to install Office using the executable setup file and take care of many settings for you that you would otherwise have to do manually with wine alone.

They also have an extensive list of software that shows what is compatible with POL, as well as some user workarounds for programs that have issues installing.


Headphones doesn't give sound when lid is closed and opened

Then you "close and open" the lid, the system invokes a suspend/hibernate on your behalf. See man pm-action. The scripts in /etc/pm/config.d hold the configuration, and /etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d hold scripts that are run both at "suspend/hibernate" and "resume/thaw" times to first save, then restore hardware states that don't survive the process.

This is the software mechanism that should save and restore the headphone state. Look at /var/log/pm-suspend.log.


Ubuntu 14.x install on Alienware mx18 R2

I never did unplug the video card as I re-thought that this was a silly approach for something that wasn't so important to me that I would change hardware.  However I did find the solution that worked and it did not require dismantling my hard ware.  In another thread (I wish I could find again to give them credit) they suggested adding these commands to the command line before the -- at the install menu that first comes up.

vga=normal nomodeset

No other options needed to be set, only these.  I was then able to see the following screens until eventually Ubuntu started (in demo mode or whatever it is called without actually being installed).


Samba share not visible from Windows 7 PC, even though UNC authentication works

The problem is that the config file /etc/samba/smb.conf was blank. I overwrote it with the config file from /usr/share/samba/smb.conf and then restarted Samba:

sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf

Now I have a different problem (authentication), but I am going to troubleshoot that one separately, and possibly post a new question.


I can't install anything in Ubuntu 17.04 (neither terminal or install button work)

The correct syntax for the first is :

sudo apt install package-name

where package-name obviously is the name of the package you want to install. Refer to the man page for full info about it. If this is what you did, try the command given in the error message (apt --fix-broken install ).

For the second one, the error message is clear: your system does not find the file you specified.  You should try something like:

sudo dpkg -i /path/to/filename.deb


So my solution was to revert to the previous version.

I booted from my original "Ubuntu 14.04.3 desktop amd64" DVD, and

At the welcome screen, clicked the "Try Ubuntu" button and made sure my most recent backup was current.
Rebooted again, then at the welcome screen clicked "Install Ubuntu".
At the "Preparing to install Ubuntu" screen clicked continue.
At the "Installation type" screen, there are four options. I clicked the bottom one "Something else".
A partition map is then shown, including check boxes that determine which partition is to be over-written. Firstly, I have to admit my notes here are sketchy. I have to say I found this screen quite confusing. Since I wanted to retain my data, I was very careful to avoid the checkboxes in the "Format?" column. The feedback on this screen is poor; it kept telling me to do things to the partition map. Since there is nothing labelled "Partition map" it took me a while to work that this screen is it.
Eventually I selected my ext4 partition. /dev/sda as the device for the boot loader, and clicked "Install Now".
According to How to re-install Ubuntu keeping your data and settings there are three prompts that it's important to get right if you want to have easy access to your old data. These are
Your full name.
Your user name.
Your machine name.

Few notes

I didn't test what happens if the full name or machine name are different, but obviously the user name needs to be right. I would expect that an incorrect username would be fixable, with work.
When you have to select the filesystem, select "Ext4 journaling filesystem". All the documentation seems to just call it Ext4 without mentioning the journaling part.

And then

Having got a working 14.04 system, I had no Wifi or DVD support. I Googled and messed about for days. All sorts of posts in various places suggest building your own, with all that would entail in the future. Eventually, I tried the "Advanced boot options" in the Grub menu.

I selected the previous kernel, and viola everything works!

Hope that helps someone else.


You can install a flash player for most browsers with

sudo apt-get install flashplugin-installer

It is not the latest version like on Windows but it works and it does still receive security updates, it works for both X86 and X64 architectures.

Chrome has no 32bit Linux version anymore, you could use chromium, it is what chrome is based on, and is very similar in design.

sudo apt-get install chromium-browser


No, this is not an easy task, nor is it very complicated either

(Just a little bit complicated)

Make a system back-up before you begin! (You've just been promoted to User type 4!)
Insert both hard-disks into the same computer. (if you have a laptop, with space for only one hard disk, buy an external USB enclosure.)
Clone the old HDD onto the new HDD.  Warning! if you do it the wrong way around, you will destroy all your data!  (Did I mention Backups?)
Remove the old drive
Reboot uning the Ubuntu LiveCD / GParted Live CD,
Start gparted and only now start repartitioning!


For your information, sudo apt-get update does not update software. It merely updates the list that the APT package manager uses to keep track of the software installed on the system, and the software available for the system from Ubuntu's repositories.

The correct procedure for updating to the latest version available in the repositories is to run sudo apt-get update to update the available software list, and then sudo apt-get  upgrade to actually install the new versions of the packages.

It's worth noting that the versions in the repositories might be slightly outdated: this is typically because this is the only version Canonical is supporting for this release of Ubuntu, or because no-one's uploaded the new version to the repositories yet. You're welcome to install more recent software manually or using Personal Package Archives (PPAs.)


Bluetooth fails to load firmware on boot - Ubuntu 15.04

This is a kernel bug.

You can report it by running in terminal

ubuntu-bug linux

and follow instructions in your browser.


in 12.04 (unity DE), you need to use dconf-editor (included in package dconf-tools) to edit the configration.

$ sudo apt-get install dconf-tools

$ dconf-editor

go to desktop > unity > panel
the name is systray-whitelist

in Value ,add 'all', in front of the lists, turn them to something like:

['all', 'JavaEmbeddedFrame', 'Wine', 'Update-notifier']

after that, close the dconf-editor and run :

$ pkill iptux
$ iptux

You will see iptux icon showed up in the notify area.


Installed as a dual boot ubuntu 13.04 alongside win8 and no grub?

Boot up a live cd that is the same version and bit as your Ubuntu OS. Use boot-repair to reinstall grub. Here is how first open up a terminal in put in this code.

Installing boot-repair

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

than

sudo apt-get install -y boot-repair && (boot-repair &)

Opening boot-repair

sudo boot-repair

Using boot-repair

Then puss "Recommended repair" and before that, you need to make sure the default setting is right for your system, so just look over the Advanced options.

After you have done that reboot your computer and you will see grub again!

source :
https://help.ubuntu.com/community/Boot-Repair


How to stop software updater from disabling Nvidia driver?

When you get a new kernel in an update, the nvidia driver needs to be rebuilt for the new module.  You need to fix your build environment, something is missing.  List the nvidia packages you have with

dpkg -l |grep nvidia

and then for the driver, (nvidia-361 in the below example) get the packages it depends upon:

apt-cache depends nvidia-361
The output looks like:
nvidia-361
  Depends: x11-common
  Depends: make
    make-guile
  Depends: sed
    sed:i386
  Depends: dkms
  Depends: linux-libc-dev
  Depends: libc6-dev
  Depends: patch
    patch:i386
  Depends: acpid
  Depends: lib32gcc1
  Depends: libc6-i386
  Depends: passwd
    passwd:i386
  Depends: adduser
  Depends: libc6
  Depends: <libgl1>
    libgl1-mesa-glx
  Depends: libx11-6
  Depends: libxext6
...snip

install the missing ones and the kernel updates should not longer break things.

When you run an older kernel, is Nvidia still broken?
What driver are you running when not running Nvidia? (nouveau?)
If nouveau, check for the line  "blacklist nouveau" in any file in /etc/modprobe.d


is it possible to feed highlighted text as input to grep

Yes, sure - there is PRIMARY selection in X11.

  PRIMARY selection, is used when the user selects some data. X Window: Clipboard

You can use either xsel or xclip cli tools:

TL;DR

Select some text

2a. grep "$(xsel)" -r -C 30 -h ~/helpfiles/*

OR

2b. grep "$(xclip -o)" -r -C 30 -h ~/helpfiles/*

Precondition

xsel or xclip package installed: apt get install xsel or apt get install xclip
X server is running (i.e. you use X server, not text-mode without X server): xset q > /dev/null && echo "X is running" || echo "start X server"

Explanation

Both xsel and xclip are clipboard management tools. Commands xsel and xclip -o print to STDOUT contents of PRIMARY selection.
More info you can find here: 'xclip' vs. 'xsel'

Use double quotes around $(). This allows to highlight more than 1 word.


How to install Windows on my Ubuntu netbook from USB if BIOS does not support booting from USB?

What you are going to do is install Plop Boot manager. Plop boot manager is a small program that allows you to boot from all of your computers available devices, including a USB, even if your BIOS doesn't support it. Download the Plop boot manager ISO from here. Be sure to choose the right version of Plop boot manager. If you are unsure about choosing the 32-bit version or the 64-bit version, choose the 32-bit version. Now, you need to configure Grub2 to boot from the ISO file you downloaded. In a terminal, run gksudo gedit /etc/grub.d/40_custom. Paste in the following text below the exec tail line.

Code:

menuentry "Plop Linux ISO" {

    echo Loading Plop Linux
    set isofile="/iso/ploplinux-4.2.2.iso"
    loopback loop $isofile
    linux (loop)/syslinux/kernel/bzImage vga=1 iso_filename=$isofile
    initrd (loop)/syslinux/kernel/initramfs.gz

}

Replace /iso/ploplinux-4.2.2.iso the the location of your downlaoded ISO file. Save the file and close gedit. When you reboot your computer, choose the Plop Linux ISO item from the Grub2 menu. Finally, select plop boot manager from the Plop menu, plug in your USB, and select the USB option to boot from your USB!


What can I do when on a used computer I can not enter the administrator account?

It may be possible to revover a lost administrator password as outlined in this question:

How do I reset a lost administrative password?

However in your case you may not want to keep data or applications from the previous owner. In fact it may even be a security risk you will be faced when settings were made which possibly could give another person unlimited access to your machine.

Therefore the recommended and by far the easiest approach to your issue would be to just proceed with a fresh install of Ubuntu:

How do I install Ubuntu?


How to open a particular port in ubuntu?

Run this on the commandline; it should solve issue: sudo iptables -A INPUT -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j ACCEPT

To do a specific port:

sudo iptables -A INPUT -p <tcp OR udp> <--dport OR --sport> <port> -j ACCEPT

INPUT is the chain for incoming traffic.
-p is protocol (either tcp or udp
--dport or --sport specify allowing for destination or source port.
-j is "jump" and its where you ACCEPT, REJECT, or DROP the packet(s)

Details on iptables can be found by reading the man page. Since you're a beginner you'll probably find this useful: http://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO.html


I think you can add workspace form, panel > panel preference > items > then click the add button, from there you can search workspace switcher.

When I mess up my default settings, I usually add everything like this.


I cannot use Software-Center or `apt-get update`

Open a terminal and run sudo gedit /etc/apt/sources.list.d/gnomebaker.list
Remove all the existing lines in the file, and add these lines

deb ppa.launchpad.net/gnomebaker/stable/ubuntu oneiric main
 deb-src ppa.launchpad.net/gnomebaker/stable/ubuntu oneiric main.
Exit gedit and then run sudo apt-get update. you will be file


Fix:
Updated my Gygabite EP45-DS3L BIOS via @BIOS and everything is working perfecly


Error while using command line command to load firefox in lubuntu 14.04

See http://ananddrs.com/2014/03/07/firefox-fullscreen/

Summary:

Firefox doesn't have -fullscreen option

You can use xdotool and create a shell script as follows.

firefox http://www.google.com & # one can use any url
sleep 5
xdotool key F11 # hit full screen


Ubuntu Software Center / Update Manager not working - Could not open file

It is a bug. its caused by the status file parser not being able to open up the proper format that the status file is in. please report the bug.


Can't install kernel 4.20 because of compatibility issue with Nvidia driver 410.78

echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \


Make sure you have enabled Canonical Updates from update manager settings.
You can use terminal and there also it will ask you the same and by giving y you can continue your update process.

try these two things and if issue still persists please let me know.


How to troubleshoot photo import failure with Shotwell?

I finally found the problem. When I batch renamed the files, I didn't preserve the file extensions (like .jpg). The image viewer handled them fine, and they showed up in Nautilus as JPEG type, but the missing '.jpg' on the end was the problem.

Shotwell is great, this was just user error. Do I get a bronze 'Idiot' badge now?


Ubuntu 14.04 = fn+f2/f3 (backlight) keys not working

So, it turns out that this is an acpi_osi quirk. For the HP dm1z (4xxx series with AMD E-450, a.k.a. Radeon HD63xx APU series) with fglrx driver, I had to add the following to my kernel boot options:

acpi_osi="!Windows 2012"

If you are adding this to the /etc/default/grub options, you will need to prepend quotes with backslashes like so:

GRUB_CMDLINE_LINUX="thermal.off=1 acpi_osi=\"!Windows 2012\""

Trying to use acpi_osi=Linux (with or without quotes) did not fix the problem (likely because acpi disables a number of options as soon as it detects Linux, so with the aforesaid option we spoof acpi to believe we are pre-Windows8 OS), while leaving acpi_osi= as an empty option made laptop fail to boot.


How to backup and restore system-level directories

DD is risky command and not recommended:
https://unix.stackexchange.com/a/141037/165083

You could use rsync instead of it but im using something like this for making backup and uploading it to AWS s3:

function backup() {
    ###Path###
    pathToContent=${directory}
    pathToBackup=/home/backup/$(date +"%Y-%m-%d").${directory}.tar.gz
    ###Backup###
    echo "Creating tar.gz file for ${pathToContent}"
    tar -czf ${pathToBackup} ${pathToContent}
    echo "Uploading ${pathToBackup} to AWS s3"
    aws s3 cp --no-progress ${pathToBackup} s3://<BUCKET>
    echo "Removing ${pathToBackup}"
    rm ${pathToBackup}
}

cd <directory>
for directory in $(ls -d */ | cut -f1 -d'/');
    do
        echo "BACKUP FOR $directory starting now."
        backup $directory
        echo "Backup for ${directory} completed successfuly."
    done

Please change <directory> :)


Wireless connection not working in Ubuntu 13.10

Will you post the output of lspci the output of sudo nm-tool the output of ifconfig -a and the ouput of dmesg | wlan

Thanks,
tfrue


How can AWK be used to list Docker containers?

With awk, you can skip the first line (or record) using NR > 1:
docker container ls | awk 'NR > 1 {print $1}'

But you don't need that. You can just tell docker to format the output:
% docker container ls --format '{{.ID}}'
bd1299b0dd5a
8fcbcd67a843


Actually you have hybrid graphics. Means that you have two graphics cards, Intel HD for power saving and nVidia for performance. You have to install Bumblebee to install nVidia graphics driver. Here is how to install bumblebee: ( https://wiki.ubuntu.com/Bumblebee#Installation )

You need to open your terminal and enter the commands below.

If on 12.04.3, replace linux-headers-generic with linux-headers-generic-lts-raring.

(not needed for 13.10 Saucy and newer)

sudo add-apt-repository ppa:bumblebee/stable

Enable the Universe and Multiverse repositories (for bumblebee and nvidia packages respectively).

sudo apt-get update

Install Bumblebee using the default proprietary nvidia driver:

sudo apt-get install bumblebee virtualgl linux-headers-generic
sudo reboot

For Ubuntu 14.04:

Run these commands in terminal

  sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-331

Now you have to install Bumblebee GUI to manage apps to be opened using nVidia. Here is the instructions: ( How to install Bumblebee-UI (GUI) in Ubuntu 12.04 )

Install Python App Indicator:

sudo apt-get install python-appindicator

Install Git:

sudo apt-get install git

Make a directory for git:

mkdir git && cd git

Check out the repository:

git clone https://github.com/Bumblebee-Project/bumblebee-ui.git
cd bumblebee-ui
sudo ./INSTALL

Go to Startup Applications and add /usr/local/bin/bumblebee-indicator

Now reboot again.


After spending 4+ hours I found the only solution:

For now, it's not possible to change cursor color. Use custom cursors for night mode.

I didn't find good looking night cursors so tried to create myself. I used https://github.com/charakterziffer/cursor-toolbox and spent about 1h to change colors in svgs/template.svg to make ok looking cursors for day/night mode.
My example commit: https://github.com/fedotxxl/cursor-toolbox/commit/1ef4faa717fefb2d144871ad0fd4a060c6bf3877
Replace style="fill:#000;fill-opacity:1;stroke:#fff;stroke-opacity:1" with your custom color, compile and try.
Hope it will help someone


Ubuntu 12.04 Missing Close, Minimize and Maximize Button after Update and Upgrade

Hope this works:
try this:

gtk-window-decorator --replace


As your information is a bit sparse: I guess you have a Roccat device and use the kernel modules and outdated roccat-tools from Arturo Casal's PPA. Please remove the roccat-tools package and compile youself the newest version from source, where this problem is fixed for weeks.

Edit: The problem is that Ubuntu chokes on the file /lib/udev/rules.d/90-roccat-ryos.rules


No monitor output after fresh install of 11.10 64-bit

Xorg might need to be reconfigured...

I had a similar situation.  This is what I did which gave me a graphical login screen after a restart:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
sudo cp /etc/X11/xorg.conf.failsafe /etc/X11/xorg.conf

Here's the contents of my /etc/X11/xorg.conf.failsafe:

Section "Device"
   Identifier  "Configured Video Device"
   Driver      "fbdev"
EndSection

Section "Monitor"
   Identifier  "Configured Monitor"
EndSection

Section "Screen"
   Identifier  "Default Screen"
   Monitor     "Configured Monitor"
   Device      "Configured Video Device"
EndSection

Something else you might look into:

Xorg -reconfigure

Something else you might look into is just removing the /etc/X11/xorg.conf file entirely and (restarting and) seeing what happens.


Sound Input or Output does not work connecting to Ubuntu Desktop connected with NoMachine

I was signed in as root, tried creating a non-admin user and it worked straight away.


The message implies that the branch doesn't exist on the remote repository. Make sure you are using the correct branch and repository name. Try to clone the repository manually and list the remote branches. This way you can tell whether the desired branch exists or not.


Battery icon not showing in Ubuntu Unity 14.04?

In my case it was the Power manager
System Manager > Power Manager > General > System Tray Icon - Always Show Icon


How to get back to Ubuntu from Chrome OS?

If you can still get to chrome OS, press Ctrl+Alt+T to bring up crouton. Type shell then sudo startxfce4.

It should then start your Ubuntu OS.


How can i edit tooltips for unity launcher icons

The unity launcher icons are defined by .desktop files - usually from /usr/share/applications.

The tooltip is the Name= section in this file - for example, the default seahorse.desktop file looks like:

[Desktop Entry]
Name=Passwords and Encryption Keys
Comment=Manage your passwords and encryption keys
Exec=seahorse
Terminal=false
Type=Application
Icon=seahorse
Categories=GNOME;GTK;Security;Settings;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=seahorse
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=2.32.0
X-GNOME-DocPath=seahorse/seahorse.xml
X-Ubuntu-Gettext-Domain=seahorse

To change the tooltip on a per user basis, copy the desktop file to your local applications folder i.e.

mkdir -p ~/.local/share/applications
cp /usr/share/applications/seahorse.desktop ~/.local/share/applications

Then edit this file with you favourite editor and change the Name= value for example

gedit ~/.local/share/applications/seahorse.desktop

In the image I've changed Name= to be:

Name=my new tooltip

Open Nautilus and browse to the folder ~/.local/share/applications and drag and drop seahorse.desktop to the launcher


Ubuntu touch no longer booting on BQ Aquaris 4.5

I had this same problem and latest update solved it, but before that I just tried to press power button while BQ logo was displayed - I tried holding it, pressing it repeatedly or pressing it one time once the BQ logo appeared. After few attempts the phone booted normally but I didn't find pattern that works every time.


I need help to write a bash script for remove and change the permissions that I gave to my ubuntu 20.10 installation files by mistake

Backup up the data you are concerned about and wipe the system, you have successfully killed it. It will take some effort to get done, many, many times the effort of a re-install. Do the new install and copy over the files wanted from the old. Problem is solved in very little time compared to probably days getting a script figured out, if every getting it correct.


How do I globally make my desktop icons smaller in Ubuntu 16.1?

Open Nautilus (file manager) from Launcher (icon is a filing cabinet).

Hover mouse over top screen line and select the Edit menu.

Then select Preferences -> Views. Set the icon size according to the screen below:

If your icon size is > 100% set it to 100%. If it's already 100% then obviously set it less than that.


create a file:

vi /etc/modprobe.d/ath9k.conf
enter the following into that file:

options ath9k nohwcrypt=1
reboot

check this out


What happens to the automatic crash reports?

Can I get some statistics somewhere on which applications crash the most? Would be awesome to get some quality metrics available.

https://errors.ubuntu.com/

It has the statistics you want, filterable by package and/or time period.


Using ubuntu to recover hard drive data (for the non tech savy)

It is going to be difficult to support you with this over the Internet.
In what area are you located ?
If you would live near I could help you for free (e.g. by using Clonezilla software), and I'm sure there's lots more Linux users who would do the same.

You didn't specifically mention what backup options you have : CDs ? DVDs ? It would be great if you would have an external usb disk (e.g. 500 Gb disk) to back it up. In your case I would try to find local tech support. Find a Linux User Group in your area, meet with them, bring your laptop, and watch how they make the backup for you on your usb disk. After that they could wipe the personal data from the laptop hard disk.

More on Linux Users Groups :

https://en.wikipedia.org/wiki/Linux_user_group

http://lugslist.com


Download the ubuntu iso file from the ubuntu website.  Create a usb boot stick and boot with this stick. Install ubuntu. After installation reboot.


Will third party unity lenses be included in the dashboard search?

Third party lenses can control whether their results are included in the main dashboard search by ShowGlobal & ShowEntry keys in the .place file for the lens. There doesn't currently appear to be a UI option for setting this.

See https://wiki.ubuntu.com/Unity/Lenses#Registration for information about the .place file.


No, unfortunately we don't yet have a way for juju to clean up a node after you destroy-service.

This is a bug:

https://bugs.launchpad.net/juju/+bug/932269
How do I subscribe to a bug?

My personal workaround is just to launch a new instance.


onedrive startup application not starting up but works in terminal

You need to refer to: https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#running-onedrive-as-a-system-service to run the client as a service automatically at startup.
Doing this in the manner you are attempting, will cause the application to not start in the manner you are expecting.
Also, installing via 'sudo apt install onedrive' is not recommended. This installs an old and unsupported version. Please either use the Ubuntu PPA or compile from source.


Solution:
After a deep web search using Google, I found a tool called pdftk (Title in the manual: pdftk - A handy tool for manipulating PDF). To install the pdftk use the below line on the command line;
 sudo apt-get install pdftk

then created a file named updateTitle.txt containing the following information:
InfoKey: Title
InfoValue: New Title

And saved it in the same location the PDF is, then I ran in a terminal (in the PDF’s location):
pdftk input.pdf update_info updateTitle.txt output output.pdf

The PDF’s title is now "New Title".


How do I enable the alx ethernet driver on Ubuntu 13.04?

I have the same network card on my machine, and was also left without a working internet connection. I was able to get it up and running by downloading the source code for the driver (from its homepage at the Linux Foundation) and compiling it:

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/compat-drivers-2013-03-04-u.tar.bz2
./scripts/driver-select alx
make
sudo make install

After I loaded the new module (sudo modprobe -r alx && sudo modprobe alx) Connection Manager automatically re-connected.


I've always used cups for printing.

sudo aa-complain cupsd
sudo mkdir /usr/share/cups/model

**ABOVE IS FOR PREREQUISITES**

Download the LPR AND CUPS driver.

Follow instructions located on CUPS driver download page.

HINTS:

 sudo su - #Gives you root.
 You are using dpkg.

Instructions I was looking at.

Prereq source (Look for "(2)")