Linux: copy a list of file whose name suffix is listed in a txt file from one directory to another

If the strings are listed in the text file one per line, you can run xargs with argument-file option (-a) and cp *"{}"*. ({} is the placeholder for the string in each line.

cd /path/to/original_folder
xargs -a strings.txt -I{} bash -c 'cp *"{}"* /somewhere/else'


Wifi card can see network but cannot connect

I eventually configured the network with static information instead of querying the DHCP server.  That fixed the problem, although a static configuration raises other problems (address collisions, address changes).


Dell Precion m6600 touch screen cursor problems

I had this same problem and it took me weeks to figure out what was going on.  I thought it was an issue with the mouse, the touchpad, etc.

Finally it dawned on me -  its the stinking touchscreen (not sure why Dell decided it would be a good idea to put a touchscreen a desktop replacement laptop).

In any event, you can disable the touchscreen using xinput. I wrote the following little script that I use to turn mine off :

#!/bin/bash

function showUsage() {
  echo "

  usage : $0 [-on|-off]

  "
}

TOUCHSCREEN_ID=`xinput list | grep "Touchscreen" | cut -c 55-57`
TOUCHSCREEN_ID2=`xinput list | grep "N-Trig MultiTouch" | cut -c 55-57`

TOUCHSCREEN_FLAG=`xinput list-props $TOUCHSCREEN_ID | grep "Device Enabled" | cut -c 24-`

if [ $TOUCHSCREEN_FLAG == 1 ] ; then
  TOUCHSCREEN_FLAG=0
else
  TOUCHSCREEN_FLAG=1
fi

case $1 in
  "-on") TOUCHSCREEN_FLAG=1 ;;
  "-off") TOUCHSCREEN_FLAG=0 ;;
  "--help") SHOW_USAGE=1 ;;
  "-?") SHOW_USAGE=1 ;;
esac

if [ "$SHOW_USAGE" == "1" ] ; then
  showUsage
  exit -1
fi

xinput set-prop $TOUCHSCREEN_ID "Device Enabled" $TOUCHSCREEN_FLAG
xinput set-prop $TOUCHSCREEN_ID2 "Device Enabled" $TOUCHSCREEN_FLAG


Build sigrok-cli from downloaded tar.gz goes wrong

It appears that a considerable amount of building is required to get to your goal! The following worked on my own 17.04 system and builds what I believe are your required packages:

Build Requirements:

Install these from a Terminal to install all of the required dependencies for building the packages with the following single command:

sudo apt-get install git build-essential make \
autoconf automake libtool checkinstall autoconf-archive \
pkg-config libglib2.0-dev libglibmm-2.4-dev libzip-dev \
libusb-1.0-0-dev libftdi-dev check doxygen python-numpy \
python-dev python-gi-dev python-setuptools swig default-jdk \
libglib2.0-dev python3-dev

Make a build area:

mkdir $HOME/sigrock_build

Then start building:

libserialport

The following is a single command:

cd $HOME/sigrock_build && \
wget http://sigrok.org/download/source/libserialport/libserialport-0.1.1.tar.gz && \
tar xvf libserialport-0.1.1.tar.gz && \
cd libserialport-0.1.1 && \
./configure && make && \
sudo checkinstall --pakdir "$HOME/sigrock_build" --backup=no --deldoc=yes \
                  --pkgname libserialport --pkgversion "0.1.1" --fstrans=no \
                  --deldesc=yes --delspec=yes --default && \
sudo ldconfig

libsigrock

The following is a single command:

cd $HOME/sigrock_build && \
wget http://sigrok.org/download/source/libsigrok/libsigrok-0.5.0.tar.gz && \
tar xvf libsigrok-0.5.0.tar.gz && cd libsigrok-0.5.0 && \
./configure && make && \
sudo checkinstall --pakdir "$HOME/sigrock_build" --backup=no --deldoc=yes \
                  --pkgname libsigrock --pkgversion "0.5.0" --fstrans=no \
                  --deldesc=yes --delspec=yes --default && \
sudo ldconfig

libsigrokdecode

The following is a single command:

cd $HOME/sigrock_build && \
wget http://sigrok.org/download/source/libsigrokdecode/libsigrokdecode-0.5.0.tar.gz && \
tar xvf libsigrokdecode-0.5.0.tar.gz && cd libsigrokdecode-0.5.0 && \
./configure && make && \
sudo checkinstall --pakdir "$HOME/sigrock_build" --backup=no --deldoc=yes \
                  --pkgname libsigrockdecode --pkgversion "0.5.0" --fstrans=no \
                  --deldesc=yes --delspec=yes --default && \
sudo ldconfig

sigrock-cli

The following is a single command:

cd $HOME/sigrock_build && \
wget http://sigrok.org/download/source/sigrok-cli/sigrok-cli-0.7.0.tar.gz && \
tar xvf sigrok-cli-0.7.0.tar.gz && cd sigrok-cli-0.7.0 && \
./configure && make && \
sudo checkinstall --pakdir "$HOME/sigrock_build" --backup=no --deldoc=yes \
                  --pkgname sigrok-cli --pkgversion "0.7.0" --fstrans=no \
                  --deldesc=yes --delspec=yes --default && \
sudo ldconfig

Final Result:

On my 17.04 system this shows:

andrew@ilium:~$ sigrok-cli --version
sigrok-cli 0.7.0

Libraries and features:
- libsigrok 0.5.0/4:0:0 (rt: 0.5.0/4:0:0).
 - Libs:
  - glib 2.52.0 (rt: 2.52.0/5200:0)
  - libzip 1.1.2
  - libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1)
  - libusb-1.0 1.0.21.11156
  - libftdi 0.20
  - Host: x86_64-pc-linux-gnu, little-endian.
  - SCPI backends: TCP, RPC, serial, USBTMC.
- libsigrokdecode 0.5.0/4:0:0 (rt: 0.5.0/4:0:0).
 - Libs:
  - glib 2.52.0 (rt: 2.52.0/5200:0)
  - Python 3.5.3 / 0x30503f0 (API 1013, ABI 3)
  - Host: x86_64-pc-linux-gnu, little-endian.
andrew@ilium:~$

And hopefully you will have the same result :)


Why does not pipe work with 'find' and 'ls'

Please consult the manual page of ls(1)! The ls command takes it's arguments on the command line not on standard input (i. e. file descriptor 0).

When you run

<SOME_COMMAND> | ls [OPTIONS...]

you instruct the command interpreter to create a pipe (|) from the the standard output of the left command to the standard input of the right command (here: ls). But ls disregards its standard input and inspects its command line parameters, finding no positional argument and listing the current working directory (stored in the PWD environment variable by shell interpreters like Bash) instead.

The xargs(1) takes tokens (delimited by whitespace characters if not specified otherwise) from its standard input stream and adds them as parameters to the command line of another command to run. In your case, the ls command given to xargs receives a set of path names on its command line and performs its task on them as documented by the manual.

Bonus: The "command" option -ls to GNU find will print the matching paths in a similar fashion to ls -dils (see find(1)).


Script to add multiple users in ubuntu (Bulk)

Open a terminal and type: vim /tmp/name to create a file and the names of the users: eg:

vim /tmp/name
mika
mery
etc

Create User with Home Dir and default shell:

for i in `cat /tmp/name`; do useradd -m -d /home/$i -s /bin/bash $i; done

Create password for each user:

for i in `cat /tmp/name`; do passwd $i; done


Can I use Ubuntu font in my commercial software running on Windows CE?

According to the Ubuntu Font Licencing FAQ you can an will be able to use the Ubuntu font for your programs, even if not related directly to Ubuntu as long as you follow the license agreement.

From the license:

  Permission is hereby granted, free of charge, to any person obtaining a
  copy of the Font Software, to propagate the Font Software, subject to
  the below conditions:

  Each copy of the Font Software must contain the above copyright
  notice and this licence. These can be included either as stand-alone
  text files, human-readable headers or in the appropriate machine-
  readable metadata fields within text or binary files as long as those
  fields can be easily viewed by the user.
  The font name complies with the following:
  a) The Original Version must retain its name, unmodified.
  b)  Modified Versions which are Substantially Changed must be renamed to
  avoid use of the name of the Original Version or similar names entirely.
  (c) Modified Versions which are not Substantially Changed must be
  renamed to both (i) retain the name of the Original Version and (ii) add
  additional naming elements to distinguish the Modified Version from the
  Original Version. The name of such Modified Versions must be the name of
  the Original Version, with "derivative X" where X represents the name of
  the new work, appended to that name.
  The name(s) of the Copyright Holder(s) and any contributor to the
  Font Software shall not be used to promote, endorse or advertise any
  Modified Version, except (i) as required by this licence, (ii) to
  acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with
  their explicit written permission.
  The Font Software, modified or unmodified, in part or in whole, must
  be distributed entirely under this licence, and must not be distributed
  under any other licence. The requirement for fonts to remain under this
  licence does not affect any document created using the Font Software,
  except any version of the Font Software extracted from a document
  created using the Font Software may only be distributed under this
  licence.


evince is an editor designed to run under a GUI (man evince says The Evince Document Viewer application for the GNOME desktop environment), and you seem to be running it in a non-GUI environment.

Either run evince in a graphical environment, or, if you're accessing this system via ssh (and have a local X server), check man ssh and use ssh -X ... to initiate your session.


fresh newly rented server, spammed with root login attempts

Blacklisting the IP won't resolve your issue, moments later you will be attacked the same way by another IP.

81.246.42.242 is coming from Belgium (verified with ip2location). A method of resolving this is to block all IPs and only allow access to your IP or subnet. However I instead recommend using SSH-Keys and disable root ssh logins.

For more information;
Firewall setup
ssh key setup


The Mactel Support Team maintains a support matrix that catalogs instructions for installing and configuring Ubuntu on specific Mac hardware releases.

Dual booting is accomplished using rEFIt.


For mp4 the only working solution I found was with MP4Box from gpac package

#!/bin/bash
filesList=""
for file in $(ls *.mp4|sort -n);do
    filesList="$filesList -cat $file"
done
MP4Box $filesList -new merged_files_$(date +%Y%m%d_%H%M%S).mp4

or command is

MP4Box -cat file1.mp4 -cat file2.mp4 -new mergedFile.mp4

with mencoder and avconv I could'nt make it work :-(


External links opening in the non-default browser

For Pidgin, it has a setting specifying which browser to use when opening links. For me, this was set to Manual for some reason, and it became so 'over night'.

You can find and change this setting by opening the buddy list window, going to Tools > Preferences > Browser. There select Browser default to use the system default browser.


Using the USB Live CD you used for install (or if you reformatted it since, please remake it using ubuntu's own builtin USB installer creator) boot to the "try ubuntu" menu option, open up gparted.

Right click on "extended" (/dev/sda2) and select "resize/move". Then click and drag the leftmost edge towards the left until all the grey is covered. Then click the big "resize/move" button.

click the green check-mark.

repeat the operation for "ext4" (/dev/sda5).

voila :) !


Steam client not launching after upgrade to Ubuntu 20.04

So, I came from an older install of Ubuntu and kept Unity desktop.  I tried literally every answer that I could find on stack and on ubuntu forums, to no avail-- Finally, I installed gnome and logged into a gnome session and guess what STEAM STARTS.  I haven't tested if gnome being present or being logged into gnome makes the difference.  My guess is that steam client expects gnome on 20.04


Effect of using dedicated NVidia card instead of Intel HD4000

The card will be 'off' the latest 'M' series nvidia cards which use the Optimus system only activate the nvidia card when a graphics hungry application requires it to.  In Ubuntu, this doesn't work by default, Bumblebee will force the system to use the nvidia GPU to do the maths but it will still be the intel chip doing the drawing.  Put simply, if you don't need the nvidia GPU, get the machine and don't bother with bumblebee.


Why won't my Logitech K750 solar keyboard work at the login screen?

For some reason, switching from the USB3.0 port to USB2 port used by the transceiver fixes this problem.


wifi not working in asus x550cc on ubuntu 14.04

Yours should work with echo "options asus_nb_wmi wapf=4" | sudo tee /etc/modprobe.d/asus_nm_wmi.conf
Then you should be able to reboot and use your keyboard to enable wifi if it is still blocked

This should be fixed eventually as the code is in the asus_nb_wmi module in linux-next

.callback = dmi_matched,
    .ident = "ASUSTeK COMPUTER INC. X550CC",
    .matches = {
        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
        DMI_MATCH(DMI_PRODUCT_NAME, "X550CC"),
    },
    .driver_data = &quirk_asus_wapf4,


fresh installed ubuntu 17.10 on VMware and there is no swap partition

i have found link below to create a file to increase swap space as per my need.
Link to solution

regards to all, love to all.


Sometimes making Dual Boot was needed grub recovery.
But this time you maybe did change bootloader to install not in HDD but in HDD windows partition so it loads partitions and then boots in Windows partition where you put bootloader and selecting windows partition it loads again because of such misconfiguration.
https://help.ubuntu.com/community/WindowsDualBoot

First try just https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

Theres written to install https://help.ubuntu.com/community/Boot-Repair

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

And then recommended repair. Then restart to test.
If didn't fixed then advanced and put bootloaded in sda not sda1 or sda2


How can I get multipathd to stop monitoring my disk?

It appears the solution was to add blacklist to the file /etc/multipath.conf like this:
defaults {
    user_friendly_names yes
}
blacklist {
    devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|sd|mmc|nvme)[a-z0-9]*"
}

This effectively stopped multipath from spamming the syslog.


The programs that show up in the Dash, desktop menus etc are there due to .desktop files in /usr/share/applications & ~/.local/share/applications. You can easily make a launcher using a file similar to this in either of the above locations (named telegram.desktop or similar):

[Desktop Entry]
Encoding=UTF-8
Name=Telegram
Exec=/opt/Telegram/Telegram -- %u
Icon=/opt/Telegram/telegram128.png
Type=Application
Categories=Network;
MimeType=x-scheme-handler/tg;

Note that the Exec line should contain the command to launch the app (like the one you used in Terminal) - this can be like telegram, /usr/bin/telegram-cli, /opt/Telegram/Telegram etc.

The Icon line points to the icon to use - this can be telegram (if there is are appropriately named icons in ~/.local/share/icons or /usr/share/applications), or point to a icon file directly. (e.g. /opt/Telegram/telegram128.png.). If you need a icon I have uploaded one here.

If the file does not show, try running  one of these commands:

update-desktop-database /usr/share/applications
update-desktop-database ~/.local/share/applications

depending on where you placed the file. A restart of the desktop (or logging out and back in again) may be necessary. A similar process can be done for other applications.

The spec for a .desktop file can be found here: http://standards.freedesktop.org/desktop-entry-spec/latest/


Does changing a partition-type lead to data loss?

Changing EXT3 to NTFS will DESTROY ALL YOUR FILES.

In order to do so without loosing files, you would need to copy all your files somewhere, change partition type (reformat) and then copy files back.

Note that NTFS is not suitable for Ubuntu. However Ubuntu may read and write NTFS partitions. Therefore the best 2 options for you would probably be:

Have one big partition for Windows (NTFS) and smaller one for Ubuntu (ext3/4). Store the common files (e.g. documents, mp3, movies) on your Windows partition. Then you are able to read and write them from both operating systems.
Create a 3rd partition - either NTFS or FAT32 and store all common files there. It would be visible as disk "D:" in Windows and you may read and write it from Ubuntu too.


A package only gets updates if it is installed, so if the languages are updated, they must be installed somehow. To manage installed packages in a detailed way, Synaptic is a convenient tool. You can install Synaptic from the Software Center (or by the command sudo apt-get install synaptic). Then, in Synaptic, search for the packages and remove them if you are sure you don't need them.
Keeping the current version of a package
You can also tell update manager to keep the current version of a package if for some reason you'd prefer that, or if you are unsure. To do that, select the package you'd like to "fixate", choose "Package" from the menu, in the dropdown menu "Force version".

See also this link to hold packages of a certain version (especially the "Introduction to Holding Packages" - section)


Q: can I test this from terminal before going live with the fstab
  command line? if so, what's the syntax?

You can mount all the drives listed in the fstab file with the command

sudo mount -a

Unmount all of the drives listed in fstab with

sudo umount -a

  Q: if the above line is incorrect, will it crash my ubuntu boot?

Probably not, but just in case, add it at the end of fstab and have a live USB system ready in case you need to change the fstab file from it.

  Q: the credentials; the public area on my LAN-NAS doesnt have a
  password/username requirement (I dont think) - is there a way to test
  this with a terminal command line? if so, do I just put username=guest
  password= (blank) in the credential file?

I think you should be able to remove the credentials part of the line completely. Otherwise, try creating a credentials file with empty user and password. If you try without the credentials and you get "permission error", your LAN-NAS does have password/username requirement.

If you are using Ubuntu 18.04 you might have to add vers=1.0 to your line, depending on the version running in your server. So your line would be:

//192.168.106.105/Public /media/nas cifs vers=1.0,uid=1000,gid=1000,credentials=/home/pseudo/.nascredentials,iocharset=utf8,sec=ntlm 0 0


Pasting from vim in terminal to Google Docs (Firefox + Vimperator) - need to understand

Linux has two clipboards (called "primary buffer" and "secondary buffer"). One is used for mouse copy/paste and another is for Ctrl-C/Ctrl-V. So, if you select something (say, in order to delete it) the contents of what you put in clipboard using Ctrl-C are still there intact.
If you want to copy without yanking try to select your text desired to copy and press CTRL+SHIFT+C then CTRL+SHIFT+V to copy/paste it

I hope this would help


Installing Ubuntu to and running from an external HD without Live CD

Wubi will install Ubuntu right from inside Windows.  You don't need a new partition because it will install as files on your Windows drive.

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


How to change Storage Mode to Modem Mode

I don't have much experience with those 3g modems, I've set mine up a while ago and forgot about it as well. I do remember however that in some cases all I needed was ejecting the virtual CD device provided by the dongle using the eject -r /dev/<device> command.

If you don't know your CDROM device's name you could try finding it by plugging in your modem and running:

dmesg | egrep -i 'dvd|cd'


Wine is a useful tool for running Windows applications however I wouldn't recommend it for graphics intensive programs (games, CAD, etc.) as these can create many bugs in Wine.

I think you would be better off with VMWare Player or VirtualBox which both allow you to run a virtual Windows OS inside Ubuntu.

To optimize your VM, see http://www.howtogeek.com/124796/the-htg-guide-to-speeding-up-your-virtual-machines/


How can I find and run an application that's already installed?

Not all programs are graphical, and thus they will not be in your menu.

You can locate them with several commands

which apturl
locate apturl

locate uses a database that is automatically updated every 24 hours. To manually update,

sudo updatedb

If your command is not on your path, use find

find */*bin -name apturl

See also What is the Linux equivalent to Windows' Program Files?

Learning to use programs on the command line takes a little time. IMO it is invaluable to learn to read the man pages. They seem like Greek at first, but in time they are invaluable.

You can also try -h or --help

less --help


How to check if your home folder and swap partition are encrypted using terminal?

Open terminal and type ls -A /home. There should be a .ecryptfs folder, if you have encryption of your home folder.


Nexus 7 (4.2.2) stuck as read-only on Ubuntu 13.04 (PC)

Run these command in a terminal:

sudo chown username:username /media/your-device

changing your "username" for the user name you use to log in and changing "your-device" for what you device is mounted under.

Then run:

sudo chmod 755 -R /dev/sdX

Change X for you devices ID


Since you have a Broadcom wireless card, and the drivers for Broadcom are not included on the installation media, the answer is no. You have to install the OS first, reboot, then install the driver. Sorry.

If out of the box functionality is important, consider, if possible, switching to an Intel wireless card.


can't update any packages due to error in '/usr/sbin/update-info-dir'

The /usr/sbin/update-info-dir sources both /etc/environment and /etc/default/locale.
Likely the error is at Line 9 of one of those files - sourcing a file confuses the line numbering in the error report. For example, given:
$ cat -n good.sh
     1  #!/bin/sh
     2
     3  . ./bad.environment

and
$ cat -n bad.environment
     1  # some comments
     2  #
     3  # more comments
     4  #
     5  # even more comments
     6  #
     7  #
     8
     9  export foo =bar

then
$ ./good.sh
./good.sh: 9: export: : bad variable name

Note that according to man environment.d (emphasis mine):
CONFIGURATION FORMAT
       The configuration files contain a list of "KEY=VALUE" environment
       variable assignments, separated by newlines. The right hand side of
       these assignments may reference previously defined environment
       variables, using the "${OTHER_KEY}" and "$OTHER_KEY" format. It is also
       possible to use "${FOO:-DEFAULT_VALUE}" to expand in the same way as
       "${FOO}" unless the expansion would be empty, in which case it expands
       to DEFAULT_VALUE, and use "${FOO:+ALTERNATE_VALUE}" to expand to
       ALTERNATE_VALUE as long as "${FOO}" would have expanded to a non-empty
       value. No other elements of shell syntax are supported.

       Each KEY must be a valid variable name. Empty lines and lines beginning
       with the comment character "#" are ignored.
so the /etc/environment file should not contain shell constructs such as export at all.


Whenever I plugged my monitor to my laptop the display the background image stays in the same resolution

Have you tried going to the menu-system-monitors and then changing the aspect ratio(screen size) from there? It should work and has worked for me in the past.


Why does the terminal not hold my root password for sudo?

sudo, by default, times out after a certain number of minutes, 15 by default.  You can change this by running:

sudo visudo

Then, at the bottom, add:

Defaults:userName timestamp_timeout=timeoutInMinutes

Where userName is your username and timeoutInMinutes is the timeout (in minutes) you would like. To always ask for a password, use 0, to only ask once per sessions use -1.

Press Ctrl+O and then Ctrl+X to save and exit.

For git you will need to configure it to remember your username and password. See this Stack Overflow question for more information: How to make Git only ask password when push to remote repository.

Also, your sudo password is not the root password. The root password is the password for the account root (which is disabled by default in Ubuntu). sudo just uses your user's password. A subtle difference, but it is there.


Upgrade from Ubuntu with KDE Desktop to Kubuntu

Just run this command to remove Ubuntu unity related packages(only works for Precice):

 sudo apt-get remove activity-log-manager-common activity-log-manager-control-center adium-theme-ubuntu aisleriot apg apport-gtk aptdaemon aptdaemon-data apturl at-spi2-core bamfdaemon baobab bluez-gstreamer branding-ubuntu brasero brasero-cdrkit brasero-common checkbox checkbox-qt cmap-adobe-japan2 compiz compiz-core compiz-gnome compiz-plugins-default compiz-plugins-main-default compizconfig-backend-gconf deja-dup desktop-file-utils dmz-cursor-theme doc-base duplicity empathy empathy-common eog espeak espeak-data evince evince-common evolution-data-server evolution-data-server-common example-content file-roller firefox firefox-globalmenu firefox-gnome-support folks-common gcalctool gcc gcc-4.6 gconf-service gconf-service-backend gconf2 gconf2-common gedit gedit-common geoclue geoclue-ubuntu-geoip ginn gir1.2-appindicator3-0.1 gir1.2-atk-1.0 gir1.2-atspi-2.0 gir1.2-dbusmenu-glib-0.4 gir1.2-dbusmenu-gtk-0.4 gir1.2-dee-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-gmenu-3.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomekeyring-1.0 gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-gtk-2.0 gir1.2-gtk-3.0 gir1.2-gtksource-3.0 gir1.2-gudev-1.0 gir1.2-indicate-0.7 gir1.2-javascriptcoregtk-3.0 gir1.2-launchpad-integration-3.0 gir1.2-notify-0.7 gir1.2-pango-1.0 gir1.2-peas-1.0 gir1.2-rb-3.0 gir1.2-soup-2.4 gir1.2-totem-1.0 gir1.2-totem-plparser-1.0 gir1.2-ubuntuoneui-3.0 gir1.2-unity-5.0 gir1.2-vte-2.90 gir1.2-webkit-3.0 gir1.2-wnck-3.0 gksu gnome-accessibility-themes gnome-bluetooth gnome-control-center gnome-control-center-data gnome-desktop3-data gnome-disk-utility gnome-font-viewer gnome-games-data gnome-icon-theme gnome-icon-theme-symbolic gnome-keyring gnome-media gnome-menus gnome-nettool gnome-online-accounts gnome-orca gnome-power-manager gnome-screensaver gnome-screenshot gnome-session gnome-session-bin gnome-session-canberra gnome-session-common gnome-settings-daemon gnome-sudoku gnome-system-log gnome-system-monitor gnome-terminal gnome-terminal-data gnome-user-guide gnome-user-share gnomine gstreamer0.10-gconf gstreamer0.10-nice gstreamer0.10-plugins-base-apps gstreamer0.10-tools gtk2-engines gtk2-engines-murrine gtk3-engines-unico gucharmap guile-1.8-libs gvfs gvfs-backends gvfs-bin gvfs-common gvfs-daemons gvfs-fuse gvfs-libs gwibber gwibber-service gwibber-service-facebook gwibber-service-identica gwibber-service-twitter humanity-icon-theme hwdata ibus ibus-gtk3 ibus-pinyin ibus-pinyin-db-android ibus-pinyin-db-open-phrase ibus-table indicator-application indicator-appmenu indicator-datetime indicator-messages indicator-power indicator-printers indicator-session indicator-sound indicator-status-provider-mc5 intel-gpu-tools jockey-gtk landscape-client-ui-install language-selector-gnome launchpad-integration libappindicator1 libappindicator3-1 libatk-adaptor libatk-adaptor-schemas libatkmm-1.6-1 libatspi2.0-0 libavahi-glib1 libavahi-gobject0 libavahi-ui-gtk3-0 libbamf0 libbamf3-0 libboost-serialization1.46.1 libbrasero-media3-1 libburn4 libc-dev-bin libc6-dev libcairo-perl libcairomm-1.0-1 libcamel-1.2-29 libcanberra-gtk-module libcanberra-gtk0 libcanberra-gtk3-0 libcanberra-gtk3-module libcap2-bin libcdio-cdda1 libcdio-paranoia1 libcdio13 libcompizconfig0 libcurl3 libcurl3-nss libdconf-dbus-1-0 libdconf-qt0 libdecoration0 libdee-1.0-4 libdmapsharing-3.0-2 libdotconf1.0 libebackend-1.2-1 libebook-1.2-12 libecal-1.2-10 libedata-book-1.2-11 libedata-cal-1.2-13 libedataserver-1.2-15 libedataserverui-3.0-1 libespeak1 libevent-2.0-5 libevince3-3 libexempi3 libfarstream-0.1-0 libfolks-eds25 libfolks-telepathy25 libfolks25 libfreerdp-plugins-standard libfreerdp1 libgail-3-0 libgail-common libgail18 libgck-1-0 libgconf-2-4 libgconf2-4 libgcr-3-1 libgcr-3-common libgdata-common libgdata13 libgdu-gtk0 libgdu0 libgee2 libgeoclue0 libgexiv2-1 libgksu2-0 libglew1.6 libglewmx1.6 libglib-perl libglib2.0-bin libglib2.0-data libglibmm-2.4-1c2a libgmime-2.6-0 libgnome-bluetooth8 libgnome-control-center1 libgnome-desktop-3-2 libgnome-media-profiles-3.0-0 libgnome-menu-3-0 libgnome-menu2 libgnome2-common libgnomekbd-common libgnomekbd7 libgoa-1.0-0 libgoa-1.0-common libgomp1 libgpod-common libgpod4 libgrip0 libgssdp-1.0-3 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2-perl libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkmm-3.0-1 libgtksourceview-3.0-0 libgtksourceview-3.0-common libgtkspell-3-0 libgtop2-7 libgtop2-common libgucharmap-2-90-7 libgupnp-1.0-4 libgupnp-igd-1.0-4 libgweather-3-0 libgweather-common libgwibber-gtk2 libgwibber2 libibus-1.0-0 libidl-common libidl0 libido3-0.1-0 libindicate-gtk3 libindicator-messages-status-provider1 libindicator3-7 libindicator7 libisofs6 libjavascriptcoregtk-3.0-0 libjson-glib-1.0-0 libjte1 libkpathsea5 liblaunchpad-integration-3.0-1 liblaunchpad-integration-common liblightdm-gobject-1-0 liblircclient0 liblouis-data liblouis2 liblua5.1-0 libmetacity-private0 libminiupnpc8 libmission-control-plugins0 libnautilus-extension1a libnice10 libnm-gtk-common libnm-gtk0 libnotify-bin libnotify4 libnux-2.0-0 libnux-2.0-common liboauth0 libopencc1 liborbit2 liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0 libpackagekit-glib2-14 libpam-cap libpam-gnome-keyring libpango-perl libpangomm-1.4-1 libpeas-1.0-0 libpeas-common libpoppler-glib8 libportaudio2 libprotobuf7 libprotoc7 libproxy1-plugin-gsettings libproxy1-plugin-networkmanager libpurple-bin libpurple0 libqtbamf1 libqtdee2 libqtgconf1 libquadmath0 libquvi-scripts libquvi7 libraw5 libreoffice-gnome libreoffice-gtk libreoffice-style-human libreoffice-style-tango librest-0.7-0 librhythmbox-core5 librsvg2-common librsync1 libsdl1.2debian libsigc++-2.0-0c2a libsonic0 libstartup-notification0 libsyncdaemon-1.0-1 libt1-5 libtelepathy-farstream2 libtelepathy-glib0 libtelepathy-logger2 libtimezonemap1 libtotem-plparser17 libtotem0 libubuntuoneui-3.0-1 libunique-3.0-0 libunity-2d-private0 libunity-core-5.0-5 libunity-misc4 libunity9 libutouch-evemu1 libutouch-frame1 libutouch-geis1 libutouch-grail1 libuuid-perl libvncserver0 libvte-2.90-9 libvte-2.90-common libwacom-common libwacom2 libwebkitgtk-3.0-0 libwebkitgtk-3.0-common libwmf0.2-7 libwmf0.2-7-gtk libwnck-3-0 libwnck-3-common libwnck-common libwnck22 libxklavier16 libxres1 libyaml-tiny-perl libyelp0 libzeitgeist-1.0-1 libzephyr4 light-themes lightdm linux-libc-dev mahjongg make manpages-dev media-player-info metacity metacity-common mousetweaks nautilus nautilus-data nautilus-sendto nautilus-sendto-empathy nautilus-share network-manager-gnome network-manager-pptp-gnome notify-osd notify-osd-icons nux-tools onboard oneconf overlay-scrollbar pinyin-database pkg-config plymouth-theme-ubuntu-logo policykit-1-gnome protobuf-compiler pulseaudio-module-gconf python-appindicator python-aptdaemon python-aptdaemon.gtk3widgets python-aptdaemon.pkcompat python-brlapi python-cairo python-configglue python-dateutil python-debtagshw python-defer python-dirspec python-egenix-mxdatetime python-egenix-mxtools python-gconf python-gi-cairo python-gnomekeyring python-gst0.10 python-gtk2 python-ibus python-libproxy python-libxml2 python-louis python-mako python-markupsafe python-notify python-openssl python-packagekit python-pam python-piston-mini-client python-protobuf python-pyatspi2 python-pyinotify python-serial python-speechd python-twisted-bin python-twisted-core python-twisted-names python-twisted-web python-ubuntu-sso-client python-ubuntuone-client python-ubuntuone-control-panel python-ubuntuone-storageprotocol python-virtkey python-zeitgeist qt-at-spi remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc rhythmbox rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder rhythmbox-plugin-magnatune rhythmbox-plugin-zeitgeist rhythmbox-plugins rhythmbox-ubuntuone seahorse sessioninstaller shotwell simple-scan sni-qt software-center software-center-aptdaemon-plugins software-properties-common software-properties-gtk speech-dispatcher ssh-askpass-gnome system-config-printer-gnome telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut thunderbird thunderbird-globalmenu thunderbird-gnome-support totem totem-common totem-mozilla totem-plugins transmission-common transmission-gtk ubuntu-artwork ubuntu-desktop ubuntu-docs ubuntu-mono ubuntu-sounds ubuntu-sso-client ubuntu-sso-client-gtk ubuntu-system-service ubuntu-wallpapers ubuntu-wallpapers-precise ubuntuone-client ubuntuone-client-gnome ubuntuone-control-panel ubuntuone-couch ubuntuone-installer unity unity-2d unity-2d-common unity-2d-panel unity-2d-shell unity-2d-spread unity-asset-pool unity-common unity-greeter unity-lens-applications unity-lens-files unity-lens-music unity-lens-video unity-scope-musicstores unity-scope-video-remote unity-services update-manager update-notifier usb-creator-gtk vino whois whoopsie xdg-user-dirs-gtk xdiagnose xterm xul-ext-ubufox yelp yelp-xsl zeitgeist zeitgeist-core zeitgeist-datahub zenity zenity-common

Then run this command to install KDE desktop.

 sudo apt-get install kubuntu-desktop

Then run the Ubuntu base update:

 sudo do-release-upgrade -d

You are now running Kubuntu 14.04LTS.

Source:
http://www.psychocats.net/ubuntu/purekubuntuprecise


Try removing your SD, as these errors are talking about your second drive. If you only have one built in hdd, it probably is your SD-card Ubuntu can not properly access. I would think it might be formatted in a strange file system or has physical errors.


How to programatically get program associated with a given file extension?

To sum up the comments above the answer to this problem is a two step process:

First determine the MIME type of the file:

MIMETYPE=$(xdg-mime query filetype "<your-file-here>")

Then get the default application associated with this type:

xdg-mime query default "$MIMETYPE"

So the mime type could be text/x-python for example and the application would be gedit.desktop on my system.

You can also make this a one liner:

xdg-mime query default "$(xdg-mime query filetype '<your-file-here>')"


Make a bootable USB, boot from it and click on install. During the steps, when it asks for the partition, select the partition you already have Ubuntu installed on. :)


Making bootable usb via Make Startup Disk

For now, you just need to get on your friend's Windows PC & get your USB stick, what has previously downloaded Rufus & iso.

Shoutouts to Mark Kirby, who tried to answer this question and also responded quick on my last question and pHeliOn, who accualy answered this question.


Unable to boot into Ubuntu, getting a blinking white cursor

I don't think that that would cause you to be unable to boot but you could revert to your old sh by doing this since /bin/sh is just a symbolic link to /bin/dash anyway...

Boot until you get the blinking cursor then press Ctrl+Alt+F2 to get a terminal then do

cd /bin
sudo rm sh           # if this fails then just go to next
sudo ln -s dash sh

Then you can reboot (sudo reboot)

Edit: For anyone in the future, if you can't access the shell prompt at boot by pressing Ctrl+Alt+F2, you can do one of the following:

Option 1: Boot a live cd and press try then open the terminal and do

sudo mount /dev/sda1 /mnt   #replace sda1 with whatever drive/partition your install is on
cd /mnt/bin
sudo rm sh           #if this fails then just go to next
sudo ln -s dash sh

Option 2: Boot a live cd and press try then open the terminal there and do

sudo mount /dev/sda1 /mnt   #replace sda1 with whatever drive/partition your install is on
sudo chroot /mnt
cd /bin
rm sh           # if this fails then just go to next
ln -s dash sh

Then you can reboot (sudo reboot)

That should revert to the default sh folder.

source: https://askubuntu.com/a/135219/333886


Ubuntu Tweak will continue development, there was so much feed back that the developer decided to continue it.
See Here for webupd8.org's post on it  and Here for the developers blog post.

Computer Janitor was the default program and was removed in 12.04 but can still be found in the Software Center and installed if for some reason Ubuntu Tweak stops development again in the future.

UPDATE: On the developers blog page  there is a link to donate to project development via Paypal.  I too think that this is one of the must have apps for the Untiy DE so I think I will be sending some money myself to help insure that the project will be able to continue.


In addition to @Yaron's answer, you should also have a look at iotop. It will show you which process does read/write operations to your disk. sudo iotop and then press O and you will see that useful information.


Installing Ubuntu without sharing a Windows partition or replacing Windows

In your case the most simple and safe option would be to install Ubuntu and set it to use that second HDD to install it's boot manager (Grub).

When you boot your computer, to boot in Ubuntu, press the key for boot sequence of your Bios or UEFI and select the drive with Ubuntu.

A trick would be to make the notebook to start from that drive as normal, Ubuntu installer would add Windows to it's menu and you'll be able to choose. I've used this setup for some time.

In case that you have Windows installed with UEFI (if your notebook supports) then it will even more simpler, the installer in most recent versions will take care for you without many questions, as for UEFI systems only one common partiotion is used (it's a special UEFI partition, a custom fat32 with some things in a special way organized).


how to fix print screen button not to take multiple shots in the same time?

I suspect that your best option is to use your point no. 4 and alter the keys used to take a screenshot. Perhaps not to Ctrl+PrtScr as you have suggested, as in a default installation this is already being used to copy screenshots to the clipboard.

Navigate as follows:

Dash --> System Settings --> Hardware --> Keyboard --> Shortcuts --> Screenshots

Then click on 'Take a Screenshot' and where it says: 'New Accelerator' type in your new key combination. In the screenshot here you can see that I have used the 'Windows (Super)' key as well as The 'Print Screen' key:

And I suspect that this would be a good choice in your case as well and would fit neatly into your work flow...


libGL.so missing after NVIDIA driver installation

You maybe try this:

sudo bash
cd /use/share/xsession
gedit Xsession

and enter this in the file:

[Default Entry]
Name=Xsession
Exec=/use/share/xsession~

And it might work fine this way.


I don't realize why you need this, but maybe a second user whit the seame uid the first one could work. This way you can have 2 distinct usernames and password besides same permissions.


Is over-provisioning of an SSD possible with dual-boot?

Yes it is:

For Windows with Ubuntu dual boot:

Assuming that you had installed Ubuntu after installing Windows, such that Ubuntu is on the upper end of this disk, you would therefore want to reduce the size of your Ubuntu partition to provide free unused space for the overprovisioning. GPartEd free tool that comes with Ubuntu is ideal for this.
If you need to also resize the Windows partition to give Ubuntu some more space after freeing up the space, you may need to deal with unmoveable files before you adjust the partition size,  guide here: - If necessary, temporarily disable some functionality to remove unmovable files that may prevent resizing, see guide here: http://www.brandonchecketts.com/archives/how-to-shrink-a-partition-with-unmovable-files-in-windows-7 (includes how to turn off restore point files, and swap file, which you'd need to re-enable after)

(I did all of the above)

Also, if interested: For Mac OS and Windows (via Bootcamp):

Resize the Windows partition using Windows built-in Disk Manager, so that there is some spare unused space at the end of the disk, this is for the overprovisioning, a rule of thumb is to allocate 10% of the disk
If necessary, temporarily disable some functionality to remove unmovable files that may prevent resizing, see guide here: http://www.brandonchecketts.com/archives/how-to-shrink-a-partition-with-unmovable-files-in-windows-7 (includes how to turn off restore point files, and swap file, which you'd need to re-enable after)
If necessary, Use CampTune (purchased tool) to increase the Windows partition if you need more space after

(I did all of the above)

I wrote to Samsung on 2 separate occasions and in both they confirmed that overprovisioning is just unallocated space at the end of the drive. There are no vendor unique/specific commands that configure the drive here. Their Samsung Magician software that comes with the SSD has a facility to setup overprovisioning but it is no more sophisticated than setting this up yourself as described, it is just an easier user interface. If this UI approach in the Magician doesn't work, then allocating unused space at the end of the disk has the same effect.


Malformed Entry 1 in list file error for kubuntu Xenial

Open that file as root with a text editor, like Gedit:

sudo -H gedit /etc/apt/sources.list.d/gazebo-stable.list

Remove everything from the file and paste only this:

deb http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial main

Save the file and "sudo apt-get update" should work.


You could try a different wireless mode on your router / hub. I have had problems with this in the past on my older laptop with 11.10 xubuntu. I switched from AES to TKIP mode to solve the problem.

Most routers have WPA-TKIP and WPA2-AES, try both. As a last resort try wep mode just to test.

Make sure you are using latest linux driver if all else fails...

http://gembird.nl/Repository/7551/WNP-UA-001_driver---13a3dbf6-9677-43c5-990e-eaf384692f7f.rar


That is up to you but I would myself do this:

/ 25 Gb. Should be more than enough for a desktop.
/home/ 10-25 Gb. And don't use it (just keep settings in there (or the hidden files))
remainder: a named partition (/discworld is mine).

I myself have 1. and 2. on a SSD and 3. is a 1Tb disk.

Move all directories in /home to /discworld and edit ./config/user-dirs.dir to point to /discworld. Put a copy of the file in /discword/

When you need to reinstall format / and /home/, mount /discworld and copy the user-dirs file over to ./config.
When you want to keep settings in /home you can format / and mount both /home and /discworld. All you then need to do is install the additional software you need and those will pick up your settings files.
a backup consist of making a copy of /discworld

It is not a good idea to keep NTFS when you do not have windows. Problems with the partition are best fixed using Windows. You can use gparted to convert it into EXT. Or move the files and then delete the NTFS and enlarge your /discworld.


How to move all vertical scrollbars to the left side?

The option mentioned by other answers is deprecated in version 3.10.

  GtkSettings:gtk-scrolled-window-placement has been deprecated since
  version 3.10 and should not be used in newly-written code.

  This setting is ignored.

Source: Gnome - GtkSettings

AFAIK, It is difficult to get all apps with scroll to the left. Even if the source of GTK3 libraries is modified to get it, It will affect only apps which uses gtk-scrolled-window. Not apps which compose their own window using scroll component.


How to install XAMPP on other drive then `/opt/`

which is I guess Ubuntu's OS drive folder.

No, it is defined by the Filesystem Hierarchy Standard. See: How to understand the Ubuntu file system layout?  All installations that are foreign to the operating system should default their installation path to /opt.

  How can I install XAMPP in another Linux path other than the default /opt/ ...?

You must install Xampp in /opt/lampp since this is hard coded in some binary files but nothing is stopping you from symlinking it though. Example:

ln -s /some/random/directory/lampp /opt/lampp


I also use Ubuntu 18.04 and ClipIt. At first i did config too many history items, and then indeed i had the same problem : at the bottom of the ClipIt list are 5 menu items (in order top to bottom) : Offline mode, About, Manage history, Preferences and Quit .. but they were not visible due to the config .. so i edit the file /home/$USER/.config/clipit/clipitrc and i changed items_menu=# to a lower number (mine is 18 max now, due to screen resolution and font size). If this was your problem, then here's how to solve it.


How to install Internet Explorer (multiple versions)?

Microsoft has created some customized Windows VHDs with the purpose of allowing web designers to test websites in Internet Explorer 10, 9, 8 and 7, for Free for 30 days:
You can download the virtual machine images from this website:

Free Virtual Machines From IE8 to MS Edge

From the site:

Download the SFX and all RAR files for the VM (smaller VMs may not have files with RAR extension). In each set below that contains a
split archive, the provided text file (.txt) contains URLs to all
files in the set, and this can be used directly with the 'wget'
command in Linux. From the terminal, enter wget -i [URL TO TEXT FILE].
For Windows XP single file downloads, use wget [URL TO DOWNLOAD FILE]
instead.

Example 1:
wget -i https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Linux/IE8_Win7/IE8.Win7.For.LinuxVirtualBox_2.txt

Example 2:
wget https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Linux/IE6_XP/IE6.WinXP.For.LinuxVirtualBox.sfx

After the download of all files for a set is complete, give the SFX file execute permission by typing chmod +x filename.sfx at the
terminal.

Execute the SFX executable from the terminal with ./filename.sfx to expand the virtual machine to the current directory.

See also:

Making Internet Explorer Testing Easier with new IE VMs - Rey Bango
Free Official MSIE VM's for Linux and Mac | Hacker News


Are there any automated functionality tests for an Ubuntu installation?

There is a system testing tool called Checkbox.

"Checkbox is a test runner for Ubuntu. It aims to provide a common framework to run all types of tests, from hardware tests, to command line tests, unit tests or desktop tests and send their results to Launchpad, automatically."


Delete all files but one in a directory after running script

Unquoted strings (such as *, ???, a?c, abc) are interpreted by bash as globbing patterns, and they are expanded to the list of filenames matching the globbing pattern in the current working directory;

From this perspective, an unquoted string not containing wildcards (such as abc) is still interpreted as a globbing pattern matching only a filename such as abc;

Basic globbing performs e.g. the expansion of * to any number of any character and the expansion of ? to a single character;

However negating a globbing pattern is part of the extended globbing features of bash;

Thus in order to expand !(<globbing_pattern>), extended globbing must be enabled in the current bash instance;

Extended globbing is enabled by default when bash is called interactively:

user@user-X550CL:~/tmp$ tree -a
.
|-- 1
|-- 2
|-- 3
`-- script.sh

0 directories, 4 files
user@user-X550CL:~/tmp$ shopt extglob
extglob         on
user@user-X550CL:~/tmp$ rm !(script.sh)
user@user-X550CL:~/tmp$ tree -a
.
`-- script.sh

0 directories, 1 file

However extended globbing is not enabled by default when bash is called non-interactively (e.g. when called to run a script):

user@user-X550CL ~/tmp % tree -a
.
|-- 1
|-- 2
|-- 3
`-- script.sh

0 directories, 4 files
user@user-X550CL ~/tmp % cat script.sh
#!/bin/bash
shopt extglob
rm ~/tmp/!(script.sh)
exit 0
user@user-X550CL ~/tmp % bash script.sh
extglob         off
script.sh: line 3: syntax error near unexpected token `('
script.sh: line 3: `rm ~/tmp/!(script.sh)'
user@user-X550CL ~/tmp % tree -a
.
|-- 1
|-- 2
|-- 3
`-- script.sh

0 directories, 4 files

So the solution is simply to enable extended globbing in the script using the shopt builtin: shopt -s extglob;

user@user-X550CL ~/tmp % tree -a
.
|-- 1
|-- 2
|-- 3
`-- script.sh

0 directories, 4 files
user@user-X550CL ~/tmp % cat script.sh
#!/bin/bash
shopt -s extglob
shopt extglob
rm ~/tmp/!(script.sh)
exit 0
user@user-X550CL ~/tmp % bash script.sh
extglob         on
user@user-X550CL ~/tmp % tree -a
.
`-- script.sh

0 directories, 1 file


How can I attach different signatures to individual emails using the same account in Evolution?

Ok I get to answer my own question. This is actually a bug with evolution and v10.10
Here are a couple of work arounds that helped.

The problem occurred when updating from v10.4 to v10.10. Apparently this is considered a severe bug for business use of evolution.

Below is a screen shot with the problem. Note that the "From" line is missing. This also contains the signature dropdown selector.

The link above describes setting up another email account using none@none as the email address. This is illustrated below.

The result does allow for the "From" and "Signature" form element to be displayed and accessed.

Now if I could only get some Reputation for my great answer!


To completely change everything you don't just need a gnome-shell theme. A gnome-shell theme is only for the title bar and the activities overlay. You also need a GTK+ theme (for the windows), a window theme (for the borders & window buttons) and a new icon theme.

Some packages obtainable from custom PPAs contain all of these, but most of the time you will have to pick them yourself. You can set each of these in the gnome-tweak-tool in the same tab where you changed your shell theme.

Here are some neat ppas that I use:

Satays ppa: https://launchpad.net/~satyajit-happy/+archive/themes (deviantART)

The one and only best icon-theme is Faenza: https://launchpad.net/~tiheum/+archive/equinox

Webupd8 also maintains a nice theme ppa: https://launchpad.net/~webupd8team/+archive/themes/+packages (Announcement)


There is a Canon Printer Driver project page on Launchpad. The packages have not been upgraded for precise yet.

You should be able to install the oneiric files though, as I doubt the dependencies have changed that much.

Go here for the 32-bit or here for the 64-bit drivers.

This will allow for you save the files to your local machine. Once you've saved them you can right click and install the deb file, using a method you prefer.

I will show you the command line method if you prefer. You will need to pull them down the drivers by issuing the following command (In this example I have chosen to use give the commands to pull down the 32-bit drivers, and install them):

wget http://launchpad.net/~michael-gruz/+archive/canon/+files/scangearmp-mp250series_1.70-1ubuntu10_i386.deb

Then install by typing:

sudo dpkg -i scangearmp-mp250series_1.70-1ubuntu10_i386.deb


After much research, it turns out that Bose only allows streaming to its speakers with one of its apps for android, iPhone. They also have an app for streaming from PCs and Mac desktops. The solution is to connect via Bluetooth. The issue is there is sometimes a delay in the audio up to several seconds.


Why does umount automatically remove the mount point of a drive that has been mounted with a file manager?

It is not up to umount to delete a directory so from command line you need to do it yourself.

You can use a script for that:

#!/bin/bash
mount_point=/media/directory
umount $mount_point && rmdir $mount_point &

and save it as umount.sh.

The mount_point might be better off as a variable so you could so

./umount.sh /media/dir

Something like this

#!/bin/bash
mount_point=$1
umount $mount_point && rmdir $mount_point &

  So why is it automatically removed when I run umount on a drive that has been mounted with a GUI file manager?

The answer to this is more likely a design decision. I have not found any documentation on this (maybe someone else can provide a link ;) )


After upgrade to 15.04, wrong temperature readings cause fan to go crazy

I have HP 6910p and facing similar problem. It was temporarily solved with booting from old 3.16.0-34-generic kernel (via Grub Customizer).


So you partitioned the disk yourself, or did you just shrink the Windows partition? Best way is to just shrink it and leave room at the end of the disk so the installer can partition it.

Next you should choose install in the live-CD (on USB or whatever) and have choose 'something else' in the installer.

Then you should specify the partitions you would like to use (or free space), if you'd like to partition this partition, how big it should be and where to mount them.

You should at least have the / partition chosen somewhere. (a couple of GB is enough)
Advisable is a separate /home partition. (because re-installing is much simpler then)
Choose to partition them to ext4.

The installer should install grub for the whole disk. If it ask for it, choose install for all partitions.


To allow a port

sudo ufw allow 3306

if its ufw is not installed is probably iptables

sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT


Count total number of files in particular directory with specific extension

Unfortunately this benign problem is difficult to solve in a way which supports all file names and is portable. This is safe (it handles hidden files, paths containing spaces, dashes and even newlines) and POSIX compatible:

find /path/to/directory -mindepth 1 -type f -name "*.mp4" -printf x | wc -c

If you don't want it to be recursive, simply add -maxdepth 1.

You shouldn't parse ls output.

Test:

$ cd -- "$(mktemp -d)"
$ touch -- -foo.mp4 .bar.mp4 .bat.mp4 'baz.mp4
> ban.mp4'
$ find . -mindepth 1 -type f -name "*.mp4" -exec printf x \; | wc -c
4

Compare with the accepted answer:

$ ls -lR ./*.mp4 | wc -l
3

Or other suggestions:

$ find . -name "*.mp4" | wc -l
5
$ ls -1 *.mp4 | wc -l
ls: invalid option -- '.'
Try 'ls --help' for more information.
0
$ find . -name "*.mp4" | wc -c # Answer fixed at a later time
51
$ find . -name "*.mp4" | wc -l
5
$ find . | grep -i ".mp4$" | wc -l
5
$ ls . | grep ".mp4$" | wc -l
3


You can use indicator-multiload for this. To install, run the following commands:

sudo apt-get update
sudo apt-get install indicator-multiload

Now, run indicator-multiload:

indicator-multiload & disown

Then, click on the indicator and select preferences to customize the output. You can display graphs, text or both for many different areas and not just netspeed.


Dragging and dropping a file on launcher icon does not raise the window in Unity

Ubuntu bug 607796 is about this.  The design team has approved for this behavior to be implemented in Unity.  But it has not been a priority, and has not been worked on yet, at least as visible from the bug report.  I'd recommend subscribing to that bug report, at the least.

I see that the most recommended practice here is to close this question as off-topic.  I see that happened to this similar question.  I'm going to leave that to more experienced Ask Ubuntu users.  Thanks.


Mouse doesn't click but I can move it in ubuntu 18.04

I think this is a Driver Issue or A bug on their latest update. Don't worry about it you can update your drivers using your keyboard. Use Tab key as per as your requirement and search for "Additional Drivers" & update it. Or wait till their next Patch Update.


Can Microsoft Office 365 or a similar web app be used from Ubuntu?

I got this working on Ubunut using this user agent spoofer extension, http://spoofer-extension.appspot.com/.

It doesn't work on the built in Windows Chrome 13 user agent, but if you use this user agent , taken from this site,    Mozilla/5.0 (Windows NT 5.2; WOW64) AppleWebKit/535.7 (KHTML, like Gecko)  Chrome/16.0.912.63 Safari/535.7 It should work.

Note that you may have to logout and log back in for the user agent to be properly reread.


Unable to listen on a specific port in Ubuntu 16.04

You can only listen on ports below 1024 using sudo. These are privileged ports:

  The TCP/IP port numbers below 1024 are special in that normal users are not allowed to run servers on them. This is a security feaure, in that if you connect to a service on one of these ports you can be fairly sure that you have the real thing, and not a fake which some hacker has put up for you.

Source

Example:

$ nc -l 127.0.0.1 1017
nc: Permission denied

However this will work:

$ sudo nc -l 127.0.0.1 1017


Upgraded to 14.04 but have a problem editing grub

Open Ubuntu's configuration file for grub:

sudo nano /etc/default/grub

Edit the content of the variable GRUB_CMDLINE_LINUX to include the word nomodeset
Use ctrl+x to save the file and exit nano.
Update the grub boot script to use your new config with sudo update-grub.


Ubuntu 12.10 can not go past the login screen

Chek your  ~/.profile, and see in last line. Maybe something wrong there, just comment it and try to reboot.


Run out of space on /home partitioned on the end of my disk

The safest/easiest way to do this is:

take a full disk-to-image clone using CloneZila onto an external hard drive.
No, I wasn't kidding when I told you to take a full system backup!
Using the gparted live CD or any recent Ubuntu boot CD go to the Gnome Partition Editor (gparted) and do the following:

move / to the beginning of the disk
move swap until after /
move /home until after swap
press Apply
go sleep (it'll take all night)

now extend /home to however much you want.
run update-grub
reboot into your Ubuntu system without Windows!


How to add my Ubuntu 12.10 to my windows xp boot.ini file?

Use EasyBCD:
1-Open It!
2-"Add a new entry"
3-> "Linux/BSD" Tab
4-Type:"GRUB 23
  Name :
  Drive:
5-"Add Entry"
6-"BCD Deployment" (on the left)
7-Select "Install the Windows XP ..."
8-"Write MBR"
You can reboot now and enjoy!:D
I've just copied this from dualbooting btw Ubuntu and Win8 (after intalling win8)
I didn't test that but it worked for me on Win8 (not XP) :/
Try it and let me know :D


Landscape scripting - access denied when trying to copy files

The most likely scenario is that when you originally set up your Landscape clients, you did not give them the permission to execute scripts.

You should re-run the setup of each Landscape client, granting the ability to run scripts as root.

Try sudo dpkg-reconfigure landscape-client


GUFW does not open for configuration in 16.04

Install python-gi:  sudo apt-get install python-gi

In case it doesn't work (unlikely), install python-gobject: sudo apt-get install python-gobject.

On my system, python-gi was the missing package.  I haven't installed python-gobject at all.


Here's what did it:

sudo pvresize /dev/sda3
sudo lvresize -l +100%FREE /dev/mapper/ubuntu--vg-root
sudo resize2fs /dev/mapper/ubuntu--vg-root

and here's the output:

tiny@ubuntu:~$ lsblk
NAME                 MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                    8:0    0 931.5G  0 disk
├─sda1                 8:1    0   512M  0 part /boot/efi
├─sda2                 8:2    0   488M  0 part /boot
└─sda3                 8:3    0 929.4G  0 part
  └─ubuntu--vg-root 252:0    0 464.8G  0 lvm  /
tiny@ubuntu:~$ df -h
Filesystem                    Size  Used Avail Use% Mounted on
udev                           95G     0   95G   0% /dev
tmpfs                          19G   11M   19G   1% /run
/dev/mapper/ubuntu--vg-root  458G  239G  198G  55% /
tmpfs                          95G     0   95G   0% /dev/shm
tmpfs                         5.0M     0  5.0M   0% /run/lock
tmpfs                          95G     0   95G   0% /sys/fs/cgroup
/dev/sda2                     473M  120M  329M  27% /boot
/dev/sda1                     511M  3.4M  508M   1% /boot/efi
tmpfs                          19G     0   19G   0% /run/user/1000
tiny@ubuntu:~$ sudo pvresize /dev/sda3
  Physical volume "/dev/sda3" changed
  1 physical volume(s) resized / 0 physical volume(s) not resized
tiny@ubuntu:~$ sudo lvresize -l +100%FREE /dev/mapper/ubuntu--vg-root
  Size of logical volume ubuntu-vg/root changed from 464.78 GiB (118984 extents) to 929.41 GiB (237929 extents).
  Logical volume root successfully resized.
tiny@ubuntu:~$ lsblk
NAME                 MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                    8:0    0 931.5G  0 disk
├─sda1                 8:1    0   512M  0 part /boot/efi
├─sda2                 8:2    0   488M  0 part /boot
└─sda3                 8:3    0 929.4G  0 part
  └─ubuntu--vg-root 252:0    0 929.4G  0 lvm  /
tiny@ubuntu:~$ df -h
Filesystem                    Size  Used Avail Use% Mounted on
udev                           95G     0   95G   0% /dev
tmpfs                          19G   11M   19G   1% /run
/dev/mapper/ubuntu--vg-root  458G  239G  198G  55% /
tmpfs                          95G     0   95G   0% /dev/shm
tmpfs                         5.0M     0  5.0M   0% /run/lock
tmpfs                          95G     0   95G   0% /sys/fs/cgroup
/dev/sda2                     473M  120M  329M  27% /boot
/dev/sda1                     511M  3.4M  508M   1% /boot/efi
tmpfs                          19G     0   19G   0% /run/user/1000
tiny@ubuntu:~$ sudo resize2fs /dev/mapper/ubuntu--vg-root
resize2fs 1.42.13 (17-May-2015)
Filesystem at /dev/mapper/ubuntu--vg-root is mounted on /; on-line resizing required
old_desc_blocks = 30, new_desc_blocks = 59
The filesystem on /dev/mapper/ubuntu--vg-root is now 243639296 (4k) blocks long.

tiny@ubuntu:~$ df -h
Filesystem                    Size  Used Avail Use% Mounted on
udev                           95G     0   95G   0% /dev
tmpfs                          19G   11M   19G   1% /run
/dev/mapper/ubuntu--vg-root  915G  239G  637G  28% /
tmpfs                          95G     0   95G   0% /dev/shm
tmpfs                         5.0M     0  5.0M   0% /run/lock
tmpfs                          95G     0   95G   0% /sys/fs/cgroup
/dev/sda2                     473M  120M  329M  27% /boot
/dev/sda1                     511M  3.4M  508M   1% /boot/efi
tmpfs                          19G     0   19G   0% /run/user/1000
tiny@ubuntu:~$


Make a Launcher for a Privileged Terminal Command

You don't need a gnome-terminal while running commands with gksudo .

just add  this to the launcher .

gksudo cgpt add -i 6 -P 0 -S 0 /dev/sda;reboot


Burned CD-R are not identical to the input iso image, why?

Indeed, it's probably padding. Check the file sizes, is output.iso slightly larger?

Look at the very end of output.iso:

dd if=output.iso bs=1 seek=658562000 count=1071 | hexdump -C

I'm guessing zeros?

You can try running ls -l input.iso to get its exact size, then:

dd if=output.iso bs=1 count=<INPUT.ISO SIZE> | md5sum

Note that this will be pretty slow since you're reading one byte at a time. If the size is evenly divisible by an integer, substitute that integer for the 1 in bs=1 and divide the count by that number. Even 2 bytes at a time will be much faster!

As to your second question, the Input/output error happens when dd hits the end of the device. Nothing to worry about.


vpn do not mask the original ip in gmails

It do work but it depends if your using free if your using free or that ip has been flagged free one have some time been flagged so they will not work i find cyberghost work well if you go premium + and its fast and easy and do not need a email to sign up.


There was an issue with grub. The grub-install wasn't the problem, but rather update-grub, thus the config file for grub is not created.

If the installer has a command line option at the bottom it will make this a lot easier. since you can go back to install grub after making this change. otherwise you will have to finish without installing grub then use a live CD to fix the problem and install grub.

The file /etc/grub.d/30_uefi-firmware is a script for adding the system uefi console to the grub menu. It errors out.

I edited mine to read:

set -e
gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2

cat << EOF

menuentry 'uefi-firmware' {
fwsetup
}

EOF

then updated grub.

if you can make this change without leaving the installer, go back to install grub and it should work.

If not then it becomes more complicated but can still be done.


Ubuntu 13.10 laptop bluetooth not working properly

Maybe this helps:

I suspect your bluetooth not working on 13.10 can be attributed to a bug in the latest kernel.

It can be fixed by installing a bazaar fork below:

https://code.launchpad.net/~robert-ancell/indicator-bluetooth/dont-hide-on-rfkill

Installation instructions can be found at:

How do I install a bazaar fork in 13.10?

The summary of commands to use:

sudo apt-get install bzr build-essential
sudo apt-get build-dep indicator-bluetooth
bzr branch lp:~robert-ancell/indicator-bluetooth/dont-hide-on-rfkill
cd dont-hide-on-rfkill
dpkg-buildpackage
cd ..
sudo dpkg -i indicator-bluetooth_0.0.6daily13.02.19-0ubuntu1_amd64.deb

Restart the system.

Details are at Missing Bluetooth indicator


how are modules assigned? and how would you troubleshoot modules?

I think it should work fine.

My understanding is that the hardware has some identifiers (like the model name), and the kernel mainains a lookup database to find potential modules.  This will inevitably result in several relatively compatible modules, and the kernel goes with the first one (until it fails), then tries the next one, etc.

Blacklisting tells it to skip specific modules.  But you shouldn't need to do this unless there is a reason you don't want to use it (examples: issues, performance. etc.)

So yes, it should work fine.


How are the Official Ubuntu Vagrant boxes built and published to Atlas?

You would be correct that the build process for Ubuntu images is all open!

For 16.04 and newer

Look at the livecd-rootfs package for how the images are built:

https://code.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk
http://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk/view/head:/live-build/ubuntu-cpc/hooks/042-vagrant.binary

For older releases of Ubuntu

https://code.launchpad.net/~ubuntu-on-ec2
https://launchpad.net/vmbuilder

Specifically:

https://code.launchpad.net/~ubuntu-on-ec2/vmbuilder/jenkins_kvm

And this is probably what you're looking for:

http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/jenkins_kvm/view/head:/jenkins/CloudImages_Vagrant.sh


How to only install updates from a specific *file* repository?

You need to include the version of the Debian-based system you are using - you can find it with:

cat /etc/os-release | grep VERSION=

In Ubuntu 13.10, you get this:

VERSION="13.10, Saucy Salamander"

So for Ubuntu 13.10, you would need to include the word saucy, like this line for one of the main repostories:

deb http://gb.archive.ubuntu.com/ubuntu/ saucy universe

You can look at the existing repositories on your system using:

cat /etc/apt/sources.list

In Ubuntu, you can add software using sudo add-apt-repository .., and then running sudo apt-get update. This may not work for outdated systems.

More here


How to force Ubuntu 14.04 to use HDMI only

Based on the input of @kgiii, I have figured it out.

For starters, I am managing this computer remotely, so I had to do:

$ xrandr --display :0
Screen 0: minimum 8 x 8, current 3840 x 1200, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 367mm x 230mm
   1920x1200      60.0*+
HDMI-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 820mm x 460mm
   1920x1080      60.0*+   59.9     24.0     60.1     60.0
   1600x1200      60.0
   1440x480       60.1
   1400x1050      60.0
   1360x768       60.0
   1280x1024      60.0
   1280x720       60.0     59.9
   1024x768       75.0     70.1     60.0
   800x600        75.0     72.2     60.3     56.2
   720x480        59.9     60.1
   640x480        75.0     72.8     59.9     59.9

From here, I was able to construct the xorg.conf file I needed based on the link @kgiii linked to:

Section "Monitor"
        Identifier      "laptop panel"
        Option  "ignore"        "true"
EndSection
Section "Monitor"
        Identifier      "big display"
EndSection
Section "Device"
        Identifier      "onboard"
        Option  "Monitor-LVDS-0" "laptop panel"
        Option  "Monitor-HDMI-0" "big display"
EndSection

There was no /etc/X11/xorg.conf file on my ubuntu install. Maybe that's normal, I'm not entirely sure. But it takes priority over any other Xorg config file as far as I understand.

This has effectively made the HDMI out my primary and only display.

If, like me, you're setting this up on a computer that is hard to reach directly, make sure it's connected to a network with an IP address you know about (I assign IPs based on mac address). You can remove the /etc/X11/xorg.conf file and restore normal functionality this way. It's a lot easier through SSH ;)


How can I remove RAID 1 on Ubuntu 18.04 server to reclaim storage space?

If you're running Ubuntu Server in a production environment, then you should have some recent backups of your data. The fastest and least frustrating way to change RAID1 to independent storage devices in this scenario would be to reinstall the operating system, then restore from the most recent backup.
If you're running Ubuntu Server in a development environment, then backups may be less important as everything may be set up to be ephemeral, allowing for quick refreshes. The fastest and least frustrating way to change RAID1 to independent storage devices in this scenario would be to reinstall the operating system, then restore the development environment using the configuration scripts you likely have.
If you're running Ubuntu Server in a situation where backups have never been performed and are way off the radar, then the fastest and least frustrating way to add storage would be to keep the RAID1 configuration — as it was likely configured RAID1 for a reason — and install some additional storage devices, be they spinning disks or solid state devices. From there you can mount the new devices to specific locations and manage the data accordingly.
These really are the simplest options. While it is technically possible to do what you're asking, it's not something that should be done without a very solid understanding of how file systems work, how file systems break, and how file systems are fixed.


Below is my FSTAB line to mount on my desktop computer a USB drive that is attached to a (remote) router.  Two points, you may need to identify the file system as "CIFS" and and you may need to include  "sec=ntlm".

#Mount Western Digital Passport Drive On Router
//rt-n56u/sda1 /media/My_Passport cifs rw,sec=ntlm,guest,uid=1000,gid=34,iocharset=utf8,nofail 0 0


How to copy a part of a line to another position

sed 's/\(.*("\)\(.*,\)\(.*\))/\1\3: \2\3)/' /path/to/input.txt >/path/to/output.txt

Explanation

The general format is sed 's/find/replace/'. i.e. find an expression and replace it.
\( ... \) these are capturing groups. So anything that matches in between them is "captured" in a variable and can be recalled in the replace part, with \1, \2, \3, etc.
So here, find \(.*("\)\(.*,\)\(.*\)).

Capturing group 1: .*(". Capture from the beginning to anything that ends with ("
Capturing group 2: .*,. From #1, capture up to ,.
Capturing group 3: .*. Capture up to (but not including) ).

Then replace with the capturing groups and additional formatting \1\3: \2\3).


There is no backlight with an OLED screen. So the normal methods do not work.
Adjust screen brightness by way of:

xrandr --output eDP1 --brightness .5  # dim to half

xrandr --output eDP1 --brightness 1  # no dimming

the number can be anything between 0 and 1


Monitor connected through VGA to HDMI converter not always detected

Try, After to connect, VGA/HDMI, I going to "System Settings" -> "Display"; and worked for me.

I hope help you.


What is the meaning of the words with underline in a man page?

Most underlined words in man pages are for emphasis. Its is not a hyperlink .


Pipe script output in terminal to filter lines

You could use a more specific shell glob for file selection - and use the same glob inside a parameter expansion (avoiding the call to sed altogether). Ex.

#!/bin/bash

shopt -s nullglob globasciiranges

for f in *[^0-9A-Za-z_.]*.{jpg,png,webm,mp4}; do
  echo mv -n -- "$f" "${f//[^0-9A-Za-z_.]/_}"
done

(the globasciiranges option so as to avoid surprises with collation order).

You might want to take a look at the Perl-based rename command instead though.


It's working on my PC. Maybe you'd want to check your route and /etc/resolv.conf


Tweaking "Applications Menu" extension on Gnome3/U18.04

Workaround

Note: I have tested it in Ubuntu 18.04, It has some side effects. Like in lock screen, or if you disable dash-to-panel extension.

Assuming your extension is located in $HOME/.local/share/gnome-shell/extensions/ and you have turned off the "Show Application Icon" for Dash to Panel Extension.

Open the file $HOME/.local/share/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com/extension.js

go to line numbers 420 & 421, and delete these two lines

now add below content at line number 421 like below

hbox.add_child(new St.Icon({ style_class: 'my-gnome-foot-print',
                               icon_name: 'view-app-grid-symbolic' }));

Now Observe that "Applications ↓" is replaced with view-app-grid-symbolic system icon.

save the work and relax.

Now you can play with the .css file as you wish.

Open the file stylesheet.css from $HOME/.local/share/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com and paste below content at the end of already existing text like below

.my-gnome-foot-print {
color: transparent;
background-image: url("my-gnome-foot-print.svg");
background-size: contain; }

your image must be present in the extensions folder as visible in the above image.

One of the side effect that is lock screen problem is not seen when this extension is placed in /usr/share/gnome-shell/extensions/ and dash-to-panel extension is used.


What happened is sdc got added to the array.  The reason you want to partition the drive instead of using the whole thing in the array is so that you can install grub to the drive so you can still boot from it if the/an another disk fails.


Display problem with TeX codes in browsers

I will not ask why you do not have root access to your workstation.

If you want to have it installed from the repository, somebody has to have and needs to run

sudo apt-get install texlive-latex-extra

where the package thmtools is found.

But I fail to see how that alone would enable you to see LaTeX-rendered equations in browsers unless using MathJax or something similar.

Edit

At least on Chemistry.SE, the array environment \begin{array} has to be escaped with a leading backslash:\\begin{array}. Actually, you have to escape every backslash.


Remapping keys in a Mac in Lubuntu 14.04

Add the commands in your $HOME/.Xmodmap file:

keycode 104 = ISO_Level3_Shift
keycode 169 = Delete
keycode 134 = Menu

Logout, login, that is!


"No module named gnomeapplet " error when trying to run battery indicator

ImportError: No module named gnomeapplet

In Gnome 2 - this python module would be installed by the package python-gnomeapplet.

However - this python module is not compatible with the Gnome 3 Panel - so the package has been dropped.

  python-gnomeapplet is no longer being developed as Python developers
  need to use GObject Introspection instead of PyGTK to work with GTK3.

source


Chromium browser doesn't open on Ubuntu 16.04

I learned the problem was with display. I learned it through screenshot I took. It showed double screens. So I looked on the internet for the answer and learned that I had to turn off the "Built-in Display" in System Settings -> Displays menu. After turning off that "Built-in Display" in System Settings, all browsers that was not opening before started to open. Google Chrome, Chromium browser and Opera browser are working now. Vivaldi browser was not showing an extra new window, but that is also working now.


After installing manpages-posix-dev, the problem seems to be solved.


just downloaded ubuntu on macbook pro and cannot see internet connections available

Open up terminal by

Shift + Ctrl + T

Then type following command to determine which version of MBP you have.

  sudo dmidecode -s system-product-name

You might wanna check here

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

and here.

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

Hope this helps.


Installing Ubuntu 14.04 on dell precision 3800

Windows 8 (or 8.1) needs to be properly shutdown, so Windows can unmount the disc.

And also, if you have a problem with your USB pendrive, you need to Eject and then plug it in again when you install Linux on it.It needs to be named like this: "Install Ubuntu"

If you can not still install, try to search for a new version of your BIOS.


One Ubuntu laptop on wifi occasionally makes other laptop's connection slow

The BroadComm wl driver has a bug that correspond with the problem. You can disable it by running:

sudo sh -c "echo 'blacklist wl' >> /etc/modprobe.d/broadcomm-blacklist.conf"
sudo sh -c "echo 'brcmsmac' >> /etc/modprobe.d/broadcomm.conf"

then reboot the system.


I could'nt use ethernet in windows so i installed Ubuntu14.04 but its same.i ran the commands results are below

Looks like your ethernet isn't being detected, you could try this command

sudo ifconfig eth0 up

If it doesn't do anything your ethernet controller broke.


How to force start ubuntu without keyboard

Plug in an external keyboard.  You can likely buy an old PS2 or USB keyboard for less than $10 from a garage sale or Goodwill or something, if you don't already have one on hand.


Ubuntu Server 18.04.2 LTS, do not find external disk usb

server had usb protection block from BIOS, thanks a lot everybody!


Try out buildtorrent to create a file. Buildtorrent provides Webseed functionality.

To install buildtorrent:

 sudo apt-get install buildtorrent

Usage:

  buildtorrent [OPTIONS] -a http://tracker.yoursite.com input output
  buildtorrent [OPTIONS] -a http://tracker.yoursite.com -f filelist -n name output

To enable Webseed option

--webseeds        -w  <webseeds>   : webseed url list (format: a,b,c)


After upgrade from 64bit Ubuntu 16.10 to 17.04 the laptop won't boot

boot through live USB or CD and intall boot repair. for boot repair https://help.ubuntu.com/community/Boot-Repair  after repairing restart. check if it works.


Some brief google searches suggest this likely to be a problem with bad RAM, which could explain your previous issues with both Windows 8 and Ubuntu 12.04.

My suggestion to confirm this would be to boot into a Linux distro (e.g. Ubuntu) off of some removable media and attempt to run a memory test for at least several hours.

If you have access to another computer, you could use UNetbootin in either Windows or Linux to create a bootable thumb drive of Ubuntu 12.04, and follow these instructions during boot to access the menu allowing you to test your RAM.


You have tor "service" set up and running successfully. Now you need to make your browser to connect to internet through tor. Because when you start tor, your network connections will not automatically be directed into tor (unlike what you see in VPN programs).

Tor is a SOCKS proxy, and you must give it's IP and port to your web browser to take advantage of it (like old HTTP proxies that we used in Iran years ago before enhancing internet filtering infrastructures, if you remember that era!)

There is two ways to use Tor with Chromium Browser (or Firefox):

The stupid (but simple) method is to launch your browser using torify command. just precede your browser with torify like torify chromium-browser. You can use this method for any application or command line utility!
The recommended method is to use an addon to add SOCKS proxy support to your browser. I suggest "FoxyProxy Standard" which is available for both Chrome and Firefox.
Configuring Foxyproxy is simple: go to option page > select the proxy named "Default" (probably with blue icon) > click on "Edit Selection", Then configure it as below:

And finally, whenever you want, tell your browser to "use proxy Default for all URLs":

P.S. You can use Shift+PrtScr to take screenshot of an "area" rather than all the screen.


2 AMD 7950's do not work in crossfire mode

When I was researching on how to install ATI driver for my laptop, I came across this webpage. In the Post Install section the author describes this command: aticonfig --adapter=all --initial -f, in a Note. If you have not tried this before, see if it works.

This Arch Linux discussion pretty much gives all the commands and issues related to cross fire. I have used all the commands and all work except that CF cannot be enabled on my laptop. I thought it might be useful for you. Summing it up:

Add Multiple GPU chain:
aticonfig --cfa --adapter=0,1

Switch CF on:
aticonfig --cf on --adapter=0,1 or aticonfig --adapter=0,1 --crossfire=on. Reboot to take effect.

Check if CF is enabled: aticonfig --lscs

See the load on the GPUs: watch -n10 aticonfig --adapter=all --odgt --odgc

See GPU chain info for each GPU: aticonfig --lsch

By the way, I am running Ubuntu 13.04 64bit with catallyst driver 13.4 for linux from AMD's website.


apt-get not using http_proxy in ubuntu 13.10

You should provide your proxy with the authentication parameters in your /home/$USER/.bashrc file as export http_proxy=http://username:password@host:password/.

If you have special characters(non-alphanumeric characters) like ", ', @, : etc. in your password, you should use the HTML codes for the characters instead.

For example, if you password is p@ssw0rd, you should type the password as p%40ssw0rd in the /home/$USER/.bashrc file and then export these variables to the current session as source /home/$USER/.bashrc. (%40 is the HTML code for @.)


How to set up transparent background in XFCE terminal?

Go to Preferences, Appearance tab, Under Background select 'Transparent Background' and move the slider beneath it to the left.

The option may be hidden if no Compositor is active, either built-in or Compiz.


I've tried a couple more things and now wifi works again. Not sure what fixed it but I think it was this:

cd /etc/NetworkManager/system-connections
sudo rm *

reboot


How to upgrade Ubuntu without losing packages?

In theory, the upgrade should smoothly take over your package selection -- with possible exception of packages from outside of the main distribution tree (like custom launchpad repositories). However, to be on the safe side, back up your package selection:

dpkg --get-selections > packages.txt

Later, you can restore these selections by issuing (as root)

cat packages.txt | dpkg --set-selections && apt-get dselect-upgrade

In any case, remember to back up your system before upgrading, including /etc. And make sure your backups work!


Does the automatic backup backup itself?

Deja Dup (the name of the default backup program in Ubuntu) will ignore its own backup folder, where it keeps the backup files. There should be no looping.

It does this automatically, you don't need to add it to your list of folders to ignore during a backup.


plank has duplicate icons for added launchers in LXDE

These answers helped me:
http://elementaryos.org/answers/plank-shows-duplicate-icons-for-some-apps-when-you-open-them

Namely, copying /usr/share/applications/google-chrome.desktop to /usr/share/applications/google-chrome-stable.desktop and replacing Exec=/usr/bin/google-chrome-stable with Exec=/usr/bin/google-chrome in both files.


Unable to install packages in Ubuntu 14.04 LTS from apt-get

The log above says: "freeglut3-dev is already the newest version."
so you have this app in your system also it says there are packages not use and which could be deleted.
I would recommend you to update system first

sudo apt update

then install updates

sudo apt upgrade

install system updates

sudo apt dist-upgrade

install missed dependencies

sudo apt install -f

and then clean unnecessary packages

sudo apt-get autoremove
sudo apt-get autoclean

Now try to install something.


I tried to install oracle 18c on ubuntu 20.04, how to configure it

You can save yourself a lot of time by downloading Oracle's Virtual Box and then grabbing some of their Development VMs to load into it.  They have pre-configured tools, databases, etc. so that you don't have to waste your time doing these things.
https://www.oracle.com/downloads/developer-vm/community-downloads.html#dbapp
It's all free.


Access denied when attempting to delete root files from trash bin

Access denied is usually because there is some other program/something locking, and probably using, those files. Permission denied is what you get if you lack permissions.

The first thing you should try to do is rebooting your machine to make sure no other program is locking those files.

If that fails, and assuming we are dealing with a hard drive, instead of a removable media (like a pen drive, external hard drive, etc) a good solution would be simply booting into a live media. To do this you can use the media you used to install Ubuntu, and when prompted, instead of choosing Install Ubuntu, you should choose Try Ubuntu.

After that we want to mount your hard drive to access the files. It will probably appear on your file manager, but if it doesn't show up there, you can mount it with:

udisksctl mount --block-device /dev/sdXY

You have to substitute both the letters X and Y from the command above with the correct ones from your drive. You can see the drive you want to choose with lsblk. If your drive is using LUKS/Full disk encryption, you will want to unlock it before mounting.

udisksctl unlock --block-device /dev/sdXY

After mounting, navigate to the location of the trash folder, which is usually /home/USER/.local/share/Trash/ and attempt to remove it with sudo rm -rf. So something similar to this, again, making sure you substitute the USER with the proper user whose trash you wish to delete.

sudo rm -rf /home/USER/.local/share/Trash/


snapd is not integrated with Ubuntu Touch yet, so on the phone or on the tablet, you won't be able to easily install snap packages.

That said, you can take a look at https://github.com/ubuntu/snappy-playpen/tree/master/ubuntu-clock-app to see how the Ubuntu Clock app (from the phone) was turned into a snap package, so it can be run on the Unity7 desktop.

What you are after is in the works, but it's not quite there yet. Getting your app ready to be snapped will make sense in any case.


When the USB stick first starts to boot, edit the default boot options and remove the parameter "floppy.allowed_drive_mask=0"


install the drivers for the built in blueray /dvd drive and other such hardware on my laptop?

Playback should be supported for most DVD types by enabling the ubuntu-restricted-extras package.

sudo apt-get install ubuntu-restricted-extras

You may also need to install libdvdcss.

sudo apt-get install libdvdread4
 sudo /usr/share/doc/libdvdread4/install-css.sh


You can't have more than one application listening to a port on a device. You have the following choices:

Remove Nginx or Apache. Just use one.
Keep both and move Apache or Nginx to another port. From there you can have the port80 server proxy the other one so that it is available for certain domains (see proxy_pass or mod_proxy).
Keep both and move Apache and Nginx onto distinct IP addresses or interfaces. If your server is configured to have 10.0.0.3 and 10.0.0.4 (just examples) you could give the first to Apache and the second to Nginx and both could have a port80 on their respective IPs. This has knock-on consequences for DNS but that's not hard to account for.

This does mean you need to stop using 0.0.0.0 as a setting in both servers.


How should I make the date command use the same format as rdiff-backup?

I don't think GNU date has any option for printing Z instead of the UTC timezone. It's easy enough with sed:

$ date '+%FT%T%:z'
2017-01-24T14:06:39+00:00
$ date '+%FT%T%:z' | sed 's/+00:00$/Z/'
2017-01-24T14:07:52Z


Why all of sudden Ubuntu 20.04 becomes slow, very slow? (It's been one month still no solution)

Enter the command sudo apt install htop to install Htop to see what's causing the heavy load. If you find one, just simply kill the process to check if that solves your problem.


I have found the source of this window. It is unity-settings-daemon's plugin located in line 99 of plugins/media-keys/what-did-you-plug-in/dialog-window.c (in dialog_create function, called later by wdypi_dialog_run):

88    gtk_window_set_title(GTK_WINDOW(d->dialog), _("Unknown Audio Device"));
...
99    d->label = gtk_label_new(_("What kind of device did you plug in?"));
...
103   d->hp_btn = create_icon_button(WDYPI_DIALOG_HEADPHONES, _("Headphones"), "audio-headphones");
...
106   d->hs_btn = create_icon_button(WDYPI_DIALOG_HEADSET, _("Headset"), "audio-headset");
...
110   d->mic_btn = create_icon_button(WDYPI_DIALOG_MICROPHONE, _("Microphone"), "audio-input-microphone");
...
115   d->cancel_btn = gtk_dialog_add_button(GTK_DIALOG(d->dialog), _("Cancel"), GTK_RESPONSE_CANCEL);
116   d->settings_btn = gtk_dialog_add_button(GTK_DIALOG(d->dialog), _("Sound Settings…"), GTK_RESPONSE_YES);

This dialog is shown by PulseAudio event see line 2720 of plugins/media-keys/gsd-media-keys-manager.c: on_control_card_info_updated calls pa_backend_card_changed (then it calls get_headset_ports) :

static headset_ports get_headset_ports(const pa_card_info *c)
{
    headset_ports h = {NULL, NULL, NULL};
    int i;
    for (i = 0; i < c->n_ports; i++) {
        pa_card_port_info *p = c->ports[i];
        if (!strcmp(p->name, "analog-output-headphones"))
            h.headphones = p;
        else if (!strcmp(p->name, "analog-input-microphone-headset"))
            h.headsetmic = p;
        else if (!strcmp(p->name, "analog-input-microphone"))
            h.headphonemic = p;
    }
    return h;
}

and finally shows dialog with on_wdypi_popup and wdypi_dialog_run.

In the installed system this phrase ("What kind of device did you plug in?") is found in:

unity-settings-daemon: /usr/lib/unity-settings-daemon/usd-test-media-keys
unity-settings-daemon: /usr/lib/unity-settings-daemon-1.0/libmedia-keys.so

According to source code clicking on "Sound Settings" will open unity-control-center sound.

Note: the libjack-jackd2-0:amd64 package is pre-installed on clean Ubuntu 14.04 LTS.

$ aptitude why libjack-jackd2-0:amd64
i   gstreamer1.0-plugins-good Depends libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116

$ aptitude why gstreamer1.0-plugins-good
i   rhythmbox Depends gstreamer1.0-plugins-good (>= 1.0.6)

Sound is maintained by PulseAudio and then by Unity Settings Daemon.


I had this problem, too. It went away after I opened a terminal and ran:
sudo apt install kdesdk
sudo apt-get update

I regret to say that I don't know why this cycle started. Perhaps hunting around here: linuxappfinder.com/package/kdesdk will reveal something.


Open System -> Preferences -> Personal -> Startup Applications (or run mate-session-properties) and there's actually "Tilda" there, just waiting to be disabled xD

It surely gives that extra ~40MB of free RAM and unnoticably speeds-up boot!

If it's just a matter of keyboard shourtcuts, Tilda got nice preferences for everything.


Keyboard shortcuts for switching language input method no longer works after updates

Noticing from your previous questions:

How do I get my Compiz window decoractions back?
Laptop using 14.04 won't get past login GUI

That you are using ppa:eugenesan/ppa (same as me) which has couple of inconsistent package builds with higher versions then the ones in Ubuntu repository.

As it seems bringing many issues for you. Better to disable/remove it and purge installed packages from it and reinstall them from Ubuntu repo. I case you need specific app from it, make only selective upgrade/install from it, avoid blind upgrade.


From the Information you gave, it seems the Drive you're trying to read from might be mounted without write or execute access.
To do that you can set that in gnome-disks by selecting your drive, selecting the partition you want to mount and clicking on the settings icon. There you can edit the mount options. Uncheck "User Session Defaults" and in the textfield containing nosuid,nodev,nofail,x-gvfs-show you simply add rw,exec to enable read/write and execution access.


Minecraft

Install Sun Java

Download the 32bit or 64bit Linux "compressed binary file" - it has a ".tar.gz" file extension and uncompress it

tar -xvf jre-7-linux-i586.tar.gz

JRE 7 package is extracted into ./jre1.7.0 directory. Now move the JRE 7 directory to /usr/lib

sudo mv ./jre1.7.0* /usr/lib/jvm/jre1.7.0

Afterwards run the following to get a list of currently installed java alternatives

sudo update-alternatives --config java

You will get output as:

There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode

Press enter to keep the current choice[*], or type selection number:

Remember the last number and press enter to exit this utility i.e. in this example remember the number 2.

If only one alternative is shown then remember the number 0

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 3

This will add your new JRE 7 installation into alternatives list i.e. use the remembered number + 1 i.e. 3 in the example above. Now configure java to use the Oracle Java JRE

sudo update-alternatives --config java

You will see output similar one below - choose the number of jre1.7.0 i.e. 3:

There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
3 /usr/lib/jvm/jre1.7.0/jre/bin/java 3 manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/lib/jvm/jre1.7.0/jre/bin/java to provide /usr/bin/java (java) in manual mode.

N.B. if there was no previous java installation then the new JRE will be the default and you will not see the above.

Check the version of you new JRE 7 installation:

java -version

Should produce

java version “1.7.0”
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode)

Update LWJGL (if you still have issues)

Download LWJGL
Extract files
Place .so files in ~/.minecraft/bin/natives/


can't install jre ( java runtime enviornment ) in ubuntu 10.10?

You can download a JRE directy from the Oracle Technet.

The download is available for Linux 32-bit and 64-bit Systems as a tar.gz file which simply is unpacked into the destination.


Wireless authentication pop-up greyed out

One thing you can look into are the certificates and authentication you're using. I checked Eduroam info of your university and it has info on Linux but it wants you to go through XpressConnect. It was like that at my old uni, too, but only for Windows and Mac (I believe) You can try this guide (steps 4 and 5 in particular) which lists out the steps for Linux. I think Eduroam is supposed to be worldwide so I would assume settings are the same everywhere.

EDIT: My current university's guide doesn't have the same steps as the other so perhaps they are not universal settings. Still worth a try though I think.

If all else fails, you could disable and re-enable networking or wireless instead of rebooting your computer. It's not going to fix anything but it's somewhat faster (if it even works).


Why is Evince not displaying application fonts/text for me?

“Sans” should be the default application font. So, go to - Preferences – Appearance – Fonts, changed the default menu font to "Sans"! - Hopefully it will fix it!

For further info, a walk-through is posted here...


Cheese says "There was an error playing video from the webcam"

For some reason, the default picture resolution in Cheese is set too high for some webcams.

Open Preferences, and change these resolutions to the lowest.

2.Now restart cheese.

3.The webcam should work. Keep increasing the resolution until it stops working again.


as I tested WEEX on Debian, and It was working fine.
So I install it from Debian and it solved my problem.
remove Ubuntu WEEX:
sudo apt-get --purge remove weex

And Install:
wget http://ftp.br.debian.org/debian/pool/main/w/weex/weex_2.8.3_amd64.deb
sudo dpkg -i weex_2.8.3_amd64.deb


How to install Ubuntu server 12.04 on a new HP Microserver Proliant Gen8 G2020?

You've got a dual-core 2.5GHz Pentium, so you should use Ubuntu 12.04.3 LTS Server 64-bit.

http://www.ubuntu.com/download/server/thank-you?distro=server&bits=64&release=lts

F9 or F10:

Read what's on screen.

You need to manually select boot source, and select USB device.

I haven't yet tried this on the HP MicroServer G8, but the G6 and G7 were straight forward.


How to fix vertical panel text and indicator plugins in Xubuntu 16.04

What worked for me: changing the Mode of the panel to Deskbar (from the other modes available: Horizontal and Vertical).

System: Xubuntu 16.04.1


Computer restarts over and over after upgrade from ubuntu 14.04 to ubuntu 14.10 on dualboot windows/ubuntu

From what I could read from your paste it appears your Windows got hibernated at some point:

534: Metadata kept in Windows cache, refused to mount.

and consequently os.prober could not detect your Windows installation (line 564).

564: 1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.

So in order to quickly get a running system back you should repair Windows using Windows tools, and then perform a clean re-install of Ubunutu 15.04 (upgrade path from 14.10 does no longer work as 14.10 reached end of life).

Data from your HOME directory should stay untouched if you do not fromat your Ubuntu partition. Otherwise you can always restore all of your data from your recent backup.

In case you had no backups, or Windows tools fail to recover Windows you will have more serious issues. It then would be vital to stop using that drive and perform a data recovery of your important files.

Only after you had recovered your data you would then re-install Windows, and after that Ubuntu.

It may be possible to try to repair your Ubuntu but in the long run it will take much more time than just re-installing and restoring your HOME and your applications.


I solve my problem. I selected apache. Before this is not selected.
For solve:

  sudo dpkg-reconfigure -plow phpmyadmin


Set environment variables (PATH, etc.) from script

It's not very clear what you want to achieve. If you want to set some environment variables for the session, it's worth mentioning that there are existing files for the purpose such as ~/.profile. Please see EnvironmentVariables for more guidance.