Do you really need to remove DHCP clients for static IP to stick?

No, you don't need to do that. Refer to this other answer on askubuntu site

I personally use the following bit of code in /etc/dhcp/dhclient.conf file on my home PC which has a USB wireless dongle attached to it:

interface "wlan0" {
    send dhcp-requested-address 192.168.0.222;

}

As you can see, the PC always asks for 192.168.0.222 address.


Can the shopping lens be changed to display results from Amazon.co.uk?

sudo nano /usr/share/applications/ubuntu-amazon-default.desktop

change to read

[Desktop Entry]
Name=Amazon
Type=Application
Icon=amazon-store
#Exec=unity-webapps-runner --amazon
Exec=unity-webapps-runner -d amazon.co.uk

is a basic workaround for the moment.


Iceweasel is a rebranding of Mozilla Firefox. It is essentially
  Firefox but without the non-free components such as images and
  plug-ins. The rebranding is currently taking place as two independent
  projects. One is part of the Gnuzilla project, a GNU project to
  provide versions of Mozilla programs using entirely free software. The
  other is a rebranded build prepared by Debian. The two projects might
  merge in the future.

  Warning: Please be advised if you have a bug in Iceweasel, because it
  is not provided by a supported Ubuntu repository, the Ubuntu project
  is unable to provide support or a fix. If you want support, you may
  want to use firefox.1

Installation

First, install its dependency from the Ubuntu repository :

libnspr4-0d

Then, you need to download and install them manually :

xulrunner-10.0
libmozjs10d
iceweasel

Or, the simple way is by install them at once by

sudo dpkg -i

then fix its dependency by command :

sudo apt-get -f install

Here is were you can get the files mentioned above.

(The previous link is dead)
To get Iceweasel click Here

libmozjs10d_10.0.5esr-2_i386.deb

xulrunner-10.0_10.0.5esr-2_i386.deb

Also take a look Here, and Here

1Source:Install Iceweasel


Same problem here. I have to force shutdown by pressing the power button and start again to get back the system working.

I discovered this problem after upgrading my Xubuntu from 15.10 to 16.04 amd64. After that, I have done a zero installation for Xubuntu 16.04 amd64, cleaning all the disk, but the problem with the suspend was kept.

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7550M/7570M/7650M]

I have tried the workaround cited here by Michael, but it does not work: Xubuntu 16.04 can't restart from sleep mode

I have tried this: Suspend/hibernate doesn't work on an Asus laptop -- No success.


Removing unnecessary Software Updating apps

Each has a different lane:

Software Updater is the actual application that does updating (via apt). You cannot change apt settings from within the application.
Software & Updates is the control panel to change Software Updater's (and other apt-related) settings.
Ubuntu Software is the app store. While you can use it for updating, it won't be automatic. If you do decide to use Ubuntu Software for updating, it will simply hand the job to Software Updater.
Livepatch is a separate kernel-only update service that is independent of apt and deb software packages. It's optional. Using it simply updates your kernel (and nothing else) without requiring a reboot.

1, 2, and 3 work together - think of them as three points of entry to apt: Updating, Settings, and Add/Remove.


How does the PPA fit into the scenario of publishing an application to the Ubuntu Software Center?

Publishing app via ppa and submitting app to ubuntu software center are different.

  Personal Package Archives (PPA) allow you to upload Ubuntu source
  packages to be built and published as an apt repository by Launchpad.
  You can find out more about PPAs and how to use them in launchpad help page.

You can publish any open source app via ppa , there is no security verification or quality check, ppa's are people who want up to date  packages. So ppa's are not directly published to ubuntu software center user can additin their own risk

If you want add your app to software center You have 2 choices

Via debian repository
Directly to ubuntu via myapps portal

Each have it's own merits and demerits .for more details see this answer. If you want to add your software in current releases  and you want to maintain it ,you should go use myapps portal

In the case of paid and non-open source software, Canonical will package and publish your app submitted as a .tar or .deb file submitted to MyApps.

In the case of Open source software at zero cost

  All submissions should be through a Personal Package Archive (PPA),
  which you can indicate in the comment field for the reviewer when
  submitting your app.

It is for convenience of Application review board , They will review your app and If they found it is fit to ubuntu software center, They will push it to software center via extra.ubuntu.com repository

Keep in mind that beta versions of open source software are not allowed in ubuntu  center by the ARB , You can keep bleeding edge packages in another ppa or in git itself, ie You must submit stable version to software center, and Each update in your software require review from Application review board

Some useful links

How to get my software into Ubuntu?
https://launchpad.net/ubuntu/+ppas
https://help.launchpad.net/Packaging/PPA
http://developer.ubuntu.com/publish/my-apps-packages/
https://wiki.ubuntu.com/AppReviewBoard/Submissions

Sorry If answer confused you, please feel free to comment below


Virtualbox - "If you continue, the changes listed below will be written to the disks."

This is a standard message that shows when you are ready to install Ubuntu, when system is ready to partition the drive and wipe previous stored information if any. Changes affect only the virtual disk, and not your actual hard drive or SSD.


Help me with installing modem driver software

Download the software and extract it to the desktop.

Then open a terminal with Ctrl+Alt+T.

Type sudo -s and enter your password. After that, type:

cd /home/umar/Desktop/Huawei New Dialer - 6085 New Chipset/Huawei New Dialer - 6085 New Chipset/Linux
bash install_linux

The program gets installed.


Script to move files to new directory periodically

First write a simple script to move the picture/videos to the desired directory. Something like the following, in a file named "backupPhotos.sh". I must assume that you know how to use a text editor.

#!/bin/bash

cd /media/data/phones/myiphone/resilio
find . -type f -exec mv {} ../pics \;

The first line says to run this script using /bin/bash (typically the default shell that you use in a terminal window). The line starting with "cd" changes the current working directory to the directory where your photos are saved by Resilio. The last line moves all the files under the resilio directory to the pics directory (only files will be moved "-type f", not the directory structure.

then do:

chmod 755 backupPhotos.sh
mkdir /media/data/phones/myiphone/pics

The chmod command tells Ubuntu that the file contains an executable script. The mkdir command creates the "pics" directory to hold the pictures/videos. If you already have the pics directory, then you don't need to do the mkdir.

Try out the script by typing the command

./backupPhotos.sh

in the directory where you created that file. Please take precautions to ensure that you have the pictures saved somewhere else during this testing phase, just in case something goes wrong. After you run the script, all the directories under "resilio" should be empty, and all the pictures/videos should be in the "pics" directory.

Once you are confident that this is working correctly, you can schedule it to run using crontab.
Before doing the next command, you should identify your preferred text editor by typing

export EDITOR=gedit

This will set your preferred editor to "gedit" (temporarily). Replace "gedit" with any text editor that you like and have installed. Then type the command

crontab -e

This will put you in your favorite editor with a likely empty crontab file. There should be some text in the crontb file, but it should all be commented out with the "#" character. You will add a line at the end of the file to schedule running your new script. The line will be:

0 5 * * * /path_to_script_directory/backupPhotos.sh

where "path_to_script_directory" is the full path to where the script is located (something like /home/mkinsocal). The three asterisks mean run the script every day. The "0 5" means run it at 0 minutes after 5AM. Note that you must have the computer up and running at 5AM every day for this to work. Once you have finished adding the line to your crontab file, save it,  and you are done.


What are the exact steps to install a 2-disk RAID 1 Desktop Ubuntu 20.04 system?

I ended up using the Ubuntu Server installer instead (ubuntu-20.04.1-live-server-amd64.iso).
I followed the instructions by fevangelou at Install Ubuntu 20.04 Focal Fossa with RAID 1 on two devices to create a software RAID.
The server installer worked in text mode, and the system it installed booted in text mode also. I had to do the following to install a graphical desktop:
sudo apt-get update
sudo apt-get install ubuntu-desktop

After rebooting, I got a graphical login and the system appeared to work fine.
To reboot however, I had to power down the PC, because the shutdown had blocked with these lines on the screen:
[FAILED] Failed unmounting /tmp
[FAILED] Failed unmounting /cdrom

Perhaps the Server installer could offer the user to install ubuntu-desktop itself.
I thought the Desktop installer supported creating a software RAID. Perhaps I misremembered, as the last time I had to do that was several years ago.


It seems you forgot to ask the question :) I'll assume the question is "how do I disable creation of backup files in Kate"

The answer is: go to Settings - Configure Kate - Editor Component - Open/Save - Advanced and untick "Backup on Save" for Local Files and Remote Files. Then click OK.


Firefox does not connect outside proxy while other browsers do

I've been having a similar issue: http(s)_proxy are both set as environment variables, and pretty much all CLI-programs work.

But Firefox doesn't.

After many tries we figured out that while http://proxy.mycompany.com:8080 works fine most of the time, Firefox doesn't seem to like the leading http://. Setting a manual proxy to just proxy.mycompany.com:8080 makes Firefox behave as needed.

Not sure whether it's a bug in Firefox or what, but at the very least, it's a sensible workaround.


Configuration of services via Systemd for Embedded Linux

@Elesmoth, Welcome to Ask Ubuntu.

In man systemd.unit, you'll find the official docs for ConditionFirstBoot=, which exists for just this case.

If for some reason that doesn't work for you, you can easily provide the logic you need yourself.

Have the shutUp command set to start always on boot. It will immediately check to see if a "first boot" file exists. If the file exists, the script will stop. If the file does not exist, it will run it's action and create the file.


That error generally means that the java package you have is not right type for your system.  Typically this happens when a system of x86 tries to read x64-based files.


How can I make CAPS LOCK act like the caps lock key on a mac?

The answer is found in your Ubuntu Desktop Guide.

Click your name on the top bar and select System Settings.

Open Keyboard Layout and select the Layouts tab.

Click the Layouts button, select Options, and find the setting you want to adjust.

While you're in Settings, click Language Support.

You may be prompted to add some language files do this.

Layouts allows you to set up full keyboards of "tweak" your current ones.


Can't connect to internet in chroot using Cubic

You must create the folder /run/systemd/resolve with mkdir :

mkdir /run/systemd/resolve

then you can create the link with:

ln -sr /var/run/resolvconf/resolv.conf /run/systemd/resolve/stub-resolv.conf


How can I have an application menu like macOS?

I know for a fact that Unity has it. It's slightly hidden though. It only shows when you are hovering your mouse over title bar.


How can I create an alias for cd and ls?

From Bash Tips and Tricks: 'cd' with style:

  Finally, I want to show you how to write your own custom replacement for the 'cd' command.

  Do you find yourself always typing the same thing upon changing into a directory? You probably at least list the files there every time, perhaps so much that your hands automatically type 'ls' after every 'cd'.

  Well, by trying every way I could think of, it turns out there's only one way to properly accomplish the goal we're seeking. We have to create a shell function.

  Shell functions are part of shell programming. Like in compiled programming languages, functions provide a sort of procedural modularizability. One can create a generic function to perform an often-used bit of logic or computation with different parameters. In this case, the parameter is the current working directory.

  Here's a simple one:

function cs () {
    cd $1
    ls
}

As @geirha corretly notes, the above function will fail if you try to switch to a directory with a space in its name:

$ cs A\ B/
-bash: cd: A: No such file or directory
<current directory listing>

You should instead use the following function:

function cs () {
    cd "$@" && ls
    }

Once you add that code to your ~/.bashrc, you should be able to do this:

hello@world:~$ cs Documents/
example.pdf tunafish.odt
hello@world:~/Documents$


Having trouble running android sdk tool on 12.10

The reason you could not run it is because the SDK was on an external drive mounted with the noexec flag active. If you run the mount command you should see the word noexec on the line of the external drive. This is a safety feature to prevent executing malicious software by accident. As a result the android binary could not have the executable bit set, hence you could not run it.

Copying it to a different disk (as you did) where you can set the executable bit with chmod +x /path/to/android is the solution.


Cannot use 'sudo systemctl restart apache2' after `sudo apt-get install apache2` (Xenial Ubuntu running on WSL)

Th systemctl  issue is covered (but not eaxctly solved) here
systemctl doesn't work in Xenial · Issue #1579 · Microsoft_WSL · GitHub

Instead of systemctl to start Apache use the following

sudo /etc/init.d/apache2 start


sudo, problems with terminal emulator excepting my pass word

Terminal doesn't show your password, or even any dots while typing. Even though nothing is showing, it is still accepting input from your keyboard. Try carefully typing your password, and pressing enter. If you've entered it correctly, it should begin the command. If not, the terminal will return:
 Sorry, try again.


If your Ubuntu installation is 32-bit, then it will only see 3 GB RAM, and the 2.8 total you're seeing sounds about right (the remaining 200MB are probably reserved by the kernel).

For your system to fully utilize the extra RAM, you have two options:

Installing 64-bit Ubuntu.
Less intrusively, you can install the PAE kernel. In a terminal type:

sudo apt-get install linux-generic-pae

This kernel uses the PAE features of your CPU to address more than 3 GB of RAM even on a 32-bit CPU.


Well I personally do this a few times getting my partition scheme set up, just get a livecd (or .iso) and boot it from a seperate partition(or storage device). This should let you overwrite the filesystem and do the install fresh.


How do I enable files/folders to be shared on the same PC

To just access the files of another user, you should find them in /home/"username".
Navigate there with a terminal using cd /home/"username" and type ls -l. You should get a list of all the folders and files. There you can see all the permissions for owners and users (lookup ls in ubuntuusers). Here you can see if permissions are the problems. You can change the permissions with chmod (lookup chmod in ubuntuusers).

If you also want cross-platform access (from XP to Ubuntu and vice versa) and I think it is not a bad idea to keep data, you want to use from several accounts, not in /home/"user"/.., I would make a separate NTFS- Partition (only if windows access is necessary otherwise you can use ext). You can mount this partition on startup in Ubuntu and make a link in nautilus to where you mounted it:

Ubuntu Mount table Intro

This is where I keep my music and video to be able to access it from any Operating System i want.

Hope I could help,
Phil


Where to install GRUB with two distros on same hard drive?

I have a similar setup,
sda for Windows,
sdb1 with /boot of first distro and boot flag
sdb2 with /boot of 2nd distro
sdb6 and sdb6 for the distros.

What I did is install GRUB on the sdb drive and make my bios boot from that drive first.
I also had installs with GRUB in the MBR and on both occasions windows was available.

however I am installing 2 distros and I have the problem that GRUB does only see 1 distro and windows, depending on from which install I install GRUB
maybe a shared boot partition would solve this problem.


By installing dconf-editor you can change the maximum size in /org/gnome/nautilus/preferences/thumbnail-limit


I just downloaded your frostfire abd found out it was not installing properly. I has dependacy error. to correct this in terminal type

sudo apt-get -f install


Will there be a clean upgrade path from 10.10 to 11.04?

Unity is simply a new shell for Gnome and will probably be installed as part of the current ubuntu-desktop metapackage. This means that upon upgrading to Ubuntu 11.04 Unity will be installed by default with the upgrade.

I am assuming that Gnome 2 is planned to be installed as well, so users both upgrading and freshly installing will get both, just Unity by default.


There is no working Ubuntu operating system installation on the hard disk.
You have to reinstall Ubuntu ... I am sorry to be the harbinger of bad news.
When Ubuntu runs, your're done ... if not, maybe the disk in fact is broken.


trash folder seems empty or access denied

If you removed the files as root, then the deleted files will be in /root/.local/share/Trash.

The trash file in ~/.local/share is first created when deleting a files as regular user, so if you haven't done so, it's perfectly normal that you can find it.


Ubuntu won't play DVDs even after installing Codecs

this is whats fixed mine when i was having same issue.

sudo add-apt-repository ppa:ferramroberto/vlc
sudo apt-get update
sudo apt-get install w32codecs ubuntu-restricted-codecs vlc mozilla-plugin-vlc


Switch between the workspaces (Ubuntu 14.04)

Open System Settings and click on Appearance

Now, select the Enable Workspaces box

You will now have a Workspace Switcher on your Unity launcher


Ubuntu 18.04 - Programs disappearing or breaking after reboot

I could manage to reinstall the packages using aptitude instead of apt, which is apparently of higher level.

However, I could not understand why the installations disappeared, but I suppose it is related to the fact I had to swich the laptop off and on again due to keyboard freezing on a session restore. If this is the reason, it means that Ubuntu probably has a kind of pointer pointing to successful installations and whenever an installation seems to be broken or incomplete, it flags this as not installed and try pointing all related data as garbage for the autoremove to remove it.


This behaviour is caused by laptop-mode-tools. While it's true that removing it completely solves the "problem", you may still want to keep the package on your system.

In order to disable the usb autosuspend feature of laptop-mode-tools for your mouse, you can insert your mouse's USBID (obtainable through lsusb) in

/etc/laptop-mode/conf.d/usb-autosuspend.conf

on the line

AUTOSUSPEND_USBID_BLACKLIST="your-usb-id"

where your-usb-id is of the format 093a:2510 (this is my mouse).
If AUTOSUSPEND_USBID_BLACKLIST is already there, simply add the necessary USBID (note this will work only if AUTOSUSPEND_USE_WHITELIST is set to 0).

Finally, reload laptop-mode-tools by executing

# service laptop-mode reload

or

$ sudo service laptop-mode reload


Ubuntu 14.04 subshell and variable expansion in custom keyboard shortcuts?

The keyboard shortcuts field in Unity works in a similar manner to .desktop files, i.e. commands are executed without any form of subshell or variable expansion and can't access any environment variables.

I wasn't able to find an official specification regarding the keyboard shortcuts menu but I think it's save to assume that command execution follows similar guidelines to the Exec field in XDG .desktop files.

What this means, in practice, is that there are two ways you can make your custom command-line work with the shortcuts menu:

Transform your commands into a simple shell script and point the keyboard shortcut to the shell script.

For instance, you could paste the following into a new text file, name it something like custom_screenshot_script and make the script executable:

#!/bin/bash
gnome-screenshot --window --remove-border -f "~/Pictures/screenshot_$(date +%x_%H:%M:%S:%N).png"

Call bash to execute your command.

This is more tricky because you have to escape your arguments correctly. Something like the following should work:

bash -c "gnome-screenshot --window --remove-border -f \"~/Pictures/screenshot_$(date +%x_%H:%M:%S:%N).png\""


Trying to install proprietary NVidia driver

Installing DKMS kernel module

This message is trying to tell you that the kernel is running DKMS. And DKMS (dynamic kernel module service) is trying to build (i.e. compile) the relevant graphics driver for your system and for this specific kernel. Each kernel needs to build from scratch x4 specific Nvidia .KO files that are needed to run the graphics card & drivers. If the x4 .KO files are missing you wont have a fully functioning graphics card or no video acceleration or wrong video resolution. Hope this makes sense. YES! its complication for sure.


Enable proxy settings at work, disable proxy settings at home?

If you are running in a graphical run level then using the default Ubuntu network manager should set the proxy settings for everything. At Uni I used to set the proxy in Gnome's network manager and the proxy settings would then be set for terminal sessions (as an example). There may even be the ability to set 'Locations' nowadays (but I don't use Ubuntu so I can say for certain).

Debian also has the ability to specify different locations (and therefore settings) using scripts under /etc/networking/. See here though the docs state that the old ifup and ifplugd scripts are deprecated. I assume the same would apply to Ubuntu.

I believe at the command line, just setting the http_proxy/https_proxy environment variables should be sufficient. wget will read proxy info from there, you don't need to set it in the wgetrc file.


Uninstalling Ubuntu 12.04.2 or expanding its partition

There are two different techniques for resizing the Ubuntu partition in Wubi:

Resize and Duplicate Wubi Disk - This is not strictly a resize, but rather a duplication to a new virtual disk. This has the benefit in that it doesn't modify your current root.disk, and also leaves a backup. On the downside, if you want to go from a 7GB Wubi install to a 10GB Wubi install, you need a full 10GB of free space, as well as enough free space for Windows to operate (so may not be ideal if you are low on space). This technique must be run from within the booted Wubi install.1
In-place Resize of Wubi virtual disk This method is a true resize of the virtual disk (root.disk), and must be performed from an Ubuntu live CD. This is very fast, and can also make better use of the available space on the host partition than the alternate method, which duplicates the virtual disk.2

The step-by-step illustrated instructions for resizing the Ubuntu Wubi partition using each of these two techniques are available at the two Ubuntu Documentation wikis which I have referenced in the following two footnotes.

1Source: https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk
2Source: https://help.ubuntu.com/community/ResizeWubiDisk


Dash does not keep source filter beyond a session in 12.10

This is a partial answer valid for disabling the available apps (so it works as a permanent filter in the dash, not disappearing every new session).

I found this program: Unsettings. It can disable available apps on the application panel.

One has to go to the dash setting panel in the Unsettings application and turn off the switch "Apps for download".

It can also do lots of other nice things for customizing Unity.


Duplicity install error: ImportError: No module named duplicity

If you have Anaconda installed you might need to force the system to use Python.

To do this:

export PATH="/usr/bin:$PATH"


Is there a standard package that provide latitude/longitude functions in python?

python-geopy has been packaged for Ubuntu 12.10 and will be available in all subsequent versions.

If you can't install the packaged version (eg. you're using Ubuntu 12.04), the standard way  to install Python packages is to use pip (the python-pip Ubuntu package). When pip is installed, simply use:

sudo pip install geopy

and start using the package!

Note: pip and virtualenv are very useful to be in control of your Python environment, which is not possible with standard Ubuntu packages. You should learn to use them if you want to be serious about your Python development.


You could try logging into the "Ubuntu Classic" environment by selecting said option AFTER clicking your username on the login screen, but before logging in.


Cannot connect to mysql by 'localhost' only via '127.0.0.1'

Full reinstall with purge helped:

sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.7 mysql-client-core-5.7
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mysql-server

Now mysqld.sock file exists and I can connect via localhost.


Why does "Monitor of Built-in Analog Audio" Has no Sound?

I don't know how far you got in this process, so I start from the beginning:

Install pavucontrol:

sudo apt-get install pavucontrol

Launch it:

pavucontrol

On the Input Devices tab select Show: All input devices
Check the Volume level and if necessary Unmute the Monitor of Built-in Analog Audio channel by clicking on the little speaker icon.
Launch Audacity, start recording
While Audacity is recording: In the pavucontrol Recording tab change the Input Source for Audacity to Monitor of Built-in Analog Audio

Did that help?


Have you tried logging in and out again or lock/unlock with CTRL + L? This might reset your cursor to normal. It is a workaround.


Your root partition is 7.63 GB, which is too low for current Ubuntu versions. You can tell that indeed 7.18 GB already is used. You need at least 15 GB for your root partition.

You managed to set up a separate /home partition of 13 GB, which also is quite little. In your scenario of dual boot, you would have done better letting the installer work automatically to fill the free space. The installer would default to occupy all free space for a single root partition, that also contains the /home partition. It would also have set up a swap file on that partition.

A single 20 GB (24 GB if you also include the currently unallocated space) partition would be adequate for a Linux system in a dual boot scenario. You could indeed have most of your user data on another partition that you share with Windows.

What to do?

Technically the easiest approach would be to erase the linux partitions. Then have an automatic installation where you choose the option to "use the free space".
Technically more complicated would be to merge your current / and /home partitions. That would involve making a backup of /home, expanding / (and preferentially also move it to occupy the unallocated space) and then place the /home backup back.


Is uploading files in default /tmp folder an security vulnerability?

From the link:

Session Management
PHP's default session facilities are considered safe, the generated PHPSessionID is random enough, but the storage is not necessarily safe:

Session files are stored in temp (/tmp) folder and are world writable unless suPHP installed, so any LFI or other leak might end-up manipulating them.

Same applies to files you store in /tmp/ yourself.

More reading:

What are the dangers of storing webserver temp files in the /tmp/ folder?


What's the name of the program that tells you how many packages need to be updated?

For text mode logins the file /etc/motd ("message of the day") is displayed after login. This file is created at startup based on the scripts in /etc/update-motd.d/.

The message about available updates is created by /etc/update-motd.d/90-updates-available which just calls  /usr/lib/update-notifier/update-motd-updates-available


Will Unity performance ever improve on older hardware?

I dont think unity will ever go into the direction of being a lightweight DE, so yeah i suggest you try out lxde or xfce. lxde is lighter but xfce is very light as well and has more features i believe, and both are perfect for laptops.


Good to see new newbe on Ubuntu ;)

I'm not good at english nor pro on Ubuntu, but i'm quite sure You'll need to provide more information. Start from:

run terminal (icon usually looks like black box with '>_' text in it
type lspci
copy output and paste it here

You propably work on laptop, so you can tell us what is the model name.

If You can, please connect Your pc via wire and try to install propietary drivers.
While waiting for the answer, follow this tuto: http://www.psychocats.net/ubuntu/drivers


Filter lines based on length using sed and grep

Using sed command

sed -nr '/^.{101,149}$/p' infile

Breaking down:

-n: no printing

The -n option will prevent to print anything unless an explicit request to print is found (^.{101,149}$ "Lines longer than 100(>=101) and smaller than 150 characters(<=149)"). The /p flag used as one way to turn printing back on.

-r: -r (--regexp-extended)

The -r enables the Extended regular expressions. replace -r with -E if your sed doesn't recognize it or you will need to escape the curly braces if none of them supported in your version of sed. Then the command would be sed -n '/^.\{101,149\}$/p' infile.

The ^ is just the anchor for beginning of line and the $ for end of line.
A single . matches any single character

So, you got it, with sed -nr '/^.{101,149}$/p' infile, we are looking for a line from start to end of it which has or contains our defined rule.

This is a way to duplicate the function of grep with sed e.g: sed -n '/.../p' :)

Using grep command

grep -E '^.{101,149}$' infile

-E this is the same as sed's -r option but for grep command. So if you don't want to use is just escape the curly braces.

Using awk command

awk 'length($0)>100 && length($0)<150' infile

length return the length of the line. In awk, the $0 specifies the whole line. So if the length of line was between 100 and 150, will be print out.


Troubleshooting Local Port Forwarding Example

In order to use this type of port forwarding, there needs to be an SSH server running on the localhost. The somewhat unspecific error message

ssh: connect to host localhost port 22: Connection refused

may indicate that there isn't (although it can also indicate a problem with configuration or firewalling).

On current (systemd based) Ubuntu systems, you can check if such a server is running using

systemctl status ssh.service

If necessary, install the default OpenSSH server using

sudo apt install openssh-server

(it should start automatically if the install command succeeds).


I downloaded an EPUB file, how can I get it from Ubuntu to my IPad?

I would use Calibre.  It is an awesome and easy to use Library management system.  You can install it as follows:

sudo apt-get install calibre

I haven't used it with iPod/iPad but I use it with my Android phone and Kindle all the time and it is great.

EDIT:

I might also add that the iPad driver is still experimental, so you may encounter a few bugs.  It is better than nothing though

Thanks to Kenneth for suggesting adding the following link which helps greatly!

http://manual.calibre-ebook.com/faq.html#how-do-i-use-app-with-my-ipad-iphone-ipod-touch


i finally got this to work so can confirm that 12.10 as working isight/wireless on macbook 4,1


Ubuntu not recognising Windows 7 install and drives

The partition layout stirs of something inside of me - I would not recommend the layout with a C-drive on your secondary drive. I cannot provide proof in form of documentation on this - but it's a bit unusual to have this layout.

Also (perhaps more relevant): The free space - does it reside on a logical partition? I think that could be the reason why the installer doesnt show any free space.

You can use Gparted on a USB drive to view the layout in details and maybe move the partition around so that you have free space in the beginning of the disk, which would then show up as available space for a primary partition in the installer :)


Download:

$ lynx http://httpd.apache.org/download.cgi

Extract:

$ gzip -d httpd-NN.tar.gz
$ tar xvf httpd-NN.tar
$ cd httpd-NN

Configure:

$ ./configure --prefix=PREFIX

Compile:

$ make

Install:

$ make install

Customize:

$ vi PREFIX/conf/httpd.conf

Test:

$ PREFIX/bin/apachectl -k start


You can try this. Notice 6 and 7 are swapped.

NaturalScrolling:

echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap

Information from:
https://andym3.wordpress.com/2011/09/03/the-one-line-method-of-getting-natural-scrolling-in-linux/


Keyboard layout doesn't match selected layout

The problem was that I had the following line in my .bashrc file

setxkbmap -option keypad:atm

Which would flip the keypad, but reset the keyboard layout, to fix this I then just use:

setxkbmap -layout us -variant dvp -option keypad:atm

Which gives me exactly what I need.


Ubuntu partition deleted and cannot boot

What can I do? Is it possible for me to recover my Ubuntu
  installation, or at least boot into my Windows installation?

There are couple of things you can do here.  I do not think you will be able to recover your Ubuntu installation as the partition was not just deleted but was also merged with existing Windows partition from Windows.  But yes, by all means, you should be able to recover your MS Windows installation.  You will need a Windows recovery bootable CD.  Once you boot from the Windows bootable recovery/repair CD, you can switch to a recovery environment and attempt to restore the MBR from there.

Windows 7 repair CD has a commandline utility called bootrec which can not only scan and tell you valid Windows installations on your machine but can also rewrite the MBR to help you boot into it.  I just dont have a Windows system handy so can't give you exact command but you got the idea.


How to set up the Alcatel OneTouch x602d modem?

How to properly use your modem?

Please, never install drivers included in USB 3G Modems. Just install Modem Manager GUI. This will handle your modem, allowing internet connection, receive SMS and more.

Why not to install included drivers?

The included drivers, could cause several and serious stability problems in your system, like breaking the Network Manager, or internet connection service permanently. Also, will introduce hard to debug behavior when something goes wrong, like a faulty or intermittent internet connection.


Cloning Ubuntu installation without needing a Grub2 reinstall?

You might wanna  check out clonezilla. I use it for back up purposes, it is capable of  copying your whole drive or a specified partition to a specified location such as an usb thumb drive,another hdd, ssh, etc.


i have too this problem. I used command

gnome-tweak-tool

than my computer freezed, then after a restart all was normal.


Why is Ubuntu unable to connect to my wireless router?

I experienced the same problem this weekend on a buddy's laptop. He has a Broadcom 4312.

I partially used this answer to another AskUbuntu question. The only difference is that once I removed:

bcmwl-kernel-source

I installed

firmware-b43-installer

and then rebooted.

The Network Manager showed the wireless card was installed, but displayed a message that the hardware switch was disabled.

Regardless of what I tried to enable (by clicking function and the wifi key) this would not change. I then decided to re-open the additional drivers and was able to activate the driver successfully. Once I restarted the machine, the wireless worked fine.


Can Sound Juicer become faster or should I use another program?

The reason extraction is so slow is because sound juicer uses cdparanoia, which was designed to read the disc multiple times in a very low level mode and perform complex software error correction to work around bugs that many drives commonly had, and any physical scratches on the disc.  I think these days most drives manage to do it correctly themselves, and so cdparanoia is no longer really needed.  There appears to be an open bug to have sound juicer stop using cdparanoia here:

https://bugzilla.gnome.org/show_bug.cgi?id=313302

It appears that sound-juicer has a gconf setting named paranoia where you can configure the paranoia settings.  Open gconf-editor and change the value to 0 and things go MUCH faster.


You should can try sftp, but if you need ftp then you need to setup and ftp server

vsftpd is an FTP daemon available in Ubuntu. It is easy to install,
set up, and maintain. To install vsftpd you can run the following
command:

sudo apt-get install vsftpd

Click here for more details on FTP Server setup


How can I insert a greek letter in Dia diagram software?

You should be able to find the character you need in the Character Map application, and then you can copy and paste it into your diagram, or drag it in.


Should I use ubuntu 10.04 server since the desktop version is not supported anymore

From a recent post  on the ubuntu-announce mailing list

Ubuntu announced its 10.04 (Lucid Lynx) release almost 3 years ago,
on April 29, 2010.  As with the earlier LTS releases, Ubuntu committed
to ongoing security and critical fixes for a period of 3 years on the
desktop. The support period is now nearing its end and Ubuntu 10.04
Desktop will reach end of life on Thursday, May 9th.  At that time,
Ubuntu Security Notices will no longer include information or updated
packages for Ubuntu 10.04 Desktop.  Ubuntu 10.04 Server continues to
be supported for another 2 years.

What I understand from this is that only the server edition remains supported.  The server does not contain any desktop so the desktop packages will not be supported or any application that runs on a desktop.

In practise I suspect that the repositories will not be moved until the server stops being supported in April 2015 but there will no further updates for bug fixes or security patches.

I would recommend you upgrade to 12.04.

There are several versions of Ubuntu available and while it is true that Ubuntu 12.04 and 12.10 with the Unity desktop are slow on older hardware it is not the only desktop available.

The Gnome Classic desktop is the closest to the desktop as it was in Lucid and instructions on how to install it can be found here.

How to revert to GNOME Classic Desktop?

In my experience both Lubuntu and Xubuntu work well on older machines and I would recommend either of these in preference to continuing with a soon to be unsupported release.

Xubuntu is LTS and 12.04 is supported till April 2015.

Lubuntu is not LTS: 12.10 is supported till April 2014 and 13.04 till Dec 2013.


Total Newbie stuck while trying to load Ubuntu

As some of the comments have noted, Wubi is really no longer in use.  Instead, you should consider downloading a recent Ubuntu ISO file from https://ubuntu.com/download/desktop.  When you reach the actual download page, you will see a link to "Verify your download".  This will display the SHA256 checksum for the downloaded ISO file.  Since you are using Windows, a simple way to verify the downloaded file is to use the MD5 & SHA Checksum Utility (https://raylin.wordpress.com/downloads/md5-sha-1-checksum-utility/).  Running this program displays a window that lets you browse to the location of the downloaded ISO file, copy the SHA256 checksum obtained above, and automatically verify the latter against the checksum generated for the downloaded file.


To install fpc you should have the Universe repository enabled. From command line, you can do this and then install the application as shown below:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
sudo apt-get update
sudo apt-get install fpc
sudo apt-get install fpc-2.4.4

Source How do I enable the “Universe” repository from the command line?

Synaptic Package Manager is a good graphical package manager, if you might want to give it a try!


I am unable to access my WD external hard drive

try to fix it from commandline with

sudo ntfsfix /dev/sdc1

unless your windows is hibernated: in this case, as Rinzwind suggested you, boot in Windows and shut down properly.

Cheers,

Silvia


Touchscreen support for Ubuntu in VirtualBox?

i have a dell laptop and it presents the touchscreen as a usb device.

If you want the guest to use the touchscreen device you will need to pass it through to the guest and run the appropriate drivers in the guest.

In the case of ubuntu then xorg should pick it up.

You will need to configure your host os to ignore the touchscreen for this to work, they can't be shared.


Installation on virtual LVM disks without partitions

Well, you have to partition / format the space regardless if it is LVM or not.

Yes KVM will see the devices as "vda" and "vdb".

In general, although KVM uses raw partitions / LVM, IMO, it is much more reliable to just use a virtual disk. Takes the same space and you can always use LVM on the virtual disk and / or resize the virtual disk.


External Monitor Resolution doesn't go above 1024x768

Type:

cvt 1280 1024 60

Will see something like:

Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

Copy this line except for the Modeline part

Pass this copied text to xrandr --newmode like this:

xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

Add the new mode to the proper device (in my case, VGA1. Find this via xrandr)

xrandr --addmode VGA1 "1280x1024_60.00"

You will now see the new resolution on the resolution options.

I wrote a more detailed tutorial here: http://shanereustle.com/blog/force-screen-resolutions-on-ubuntu/


ubuntu 18.04, sensors-detect fails to find any sensors

I have same situation. When I do: sudo sensor-detect - there is info that no sensors was found.

But when I do: inxi -F on the sensors line I have this:

Sensors:   System Temperatures: cpu: 40.4 C mobo: N/A gpu: amdgpu temp: 46 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0


In 14.04, how do I print the current keyboard layout?

The basic idea should be to use xkbprint:

xkbprint :0 -o one.ps
ps2pdf one.ps
evince one.pdf

The step through ps2pdf is needed here because otherwise the generated postscript is troublesome to view.

In principle it should be possible to add all the AltGr combinations to the map, but I never found the exact incantation to obtain it --- I mean, the neat map with 4 symbols per key.


Finding out what filesystem a casper-rw file is formated with?

Have you tried using file to determine the file type? It also recognizes lots of filesystems.

file casper-rw


Unable to install Dropbox on ubuntu 12.04

From .deb file

Download dropbox .Deb from  :- Here!

after downloading type :-

sudo dpkg -i * .deb

install dropbox from command line :-

for 32 Bit :-

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf

for 64 Bit :-

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

after this type :-

~/.dropbox-dist/dropboxd

source


GParted not shrinking below 46GB on Virtual Machine

Assuming that you are using Virtualbox,

Since your goal is to actually shrink the .vdi file on the host system, if you selected Dynamic when you created it, nothing you do on the guest system will work.  A virtualbox dynamic volume only expands dynamically.  Even if you delete all the partitions on your guest system, the .vdi file will not shrink.  It will remain the same.

Additional information

Check these instructions over here if you like, on how a .vdi file shrinking can be accomplished.  The parameter you need is --compact.  It can be done in a completely different way.


JRE not installed/Java is disabled on Ubuntu 14 but works on another distro

Update:

Worked on my default FF 50.1.0 BUT, now it says:

  setup failed please install 32 bit java and update...etc.

So, I got to this article : How to install Juniper VPN on Ubuntu 14.04 LTS?

-

I'm now using:

  java version "1.7.0_79"
  Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

update-alternatives --config java

loading java from: 1 /opt/jdk/jre1.7.0_79/bin/java 100 manual

Then,

I realiaze that I didn't have a FF java plugin going trough a FF tab and -> about:plugins

-

So, after reading this: How to install the Java plugin for Firefox?

I did this:

apt-get install icedtea-7-plugin

The result (FF tab -> about:plugins) :

IcedTea-Web Plugin (using IcedTea-Web 1.5.3 (1.5.3-0ubuntu0.14.04.1))

File: IcedTeaPlugin.so
Path: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so
Version:
State: Enabled
The IcedTea-Web Plugin executes Java applets.

-

I'll try now the first article that I've mentioned on the beginning of this post and I'll post the results.


How to automatically add user and assign random password to the users?

with a following script you can generate a random password from a dictionary:

#!/bin/bash
generate_random() {
    RANDOM_NUMBER=`/usr/bin/perl -e 'print int(rand(60453));'`
}

generate_random
randomWord1=`head -$RANDOM_NUMBER ./dictionary.txt | tail -1`

generate_random
randomWord2=`head -$RANDOM_NUMBER ./dictionary.txt | tail -1`

generate_random
randomWord3=`head -$RANDOM_NUMBER ./dictionary.txt | tail -1`

echo "$randomWord1 $randomWord2 $randomWord3"

in this case create a password concatenating 3 random words from the dictionary.

If you want use it you have to change the following data:

name of the dictonary file: dictonary.txt in the example
number of words in the dictonary: 60453 in the example

Then you can use it inside a new script to create users and assign them the password generated. This is an example:

#!/bin/bash

PwdGen="./generate_random_password.sh"

# define CSV separator
IFS=";"

while read username FullName
do

    useradd -m -c "$FullName" $username

    # Generate random password
    Pwd=$($PwdGen)

    # assign the password
    usermod --password $(echo "$Pwd" | openssl passwd -1 -stdin) $username

done < users_in.csv

This script use the first script (generate_random_password.sh) to generate random password, the create users reading them from input file users_in.csv and assign  them the password generated


Ubuntu 16.04 : Unable to connect to wifi after kernel update (4.4.0-116-generic)

With a temporary working internet connection by ethernet, tethered or whatever means possible, open a terminal and do:

sudo apt-get install --reinstall bcmwl-kernel-source

Reboot and let us know the result.


Navigating between app icons in Unity with the keyboard

You can use the arrow keys to navigate.

For example, if I wanted to open Gedit, I could press super then type 'ge'.

Then I would press ↓. This would highlight the 'See x more results' text.

Then I would press ↓ again. This would highlight the first application.

Then I would press → to select the second application (Gedit) and press enter to launch.

Summary

If an item in a row is highlighted, you can press the ←→ items to move between them.
You can move between rows with the ↑↓ buttons. Initially no row is selected so you need to press ↓ until an item in the first row is selected. You can use the tab key to move between all possible selections.


How to see how far is the disk overwriting in the gnome-disk-utility?

That's not total a correct answer to my question but it could help...

I found this little online calculator: http://www.calctool.org/CALC/prof/computing/transfer_time Its nice to get an idea about how long it will take. It had calculated ~ 2 days to write everything 1x over.


clamAV whitelist inoperative on Ubuntu Trusty

Quite a bit of time later later....I got to :

$ clamscan --detect-pua -i -r /home/user \
--exclude-dir=.thunderbird \
--exclude-dir=.mozilla-thunderbird \
--exclude-dir=.evolution \
--exclude-dir=Mail \
--exclude-dir=kmail \
--exclude-dir=/home/user/.clamtk/viruses \
--exclude-dir=/home/user/Library/Software/Windows \
--exclude-dir=/home/user/Library/Software/Android \
--log="/home/user/.clamtk/history/$(date +\%Y\%m\%d).log" 2>/dev/null

and it works. As it turns out I had a syntax problem.

If you are going to use this type of log file with datestamp in the name, do not forget to escape the % in the format piece. Also think that yr ~/.clamtk/history/ directory will eventually fill up if you don't do regular housekeeping.


On my Acer Aspire there vas a line missing in the fstab file (/etc/fstab), the EFI system partition!
run:

$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/sda1: LABEL="ESP" UUID="30AB-667B" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="623e7385-ee5d-49b8-bc18-dbde551f5067"
/dev/sda3: LABEL="Acer" UUID="8A1EAD321EAD1869" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8ae7090d-3565-438e-9146-073ec0670de3"
/dev/sda4: LABEL="Recovery" UUID="2CD2AF55D2AF2256" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e337e795-6016-4fdc-a552-3d3cf469b6c9"
/dev/sda5: UUID="b81dd225-11b1-4783-81ff-1572f8058c23" TYPE="swap" PARTLABEL="Swap area" PARTUUID="71233eb1-916f-4bc1-bcfa-dd62f662c81a"
/dev/sda6: LABEL="MintXfce" UUID="05130fba-7126-4d1c-8bfa-bde9f2a79ea9" TYPE="ext4" PARTLABEL="Linux Mint" PARTUUID="e38142cd-8120-4764-bd17-8a8fae6a2aa3"
/dev/sda7: LABEL="Voyager" UUID="3068f167-88f1-44bb-8b5d-628681dd9536" TYPE="ext4" PARTLABEL="Vouager" PARTUUID="73b60fe3-bc04-40a4-aeee-ff4cdb3cf5db"
/dev/sda8: LABEL="Ubuntu" UUID="53942c96-b474-4589-9d0f-239b39dcd39a" TYPE="ext4" PARTLABEL="Xubuntu" PARTUUID="ec9949ad-ac5d-4d97-906b-d3963010e6f9"
/dev/sda9: LABEL="Security" UUID="62e607e2-6539-416d-b323-46ca4f5543e2" TYPE="ext4" PARTLABEL="Kali" PARTUUID="d4004d4f-0896-4184-ae85-cc2d1746b0ba"
/dev/sda10: LABEL="Hjem" UUID="7dc71844-bb39-4e9b-83c9-472f7d94b16d" TYPE="ext4" PARTLABEL="Data" PARTUUID="f4be90c7-c698-432c-8b08-175fd5c02c69"
/dev/sda11: LABEL="wmlive" UUID="009713f7-0c5a-485f-9a9b-ab59037765b9" TYPE="ext4" PARTLABEL="WMlive" PARTUUID="52e8749e-eb56-4132-abe9-77f1aa82c528"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="e09f4516-a38d-4564-ac2e-1fdfdaef6d83"

The line we are looking for is:

/dev/sda1: LABEL="ESP" UUID="30AB-667B" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="623e7385-ee5d-49b8-bc18-dbde551f5067"

Then you have to enter that information (with your own systems UUID's) in the fstab file:

# /etc/fstab: static file system information
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda8 during installation
UUID=53942c96-b474-4589-9d0f-239b39dcd39a /             ext4    errors=remount-ro 0       1
# /boot/efi was Missing on /dev/sda1 during installation
UUID=30AB-667B  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda5 during installation
UUID=b81dd225-11b1-4783-81ff-1572f8058c23 none          swap    sw              0       0
# Hjem was not loaded at installation /dev/sda10: LABEL="Hjem" UUID="7dc71844-bb39-4e9b-83c9-472f7d94b16d" TYPE="ext4"
UUID=7dc71844-bb39-4e9b-83c9-472f7d94b16d /mnt/hjem ext4    relatime    0   2

It is the line after the one that start with # /boot/efi

Forget the last 2 lines it is my setup- save the file (you need to edit with sudo rights - else you can't save your changes!

Now reboot and it should start propper!


Can't get `pcscd` to start in Ubuntu 12.10

Finally got back to tinkering with the card reader again today. The good news is I got it working. The bad news is, I'm not sure which step fixed it...

Removed Coolkey
Installed CacKey (available at SourceForge.mil). Tested but still couldn't restart pcscd
Looked through the README.gz file and found a reference to libusb. I didn't have libusb in my /lib directory on Ubuntu but I did on Mint. So I sym-linked to the /lib/libusb on my Mint partition. (Yes, I realize that would not be an option for everyone, but it's what I did.) Still couldn't get pcscd to restart.
Removed and Re-installed pcscd. I was then able to contact the reader with pcsc_scan. Keep in mind I had already un-installed/re-installed pcscd before.
Added Security device in Firefox and pointed to /usr/lib/libcackey.so. Worked as expected

I'm going to continue to tinker and see if I can Isolate the step that worked. (Have a second laptop running 12.10 with the same problem.)


How to redirect stdout and stderr in desktop entry?

Change  your

Exec=sslocal > log 2> &1

into

Exec=bash -c 'sslocal > log 2> &1'

The simple reason for that is because > is shell operator and 2>&1 uses file descriptors. In order to use shell operator, you need a shell attached.


My Ubuntu doesn't suspend when I close the lid

Install Tweak Tool by these lines:

sudo apt-get install gnome-tweaks

Then, Disable the setting "Suspend when laptop lid is closed".
You are done..

Alternatively, you can do these CLI (using Commands) also,

• Open Terminal and type:
sudo gedit /etc/systemd/logind.conf

• Uncomment the line "#HandleLidSwitch=suspend" by removing "#" in the beginning.

• Save and exit

• Now, Restart the Systemd service to apply changes via command:
systemctl restart systemd-logind.service


Package 'tomcat7' has no installation candidate on ubuntu 12.04

tomcat7 package is only available on security repositories, universe section for precise, saucy to wily is available in the main repository, and newer in the universe repository. So, make sure you have in your /etc/apt/sources.list the following line:
 deb http://security.ubuntu.com/ubuntu precise-security main universe

The line don't have to be exact, it could include multiverse and restricted, but it should include all the elements above. If the line was not present in the source.list file, add it and run apt-get update. Now you should have tomcat7 available.
Tomcat7 download page
If you don't find the source.list file

Execute:
sudo nano /etc/apt/source.list

then paste into the file:
deb http://security.ubuntu.com/ubuntu precise-security main universe

Hit: Ctrl+O to save the file, then Ctrl+X to exit.

Update the package list with sudo apt-get update.

I have installed tomcat6
Then you must delete tomcat6 of your system, before trying to install tomcat7
sudo apt-get remove tomcat*
sudo apt-get install tomcat7

This will remove all tomcat related packages the install tomcat7 without problems.


"Re-size" the .img for smaller SD-card. How to SHRINK a bootable SD card image

This article gives a solution that solves my problem. It is quite similar to the other one, but it better explains how to calculate and which meaning have the numbers and the partitions.

The key information was the use of the command truncate. Following the full solution in order to not lose the answer.

A preliminary step consists in cloning the SD card in your PC:

use lsblk to see which devices are available and if their partitions are mounted
unmount all partitions of the device you want to copy on your pc. For example:

umount /dev/sdc1
umount /dev/sdc2

create a copy of the whole sd card with all the partitions unmounted

dd if=/dev/sdc of=/path/to/file/myimage.img

Shrinking images on Linux

Context of the problem:

Having a myimage.img bigger then the hardware support (if it is smaller there should be no problem; however, using the same strategy, you can better fit the image in the hardware support).

The secret is to use standard Linux tools and instruments: GParted, fdisk and truncate.

Requirements:

A Linux PC
The .img you want to shrink (myimage.img in this example)

Creating loopback device:

GParted is an application typically used to manage partition tables and filesystems. In order to shrink the image, GParted is going to be used along the first part of the answer.

  GParted operates on devices, not simple files like images. This is why we first need to create a device for the image. We do this using the loopback-functionality of Linux.

Let's enable enable the loopback:

sudo modprobe loop

Let's request a new (free) loopback device:

sudo losetup -f

The command returns the path to a free loopback device:

/dev/loop0

Let's create a device of the image:

sudo losetup /dev/loop0 myimage.img

The device /dev/loop0 represents myimage.img. We want to access the partitions that are on the image, so we need to ask the kernel to load those too:

sudo partprobe /dev/loop0

This should give us the device /dev/loop0p1, which represents the first partition in myimage.img. We do not need this device directly, but GParted requires it.

Resize partition using GParted:

Let's load the new device using GParted:

sudo gparted /dev/loop0

When the GParted application opens, it should appear a window similar to the following:

Now notice a few things:

There is one partition.
The partition allocates the entire disk/device/image.
The partition is filled partly.

We want to resize this partition so that is fits its content, but not more than that.

Select the partition and click Resize/Move. A window similar to the following will pop up:

Drag the right bar to the left as much as possible.

Note that sometimes GParted will need a few MB extra to place some filesystem-related data. You can press the up-arrow at the New size-box a few times to do so. For example, I pressed it 10 times (=10MiB) for FAT32 to work. For NTFS you might not need to at all.

Finally press Resize/Move. You will return to the GParted window. This time it will look similar to the following:

Notice that there is a part of the disk unallocated. This part of the disk will not be used by the partition, so we can shave this part off of the image later. GParted is a tool for disks, so it doesn't shrink images, only partitions, we have to do the shrinking of the image ourselves.

Press Apply in GParted. It will now move files and finally shrink the partition, so it can take a minute or two, but most of the time it finishes quickly. Afterwards close GParted.

Now we don't need the loopback-device anymore, so unload it:

sudo losetup -d /dev/loop0

Shaving the image:

Now that we have all the important data at the beginning of the image it is time to shave off that unallocated part. We will first need to know where our partition ends and where the unallocated part begins. We do this using fdisk:

fdisk -l myimage.img

Here we will see an output similar to the following:

Disk myimage.img: 6144 MB, 6144000000 bytes, 12000000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ea37d

      Device Boot      Start         End      Blocks   Id  System
myimage.img1            2048     9181183     4589568    b  W95 FAT32

Note two things in the output:

The partition ends on block 9181183 (shown under End)
The block-size is 512 bytes (shown as sectors of 1 * 512)

We will use these numbers in the rest of the example. The block-size (512) is often the same, but the ending block (9181183) will differ for you. The numbers mean that the partition ends on byte 9181183*512 of the file. After that byte comes the unallocated-part. Only the first 9181183*512 bytes will be useful for our image.

Next we shrink the image-file to a size that can just contain the partition. For this we will use the truncate command (thanks uggla!). With the truncate command need to supply the size of the file in bytes. The last block was 9181183 and block-numbers start at 0. That means we need (9181183+1)*512 bytes. This is important, else the partition will not fit the image. So now we use truncate with the calculations:

truncate --size=$[(9181183+1)*512] myimage.img


Claws mail: Filtering windows problem in Unity?

The bug is with overlay-scrollbar breaking modal dialogues.  This is the relevant bug at Launchpad.

One way to fix this is to open Claws Mail without overlay scrollbars.

To do so, you need to add a .desktop file for Claws Mail (claws-mail.desktop), and to create an executable shell file (claws-mail-startup.sh) with "LIBOVERLAY_SCROLLBAR=0" and use that to open Claws.

To create the shell file:

$ mkdir scripts
$ nano scripts/claws-mail-startup.sh

Copy the below text, go to terminal, press Ctrl+Shift+V (to paste) Ctrl+O (to save), and Ctrl+X (to exit).  Then:

$ chmod +x scripts/claws-mail-startup.sh

Content of shell file:

#!/bin/sh
LIBOVERLAY_SCROLLBAR=0 claws-mail

You need to create claws-mail.desktop in /usr/share/applications/

$ sudo nano /usr/share/applications/claws-mail.desktop

It should have the following content:

[Desktop Entry]
Version=1.0
Name=Claws Mail
GenericName=E-mail client
GenericName[ca]=Client de correu electrònic
GenericName[cs]=E-mailový klient
GenericName[da]=E-post klient
GenericName[es]=Cliente de correo electrónico
GenericName[fi]=Sähköpostiohjelma
GenericName[fr]=Client de messagerie électronique
GenericName[hu]=Levelezőkliens
GenericName[id]=Pembaca E-mail
GenericName[ja]=Eメールクライアント
GenericName[lt]=El. pašto klientas
GenericName[pl]=Program poczty elektronicznej
GenericName[pt-br]=Cliente de e-mail
GenericName[sk]=Poštový klient
GenericName[sv]=E-postklient
Exec=claws-mail %u
Icon=claws-mail
Categories=Network;Email;
Keywords=lightweight fast x-window extensible plugin pop3 imap nntp
Comment=Lightweight and Fast GTK+ based Mail Client
Comment[ca]=Client de correu electrònic ràpid i lleuger basat en GTK+
Comment[cs]=Lehký a rychlý mailový klient založený na GTK+
Comment[da]=Letvægts og hurtig GTK+ baseret e-post klient
Comment[es]=Cliente de correo rápido y ligero basado en GTK+
Comment[fi]=Kevyt ja nopea GTK+-pohjainen sähköpostiohjelma
Comment[fr]=Client de messagerie électronique, rapide et léger, en GTK+
Comment[hu]=Pehelysúlyú és gyors GTK+ alapú levelezőkliens
Comment[id]=Pembaca e-mail berbasis GTK+ yang cepat dan ringan
Comment[ja]=軽量で早いGTK+ベースのEメールクライアント
Comment[lt]=Lengvas ir greitas el. pašto klientas GTK+ pagrindu
Comment[pl]=Program pocztowy używający GTK+
Comment[pt-br]=Cliente de e-mail leve e rápido, baseado em GTK+
Comment[sk]=Odľahčený a rýchly poštový klient, založený na GTK+
Comment[sv]=Lättviktig och snabb GTK+-baserad E-postklient
Terminal=false
Type=Application
StartupNotify=true
MimeType=x-scheme-handler/mailto;
X-Info=Claws Mail

I hope this helps.


Is there a way to download security updates and notify admin without installing the update?

Install the package unattended-upgrades:

sudo apt-get install unattended-upgrades

This will create the file /etc/apt/apt.conf.d/50unattended-upgrades

You may edit this file. Lines starting with // are comments.

You can comment out some lines, specifically:

You can list a package not to be updated:

// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
    "my-blacklisted-package";

};

You can send an email when updates are available:

Unattended-Upgrade::Mail "root@localhost";

P.S. I don't think unattended-upgrades will download the update if it's not going to be installed. You can do that by editing /etc/apt/apt.conf.d/10periodic.

You can read the apt.conf example file (DO NOT USE this file as a whole, only bits of it): /usr/share/doc/apt/examples/configure-index.gz

Update-Package-Lists "0";
// - Do "apt-get update" automatically every n-days (0=disable)
//
Download-Upgradeable-Packages "0";
// - Do "apt-get upgrade --download-only" every n-days (0=disable)
//
Unattended-Upgrade "0";
// - Run the "unattended-upgrade" security upgrade script
//   every n-days (0=disabled)
//   Requires the package "unattended-upgrades" and will write
//   a log in /var/log/unattended-upgrades
//

P.P.S. You must set Unattended-Upgrade "1"; in /etc/apt/apt.conf.d/10periodic in order for unattended-upgrades to be enabled.


Go to  Settings->Devices->Mouse and Touchpad and change Primary Button to Left


Is there a debian/ubuntu policy on softlinking things to another location in opt once they're installed?

Ubuntu follows the FHS. Ubuntu packages install everything into /usr/. Runtime data can live in /var/lib/PACKAGENAME, and some critical early-boot things that live outside /usr, in /bin, /lib, etc.

So, your wordlists would go into /usr/share/dnsenum, yes. The script would probably just go into /usr/bin, and the documentation would go into /usr/share/doc/dnsenum.

Ubuntu doesn't put anything in /opt. However, third party applications distributed through the software centre have everything in /opt, to keep them separated from the rest of the system. These are not part of the distribution.

There's nothing special about data that's shared between packages, assuming it's still owned by a single package, depended on, by the others.

An example for word lists is /usr/share/dict/words, provided by dictionaries-common.


How do you make the keyboard brightness button adjust at smaller intervals?

I'm not sure about those numbers, but on my HP laptop I used xbacklight to change my brightness. The brightness varies between 0 and 100 and pressing the brightness up/down keys changes the brightness by 10. I wanted something like five, so I mapped a key to the command

xbacklight -inc 5

and

xbacklight -dec 5

You might be able to use this as a workaround to your problem.


How do I open a directory with Windows File Explorer through the Ubuntu Linux Terminal Subsystem?

By explorer nicholas' answer we could use this:

$ ~/some/dir explorer.exe .

and by alias explorer.exe we can use open just like Linux with GUI:

# ~/.bash_rc or ~/.zshrc
alias open="explorer.exe"

and now you can open subsystem folder with

$ ~/some/dir open .
$ ~/some/dir open /usr/bin


LibreOffice 5.3.0.3 update on Ubuntu 14.04 has aditional menu bar and no integration in Unity

The following instruction solved my problem:

sudo apt-get install libreoffice-gtk

And then relaunch LibreOffice


Try to reinstall your nvidia drivers for your card. For example:

sudo apt-get install --reinstall nvidia-331


The locale for numbers is called:

LC_NUMERIC
How you format your numbers. For example,
in many countries a period (.) is used as a
decimal separator, while others use a comma (,).

and for date/time is:

LC_TIME
How your time and date are formatted.
Use for example "en_DK.UTF-8" to get a 24-hour-clock
in some programs.

Change LC_TIME to US and you will see american style date, but since LC_NUMERIC is not changed numbers stay as is.

Example:

rinzwind@schijfwereld:~$ date
za  4 aug 2018 21:20:11 CEST
rinzwind@schijfwereld:~$

rinzwind@schijfwereld:~$ LC_TIME=en_US.UTF-8
rinzwind@schijfwereld:~$
rinzwind@schijfwereld:~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
rinzwind@schijfwereld:~$ date
Sat Aug  4 21:16:53 CEST 2018

If you like it, change:

/etc/default/locale

to make it permanent.


Activating installed Nvidia videa drivers

To start off with, type lspci | grep VGA and take a note of your Graphic card model, just to make sure it is NVidia .

You are probably using the xorg open sourced driver right now and high resolution can create problems, as far as I'm aware.

To install the unofficial drivers, follow these steps :

Press Ctrl + Alt + F2 and login with your credentials. Now as root, run the following commands :

killall -9 lightdm (Unity)

or,

killall -9 kdm (KDE)

or,

killall -9 gdm (Gnome)

Now, type :

killall -9 Xorg

And run the following commands :

sudo apt-get --purge remove nvidia-current

sudo apt-get --purge autoremove

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

sudo apt-get update

sudo apt-get -y install nvidia-current


Keyboard stopped working on persistant live-USB

Figured it out. Apparently I somehow turned on Slow keys by mistake.


PrintScreen doesn't work when I'm in a context menu

That's a known problem i guess , it happens in KDE as well.

But if you want screenshots when menu is running , you can switch to command line tools , or set a timeout.

Command line , e.g delay for 5 seconds :  scrot -cd 5

For ksnapshot , you can delay for seconds , and then take a shot.


How do I turn a ubuntu server 17.04 into a Virtual Machine Host via command line?

You could use vSphere which is a web GUI for vmware hosts


Installing Ubuntu 14.04 LTS stuck on 'Configuring bcmwl-kernel-source (i386)'

Try running sudo apt-get install bcmwl-kernel-source from a terminal in the live session before you start installation to create a cached binary file that it will load instead of originally compiling the source again.


Transfering new drive from Windows to Linux

Did you shut windows down with QuickStart enabled??
Win8.1 and later doesn't really shut down, it hibernates.

Plug the drive back into a windows system. scan it with windows to be sure it is ok, then eject the drive while windows s running.

It should then be readable by ubuntu.


Can't turn on wifi on Toshiba Satellite C75D

It's fixed!  I followed the advice found here: My wireless has suddenly became disabled by hardware switch, BIOS, rfkill, fn+f8 do nothing

Unplug and remove battery
Press power button at least 30 seconds
Boot up and enter BIOS settings
Set to defaults
I connected to wireless right away!  Happy day!


There are lots of tips out there for tweaking your SSD in Linux and
  lots of anecdotal reports on what works and what doesn’t.  Below are things that can be done to improve performance.

  Prominent Tweaks
  Eschewing Access Times
  Enabling TRIM
  Tmpfs
  Switching IO Schedulers

These are some things that you can try.  For complete explanation on how to use the above mentioned steps, Have a look at How to Tweak Your SSD in Ubuntu for Better Performance and How to tweak and optimize SSD for Ubuntu, Linux Mint

Source: http://www.howtogeek.com/62761/how-to-tweak-your-ssd-in-ubuntu-for-better-performance/

http://namhuy.net/1563/how-to-tweak-and-optimize-ssd-for-ubuntu-linux-mint.html


Well, this is an open bug on intellij idea, quite a long pending one. I too am facing this issue. Currently marked at Normal priority, under Cosmetics category, I dont think there are enough KDE users out there to warrant enough attention to fix it.

Here is a link to the bug report, please upvote and show that you too are in need of a fix for it: https://youtrack.jetbrains.com/issue/IDEA-149703


These cards are still only capable of doing 2 displays at once :-(

I have the same "problem".

The 6xx-cards now are able to do 3 or more monitors.


How can I rename multiple files, since using mv or rename *.* doesn't work?

You can not use wildcards in the destination of the mv-command. What you think are wildcards is interpreted as the first three characters of the destinations name.

mv *.* *.*_something

will try to rename any file with a dot in its filename in the current directory to the name *.*_something. This will be successful for the first file the shell finds. The second attempt will fail because the file *.*_something already exists, thus you get an error saying that the destination is not a directory.

You have to go another way:

for num in *.*; do mv "${num}" "${num}_something"; done


Should I delete all of my partitions while still running windows I want to do a complete install of just Ubuntu

It is very unlikely that you will notice any speed difference.

This will not affect the perceived speed of your system, for example ability to multi-task or watch high definition video.

The only thing that could potentially be affected are file reads and writes. However, since individual partitions are already contiguous on the hard drive, I doubt deleting other partitions would help.


Why is moving directories to /dev/null dangerous?

Because people assume. I was one of those people until I tested it. It's easy to understand why people assume... It looks dangerous...

... but you can't actually move things to /dev/null — It's a special file that just absorbs redirects (and sends them into nothingness). If you try to move a directory to it, the filesystem will verbosely explode in your face and if you try to move a file to it, you will probably end up replacing it.

The first link will deal with directories, but  here's a separate test just for overwriting it with a file. As Rmano points out in the comments, this is probably something you shouldn't do without adult supervision. There is risk involved.

$ echo "this is my file" > test
$ cat test
this is my file

$ sudo mv test /dev/null
$ cat /dev/null
this is my file

# Fix this!
$ sudo rm /dev/null
$ sudo mknod -m 0666 /dev/null c 1 3


Ok, this error appeared because grub was tried to make changes to unencrypted file.

To fix this issue you have to add following line: GRUB_ENABLE_CRYPTODISK=y
in to a file /etc/default/grub

After this everything updates as it should.

Don't know why this error appear from the start.

[EDITED]

If you fix this error as I did, it will breake your GRUB loader, ad you gonna heave to restore it.


cannot login after Wednesday [1-11-17] update

Problem Solved :) I went to the website for the Canonical Group's "Graphic Drivers" team. The driver they recommended for my GeForce 8600 was the proprietary "nvidia-340"(340.98).

I clicked on the "System Settings" icon on the left side of my computer screen, then I clicked "Software and Updates", then "Additional Drivers".

Ubuntu automatically searched for a list of available drivers. I chose the recommended driver and pressed the button to install. Ubuntu automatically installed the driver.

Everything is good again. (At least for now.) I can log-in to my computer no problem. After three days and many hours of frustration and despair, it was almost too easy :)


Firefox profile cannot be loaded after upgrade

I got the same case, and I tried to change permission of mozilla cache and it worked:

root mode

sudo -s
chown -hR $USER:$USER ~/.cache/mozilla

but after I changed, there's pop-up suggested me when I opened firefox to create a new profile. I just want to use an older profile. So I changed the permission of old profile too into my user!

chown $USER:$USER ~/.mozilla/firefox/profiles.ini

dont forget to make a sure the file permission is changed :)


How do I get wifi working on hp stream x360

You need to disable Secure Boot in UEFI (aka BIOS) settings, and Wi-Fi will work.

Secure Boot does not allow to load the unsigned proprietary driver.


How to change audio device in ALSA without pulseaudio and need for restart

The solution I am currently using at the moment is changing the default device by creating the .asoundrc file in my home folder and adding the code:pcm.!default {type hw card 2}

I know to specify card 2 from the output when I run: aplay -l

The output looks like this for me:
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Headset [Cyborg F.R.E.Q.5 Gaming Headset], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

After this I reload alsa with: sudo alsa reload

Programs that are running still need to be restarted for me however, but its a start.

I use this odd script to swap between my two cards:
#!/bin/bash
currentSound=cat currentSound
if [ "$currentSound" == "0" ]; then
    echo "pcm.!default { type hw card 2}" > ~/.asoundrc
    echo "2" > currentSound
    echo "2"
else
    echo "pcm.!default { type hw card 0}" > ~/.asoundrc
    echo "0" > currentSound
    echo "0"
fi
sudo alsa reload

It creates a file that it uses to know what it needs to swap to next.

Its not seamless like with pulseaudio but its all I've been able to come up with so far.


Disable Grub bootloader's GRUB_TIMEOUT=-1 after failed startup?

My grub is hidden, but it boots everytime without asking. Here is my /etc/default/grub :

GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_SAVEDEFAULT=true
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true

This will boot the first entry everytime, without asking. I'm not sure it's recommended if you need to access recovery (but personnaly I have disabled recovery, so...)


Where is the source code to the "Ubuntu Apps Directory"?

The project for this on launchpad is at https://launchpad.net/ubuntu-webcatalog

You can get the source by running bzr branch lp:ubuntu-webcatalog


Can I use my Ubuntu One account to backup with Déjà Dup?

Yes, Déjà Dup now (as of Ubuntu 11.10) supports backing up files directly into Ubuntu One.

Select 'Ubuntu One' under 'Storage', like below:


Ubuntu stuck in low resolution after UNinstalling / disabling NVidia drivers

Make sure your nouveau driver is not black-listed.

I had the same problem as you after installing the NVIDIA driver manually and removing it after not enjoying it.

You need to take a look in your /etc/modprobe.d folder. You may well find a file named something like "nvidia-installer-disable-nouveau.conf". You will need to be root to delete this so fire up a terminal and punch in:

sudo rm /etc/modprobe.d/nvidia-installer-disable-nouveau.conf

Obviously change this to whatever your file is called, if different. After that reboot and you should be good to go! I didn't use the restricted driver installer though, I downloaded the driver straight from NVIDIA so the file may be different or the lines:

blacklist nouveau

options nouveau modeset=0

May well be in a different file, so have a nosey around the modprobe.d folder.

Hope that helps.


Is it possible to have a wireless network and a wired network simultaneously, and to have different applications use one or the other?

You can adjust the routing table to change the network interface based on the destination of the traffic.  There isn't a simple way to choose the network interface based on application.  If your use case is a wired network that does not have internet access, then you can route the IP ranges it uses to use the wired and everything else to use the wireless.  If your use case is that you want to be able to browse the internet without prying eyes that are on that network, you could setup a proxy server.  Many applications support proxies, whether it's a SOCKS proxy or HTTP.  From there you could route anything going to your proxy over the wifi.  Any applications that are accessing a specific set of IP addresses can also be routed over the Wifi by using the route command with the specified IP addresses.
To change the route of a single host like a proxy to use the wifi:
# route add -host 192.168.1.2 dev wlan0

Or a block of IPs:
# ip route add 10.0.2.0/24 via 10.0.1.1 dev eth0

Another example to route all remaining traffic to a specific device
# ip route add default via 192.168.1.254 dev wlan0


Touchpad issues on HP Pavilion dm4 (can't right click)

It's been a while and you are probably past this issue by now but this may help someone else.

synclient -l

will show touchpad config options

synclient AreaBottomEdge=3500

Allowed the use of the "clicking" part of the touchpad.

You can put it in your rc.local or in /etc/X11/xorg.conf.d/10-synaptics.conf to enable at every boot.


Notepadqq icons&font changed after update Ubuntu

I can't confirm this (I'm using Notepadqq 1.3.4-1~xenial1 on Xenial).

But you can change Notepadqq theme back in its settings:

Open Settings menu
Click Preferences
On Appearance section set Color scheme to Default:


You need to configure the devices. Start by dis-connecting the blue tooth USB's. Plug in a wired keyboard + Mouse and then plug in the Bluetooth USB's/ Whatever you plug in to make it work. Ubuntu will search for what they are and connect them.

If this is a DVD and Ubuntu is not installed to the actual HDD, Ubuntu will not remember these settings, meaning that you will have to do this every time you boot.

To keep these settings, install Ubuntu.

Hope this helps!!!

Edit: Maybe you could boot with those USB's off, and then plug them in when Ubuntu is loaded! Try it.


ISSUE: Dual Boot Windows 10 and Linux Ubuntu on Separate SSD

Thanks for the comments!
I found an alternate way to install and use Ubuntu, and it worked okay.
Link.


How to show boot text instead of the splash or blank screen on Ubuntu/Kubuntu 18.04?

Make sure you don't have plymouth-theme-ubuntu-text package installed.
Check if you have it using dpkg -s plymouth-theme-ubuntu-text|grep Status.
If exists remove it by apt-get remove plymouth-theme-ubuntu-text.


Multi-touch

  It’s  powered by something called
  TISCH (Tangible Interactive Surfaces
  for Collaboration between Humans)
  which now has a PPA with support for
  Kinect baked in.

sudo apt-add-repository ppa:floe/libtisch
sudo apt-get update && sudo apt-get install libtisch libtisch-dev libtisch-csharp libtisch-java libtisch-python

Video Link

Source


ASUS Q551LN on 16.04 with Intel AC7260 wireless Rev 2

loaded firmware version 16.242414.0 op_mode iwlmvm
uCode file size 36723 does not match expected size

You are loading defective -16 firmware. Why don't we simply download the -17 firmware which is newer and, in my experience, better? From the terminal:
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb
sudo dpkg -i linux*.deb

Reboot and test.
You might see if the F2 light, an LED actually, performs correctly after this:
sudo -i
echo "options iwlwifi led_mode=1"  >>  /etc/modprobe.d/iwlwifi.conf
exit

Reboot and test.


Open Terminal with multiple tabs and execute application

Use this variant of the script to do what you want:

#!/bin/bash

tab="--tab-with-profile=Default"
cmd="bash -c 'java RunRTSPClient';bash"
foo=""

for i in 1 2 3 4 5; do
      foo+=($tab -e "$cmd")
done

gnome-terminal "${foo[@]}"

exit 0

Generally, a script like this:

#!/bin/bash

tab="--tab"
cmd="bash -c '<command-line_or_script>';bash"
foo=""

for i in 1 2 ... n; do
      foo+=($tab -e "$cmd")
done

gnome-terminal "${foo[@]}"

exit 0

will open a new terminal with n tabs executing the <command-line_or_script> in each tab. This can be very useful when you want for example to open a terminal with some tabs with the interpreter at a specific path (using cd /path in the above script).

Also, read man bash, this post and this post to understand the changes.

I have tested these scripts and they work.


Asus Touchscreen Laptop Linux. Would it work?

Yes, your ASUS Laptop will work with Ubuntu. I think the touchscreen will work since this video on YouTube shows a ASUS Vivobook with Ubuntu 12.10 with the touchscreen in action. If you have a Vivobook or something similar, more than likely it will work.

You can dual boot if you want. Keep in mind that your ASUS laptop came with Windows 8, which means it may come with a security feature called "UEFI Secure Boot" or "Secure Boot" for short. You will need to disable "Secure Boot" in order to get the laptop to boot from removable media, like CD's, DVD's and USB Drives.


Just installed Ubuntu 13.10, can't get Netflix desktop to work

I was using firefox and couldn't get that to work.  Tried chromium and same thing.  So I downloaded Chrome and got the User Agent Switcher and switched to Windows Firefox 15 from the extension preferences and finally, Louie is playing on Netflix.


I had exactly the same problem on my MSI GE70 Apache Pro and while the answer is out there it is not easy to find, so I'm documenting my experience here.

Symptoms:

The backlight was stuck on full brightness and did not respond to brightness function keys.
/sys/class/backlight is empty, indicating that ACPI functions for controlling the backlight are unavailable.

I found the vital clue in the Arch Linux wiki entry "backlight":

  On Nvidia Optimus laptops, the kernel parameter nomodeset can interfere with the ability to adjust the backlight.

The MSI GE70 has Intel graphics as well as a discrete NVIDIA 860M.  In order to get the Fedora 20 installer to work I had to boot with the nomodeset kernel parameter.  This made it into the installed GRUB2 configuration.  I'm not sure whether that is intentional or not, but it is unnecessary because the installed GRUB2 configuration includes parameters to blacklist the nouveau driver, which conflicts with the NVIDIA hardware.

The full final solution is to remove the nomodeset kernel parameter and add the acpi_backlight=vendor kernel parameter.  The procedure is as follows:

Testing

First, to test that this is the solution, reboot the system and at the GRUB2 boot menu, press 'e' to edit the configuration, scroll down and edit the linux or linuxefi line (depending on whether you have a BIOS or UEFI - my laptop had UEFI).

Remove the nomodeset parameter if present.
Add the parameter acpi_backlight=vendor
My configuration also contained "nouveau.modeset=0 rd.driver.blacklist=nouveau" which I believe is the magic incantation to prevent nouveau from conflicting with the NVIDIA driver.  I left that in there and it did no harm.

Press F10 to continue booting the system.  You should be able to adjust screen brightness with the keyboard and a symlinked directory /sys/class/backlight/intel_backlight will now exist.
Untested: I believe that a range of client applications that depend on ACPI data in the /sys filesystem will now work also.

Making the Fix Permanent

As root, edit /etc/default/grub and modify the GRUB_CMDLINE_LINUX= line to:

Remove the nomodeset parameter.
Add acpi_backlight=vendor

Finalise the changes to the GRUB2 configuration.

On Ubuntu, the command is apparently "update-grub".
On Fedora 20, with UEFI, I first backed up /etc/grub2-efi.cfg and then did: grub2-mkconfig -o /etc/grub2-efi.cfg.  I have read elsewhere that the file to update is /etc/grub2.cfg, however, on my system that is a blind symlink and when I tried using it the changes did not take effect.  I assume that file is only consulted on BIOS systems.

That's it. You can then reboot the system and it should all work.


No second operating system available and no boot menu available (only Windows 8.1 starts and is visible in WIN-Boot-Menu)

I have tried many things and I think HP does not want to allow dual boot on my machine and others like it.  My HP 15 (not Envy) started with Windows 8.1 but was first upgraded with the Windows 10 "free" version and now the anniversary version.  All had the same issue- no boot menu (with dual boot option) at startup.  The workaround I found is long and not convenient.  Go to SETTINGS/UPDATE AND SECURITY/RECOVERY/ADVANCED STARTUP (needs to restart)/USE A DEVICE/UBUNTU.  Then, the traditional dual boot screen appears (default is Ubuntu).  It is a long way around.  I had read of the boot repair option mentioned earlier but was reluctant to go that route.

Good luck


Looks like the issue is caused by the way how snap installs Skype.
As a workaround I just installed .deb version from Skype website.


How can I make upgrading smoother and less time-consuming?

I am part of a student driven lab at my university. I usually spend quite a bit of time keeping the computers, all running Ubuntu, up to date.
The aspects that I noticed that cause major issues during updates are:

Drive speed. The slightly older machines present have old spinning hard drives. An SSD, if you don't already have one, should speed up the process.
Dependencies. This one is a real pain to deal with. I had machines fail to boot after an upgrade because of one annoying package that wouldn't upgrade properly. Uninstalling these weird packages can help increase the chances of a successful upgrade on the first attempt. I faced issues particularly with ROS and nfs-kernel. Unfortunately, knowing which packages to handle with care comes from experience.

Other than these, most of the upgrades I have performed using do-release-upgrade have been successful on the first try with minimal cleanup afterwards.


For a long shot.
sudo nano /etc/default/grub

make sur the 1. line begins with #
# If you change this file, run 'update-grub' afterwards to update

then sudo dpkg --configure -a && sudo apt -f install


A few steps:

First get some required tools:

sudo apt-get install build-essential linux-headers-$(uname -r) gksu

Download vmplayer
The installation bundle must be executable:

chmod +x VMware-Player-12.0.1-3160714.x86_64.bundle

Make sure you are in the correct directory and run:

gksudo bash VMware-Player-12.0.1-3160714.x86_64.bundle

Remembering that the actual name of your downloaded bundle may differ from my example...

References:

Ubuntu Docs: VMware/Player


How do I install 10.04 on a Vortex86DX embdedded system?

Well, the solution is to use the special 2.6.34 kernel DMP supplies here, which is required to install Ubuntu 10.04.

I don't know if your "vendor" is the manufacturer (DMP Taiwan), or a retailer/distributor, but DMP makes this fact perfectly clear on their support page:

In any case, you should start with the latest Ubuntu 10.04.4 Alternate Install CD, available from this page. That way, the install is text based and any errors/problems are clearly shown, which we can help you troubleshoot.


There is a conflict between RabbitVCS and Ubuntu One on Ubuntu 12.04 and RabbitVCS 15.2.

What finally worked for me after having had to live without RabbitVCS for months is the following:

Go to your Ubuntu One preferences in System Settings
Under "Settings" uncheck all "File Sync Setting"
Reboot (perhaps also just logout/in but I rebooted)

And now your RabbitVCS should work as advertised.


systemd-resolve seems to not query the specified DNS server

What solved my problem was to run sudo /etc/init.d/dns-clean restart


I seem to have answered my own question. The keyboard needed a bios update. This coupled with switching the polling switch to "BIOS" seems to have resolved my issue. Hope this helps anyone else having issues with the K95 RGB model.

Thanks

S


Unsure of grep output because of bash wildcards

In grep, your pattern is matching .h (any character followed by h) anywhere in the line, not just at the end.

You basically have two problems:

Quoting/escaping issue
Regex pattern issue

Explanations:

You have escaped . using \. and have not used any quotes or another \, so the escaping would escape the shell, and grep would get the Regex pattern as .h, in Regex term which means any character followed by a h. Your target is to make grep treat the . literal, so you need to quote or add another \ like:

'\.h'
\\.h

Now the second problem, in regex, the end of a line is expressed by the quantifier $, so as you need to match the .h at the end of the line:

'\.h$'

So, together the correct usage would be:

ls /usr/include/ | grep '\.h$'

Now the most important thing, Don't parse ls.

What you are doing can be easily and efficiently done by basic shell globbing:

ls /usr/include/*.h


wifi is not working in ubuntu 16.04.1 LTS

You can try to install the wireless adapter driver.

In Ubuntu , you can install from setting-> software&updates -> Additional divers.

I hope it can help u~


This link might help:

https://stackoverflow.com/questions/4426280/what-do-pty-and-tty-mean

Some very good explanations there.

tty stands for teletype  - the original terminals used a line printer for output (as opposed to a screen or terminal as you find today) and a keyboard for input. A pty is a pseudo-terminal.

Both terms have survived the annals of time.


Type this command in a terminal:

  nautilus ~/.local/share/zeitgeist

This is the zeitgeist directory where it stores the data.


How to check what applications have access to my clipboard?

In X11, everything has access to your clipboard by default. That's one of the weaknesses (and strengths) of the X11 windowing system - it's obviously insecure, but allows conveniences like clipboard managers. Wayland doesn't allow such total sharing, only the application with focus is notified of clipboard changes.


Use dconf-editor from Terminal, navigate to gnome>desktop>wm> and then set workspace-names to

 ["Internet", "Oracle", "Gimp", "PHP"]


How to setup postfix for multiple domains

During the install process (sudo apt-get install postfix) it will ask you, in an ncurses text-mode GUI, to "select the mail server configuration type that best meets your needs".  The correct answer here will be either "Internet site" if you want the machine to deliver mail directly, or "Satellite system" if you want it to relay all mail through a single smarthost instead.

Beyond that, you'll have to be more specific about what you want - should the machine listen for INCOMING smtp traffic, or will it only be relaying mail out from localhost?  Should it accept unauthenticated SMTP, and if so, from whom?  Should it accept authenticated SMTP traffic - only, or from all but a certain trusted range?

All these things are possible, but we need to know more about what you want to do.