Radeon high CPU usage: is there a way to avoid this?

This question was asked 1 year ago. But today I faced exact same situation and entering my answers found.

As release of Ubuntu 16.04 LTS, older ATI Graphics cards no longer supported. (See below reference links "Supported, but hardware is too old for Unity" section for exact card models)
Your all graphics drawings processed by CPU and thats why CPU utilization is so high.

Just drop the idea of installing proprietary driver and so. Now you have following options:

Downgrade to Ubuntu 14.04
Change graphics card (preferably NVIDIA one)
If you need Ubuntu 16, use alternative desktops XFCE or LXDE which is more lighter.

Reference:
https://help.ubuntu.com/community/RadeonDriver


Sadly, no. Their last release was five years ago, their last contribution to git was three years ago, and you're not the only one asking.


When the CD is loading you will a keyboard and white guy in a circle. When you see this, hit a key.

You'll be prompted to select your language, do so.
Hit the F6 key to bring up the Other options,
Use the arrow keys to scroll down to "nomodeset" and hit Enter
Hit Escape to get back
Select "Try Ubuntu without Installing" or "Install Ubuntu" and hit Enter.

If it is a "nomodeset" issue, this will fix it.

Also, since this is a Windows 8 machine, disable Secure Boot in UEFI before you attempt an Ubuntu installation. I've also seen references to Secure Boot causing this error message.


Ubuntu Oneiric Ocelot means it's Ubuntu 11.10 which was released in October 13, 2011 and support ended in May 9, 2013.

Precise Pangolin means it's Ubuntu 12.04 LTS released in April 26, 2012.

  cannot update precise to oneiric

This is normal attitude since you can find the repository of non supported release. The old repositories is now under the "old-releases" server old-releases.ubuntu.com not the archive.ubuntu.com.

So mainly you have two choices to do:

Backup your data and then reinstall to a new supported version(12.04 - 14.04- 14.10 -15.04) and its better to use some LTS such 12.04 or 14.04
Do the trick:

edit /etc/apt/sources.list and change archive.ubuntu.com to old-releases.ubuntu.com

You can do this with sed

sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

then update with

sudo apt-get update
sudo apt-get dist-upgrade

Now try to upgrade:

sudo apt-get install update-manager-core
sudo do-release-upgrade

Please take a look on https://help.ubuntu.com/community/EOLUpgrades/ and for your case read this https://help.ubuntu.com/community/EOLUpgrades/Oneiric


Ubuntu 12.10 firefox v19.0 fails to install missing plugins for adobe flash

run this command in terminal:

sudo apt-get install flashplugin-installer

and that would install flash plugin.


Utility to automatically acquire and print generated syslog entries from command currently being ran?

glogg is a handy tool to zoom into a selected log file (like /var/log/syslog or /var/log/syslog.1) at a specific point. This makes it easy to review what happened immediately before/after a desired event.

glogg is a multi-platform GUI application to browse and search through long or
complex log files. It is designed with programmers and system administrators
in mind and can be seen as a graphical, interactive combination of grep and
less.

Main features include:
 * Accept egrep regular expression to search or filter the log.
 * Interactively display results of the search in a second, filtered window.
 * Colorize the log and the search results.
 * Read the file directly from disk, without loading it into memory.
 * Happily handle big (>4 GiB) files.
 * Read UTF-8 and ISO-8859-1 encoded files.
 * Follow a log in real-time as it is written to disk.
 * Allow one to insert marks in the logs to interesting lines.
 * Support less/vim like keyboard commands to move around the file.

sudo apt-get update # update software database

sudo apt-get install glogg # install glogg


I recently had a similar problem.

Try taking out all PCI devices, checking for dust, and putting them back in. Maybe something isn't making a good connection because it's come loose or is dusty.


"Your PC ran into a problem" and it never restarts

First you need to run "scandisk /f" on the windows partition to repair any corrupt files. It has been my experience that removing the drive and placing it in another PC as a slave or external drive is the best way to accomplish this. Once scandisk has run, return the drive to its original PC and try booting (don't forget to reset any jumpers on the drive if you moved them). If it is still not booting, start an Ubuntu live DVD session and run boot-repair that should get you back booting again.


Uninstall VirtualBox before uninstalling Ubuntu

Removing Virtual Box means you remove the application. Still some apps keep  files even after uninstalling, and VBox  is one of them.

The directory you see includes the hdd of the old machines and the configuration files so you can rerun your old machines if you install VBox again.

So, for you its up to you, if you don't need that machine anymore you can easily remove that directory with its content.


What is the difference in using "touch file" and "> file" in creating a new file?

> is the shell redirection operator. See What's is the difference between ">" and ">>" in shell command? and When should I use < or <() or << and > or >()? It is primarily used to redirect the output of a command to a file. If the file doesn't exist, the shell creates it. If it exists, the shell truncates it (empties it). With just > file, there is no command, so the shell creates a file, but no output is sent to it, so the net effect is the creation of an empty file, or emptying an existing file.

touch is an external command that creates a file, or updates the timestamp, as you already know. With touch, the file contents are not lost, if it exists, unlike with >.

The behaviour of > depends on the shell. In bash, dash, and most shells, > foo will work as you expect. In zsh, by default, > foo works like cat > foo - zsh waits for you type in input.


You can use the Okular app. Just type following command in terminal:

sudo apt install okular

It has all the features of note making.


Cannot boot into Windows after Ubuntu 16.04 install

On my system I use F2 for UEFI, F8 for Boot Options and F10 for recovery. Yours likely has a boot option, too. What this does, is when I boot using F8, it pulls up my Win Boot Loader, Ubuntu USB and Ubuntu Boot-loader partition. After installing 16.04 (and until I get this grub2 fixed) I have to boot with F8 and choose Windows or Ubuntu respectively to boot into mine manually. Note, I am unable to do this when Secure Boot is active, so use F2 (UEFI option) and disable Secure Boot and see what happens.


Installed Ubuntu and Wine and now Windows BSODs

Wine doesn't require to change files in Windows directory. Either You have been misled or you have misunderstood.
Whatever changes you have done, revert back. If you can't do that for some reason (say you deleted some dll) don't worry. No need to buy windows again. Contact MS to get the product key (If you don't have it) and reinstall windows.


Configure xvfb for Vivid (15.04) as a service using systemd

Under systemd you create /etc/systemd/system/xvfb.service

[Unit]
Description=X Virtual Frame Buffer Service
After=network.target

[Service]
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24

[Install]
WantedBy=multi-user.target

And then run

sudo systemctl enable /etc/systemd/system/xvfb.service

At which point

sudo service xvfb start

will start it:

$ ps -elfwww | grep -i Xvfb
4 S root      7807     1  2  80   0 - 51102 poll_s 16:47 ?        00:00:00 /usr/bin/Xvfb :99 -screen 0 1024x768x24

and

sudo service xvfb stop

will kill it


How do I run a script once and only once in Upstart?

Use post-start script section instead of script section. It will leave the job as started/running state and it will not be re-run.


Easy:

Make a system backup (Read this Q&A how to do this. You're user type 4)
Boot the Ubuntu Live CD,
Go to the dash,
Type 'gparted`,
Delete the partitions that contain nothing (without light yellow, or marked "NTFS")
You can now click the Ubuntu partitions and drag them into the empty area
Click "Apply"
Reboot

Done!


I've been attempting the same thing for a while now, and be warned that there are no proprietary drivers for the Radeon card, and the open source drivers run it extremely hot, even at idle. Also the sound won't work out of the box. Slackware-based distros seem to work best with the 2006 mbp's hardware, at least in my experience. Best of luck!

Oh, and to get Linux booted on the machine, I strongly recommend the rEFInd boot menu. Installs in a second, and makes everything easier.


How to Run Android Apps on Linux

To run Android apps on Linux through Chrome you will need, obviously, to install Chrome. Version 37 or higher is required. Honestly, if you’re going to be playing with a potentially unstable hack then you might as well download and install the unstable version of Google Chrome for Linux, too.

Adding the Chrome PPA. Already got a version of Chrome installed? Skip this step:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update && sudo apt-get install google-chrome-unstable

You can install the Dev Channel version via the command line by running:

sudo apt-get install google-chrome-unstable

Next you need to download the custom-made -ergo officially not endorsed by Google or Chromium- Android Runtime created by Vlad Filippov. This differs from the official version in a number of ways, the chief being it can be used on desktop versions of the browser.

Download ARChon v1.1 (for 32bit Chrome) from GitHub
Download ARChon v1.1 (for 64bit Chrome) from GitHub

Once the runtime has fully downloaded you will need to extract the contents from the .zip files and move the resulting directory to your home folder.

Now to install ARChon. Open Google Chrome and click the hamburger menu. Navigate through to the Tools > Extensions page and, near the top, check Enable developer mode.

Finally, click on the load unpacked extension button and select the folder you previously placed into your home folder.

The Runtime alone doesn’t do much by itself so you will need to create a compatible package from an Android app.

Running apps

There are some methods to do this:

Running a downloaded APK:

Automatic method:

Install Twerk from here into Chrome
Drag and drop an Android .apk file from your desktop into the main Twerk window.
Enter an app name, choose an icon from your hard drive and set your preferences for how the app should run (portrait mode, tablet mode, etc.) using the sliders.
Tap the pink Android button and a neat, runtime-ready bundle is spat out at the other end, ready to be installed as an unpacked extension.
The settings on offer are suitably comprehensive too, letting you:

Set custom name and icon
Package for ‘Archon’ or official runtime
Set tablet or mobile layout
Set landscape or portrait mode
Toggle scaling (may prevent some apps working)
Toggle SD Card support
Set offline functionality

Manual method (Not recommended):

To convert APKs manually -something you really don’t need to do any more if you use one of the apps mentioned above- you will need to install the chromeos-apk command line JavaScript utility. This is available to install through the Node Packaged Modules (npm) manager.

Install Node:

sudo apt-get install npm nodejs nodejs-legacy

Ubuntu 64 user? You’ll want to grab the following library, too:

sudo apt-get install lib32stdc++6

run the command to install the script itself:

npm install -g chromeos-apk

Depending on your configuration you may need to need to run this latter command as root. If you’d prefer not to install npm modules with sudo, you can do so with some jiggery-pokery.

Now you’re in the home straight. Head over to Google to find an APK of an app you want to try out, bearing in mind not all Android apps will work, and those that do may be unstable or lack features.

Place your wanted Android APK in your home folder, then return to Terminal to convert it using the following command, replacing the APK name with the one you want:

chromeos-apk replaceme.apk --archon

The command will take a few seconds to do its thing. Maybe have a blink. Actually, don’t blink.

You now have an ARChon-rocking Chrome APK extension-y folder-y thing waiting in your home folder. All that’s left to do is install it to see if it works!

Head back into the chrome://extensions page, tap the ‘load unpacked extension’ button once again but this time select the folder the script above created.

The app should proceed to install without issue, but will it run without issue? Open the Chrome App Launcher or Apps Page and launch it to find out.

Exporting apps from your android device

You can export the apps already installed in your Android device with this method.

Install this app from google play.
On first launch you’ll see an overview of what the application intends to do. Tap next and you’ll be presented with two options:

Select an installed app
Select an APK you have downloaded

Select the first option in the list
* Tap Next and choose something from the list of apps already installed on your device.

The utility will ‘pull’ the package it needs from what is already on your phone.
Set your preferences
On to the next screen where you can set device and orientation mode for the app as it will be on Chrome. Think about how you use the app and how you would prefer to use it on the desktop.
While ‘tablet’ and ‘landscape’ modes will be the optimum experience for most, choose what suits your needs.
After packaging is complete you need to transfer the resulting zip archive(s) from your phone or tablet (in the ‘Chrome APKs’ folder) to your PC or Chromebook.
How you go about this is up to you, but for small files you could use Google Drive, Dropbox or a similar cloud syncing service.
Once you have the archive(s) ready on your desktop, laptop or Chromebook you will need extract them and move the resulting folder(s) somewhere safe.
To install them open Google Chrome and head to the ‘extensions’ page. Check the ‘Developer Mode’ box near the top of the page to reveal the ‘Load Unpacked Extension’ button. Click this, select the extracted folder from the previous step and the app will install.

Finally, launch it to see if it runs!

Source 1: http://www.omgubuntu.co.uk/2014/09/install-android-apps-ubuntu-archon
Source 2: http://www.omgchrome.com/twerk-chrome-archon-apk-maker-desktop/


Kubuntu 20.04 crashed and now I am not able to access my internet. I don't see wlan nor eth0

Ok. I figured it out myself.
Issue: Due to the power outage, my kernel and my wifi driver got into a corrupted state.
Solution:

Go into grub menu and log in using a previous kernel.
(this got me into my system without any issues)
(to get to the grub menu keep pressing the esc key during bootup process)

Now to fix the wifi driver, insert your live usb/cd

Copy the below two files into your desktop
bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu5_amd64.deb
dkms_2.8.1-5ubuntu1_all.deb

(You can find these by drilling down to the following location
pool > restricted > b > bcmwl and pool > main > d > dkms)

Now install using the following command in terminal

cd ~/Desktop sudo dpkg -i dkms*.deb sudo dpkg -i bcmwl*.deb sudo
modprobe wl

Your wireless should now be working.

For corrupted kernel, I did not do anything yet. I just removed the corrupted kernel manually. You can find relevant articles in web on how to remove kernel safely.


Open the terminal and type:

sudo apt-get update
sudo apt-get install openssh-client # client for secure access to remote machines
sudo apt-get install aptitude
sudo aptitude install ssh

Optional commands:

sudo apt-get install openssh-server # server for secure access from remote machines
sudo apt-get install hotssh # GUI front-end for ssh


Linux does not allow two users to be the owner. This is what groups are for. Create a new group (ex. wwwgroup and put both www-data and you in that group. Then, set the group for the site's files to be wwwgroup.

Here's how to do it:

sudo groupadd wwwgroup
usermod -aG wwwgroup www-data
usermod -aG wwwgroup <YOUR-USER-NAME>


Using old same-version ISO for new install. Any problems?

You can use that ISO.

After installation you will be prompted to update the system and this update will be a bit longer than usual (since it will update everything that was changed since you downloaded it).


Wine Error: 0030:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE

As indicated by the post you linked to, Adobe Flash CS6 (12.0) has been tested to work well with Wine version 4.02 The latest (development version of wine is at the moment of writing this answer, 4.20) SO if you are truly using version 4.02 of wine it's been tested to work. I recommend that you issue the wine --version to confirm the version of wine that you are actually using matched the tested version of 4.02. Another possible gotcha here, is that you are using  Adobe Animate which granted was a renaming of Flash CS 6, but to the best of my knowledge wasn't announced until 2015 While the version partially tested as working with wine (adding extensions was NOT tested) was released in 2012. It appears that counting major and minor revisions there have been at least 10 revisions since that tested version came out.

Also note that there are specific instructions for running Windows programs from the command line under wine. that don't appear to have been followed.

If you've confirmed that your version of wine AND your version of Adobe Animate match the versions tested, this problem might be related to utilizing the wrong wine prefix The numerous :fixme: errors indicate bugs in wine support for the version of Adobe Animate that you are attempting to run.

You might also be attempting to utilize the wrong wine prefix for your version of Adobe Animate.

If none of this information proves to be useful, your best bet will be to contact those more directly involved in the project. There's a wine help forum here.


Installation not successful. Dash Home unavailable

You can reset unity by

dconf reset -f /org/compiz/ && unity --reset-icons &disown

After this change display to graphical with Ctrl+Alt+F7 or (F8).
If this doesn't work instantly, restart the system.


System file windows open behind Unity launcher

Open CompizConfig Settings Manager and enable "Place Windows" under "Window Management". This should solve the problem.


How to create efi partition and install GRUB bootloader manually

grub-install simply copies the binaries from /usr/lib/grub to /boot/efi, and configures the EFI system variables to point there.  Just mount the ESP in /boot/efi and run grub-install.  It still requires a device argument for backward compatibility, but it is ignored so you can specify anything you want.  The Ubuntu installer just runs grub-install dummy.


Moving a Subdirectory folder and its file to a new partition

There's probably a ton of ways to do this.  My suggestion would be top open a terminal window alt + ctrl + t and enter the following code

cp -a /media/samba_disk_1/data/lrn /this/is/the/new/path/lrn

This will copy file the files to a new partition, but not remove the old files so that you can verify that all are in place before you remove the disk.


None of the compiled versions available match your OS/arch, so you will need to compile it by yourself. Roughly, you need to follow those steps:

Install the building tools

$ sudo apt-get install build-essential subversion python-dev

Get the source code:

$ svn checkout http://pythonika.googlecode.com/svn/trunk/ pythonika-src
$ cd pythonika-src

Edit the file Makefile.linux and check the path in MATHEMATICA_INSTALL_DIR is correct. Also you will need to change PYTHON_VERSION_MINOR to "7" (if you are using the python version installed by default).
Compile it

$ make -f Makefile.linux

If everything went well, you should have a file named Pythonika inside that folder.
If you get any error, update your question with the errors you get.


To complement techraf's answer, if you want to use old releases, you can access them using this address:

http://old-releases.ubuntu.com

To enable this, open the /etc/apt/sources.list file with a text editor, and wherever you see archive.ubuntu.com (the source of releases actively supported), change it to old-releases.ubuntu.com (you can use the find & replace option to speed it up).


How can I set a display resolution of 1366x768 in a Acer Aspire One ZG5?

Answer: It is not possible to set the display resolution to 1366x768 in a Acer Aspire One ZG5.  The Acer Aspire One ZG5 does not support resolutions higher than 1024x600.

As you have 1280x768 listed under System Settings > Displays, it is very likely you do not have an Acer Apsire One ZG5.  Ubuntu 12.04 will correctly detect the display's native resolutions and populate the settings appropriately during installation.

Source: http://support.acer.com/acerpanam/netbook/0000/Acer/AspireOneAOA150/AspireOneAOA150sp2.shtml


Trouble setting up static ip. Ubuntu 18.04

255.255.255.248 is already a subnet mask, not a subnet. The prefix /29 is the representation of this subnet mask, so you don't add it.

Therefore your ip address is not contained in it.

The notation should be, for example in a private network:

192.168.1.1/24

where /24 is equivalent to 255.255.255.0.


Always use a python virtual environment everywhere

if you are using virtualenv to create a virtual environment, it should be activated (manually or automatically) through running:

source PATH_TO_MY_ENV/bin/activate

However, when you don't want to type this every time and want to run it automatically by your desktop start-up, you should follow these three steps:

1. Create a shell script activate_my_env.sh and put the above
    mentioned command in it:

# activate_my_env.sh

source PATH_TO_MY_ENV/bin/activate

2. Then, you need to change the permissions for activate_my_env.sh script to be
executable
(chmod +x):

chmod +x /path_to_your_file/activate_my_env.sh

NOTE: In this step you can also activate your environment without typing source my_env/bin/activate, but still need to run your script with this command:

./activate_my_env

3. Finally, in order to run the shell script automatically, you should set it to be run by start-up / reboot of your system:

A. edit contab file:

  crontab -e

B. add the following line to this contab file:

  @reboot  /path_to_you_file/activate_my_env.sh

Reboot your system and you should have your virtual environment activated automatically, after every ubuntu startup.

More about Running Shell Script by Ubuntu Startup


okular snap package doesn't appear in applications and command 'okular' is not recognized

You should be able to launch Okular by the following command

snap run okular

If you want to add it to the applications list, you may create a .desktop file in ~/.local/share/applications/ (say okular-snap.desktop) with the following content and save it

[Desktop Entry]
Comment=Okular document reader
Terminal=false
Name=Okular
Exec=/snap/bin/okular
Type=Application
Icon=okular
NoDisplay=false

You may find an already existing .desktop launcher for the application in the /var/lib/snapd/desktop/applications/ directory. In that case just copy it to ~/.local/share/applications/.

If the correct icon is not appearing:
You may set any image (preferably PNG or SVG) as the icon for the application. To do that change the Icon= line and point towards your preferred image. For example if you want use the MyIcon.png image located in your Desktop folder, change the line to

Icon=/home/YOUR_USER_NAME/Desktop/MyIcon.png

(Replace YOUR_USER_NAME by you actual username)
.


First, remove all the failed driver installations using:

sudo apt-get purge nvidia*

Then install the correct propriatary drivers:

 sudo apt-get install nvidia-current

Don't forget to reboot:

sudo reboot


I want to know about Ubuntu basics: shell, command  etc about Ubuntu. help!

The Ubuntu Manual project covers what you want to know and much more, all in an easy language with lots of screenshots.


Installing Node-js Removes ros-melodic-desktop-full

The specific conflict is between ROS Melodic and an NPM dependency called libcurl4-gnutls-dev.  This is the dependency chain: NPM -> node-gyp -> nodejs-dev -> libssl1.0-dev -> libcurl4-gnutls-dev
This link shows how to install NodeJS for use within ROS Melodic (no NPM though, but catkin will attempt to fetch packages during build when not installed): https://answers.ros.org/question/339940/try-to-use-npm-with-ros-melodic-on-ubuntu-1804/
This link shows how to install NodeJS/NPM within a python virtual enviornment: https://stackoverflow.com/questions/65519982/can-not-install-npm-along-side-with-the-ros-melodic


Ubuntu 19.10 login loop - no common solution to this problem seems to help

I had a similar issue a few months ago, i followed those steps to solve the issue :

  First can you login via console (Ctlr+Alt+F1, F2 or F3) ?

If you can, try to backup your /home/$user/.config directory. To do that just move it to another location/name with mv:

mv ~/.config ~/dotconfig_backup

Then reboot and retry to login via your graphical interface.

If it doesn't fix your issue, you can also try to move the following folders:

~/.cache
~/.gconf
~/.gnupg
~/.gnome2

The source of the issue for me was an installed gnome extension

Let me now if it helped you :)


Invalid eclipse home when installing Eclim

According to this GitHub issue this is a known issue.

It looks like the easiest solution is to download the .tar.gz version you need from here: https://eclipse.org/downloads/


As per this post, it does affect ubuntu. Browser plugins should not be allowed to run unconditionally, but rather with a click. This will allow you to run only on those plugins which you trust.


You need to install libapache2-mod-auth-mysql.


Installing ubuntu 12.04 on a Mac with unbootable Mac OS X

Any recent version of Ubuntu should not harm (or in any way modify) your Mac's EFI firmware. To give more details or absolute assurance about claims to the contrary, it would of course be necessary to detail and cite the claims (with a link if possible).

However, what you're probably thinking of is this. Fortunately, that only affected Ubuntu 11.04 (which is not even supported anymore), and has been fixed (and the fix shipped with every subsequent version's installation images, starting with 11.10). Therefore, there is almost certainly no need to be concerned anymore (unless you're trying to install from old 11.04 images for some reason).

There is one significant Mac EFI related issue with Ubuntu, but it is not dangerous and doesn't pose a threat to your computer. Often a Mac is unable to boot a CD/DVD or live USB created from the regular Ubuntu ISO image because Macs are incompatible with boot media that are set up to work with both BIOS and UEFI (multi-catalog media).

If that's the problem you're having, the solution is to use the special Ubuntu disk image made for Macs. Macs can boot Mac EFI or regular BIOS, so this image removes UEFI support, and can be booted on Macs.

That critical, dangerous, and fortunately fixed bug used to be one of the reasons to make sure to use the special Mac image. Now that it's fixed, the special Mac image is still more likely to work than the regular one, but the regular image is not dangerous.

See this excellent answer for a detailed explanation and technical information about the difference between the regular and Mac ISO images.

This applies only to 64-bit ISO images, so if you're using the 32-bit image, then your problem is different.

Assuming you're trying to install the 64-bit version of Ubuntu on your Mac, the special Mac ISO image for Ubuntu 12.04 LTS can be downloaded here.

Specifically, here's a direct link to the ISO file.
And if you want to download via bittorrent, here's a link to the .torrent file.

That page also contains links to download the text-based alternate CD image, if you want that. (It shouldn't be necessary though, unless you have highly specialized requirements.)

More generally, for people looking for other versions: The special 64-bit Mac ISO images are currently kept on the cdimage.ubuntu.com download server, categorized by version. (In particular, images for 13.04, the latest stable release as of the time of this writing, are here.)


The "Startup disk creator" leaves with two devices being mounted: 1. the newly created stick, 2. the image (in my case ubuntu-13.10-desktop-amd64+mac.iso) from which the stick was created. The stick can be seen from the file manager and can be "ejected" from there. This was not the case with the image file. In the "Disks" application, however, the mountpoint is visible and can be unmounted.


Adding newmode with Xrandr - "800x480_60.00"

Approach 1: Using Startup Applications

You could make an executable script file and add it to the list of Startup Applications. Here is a screenshot how the result of next steps looks in my system.

1. Create a directory where the script file will be contained. For example this directory could be placed into your home directory and could be named .autorun-startup:

mkdir ~/.autorun-startup

2. Create the script file and make it executable:

Let's call this file custom-screen-resolution.sh:

nano ~/.autorun-startup/custom-screen-resolution.sh

In this example is used Nano text editor (where you can use ctrl+o to save the edits and ctrl+x to exit), but you can use your favorite text editor.
The content of the script custom-screen-resolution.sh should look as this:

#!/bin/sh
# To calculate the modeline use: cvt 800 640 60
# To view the available modes and the output names use: xrandr
# Create new mode:
xrandr --newmode "800x480_60.00"  29.50  800 824 896 992  480 483 493 500 -hsync +vsync
# Add the new mode to the list of modes of certain output:
xrandr --addmode LVDS1 800x480_60.00
# Set the new mode as current for the certain output:
xrandr --output LVDS1 --mode 800x480_60.00

Set executable permissions to the file custom-screen-resolution.sh (or use Nautilus):

chmod +x ~/.autorun-startup/custom-screen-resolution.sh

3. Open the application Startup Applications, click on the Add button to add a new entry and fill the parameters values:

Name:     Custom Screen Resolution
Command:  /home/<user>/.autorun-startup/custom-screen-resolution.sh
Comment:  Add Custom Screen Resolution

Save the entry and Close Startup Applications.

Approach 2: Using XDG Utils

This approach allows you to execute the above commands during system startup system wide (for all users). For this purpose you must create .desktop file and place it into a appropriate place, to be more specific, according to the example into the directory /etc/xdg/autostart/. I found this approach here, but there are also available and other ways how to use XDG Utils tools package.

1. Create a directory where the .desktop file will be contained:

sudo mkdir -p /etc/xdg/autostart

2. Create the .desktop file and make it executable:

Let's call this file custom-screen-resolution.desktop:

sudo nano /etc/xdg/autostart/custom-screen-resolution.desktop

The content of the file custom-screen-resolution.desktop should look as:

[Desktop Entry]
Name=Custom Screen Resolution
Exec=sh -c 'xrandr --newmode "800x480_60.00"  29.50  800 824 896 992  480 483 493 500 -hsync +vsync; xrandr --addmode LVDS1 800x480_60.00; xrandr --output LVDS1 --mode 800x480_60.00'
Terminal=false
Type=Application
Categories=Application

Make sure custom-screen-resolution.desktop has read permissions system wide.
Set executable permissions to the file custom-screen-resolution.desktop. In this case, this step is optional and you need it, if you want to test your file via 'double click'.

  Note 1: The .desktop file could use the script created in the
  above approach. For this purpose change the Exec as follow (make sure custom-screen-resolution.sh has read permissions system wide):

Exec=/home/<user>/.autorun-startup/custom-screen-resolution.sh

  Note 2: Create the .desktop file within the directory /home/<user>/.autorun-startup and then make a symbolic link to
  /etc/xdg/autostart:

sudo ln -s /home/<user>/.autorun-startup/custom-screen-resolution.desktop /etc/xdg/autostart/

Further reading

Add resolution:

How to set the monitor to its native resolution which is not listed in the resolutions list?
How can I make xrandr customization permanent?
Where is the X.org config file? How do I configure X there?
How to add a resolution in display settings?
How do you permanently add a resolution on a laptop with Ubuntu 14.04 for a secondary monitor connected with a VGA cable?

Startup commands:

start up command
How to run scripts on start up?
Differences how to run scripts at startup
how can i write a shell script that will run at startup and introduce a delay in the start of an application
Adding path to PATH environment variable using bash script in /etc/environment


I think Jenkins is trying to look for Oracle JDK 11. This is written in the above message

Oracle JDK 11 is NOT installed.
dpkg: error processing package oracle-java11-installer-local (--configure):
subprocess installed post-installation script returned error exit status 1

If you are installing Jenkins, then install JDK 11 before installing Jenkins.
Please follow the below tutorial for Ubuntu 20.04
OpenJDK installation
Case - 2
If the have Jenkins installed and it has exited abnormally with exit code 1 and when you try to get the status with systemctl status jenkins.service and you get the following output
Nov 13 09:35:43 tattve jenkins[1038744]: Found an incorrect Java version
Nov 13 09:35:43 tattve jenkins[1038744]: Java version found:
Nov 13 09:35:43 tattve jenkins[1038776]: openjdk version "11.0.9.1" 2020-11-04
Nov 13 09:35:43 tattve jenkins[1038776]: OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
Nov 13 09:35:43 tattve jenkins[1038776]: OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
Nov 13 09:35:43 tattve jenkins[1038744]: Aborting

Please implement the solution suggested here


How do I get SSH to listen on a new IP without restarting the machine?

I have a hunch this is related to ARP, which can be sometimes funky with virtual machines. From another virtual server on the same box, you can connect, as you're not going through the switch.

To test this, first try clearing the ARP tables on the machine from which you're trying (and failing) to connect:

sudo arp -d <ip-of-failing-virtual-machine>

If that doesn't help, try resetting the ARP table on your switch (one easy way to do it: reset the switch :)


If you mean you have made a change in xmodmap and subsequently the change is only working for the right alt, this could be because you need to clear the current settings for the left alt modifier key before you make the change.

Something like this:

clear Mod1
add Mod1    = Alt_L Alt_R

documentation here: https://wiki.archlinux.org/index.php/Xmodmap

If you mean only one alt key is working initially, before anything is changed with xmodmap, maybe the only one alt key is set up as 'alt'. On english apple keyboards
one alt is set up as a third and fourth level key, which allows you to choose alternate letter forms on the keyboard, eg 'ß' with the 's' key.


I was trying to fix this trouble about two weeks, and didn't get result. And I find answer immediately after create this question.

I just to disable hardware acceleration in google chrome and colors are go to be normal.

It's not good decision and I still need help with AMD drivers. But it's another question.

This question is complete. If you have some problems with colors on google chrome just try to disable hardware acceleration.


Open .bashrc file with your favorite text editor. In my case I used nano. Find the line that looks like

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

In my case it was at line 53. Replace it with:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]> '

And you are done. Open a new terminal to see changes.


I installed classicmenu-indicator and like it quite a bit for this purpose.  I still use Unity and HUD almost exclusively but in testing this certainly fits the bill.
http://www.florian-diesch.de/software/classicmenu-indicator/

I went the PPA route

sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install classicmenu-indicator


There is a BIOS update available for similar laptop models that include, you can check their website to get it:
Fixed an issue where no sound was heard from the ThinkPad internal
        speakers while the computer was locked when SmartAudio was set to
        Multi-stream mode and headphones or external speakers were attached to
        the computer. This fix is to follow Windows' behavior.
        (Hint)
        To disable sound from the internal speakers in lock state, press the
        mute button on the keyboard.

Changelog: http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/g4uj14uc.txt


Simply install GRUB to your disk (not to any of the partitions) and that will overwrite the MBR with working GRUB files.

A detailed guide on this can be found here:
How can I repair grub? (How to get Ubuntu back after installing Windows?)

However, this is not necessary as you're going to install Fedora anyway. It will install GRUB during the installation anyway, so that should fix it as well.

If you really want to first remove Ubuntu and GRUB and restore the Windows bootloader though, you have to follow this: How to remove Ubuntu and put Windows back on?


Can't edit connections/connect/disconnet in Gnome NetworkManager applet

I posted an easier solution here with links to just download the ubuntu2.3 version of network-manager-gnome which is all you need.

https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1424119


yeah you can use aptoncd for it

APTonCD is a tool with a graphical interface which allows you to
create one or more CDs or DVDs (you choose the type of media) with all
of the packages you've downloaded via APT-GET or APTITUDE, creating a
removable repository that you can use on other computers. APTonCD will
also allow you to automatically create media with all of your .deb
packages located in one specifier repository, so that you can install
them into your computers without the need for an Internet connection.

Installation

sudo apt-get install aptoncd

This will work only if you didnt clear the apt cache


How to Specifiy Password And Username of a ovpn File In Command

This does not directly answer your question, but you can specify the username/password in a separate file by following this procedure:

http://help.vanishedvpn.com/support/solutions/articles/17000035030-how-to-save-password-for-automatic-login-openvpn-windows-linux-

Basically, create a file (let's call it auth.txt) containing your username and password on 2 separate lines. Edit your .ovpn file and change/add auth-user-pass to auth-user-pass auth.txt. Be sure to make sure the permissions on the password file are set appropriately!


Ubuntu 16.04 LTS wifi suddenly stopped working at all Alienware 13

Use the keyboard shortcut(FN + ?) to see if it will enable.  The dell-rbtn module might allow it to work


How to close application from terminal same way as exiting it properly

The typical way to close application gracefully is to use kill -TERM 1234 , where 1234 is the PID of the window. Problem, however, is that graphical applications are designed to listen for a specific signal from X server itself , not listening for the TERM signal.

That means you would need some kind of agent in between you and the X server to communicate that you want to send appropriate signal. You can of course write a C program, however there aready exists wmctrl program ( not-surprisingly written in C ) that does exactly that.

Usage of wmctrl is simple:

wmctrl -c :SELECT: # close window that will be selected with pointer
wmctrl -c :ACTIVE: # close currently active window
wmctrl -ic <numeric id> # close window with specific id in hex

It's not installed by default, so get it with sudo apt-get install wmctrl

There's many uses for wmctrl is far beyond just closing windows, so please see more of my answers and Jacob Vlijm's for examples of scripts where it's been used


What is the maximum RAM supported by the desktop and server editions?

Maximum RAM supported by Ubuntu:

Ubuntu 32-bit + PAE (Physical Address Extension) - 64GB RAM although the memory access above 4GB will be slightly slower. PAE is now the standard for 32-bit Ubuntu, so there is no need for enabling it.
Ubuntu 64-bit - A 64-bit computer will be able to address up to 16.8 million TB (16 exabytes) although constraints are in place that limit this to around 1TB.

Reference: Ubuntu Documentation: 32-bit and 64-bit Community Help Wiki


16.04LTS grub destroyed with clean Windows XP install

When you install Windows, Windows assumes it is the only operating system (OS) on the machine, or at least it does not account for Linux. So it replaces GRUB with its own boot loader. What you have to do is replace the Windows boot loader with GRUB. I've seen various instructions for replacing GRUB by mucking around with GRUB commands or some such, but to me the easiest way is to simply chroot into your install and run update-grub. chroot is great because it allows you to work on your actual install, instead of trying to redirect things here and there. It is really clean.

Here's how:

Boot from the live CD or live USB, in "Try Ubuntu" mode.
Determine the partition number of your main partition. GParted
(which should already be installed, by default, on the live session)
can help you here. I'm going to assume in this answer that it's
/dev/sda2, but make sure you use the correct partition number for
your system!
Mount your partition:

sudo mount /dev/sda2 /mnt   #Replace sda2 with your partition number

Bind mount some other necessary stuff:

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done

If Ubuntu is installed in EFI mode (see this answer if you're
unsure), use GParted to find your EFI partition. It will have a
label of EFI. Mount this partition, replacing sdXY with the actual
partition number for your system:

sudo mount /dev/sdXY /mnt/boot/efi

chroot into your Ubuntu install:

sudo chroot /mnt

At this point, you're in your install, not the live session, and
running as root. Update grub:

update-grub

If you get errors or if going up to step 7 didn't fix your problem, go to step 8. (Otherwise, it is optional.)

Depending on your situation, you might have to reinstall grub:

grub-install /dev/sda

update-grub # In order to find and add windows to grub menu.

If everything worked without errors, then you're all set:

exit
sudo reboot

At this point, you should be able to boot normally. If you cannot
boot normally, and didn't do step 8 because there were no error
messages, try again with step 8.

Sometimes giving GRUB2 the correct configuration for your partitions is not enough, and you must actually install it (or reinstall it) to the Master Boot Record, which step 8 does. Experience helping users in chat has shown that step 8 is sometimes necessary even when no error messages are shown.


Have you tried running 12.04 LTS (Long Term Support...until 2017) via Live CD/DVD? and play with it for a while to see any strange behaviour in your system (if any)...or if your really need 13.04 then tried burning a new iso...

Your problems seem quite interesting, I would recommend a NEW clean installation period.

Good luck,

Luis


Run this in Terminal (you will be asked for your password)

sudo chown -R bram:bram /home/bram/.gnupg/


Ubuntu sidebar on desktop stopped showing

Have you tried to open system settings, select "appearance", then open the "behaviour" tab, and "Restore Default Behaviours"?
If it doesn't work try this:
Press Ctrl + Alt + t
Run unity --reset

If still doesn't work try this:

sudo apt-get install dconf-tools
dconf reset -f /org/compiz/


How to securely lock Ubuntu, when fragile program is installing?

You can try pressing [Ctrl]+[Alt]+[L] instead of [Super]+[L]. This will lock your screen without sleeping or hibernate.


ZFS grub-probe error failed to get canonical path of /dev/DISK_NAME

There is an environment variable that fixes this.  The issue from my reading seems to be that Grub likes the idea of 'supporting' zfs but not the idea of fixing issues related to zfs in Grub.  Specifically its poor error handling in terms of finding things.

For instance, the grub tools that ship with Ubuntu 16.x will fail to find /boot on a ZFS volume without some user intervention, and then happily write some (but not all) needed files output from whatever utility you're using to the /boot folder that it just told you it couldn't find.

In any case...

http://list.zfsonlinux.org/pipermail/zfs-discuss/2016-June/025765.html

To check if you have commit (should see full paths):

ZPOOL_VDEV_NAME_PATH=1 zpool status

If so you can do:

ZPOOL_VDEV_NAME_PATH=1 grub-whatevs ....

You can pass the variable as input to the necessary grub utilities, or you can specify it as a shell variable in root's .bashrc or .profile or some such with...

export ZPOOL_VDEV_NAME_PATH=YES

The variable causes zpool to report full paths, rather than relative /dev  paths to the disks which may or may not work properly with zfs. Grub utilities check zpool status for zfs pools to find the disks that contain them.  Therefore changing the output of zpool status fixes grub.

I agree that users shouldn't have to deal with this, in reference to femulator's comment.  The real solution?  Same as every other open source project that languishes in bugs that never get fixed.  Fork it, fix it yourself, and stop using the source project/library/whatever. The FOSS way of "firing" someone, in other words ;).  Apparently Debian was aware of this particular bug seven years ago.

This was the only thing stopping me from successfully migrating a FreeBSD RaidZ boot pool to Ubuntu.  If anyone else attempts something similar, the process is relatively simple, as long as you understand ZFS well enough to ignore the parts of the documentation from Grub and zfsonlinux that are wrong (such as setting your root dataset to not automount, eh...?  How exactly is it going to boot then?).  It's somewhat ironic that Ubuntu points out in their docs that the boot loader is Linux's most insecure 'feature', which is true I suppose, but in this case it's also Ubuntu's glaring flaw.  It would have taken me an hour or two to migrate a BSD ZFS pool to another OS if I could have done it using the Sun/Solaris utilities that actually work.  The problem is I had to use Linux utilities (like Grub) that don't (or barely) work at some point, so there lies the fault for the other two days I spent fixing this. Ubuntu would be a whole lot better if it didn't need grub to boot...


can I boot from previously formatted drive no monitor

It should work fine to install Ubuntu on a laptop with an external monitor. To install Ubuntu you should:

Burn Ubuntu on a flashdrive or DVD
Insert flashdrive or DVD into laptop with external monitor connected.
Turn on computer and boot into flashdrive or DVD. Your bios will most likely boot into it automatically, but you may need to use the boot menu.
Choose "Try Ubuntu without installing" and then click on the Install Ubuntu icon on the desktop.
Configure your Ubuntu install with the GUI.

If you get stuck this may prove useful.


Desktop entry to convert audio/video files (naming question)

Option #1: append the .mp3
Exec=ffmpeg -i %f -codec:a libmp3lame -b:a 320k %f.mp3

This will result in e.g. converting
my_file.wav

to
my_file.wav.mp3

which may not be desirable.
Fun fact: there was used to be the %n key that gave the base name like this:
Exec=ffmpeg -i %f -codec:a libmp3lame -b:a 320k %n.mp3

The FreeDesktop spec has listed this as deprecated from version 1.0:

Deprecated Exec field codes: ...  %n (the base name of a file) ...

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html
This may have worked in older versions of Dolphin, but in the version I used (17.12.3), the %n key does the same as the %f key, so this will not work as desired.
Option #2: use bash parameter expansion
To get this instead:
my_file.mp3

we will need to remove the file extension.
This can be accomplished using
bash parameter expansion:
Exec=bash -c 'wavfile='\''%f'\''; mp3file="${wavfile%.wav}.mp3"; ffmpeg -i '\''%f'\'' -codec:a libmp3lame -b:a 320k "$mp3file"'

We have to invoke bash explicitly because the Exec key is passed through /bin/sh, which does not support this syntax.
Caveats
Both of these options will work with filenames that have spaces.
However, they will not work as expected in other cases, such as:

If the MP3 filename already exists, it will silently fail.

If the WAV filename contains a parameter expansion string
such as $0 or $USER it will silently fail.

If the WAV filename contains a command substitution string such as `date` or $(date) it will silently fail.

If the WAV filename is e.g. example.WAV instead of example.wav, it will result in example.WAV.mp3.

To make these problems more tractable and easier to debug, I would recommend writing a separate shell script and invoking it directly; there are many examples:

How to convert a m4a sound file to mp3?

How can I convert audio from ogg to mp3?

bulk/batch convert mp3 files to ogg via command line?

Converting mp4 to mp3

convert a folder of mp4's to mp3's with ffmpeg?

Further comments
As an aside, you may already know this, but the desktop file can be copied to
~/.local/share/kservices5/ServiceMenus/

instead of
/usr/share/kservices5/ServiceMenus/

which is useful if you want to install it for a single user or don't have root privileges.
Finally, I would recommend using
MimeType=audio/x-wav

instead of
MimeType=audio/*

since this only works on WAV files.
Related questions:

Double file extension with FFmpeg


Help installing WIFI USB adapter from Alfa, model AWUS036AC on Ubuntu 15.4

You need to upgrade to Ubuntu 15.10 and install a driver for this dongle by running in terminal

sudo apt-get install rtl8812au-dkms

You need to be connected to internet before you run this command.


This isn't something that QML supports, the typical answer is to write a C++ plugin to handle that kind of thing.

However, the SDK team is planning out various extensions to provide to QML app developers, and this may be something that they implement in a generic plugin that you can use.


Access 2nd internal HDD as guest Ubuntu 15.10

Got it.  /etc/apparmor.d/abstractions/lightdm was indeed the answer.  It needed two lines of code:

/mnt/DriveName/Music/ r,
/mnt/DriveName/Music/** rmlix

Save the file and reparse:

sudo apparmor_parser -r /etc/apparmor.d/lightdm-guest-session

To edit lightdm, I suppose

sudo nano /etc/apparmor.d/abstractions/lightdm

would've worked but I made a text editor to operate as root:
How to run programs as root user without using Terminal

Thanks for pointing me in the right direction.


It is probably possible to remove this feature from the kernel, and it's also possible to mount filesystems without suid, using the nosuid option. This strikes me as simpler, and would achieve the same thing.

But it breaks a lot of features. This is a list of commands in /usr/ and `/bin/ that is setuid on Ubuntu 18.04:

$ find /usr /bin -perm -4000
/usr/bin/pkexec
/usr/bin/gpasswd
/usr/bin/traceroute6.iputils
/usr/bin/newgrp
/usr/bin/arping
/usr/bin/chfn
/usr/bin/chsh
/usr/bin/passwd
/usr/bin/sudo
/usr/lib/xorg/Xorg.wrap
/usr/lib/eject/dmcrypt-get-device
/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
/usr/lib/s-nail/s-nail-privsep
/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/usr/lib/openssh/ssh-keysign
/usr/lib/policykit-1/polkit-agent-helper-1
/usr/sbin/pppd
/bin/ping
/bin/mount
/bin/umount
/bin/su
/bin/fusermount

Users will not be able to change their own passwords anymore. They will not be able to mount USB devices. They will not be able to elevate privileges. They will not be able to ping remove hosts. And probably more unintended consequenses.

In short, you're probably barking up the wrong three if your goal is to secure your system. A better approach is probably to look into AppArmomur or SELinux, which attempts to enforce user permissions in a more rigorous manner than the standard Linux kernel. It comes at a cost: increased complexity.

If you do this to a vanilla Ubuntu system, you will probably see all kinds of interesting behaviour.


I had similar issue when my drive was mounted as /media/xxxx.
I had to mount one of the folder on server and then shared that folder. It worked for me.
Example:
$ sudo mount -o bind /mnt/MyRebindPath /media/mysdadrive/Myfolder

in /etc/exports
 /mnt/MyRebindPath **(rw,sync,no_subtree_check)

and on client machine
$ sudo mount -t nfs SERVERIP:/mnt/MyRebindPath /mn


Ubuntu 18.04 - get Ubuntu dock to only display the windows from the current screen (monitor)

Launch Terminal and run

gsettings set org.gnome.shell.extensions.dash-to-dock isolate-monitors true


Cannot see my wifi [10ec:d723] when trying Ubuntu

A linux driver is available on smlinux/rtl8723de

Requirements :

A linux kernel >= 4.11

The appropriate linux-headers to your kernel version should be installed.

git clone https://github.com/smlinux/rtl8723de
cd rtl8723de
make
sudo make install
sudo modprobe -v 8723de

The dkms way (the instructions from the developer's driver):

git clone https://github.com/smlinux/rtl8723.git -b 4.11-up
sudo dkms add ./rtl8723de
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
sudo depmod -a
sudo reboot

Update:

To install a kernel version greater than 4.11 you can use the ukuu tool.

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install ukuu

To list the available kernel version:

sudo ukuu --list

To install a specific kernel version (e.g: 4.11.12):

sudo ukuu --install v4.11.12

See ukuu --help.

Ubuntu wiki : To install a mailine kernel with the appropriate linux-headers package.


Just replace own_window_type override with following lines:

own_window_type normal
own_window_argb_visual yes

and use following command to start conky automatically at startup:

bash -c "sleep 20; conky"


If possible you should updated to MAAS 2.1 which is available in 16.04 updates, as it supports CentOS by default.

MAAS can support CentOS and Windows, but Windows is not available by default, this is something that you need to buy a support contract for.

There is a technical difference between how MAAS (via a piece of software called curtin) installs Ubuntu. It directly unpacks a root tar file onto the disk, and is quite fast.

Can you clarify what it is you want to do exactly?


You can use any GNU/Linux distribution as a server but you will need to install couple of packages. The latter are not 3rd party in debian-based distributions, including Ubuntu, since they are part of official repositories. Indeed, it is better to have a light distribution. General rules recommend to not use graphical environment for a server. Ubuntu provides a much lighter version dedicate for servers
During the installation, you will be prompt to choose which kind of server you want to install, it is call Tasksel. You can also install the packages after the installation.
If you stick to Lubuntu, you will need to install the packages after the installation.
After the installation, in a terminal, you can either use Taskel, e.g. for a LAMP server

sudo tasksel install lamp-server

or APT

sudo apt install apache2 php mysql-server libapache2-mod-php php-mysql


Ubuntu 12.10 being unable to mount Windows drives

I have had the same problem in the past, where Ubuntu didn't mount a Windows drive. What I did was start Windows, open partition manager and slightly resize the Ubuntu partition, then went back to Ubuntu and open the drive! Tada! It works!

Let me know if this works out for you, because there is no real computering behind this.

Thanks, mjchopperboy


Save terminal output to variable in expect/tcl

Ok, Im thinking but I could get busy and forget, or side tracked.
so You can try processing the lines of output as lines that have fixed columns
(hopefully that is the case)
to match, and set output, you could do:

set A1 [lrange $expect_out(1,string) 2]
set A2 [lrange $expect_out(1,string) 3]

then do something like:

if {$A1>=N || $A2>=N} do something (like change the set a1,a2 values, or ....

Ill check back later.


Unfortunately, today there is only secure messaging using Telegram (installed by default on my BQ Aquaris Ubuntu Touch phone) and other similar applications, but there are no secure voice clients like WhatsApp, Viber, ... as qTox has been discontinued...
:-(


There is no problem about where you install Ubuntu, always keeping in mind don't deleting anything and doing a backup of your important files, just in case. Lets see my case:

$ sudo fdisk -l
Disk /dev/sda: 13.7 GB, 13701316608 bytes
255 heads, 63 sectors/track, 1665 cylinders, total 26760384 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: 0x8e48c4c5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1         2104515    26748224    12321855   83  Linux
/dev/sda2              63     2104514     1052226   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders, total 390721968 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: 0x1549f232

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   223629311   111814624+   7  HPFS/NTFS/exFAT
/dev/sdb2       225724416   336437306    55356445+   7  HPFS/NTFS/exFAT
/dev/sdb3       223629312   225724415     1047552   82  Linux swap / Solaris
/dev/sdb4       336439294   390721535    27141121    5  Extended
/dev/sdb5       336439296   338391039      975872   83  Linux
/dev/sdb6       338393088   339390463      498688   82  Linux swap / Solaris
/dev/sdb7       339392512   368687103    14647296   83  Linux
/dev/sdb8       368689152   390721535    11016192   83  Linux

Partition table entries are not in disk order

Please ignore any pettiness here.

As you can see, I have another disk installed, but mine is an IDE, and for some weird reason it got first that my SATA disk. This is because of how the Motherboard organizes the BUSes:

$ lspci | grep IDE
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03)

Here,we can see that my IDEs devices are first in the BUS in the motherboard, hence whenever I install a device using the IDE bus, it supersede my SATA device.

In conclusion

There is no problem if your drive is sda, sdb, sdz. In fact, Ubuntu don't use those identifiers since they can change with addition/removing of drives, but use a UUID, which in plain words is a Unique Identifier for the partition/drive.


Can't install gsfonts-x11 or flashplugin-installer on Ubuntu 12.10?

Try this; just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install ubuntu-restricted-extras

That will install flash, and other goodies.


use xinerama_head config as suggested in this issue discussion

xinerama_head = 2,

try with different number 1, 2

You might also want to use alignment so that conky widget appears not cropped by screen border

alignment = {top|middle|bottom}_right


How to switch back and forth between Conda and Pyenv without restarting terminal?

I seem to have found at least a work around. It seems that deactivating pyenv once it is activated is a hard thing to do so instead I define a init function in my .bashrc as suggested in this post
enable-pyenv () {
    # Load pyenv automatically by adding
    # the following to your profile:

    export PATH="$HOME/.pyenv/bin:$PATH"
    eval "$(pyenv init -)"
    eval "$(pyenv virtualenv-init -)"
}

Then I simply activate pyenv in every shell on demand. Note that the bash script I tried was not working (probably as it opens a separate shell session).


I still don't know/don't understand what caused all this but a system reboot got rid of it...


Open Nvidia X Server Settings and click on your adapter.


Dual Monitor Configuration changes to "Mirrored" automatically

I was having the very same problem, not just with 12.04 but with previous versions as well as mint, xubuntu and others.

I got so fed up I switched over to arch for the last 8 months or so, but when they switched over to systemd I had all sorts of problems and installed ubuntu again.

Problems started again. This time I noticed that if it was going to happen it would normally be soon after boot up. then I would reset it and it would be fine for the rest of the day.

Putting two and two together I had a look in cron.daily and ran each cron job separately. The apt job would crash X every time. There is also a apt-xapian-index job in cron.weekly that has the same effect.

So I just disabled the jobs (chmod -x) and the problems have stopped.
Inside both of these scripts is a check to see if you are on ac power. If I run this X crashes, so I think the culprit is the on_ac_power command.

To see if you have the same problem open a shell and type on_ac_power. If you get a crash then you have the same problem as me.

Hopefully this will fix the issue for some people


Installing Windows programs and Lexmark X4650 printer

Here is the driver for your Lexmark printer, download and follow instructions:

http://support.lexmark.com/index?productCode=LEXMARK_X4650&segment=DOWNLOAD&os=UBUNTU_9.10&oslocale=en_US&page=content&actp=DD_LIST&id=DR20523&locale=EN&userlocale=EN_UK


How to enable syntax highlighting in vi while using the global command?

If it's only a matter of viewing those lines with highlighting, you could do :g/clock_gettime/d

This will actually delete the lines in your editor. When you're done viewing, just do :q! so you won't actually delete the lines from the file.


After upgrading to 12.10, Empathy displays 'network error' when connecting to Google Talk

Empathy includes a debugger which can be used to display logging information to help diagnose connection issues.

Launch the debugger using: empathy-debugger, then start empathy and logging information will immediately be visible.

In this case, the logs showed the following:

    gabble/-WARNING: 22/11/12 22:44:08.389273: Invalid numeric port '80"
                                               specified in hostname
                                               talkx.l.google.com:80

This is an error caused by a misconfiguration of the fallback servers in /usr/share/accounts/services/google-im.service. A patch is available in the related launchpad bug.


Terminal commands for installing g++ 4.8?

For 13.10:
Just use sudo apt-get install g++-4.8.
For 13.04 and earlier:
Use the ubuntu-toolchain ppa:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8


Your keyboard layout was somehow changed, I think to the UK layout.

There should be an icon in the status/menu bar that looks like a keyboard, or is a rectangle with a country code inside. Click that icon and you'll be able to select the US layout.


Installed and then removed Pulseaudio and it's messed up the system

@Sneetsher gave me the clue, I found that

sudo apt-get install unity-control-center signon gnome-control-center

actually fixed the problem but just to be sure nothing else is broken I tried

 sudo apt-get install ubuntu-desktop

as well. I had to logout and back in before things worked.

It seems to have had something to do with permissions (although what exactly I'm not sure). Launching gnome-control-center from the command line wouldnt' work but when doing as su did. This has also fixed the problems I had with the controls not working with Pulseaudio.


When installing Ubuntu, it takes me to a harddrive screen to install help?

It will take you to the advanced partitioner if you select "Do Something Else".  You have to specify one of the partitions, tell it to use ext4, to format it, and that it is to be used as root.  This will remove any and all data on the partition.

If you select "install alongside" then it will make room on the hard drive to install Ubuntu to by resizing a partition automatically.  Some people like to have more control over how Ubuntu gets installed, hence the advanced partitioner.

I suggest you make backups of any important data before proceeding, as if you make a mistake at this point you could stand to lose a great deal of data.  Backups are recommend SOP in any case.

Have a look at the community installation guide.


how to have chown only effect folders, not files?

Don't use the -R flag with chmod, which makes it recursive (applicable to all folders and files contained in the arguments). Use:

find . -type d -exec chmod 775 {} +


Please check that the PPA name or format is correct

To install Ansible on Ubuntu 14.04 from the terminal without the having to run the sudo add-apt-repository -y ppa:ansible/ansible command, follow these steps.

Open the terminal and type:

sudo apt-get update
sudo apt-get install software-properties-common
sudo nano /etc/apt/sources.list

The last command will open your sources.list file, which specifies the software sources in Ubuntu, for editing in nano text editor. Add the following lines to the end of the sources.list file:

deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
deb-src http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main

Press the keyboard combination Ctrl+O and after that press Enter to save the changes in sources.list. Press the keyboard combination Ctrl+X to exit nano.
Pull down Ansible PPA's signing key and add it to your system.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7BB9C367

Run these commands to update the list of available software once again and install Ansible.

sudo apt-get update
sudo apt-get install ansible


Fix sound issue for Teamviewer 9 on Ubuntu 13.10 (valid also for Teamviewer 11 on Ubuntu 14.04 LTS)

Finally TeamViewer is running with sound (the suggested fix also works for Teamviewer 11 on Ubuntu 14.04 LTS by simply considering the different path /opt/teamviewer11/).

This is what you need to do:

Add wine repository and install wine1.6:

sudo apt-add-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.6

Download and install TeamViewer:

wget http://download.teamviewer.com/download/teamviewer_linux.deb
sudo gdebi teamviewer_linux.deb

Copy over wine binaries:

sudo cp /usr/bin/wine /usr/bin/wineserver /usr/bin/wine-preloader /opt/teamviewer9/tv_bin/wine/bin/
sudo cp /usr/lib/i386-linux-gnu/libwine.so.1.0 /opt/teamviewer9/tv_bin/wine/lib/
sudo cp -R /usr/lib/i386-linux-gnu/wine/* /opt/teamviewer9/tv_bin/wine/lib/wine/

Reconfigure your teamviewer profile and start winecfg to see if audio is working.

teamviewer --update-profile
teamviewer --winecfg


Could not initialize the package information up date manager

There's a syntax error in your sources.list, so checking for package updates is failing. You should either open your sources.list file and correct the error, or you can just reset your sources by following the instructions outlined here: https://askubuntu.com/a/192388/470880

Edit - If you'd like help correcting the issue in your existing sources.list file, run the following and copy and paste the contents of your sources file here:

sudo -H gedit /etc/apt/sources.list


Snort is a signature based intrusion detection system, it either drops or accepts the packets coming on a certain interface depending on the rules you have used. Follow the below steps to install it properly:

Section - I: Preparing your System

Before actually installing Snort, run these commands to install all the required pre-requisites:

sudo apt-get update
sudo apt-get dist-upgrade

Reboot your system after running the above commands
Open the command-line interface again and run these commands:

sudo apt-get install build-essential
sudo apt-get install -y libpcap-dev libpcre3-dev libdumbnet-dev
sudo apt-get install -y zlib1g-dev liblzma-dev openssl libssl-dev
sudo apt-get bison flex

Now your system is ready to install Snort

Section - II: Installing Daq

Snort requires "Daq" to run. You can create a separate folder for all your downloads  mkdir ~/snort.  It will keep all your downloads in one place. Download and Extract "Daq" using the commands:

cd ~/snort
wget https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz
tar -xvzf daq-2.0.6.tar.gz
cd daq-2.0.6
./configure
make
sudo make install

Above commands will download the "daq" source code and then install it properly.

Section - III: Installing Snort

You are now ready to download the Snort source code. Run the following commands:

cd ~/snort
wget https://www.snort.org/downloads/snort/snort-2.9.8.3.tar.gz
tar -xvzf snort-2.9.8.3.tar.gz
cd snort-2.9.8.3
./configure
make
sudo make install
sudo ldconfig
sudo ln -s /usr/local/bin/snort /usr/sbin/snort

Snort is now installed on your system, but you will still have to configure it properly to use it. Run the snort -V command to ensure Snort is properly installed on your system.

Section - IV: Creating some required Directories

"Snort" need some folder and files to place its logs, errors and rules files. If you are good with bash script, create it, or else run these commands at once or you can just execute them one by one:

sudo groupadd snort
sudo useradd snort -r -s /sbin/nologin -c SNORT_IDS -g snort

sudo mkdir /etc/snort
sudo mkdir /etc/snort/rules
sudo mkdir /etc/snort/rules/iplists
sudo mkdir /etc/snort/preproc_rules
sudo mkdir /usr/local/lib/snort_dynamicrules
sudo mkdir /etc/snort/so_rules

sudo touch /etc/snort/rules/iplists/black_list.rules
sudo touch /etc/snort/rules/iplists/white_list.rules
sudo touch /etc/snort/rules/local.rules
sudo touch /etc/snort/sid-msg.map

sudo mkdir /var/log/snort
sudo mkdir /var/log/snort/archived_logs

sudo chmod -R 5775 /etc/snort
sudo chmod -R 5775 /var/log/snort
sudo chmod -R 5775 /var/log/snort/archived_logs
sudo chmod -R 5775 /etc/snort/so_rules
sudo chmod -R 5775 /usr/local/lib/snort_dynamicrules

sudo chown -R snort:snort /etc/snort
sudo chown -R snort:snort /var/log/snort
sudo chown -R snort:snort /usr/local/lib/snort_dynamicrules

cd ~/snort/snort-2.9.8.3/etc/
sudo cp *.conf* /etc/snort
sudo cp *.map /etc/snort
sudo cp *.dtd /etc/snort
cd ~/snort/snort-2.9.8.3/src/dynamic-preprocessors/build/usr/local/lib/snort_dynamicpreprocessor/
sudo cp * /usr/local/lib/snort_dynamicpreprocessor/

CAUTION: Please do not ignore these commands.

Section - VI: Editing Snort configuration files

We also need to modify some configuration files to run Snort in network intrusion detection mode. For this, we would need to comment out all the rules in snort configuration file. Here's the command:

sudo sed -i "s/include \$RULE\_PATH/#include \$RULE\_PATH/" /etc/snort/snort.conf

Once you have commented out all the rules, it is time to test Run the Snort.

Section - VII: Testing Snort

To make sure that Snort is running in network intrusion detection mode, we need to insert a rule in our Rules file. So, open it and run the following rule:

alert ip any any -&gt; any any (msg:"ATTACK RESPONSES id check returned root"; content: "uid=0(root)"; classtype:bad-unknown;

sid:498; rev:3;)

Now run Snort using: sudo snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i ens3

Note: It will start listening on interface ens3, so, make sure you replace it with your interface name. After running Snort, open another SSH Connection to the server and run this command: ping -b 255.255.255.255 -p "7569643d3028726f6f74290a" -c3

You should now be able to see alerts on SSH where you have started Snort.


It it possible to turn computer off and keep it off

How about creating a simple script like this. I assume that the user you want to manage is called ADAM and that you want to prevent them logging on between 23:00 and 07:00 (note I only manage time to the nearest hour):

#!/bin/sh
user=ADAM
off_time=23
on_time=7

h=$(date +%H}
if [ $h -ge $on_time -a $h -lt $off_time ]; then
    # OK to use system
    passwd -u $USER
else
    # Outside permitted time
    # Prevent a login
    passwd -l $USER
    # and force them off the system
    pkill -KILL -u $USER
fi

(passwd -u allows a user to login, passwd -l disables their login)

I would then call this script every hour in /etc/crontab, and at startup in /etc/rc.local

(I haven't tested the above)


Use the copy through your local host (-3 switch):

scp -3 admin@IP(A):/path/to/file admin@IP(B):/path/of/destination

The previous commands do authentication and host key verification to the second host from the first remote and if is more fail-prone.


I am also having this problem. When I extract a certain archive, tracker-extract will almost immediately fill up all RAM and swap. Upon reboot, it will do it again after a few seconds. Only solution is to boot in maintenance mode and delete the extracted folder. I don't know what file is causing it, so it's hard to file a bug report.


How to solve this language downloading issue?

Upgrade your hole system, or at least firefox to a recent(23) version.

apt-get update
apt-get upgrade


How do I configure syslog server in 10.10 desktop?

maybe you mean rsyslog, configuration files for rsyslog are stored in

/etc/rsyslog.conf
/etc/rsyslog.conf.d/

configuration of logrotate is done in

/etc/logrotate.d/rsyslog

afterwards just restart rsyslog


How to Backup my files (Mails, Contacts, Account Information) in Thunderbird from Flatpak?

First, to find your existing profile, go back to "Help -> Troubleshooting Information" but instead of clicking "Open Directory" scroll down & find the "about:profiles" link. Click that and you will be shown the path to your existing profiles. Mine was located in ~/.var/app/org.mozilla.Thunderbird/cache/thunderbird.

Second, Thunderbird still tries to put files in ~/.thunderbird but doesn't have access to your home directory. I had to fix this in order to move my existing profile into my new flatpak Thunderbird profile.

To give Thunderbird permission to access the ~/.thunderbird directory, enter the following command into a terminal (replacing "[your user directory]" with the appropriate string)

sudo flatpak override org.mozilla.Thunderbird --filesystem=/home/[your user directory]/.thunderbird/

After that, Thunderbird will be able to resume using the ~/.thunderbird directory and the "Open Directory" button should work again.


Unable to locate package linux-headers-4.4.38-std-1

The kernel version 4.4.38-std-1 is not a supported Ubuntu version.

Obviously there is no corresponding headers package in Ubuntu repositories.

You need to get the headers from the place where you got the kernel from, or install a supported Ubuntu kernel.


you have 105GB partition for windows. and 360G for ubuntu, you can access them from the Computer icon and you can store your data in the home folder.


You can install it in CUPS as a raw device and then just lp -d Epson [textfile] (or possibly cat text | lp -d Epson) That's how I talk to my Eltron printers in EPL2.   In CUPS web interface it's under "Make: Raw", but in gnome-print it's "Choose Driver: Generic" then "Raw Queue".


After adding the station in Music > New Internet Radio Station, and trying to play it, Rhythmbox should prompt you to install the necessary packages. This is what happened  for me and then 6Music played.

If Rhythmbox doesn't prompt you to install the necessary packages, I got 6Music playing by installing the following additional packages on 12.04- the packages names might differ on 12.10. This is the list that Rhythmbox recommended, but not all are probably necessary:

sudo apt-get install libcdaudio1 libflite1 libgme0 libgstreamer-plugins-bad0.10-0 libmimic0 libofa0 libopenspc0 libslv2-9 libspandsp2 libvo-aacenc0 libvo-amrwbenc0 libwildmidi-config libwildmidi1 libzbar0 gstreamer0.10-plugins-bad

The gstreamer plugins are probably the most important, but installing the whole lot of recommended packages did get 6Music streaming.


"sudo: /etc/sudoers is owned by uid 1000, should be 0"

If you haven't set a root password explicitly, I suspect your installation will not be able to be fixed from within.  Boot from an Ubuntu disk, open the volume in Nautilus, then run the following in a Terminal:

$ sudo chown root:root /media/*/etc/sudoers

I cannot fathom how you would get into this situation in the first place, though.

BTW, your question could use some copy editing, markup, and an actual question.  Hence @VENKI's confusion.


Suppress output for a2ensite and a2dissite commands

So, I tried > dev/null before but it didn't work as expected. Instead, the trick was to use:

a2ensite/a2dissite mysite  > /dev/null 2>&1

Goal is simply to format the output as I wish, with echo -e "\tWhatever message" and keep the output clean and consistent.


mapred-site.xml.template is missing in Hadoop 2.9.0

The tutorial left out a step (though not in a screenshot). We start in the middle of the tutorial, where it says:

Get into “hadoop-2.7.3” folder and create a directory called “tmp”. The following commands do this:
cd <hadoop-2.7.3 path>
mkdir tmp

In my case:
cd /home/fazlur/hadoop-2.7.3
mkdir tmp

In the screenshot below that, you can see those commands entered at the top:

It continues:

Edit “core-site.xml” file using the following command
gedit core-site.xml

Notice, though, that in the screenshot, they run cd etc/hadoop in between mkdir tmp and gedit core-site.xml. They left that out of the instructions.
You should go back to that point in the tutorial, run cd etc/hadoop and continue from where it says Edit "core-site.xml".


The ! character in the vi command mode causes vi to use the external application sort to sort the lines.

Your first command :1,$sort causes vi to use it's internal sort mechanism. In your second command :1,$!sort all lines are taken and given as standard input to the application sort.

Just try this vi command: :!ls -la. You will see the output of ls and after pressing Enter you get back to vi. That mechanism is usually (for example) to compile the code written in vi without closing and reopening the file.

So you see, using ! in this case causes complete different mechanisms. The ubuntu sort utility may sort different than the vi internal one.


Remmina VNC doesn't connect to remote machine

Check out this post and double check the configuration of the remote system allows vnc connections:

setup Remmina for remote desktop connection

  In order to be able to use Remmina, you need first to activate certain
  options of the "Desktop Sharing" screen (Bash -> Desktop Sharing) on
  both computers:

  On the Desktop Sharing Preferences:

  Activate the option "Allow other users to view your desktop"
  Activate
  the option "Allow other users to control your desktop"

Only activate the following if you are not trying to configure unattended access:

  For security's sake, also:

  Activate the option "You must confirm each access to this machine"
  Activate the option "Require the user to enter this password" and
  provide a password

  Once the configuration is done, you can simply open
  Remmina, create a new connection and specify the connection to the
  other computer using VNC (virtual network computing) protocol and
  using the password you used in the "Desktop Sharing" screen.

  Hint: You can ignore the field "user".

Try it first without SSH and, if it works, then start playing with tunneling.


Dual booting Ubuntu with Windows - increasing partition space

This will work for most cases:

Open the program Disks
Find the hard drive and partition that correspond to your D: drive
Press the play button
Disks will tell you where it has been mounted under "Contents". Click the link to go there.

More advanced configuration is possible. Just ask.


Perl to the rescue

Save the following script as filter.pl and make it executable (chmod +x):

#!/usr/bin/env perl

use strict;
use warnings;

while( <> ) {
    if ( /^(?=.*eventtime=(\S+))(?=.*srcip=(\S+))(?=.*dstip=(\S+)).*$/ ) {
        print "$1|$2|$3\n";
    }
}

Then run

pduck@ubuntu:~> time ./filter.pl < input.txt > output.txt

real    0m44,984s
user    0m43,965s
sys     0m0,973s

The regex uses a lookaround pattern, in this case a positive lookahead,
to match the three values eventtime, srcip, and dstip in any order.

I duplicated your two input lines until I got a file with 4 GB and
approximately 9 million lines. I ran the code on an SSD.


Extended Security Maintenance (ESM) Audit

ubuntu-advantage status gives the current status of a system wrt to ESM and other Ubuntu Advantage offerings.


Can I safely remove pre-installed software in Ubuntu 13.10?

Yes, you can "safely" uninstall any of the default programs that are shipped with Ubuntu - and it is easily done using the Ubuntu Software Center as you already suggested.

However, in my opinion it is a good idea to have a default application for the most basic tasks required on your computer, just in case your Google services cannot do anything for you online. If you go to System Settings > Details > Default Applications you can see the programs Ubuntu will open to do the most simple tasks on your computer. In case you don't like the programs shipped with Ubuntu you can do any replacement you like here.


Unable to use "embed PDF & EPS (experimental)" option in Scribus 1.4.1

After receiving some helpful advice from the Scribus mail list, I found the solution to my problem. The version of Scribus in the official Ubuntu repositories does not have the Embed PDF/EPS option enabled. Instead, the Scribus repositories from http://wiki.scribus.net/canvas/Debian#Ubuntu_Oneiric_Ocelot_.28oneiric_or_11.10.29 need to be enabled. After downloading the updated Scribus package with the Oneiric repositories activated, PDF/EPS embedding works.


Skype causes audio/video playback to speed up?

Well I believe you may have another program that is messing up the sound in Skype. Skype itself is very buggy for Linux. It is not very well built, in my opinion, from past problems I've had with Skype. You could try to reinstall Skype if you can. I cannot give a very technical answer, but I thought even just trying to help might make  you feel a little better. I hope I helped.


It's still not the "muggle's tweak" that I'm really looking for, but at least this works:
Apparently there are two directories for udev (I have no idea why):

/etc/udev/rules.d
/lib/udev/rules.d

I'd been messing with the /lib one and getting nowhere.  I found the /etc one here, and it does work:

Put SUBSYSTEM=="usb", ATTRS{idVendor}=="VID", ATTRS{idProduct}=="PID", MODE="0666"

VID is the USB-IF-assigned Vendor ID of the device in question *

PID is the Vendor-assigned Product ID of the device in question *

0666 gives universal read/write access to whatever matches this line
* $ lsusb to see all attached USB devices and their ID's.

In /etc/udev/rules.d/xx-my-rule.rules (may need root/sudo permissions)

xx is any number > 50 (the defaults are in 50, and higher numbers take priority)
my-rule is whatever you want to call it
must end in .rules

Then udevadm control --reload-rules (may also need root/sudo permissions), and it should "just work" for that specific VID/PID pair.

Another option, to tighten the permissions a little bit more, is to use TAG+="uaccess" in place of MODE="0666".  This limits access to the currently-logged-in (physical) user instead of all users.  Thanks @Lekensteyn!


How to make a single program span two monitors when in TwinView

I have the same setup.  I have found three ways, none of which are ideal.

Disable compiz and use metacity instead.
You can add the following lines to the "Screen" section of your xorg.conf file to treat both monitors as one big display:
Option         "Xinerama" "1"
Option         "NoTwinViewXineramaInfo" "True"

After you log out and log back in, your monitors will act as one screen.  Note that you will get some unexpected behavior such as your gnome-panels spanning both monitors and you will also lose the ability to maximize on just one monitor.
This one seems like a bug.  Drag the window all the way to the left (or right depending on your setup) with the majority of the window off the screen.  Grab the visible edge of the window and stretch it out across both monitors.  Leave as much empty space as you dragged off screen.  Now drag it back so it's fully on both screens.  It seems like at least half the window must be off the screen for this trick to work.


Can't write files to uSD card: looks like they're created but when I remount the card they're gone

After further investigation, the uSD card in question was faulty and failed to write under Windows as well. Other exFAT SD Cards were able to be written under Ubuntu.


how to make docky available only in one workspaces?

A background script to make docky run on specific workspaces  (or not)

Based on exactly the same mechanism as this answer, below a background script that starts/stops the Docky launcher, depending on the current workspace.

The mechanism itself is pretty much tested out. Having said that, in the linked question it is tested with setting different Unity Launchers and setting different wallpapers per workspace, not starting/stopping Docky. That should however make no difference whatsoever, and in the hours I tested it, it ran without a single error.

How to use

The script needs wmctrl:

sudo apt-get install wmctrl

Copy the script below into an empty file, save it as docky_perworkspace.py
Test-run the script:

Start Docky
Start the script with the command:

python3 /path/to/docky_perworkspace.py

Now Docky runs on all workspaces. Navigate to the workspaces you don't want Docky to appear and run (while on the workspace):

pkill docky

N.B. Use pkill docky, do not close docky from its own menu!
That's pretty much it. If you want to change the setting simply either start or kill docky on the workspace you'd like it to run or not; the script will remember your preference.
If all works fine, add it to your startup applications: Dash > Startup Applications > Add the command:

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

The script

#!/usr/bin/env python3
import subprocess
import os
import time

datadir = os.environ["HOME"]+"/.config/docky_run"
if not os.path.exists(datadir):
    os.makedirs(datadir)
workspace_data = datadir+"/docky_set_"

def get_runs():
    try:
        subprocess.check_output(["pgrep", "docky"]).decode("utf-8")
        return True
    except:
        return False

def get_res():
    # get resolution
    xr = subprocess.check_output(["xrandr"]).decode("utf-8").split()
    pos = xr.index("current")
    return [int(xr[pos+1]), int(xr[pos+3].replace(",", "") )]

def current():
    # get the current viewport
    res = get_res()
    vp_data = subprocess.check_output(
        ["wmctrl", "-d"]
        ).decode("utf-8").split()
    dt = [int(n) for n in vp_data[3].split("x")]
    cols = int(dt[0]/res[0])
    curr_vpdata = [int(n) for n in vp_data[5].split(",")]
    curr_col = int(curr_vpdata[0]/res[0])+1
    curr_row = int(curr_vpdata[1]/res[1])
    return str(curr_col+curr_row*cols)

curr_ws1 = current()
runs1 = get_runs()

while True:
    time.sleep(1)
    runs2 = get_runs()
    curr_ws2 = current()
    datafile = workspace_data+curr_ws2
    if curr_ws2 == curr_ws1:
        if runs2 != runs1:
            open(datafile, "wt").write(str(runs2))
    else:
        if not os.path.exists(datafile):
            open(datafile, "wt").write(str(runs2))
        else:
            curr_set = eval(open(datafile).read())
            if all([curr_set == True, runs2 == False]):
                subprocess.Popen(["docky"])
            elif all([curr_set == False, runs2 == True]):
                subprocess.Popen(["pkill", "docky"])
    curr_ws1 = curr_ws2
    runs1 = get_runs()

Explanation

The script keeps track of the current workspace (no matter how many workspaces you have). Per workspace, a file is created in /.config/docky_run, in which is "written" if docky should be present or not on the referring workspace (True or False)

If you stay on the same workspace, but docky is either started or killed (its pid appears or ends), the script "understands" it is you who made the change on the referring workspace, and the file is updated.

If the workspace changes however, the script sees if the file exists, reads it and either starts or kills docky (or does nothing if not necessary), according to the content of the file and the current situation. If the file does not exist yet (because you are using the workspace for the first time since you started the script for the first time), the file is created and set to the current (last) situation.

Because settings per workspace are remembered in files, they will be remembered even after a restart.


Because you are running Hadoop 2.7.1(which is based on MRv2 and NOT MRv1) that's why you will only see "Resourcemanager Namenode Datanode SecondaryNameNode NodeManager" and NOT "job tracker and tasktracker". "job tracker and tasktracker" are MRv1's concept and NOT MRv2.


How do I turn on the executable bit in programs from mounted drives?

Have a bug report... (always a good place to start investigating workarounds)


"Permission denied" when starting binary despite "rwx" priviledge

Since you are trying to run xstata as a regular user (in this case regular means not user root and group membership does not contain root). You do not have right to read the file.

Let me quote (source):

  "Execute" means that this file can be executed as a program. So if
  the file were a shell script or valid compiled executable (ELF format,
  etc) named program_name, you could run ./program_name or, if this
  directory were in your path, just program_name. Without the execute
  bit, you'd need to type sh program_name for a shell script, perl
  program_name for a perl script, etc.

So you either need to be part of the root group or add read permission to others. Eg.:

sudo chmod o+r xstata


Problem during install Ubuntu 14.04, 14.04.1 and 14.04.2 on HP DL360p Gen8

The problem is resolved. Even if there is this message, the networt card are available after the installation.

Sorry to have bothered you for nothing

Regards,
Jerome


Basic questions on installing Ubuntu on new laptop running Windows 10

You can get a bootable USB drive by using software like Pendrivelinux

It would basically act like a normal bootable CD, although I don't have much knowledge about bootable USB's since I've never used them.

A partition is essentially a part of your harddrive. For example, you have a 500gb harddrive,and you want to dualboot Windows and another OS, you can create 2 or more partitions both with 250gb, so then Windows would have 250gb (in terms of installing and saving files) and the other OS would also have 250gb. For more info check this link.

3.Sorry, but I don't have much knowledge with backing files up either.

4.I think you can if you make a different partition for that.


Desktop won't boot with external hard drive plugged in

One of the partitions on your external drive has the "Boot" flag set. Your BIOS finds this partition first, and tries to boot from it. Since there's no bootable code on that partition, it fails.
Read man parted, umount the drive, and use  parted's set subcommand to clear the "boot" flag.
Be Very Sure you're "fixing" the right disk. If you clear the "boot" flag on the wrong disk's partition, your system won't boot.
I suggest you read https://en.wikipedia.org/wiki/Power-on_self-test , https://en.wikipedia.org/wiki/BIOS , https://en.wikipedia.org/wiki/Master_boot_record , https://en.wikipedia.org/wiki/GUID_Partition_Table , https://en.wikipedia.org/wiki/UEFI . One will have the Answer. Read the others to understand that one.


Ok my problem is resolved after shutting my computer down and restarting it! Perhaps it needed a restart after changing versions in Flash-Aid and also the www.youtube.com/html5. Don't know exactly how it started working...


Low information density (icons too sparse) in Nautilus on Ubuntu 13.04

You need to Open Nautilus and Click on the menu and select Preferences


Super high resolution but tiny fonts combined with "normal" resolution screen

Since at least Kubuntu 16.04 this is pretty easy to solve: Go to
System Settings -> Display, choose your Displays one by one and click on the Scale Display bar at the very bottom.

You can scale your Content (including the fonts) up to 3 times the original size in that menu. Kubuntu remembers the settings per display.

Note that you might need to log out and log in again to see the changes.


The link below might help you get it back up and working again. Good luck.

http://thingsthatmightinterestnerds.com/surfacepro_dumpfactoryimage/


If you want to set Activity manager on Kubuntu there is many options like Screen Edges, Widgets and shortcuts.

1) Screen Edges : Go on System Setting -> Desktop Behavior -> Screen Edges

Click on one of Screen edge and set to Activity Manager -> Apply

2) Widgets : Right click on Desktop -> Add Widgets -> then select Activity Pager  then Activity Pager place to your Desktop.

3) Shortcuts : To Enable Shortcuts Go on System Settings -> Desktop Behavior -> Activities(Main setting of Activities)  and click on Button near to Remove then Add your Shortcuts.

From There you can also set your Activity Name.

And in activity setting there is a bar(Activities | Switching | Privacy).

4) From Privacy you can limit your App.


Where can I find 32-bit version of Ubuntu?

Update: Ubuntu and derivatives stopped releasing 32bit images.
As http://ubuntu.com now offers only 64bit releases, 32bit images are harder to find.
Here they are:
18.04

Xubuntu 18.04.5 direct download

Mate 18.04.5 - direct download


Dual-booting Ubuntu-GNOME 13.04 and BackTrack 5 R3

I would recommend, go directly install backtrack, remember, to have a manual partition, as you might have already have /swap space, or else you will end with double /swap, nothing is wrong with that, but, just waste of disk space. Set-up would be the same.


Laptop keyboard and touchpad disabled on startup

I had the same problem with my Toshiba L775D laptop. The reason is a non-standard (or let's say exotic) connection of the keyboard and touchpad to the internal PS/2 interface of the laptop. Adding atkbd.reset and i8042.nomux at the end your grub command line (after nosplash quiet) will help you get rid of the problem. This solution was also posted in the MINT forums. See the last post in http://forums.linuxmint.com/viewtopic.php?t=152185


Fresh Ubuntu 12.04 install Fatal server error: no screens found

Open a terminal and issue the command:

sudo lspci|grep VGA

write down the first entries address xx:xx.x on the left (where xx:xx.x is the numbers displayed)

then issue the commands

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak (to back up your current config)

sudo nvidia-xconfig

sudo gedit /det/X11/xorg.conf (to edit configuration)

Move down to the Device section.

Just before the end section add BusID "PCI:XX:XX.X" Where XX:XX.X is your cards address you wrote down earlier.

Save the file, exit and reboot

Source: Ryan solution from comments with minor mods for backup and clarity


Is it possible to customize the GParted toolbar so that the icons include text?

If you install dconf-editor (sudo apt-get install dconf-editor) and run it you can change this default.

Simply navigate to org/gnome/desktop/interface and change the value that says toolbar-style to "both" (by default it is both-horiz).

Do note, however, that this is a change that affects all applications, not just GParted.


Cannot install device driver for HighPoint rocket 640l, "ERROR: could not insert 'rr640l': No such device"

Seems like I made a mistake and attempted to install drivers for the rocketRAID 640l, not the rocket 640l. The rocket 640l should have native support in Linux, and cannot be reflashed  with another bios.


required hardware upgrade for old system

I've done this task before starting with a Pentium 4 computer that had 512MB RAM and no graphics card. I don't believe that a Pentium 4 computer can run Ubuntu 14.04 satisfactorily, so I downloaded Xubuntu 14.04 32-bit. I also added another 512MB of RAM. I could have used two 1GB RAM sticks instead, but I added only one 512MB RAM stick because it was what I had available at the time.

I installed Xubuntu and a few more apps, and when I tested the installation the performance was OK, including Firefox, so this is what I am recommending.

Compare prices before you buy RAM. You may find that adding to the RAM you already have is much cheaper than buying a new set of RAM sticks. Take an old RAM stick with you when you go to buy the RAM, so you can be sure that you are getting the type of RAM that is compatible with your motherboard.


Ubuntu 12.04 wired connection doesn't work

To get networkmanager to manage this interface, try this in a terminal

sudo nano /etc/NetworkManager/NetworkManager.conf

Change the line 'managed=false' to 'managed=true'

Save, then in the same terminal we need to restart the network manager.

sudo service network-manager restart

That should clear it up for you.


How to figure out whether a package is already installed?

You can list all installed packages via dpkg like this

dpkg -l

You can then pipe that through grep to only find the things you are interesting in:

dpkg -l | grep libgmp10

Or you can be less specific in your grep

dpkg -l | grep libgmp

Grep will find any line in the output with that string.

Installing is easy also

sudo apt-get install <package>

Not sure of the package name? Tab complete works in the apt-get install command also, or you can use:

sudo apt-cache search <string>


Terminal: Scroll past end of line so that last line appears in the middle of the screen

Instead of scrolling, you can use the Ctrl+L shortcut to clear your terminal screen and have the prompt on the top of the terminal. Using this shortcut, you will be able to scroll back to the previous terminal output.
Alternatively, you can make use of the clear command and run:
clear -x

to clear your terminal screen the same way the Ctrl+L shortcut does. Note the use of the -x flag. If you don't use that, the terminal's scrollback buffer will also be cleared, so you won't be able to scroll back to the previous output.