Is there a terminal command to verify if Wifi is enabled?

Edit:
nmcli changed a lot (I am using 16.04) from its previous version. See the original answer below.
To see the connectivity status
$ nmcli general status
STATE      CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN
connected  full          enabled  enabled  enabled  enabled

To see only wifi status
$ nmcli radio  wifi
enabled

To see the active connection
$ nmcli connection show --active
NAME         UUID                                  TYPE        DEVICE
VolCSe  5u6h4521-7k1p-20r3-3g4x-fg19his0j3s8  802-11-wireless  wlp2s0

There are some nice addlitions like, to get the available wifi network informations,
$ nmcli device wifi
*  SSID                        MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
*  VolCSe                      Infra  1     54 Mbit/s  73      ▂▄▆_  WPA2
   Sach                        Infra  4     54 Mbit/s  55      ▂▄__  WPA1 WPA2
   iKCP                        Infra  5     54 Mbit/s  24      ▂___  WPA2
   TP-LINK_POCKET_3            Infra  1     54 Mbit/s  12      ▂___  WPA1 WPA2

Note: I have used fictitious ssid and uuid info above.

Old answer:
You can use nmcli for this purpose. Open a terminal type in terminal,
nmcli nm

You will have output like,
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN
running         connected       disabled        disabled   enabled         disabled

See the third and fourth column which contains information of your interest.
If you want to be more specific only to wifi, then try in terminal,
nmcli nm wifi

it will show the wifi status only,
WIFI
disabled


17.04 Dual Monitor Issue - Programs open on one screen but can only be interacted with on the other

If the numbers in CompizConfig Setting Manager don't represent your monitor dimensions, offsets, and rotations, and the numbers don't match the numbers in your ~/.config/monitors.xml file, Compiz might draw and stretch windows into other screens, yet respond to mouse clicks in the first.

You might have too physically configure Compiz and the monitors.xml file yourself, so they each have the same sizes and offsets.  Most of the time, Compiz will not autodetect this correctly.

First step is to bring your setup down to one monitor.  Then install and open CompizConfig Settings Manager.  Go to General Options->Display Settings.  There you un-check Detect Outputs.  Then you type in all your monitor resolutions, and offsets, one monitor at a time, starting with the upper-left monitor.

I am going to give you my extreme 4-monitor example, so hopefully you get a better example of what needs to happen, and can figure out how to apply it to a two, or three monitor situation.

My 4 monitors looks like this:

    1080         1920         1080
   ________ _______________ _________
  |        | 1             |         |
1 |        | 0             |         | 1
9 |        | 8   2nd       |         | 9
2 |  1st   | 0             |   4th   | 2
0 |        |_______________|         | 0
  |        | 1             |         |
  |        | 0             |         |
  |________| 8   3rd       |_________|
           | 0             |
           |_______________|

Which means I set them up like this in CompizConfig Settings Manager -> General Options -> Displays Settings.

1080x1920+0+0
1920x1080+1080+0
1920x1080+1080+1080
1080x1920+3000+0

Where:

1080x1920+0+0 = (1080 wide, 1920 tall, w/offset from upper-left of x=0 to the right, y=0 down)

1920x1080+1080+0 = (1920 wide, 1080 tall, w/offset from upper-left of x=1080 to the right, y=0 down)

1920x1080+1080+1080 = (1920 wide, 1080 tall, w/offset from upper-left of x=1080 to the right, y=1080 down)

1080x1920+3000+0 = (1080 wide, 1920 tall, w/offset from upper-left of x=3000 to the right, y=0 down)

Then you need to go into System Settings->Display and drag the monitor screens around and rotate them to match what you set up in CCSM.  The Display GUI is very buggy.  You have to make sure the screen you are dragging around is touching another or it won't move.  So don't leave a screen hanging off by itself.  Once you have them rotated and arrange to match the CCSM settings, click Apply.  This will write the ~/.config/monitors.xml file with your configuration.  This should put you in a working state, which won't be overwritten next time you log in.  Back up the monitors.xml file!

If you unplug or turn off a monitor, things will probably go haywire, so make sure you have a backup of the working monitors.xml file, and know how to go to a tty terminal to restore the file. (Hit CTRL-ALT plus any one of the F1 through F6 keys)


You have to restore your windows and gtk theme, install the gnome-tweak-tool and choose for all theme Adwaita. You can also enable the gnome-shell-extensions-user-themes in order to change your themes more easily. You can find a ppa with the extentions and instructions here.


unable to run ubuntu sdk cannot access lxd server

You need to add your user to the lxd group. The simplest way to this is the following:

sudo usermod -a -G lxd `whoami`

You will then need to log out and log back in again in order for the groups to be updated.


This happens. If you formatted your drive in which the data was there, then you will have to try and recover it using a recovery software. I recommend testdisk (sudo apt-get install testdisk). It is a command line utility but very powerful. You will have to run it on the partition/drive you had your data on and see if it can recover your data.

If yo haven't formatted your drive, well, that case is trivial. You do "sudo fdisk -l", try mounting the partitions that it shows and check whether the data is there or not.


How to install PyPy3 (2.1, beta) on Ubuntu?

My thanks to chronitis. There were some dependency errors. Correct course of actions:

sudo apt-get install \
gcc make python-dev libffi-dev libsqlite3-dev pkg-config \
libz-dev libbz2-dev libncurses-dev libexpat1-dev \
libssl-dev libgc-dev python-sphinx python-greenlet

Then:

cd PATH/pypy3-2.1-beta1-src/pypy/goal

Then you want to build pypy:

pypy ../../rpython/bin/rpython -Ojit targetpypystandalone

That will take 40 minutes. After compiling is done, you will get a pypy or pypy-c (I can't recall) file in PATH/pypy3-2.1-beta1-src/pypy/goal. Rename this to pypy3 for your own convenience. Now, this is where I got stuck, as I have no idea how to neatly package this up and install through a .deb file. Instead, I did this:

cd /usr/local/bin
sudo ln -s "PATH/pypy3-2.1-beta1-src/pypy/goal/pypy3" .

This creates a symbolic link (shortcut) to the location of the pypy3 file. Now, when you type pypy3 in the terminal, it'll launch. It's not a neat solution, but seeing as PyPy3 is in beta anyway, that'll have to do. If somebody wants to point out how to package the thing up, that'd be magnificent, though.


You don't have Java installed. To install oracle java do the following.

Install manually:

Download the right java-version for your os's archtecture from here:

java for linux

Make sure you take the .tar.gz-archive and unpack it to /usr/bin/java. You can do the same with the jre provided in the link above.

Then set the path-variable by opening the shell and typing this chant:

export JAVA_HOME=/usr/bin/java/substitute_this_with_your_java_version/ export PATH=$JAVA_HOME/bin:$PATH

Install via ppa:

Add this ppa to your sources.list:

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

Now follow the installer. It will set path automagically.

Both methods can be checked:

java -version

should throw something similar to this depending on your java version

java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

javac -version

should throw something similar to this also depending on the version you have installed.

javac 1.8.0_31

-Cheers-

Techmod


Open nautilus (I suppose you're using nautilus as the file manager since it's default in Ubuntu) as root. To do it, open a terminal and run

sudo nautilus /lib/plymouth/themes/ubuntu-logo

You will need your admin password. Nautilus will open and you will have root privileges. Be very, very careful since you can damage your system with such powers. Modify the needed files, save and exit nautilus. Do not change their permissions, it may be harmful.


Why does Eclipse's "Check for updates" not work

If you install Eclipse from the Ubuntu repository, the Eclipse install will be owned by root.  The proper way to update base packages is to use the Ubuntu upgrade tools, not the Eclipse update tools.  I believe it is possible to install addons in your Workspace but I would not recommend mixing package managers.

If you want to use the Eclipse update process you need to download the Eclipse from the Eclipse download site.   When I do that, I install under /opt after setting the privileges to my user id to write there.  Unpackage as the user you will be using to run Eclipse.

EDIT: I often the permissions on /opt to 1777 to allow anyone to create packages there.  Alternatively I use chgrp users /opt and set the permissions to 1775.  This allows members of the uses group to add new packages to /opt.


Parted Magic is a good suggestion, but if you already have an Ubuntu live CD or USB stick you can boot from that and run GParted from there. Basically, you need to boot from something which is not the hard drive you're going to resize partitions on.

As it's already been pointed out - gparted is a graphical utility, so what you're referring to as "GParted" is definitely not it. Which brings me to another important point: make sure you have a backup of everything, because your chances of screwing everything up are relatively high :)


You are running the docker command with the -it options. This requires a terminal. A cron job doesn't have a terminal. Therefore your docker command cannot run from cron.


Ubuntu 12.04 and Realtek Wireless Card Incompatible

I had similar problem with RTL8187SE wireless NIC.  The problem was because of the default driver r8187se is buggy.  For me ndiswrapper solved the problem, but I had to blacklist the original driver (yours will be different from r8187se).  After I blacklisted the original driver, and enabled ndiswrapper at the startup, everything is fine now.  You can see my post here.


Desktop and Nautilus fonts suddenly HUGE

You can use gnome-tweak-tool to set the font sizes.

sudo apt-get install gnome-tweak-tool

I don't know why they would change on there own however.


installing bumblebee on 13.10 for my 635M nvidia / 4000M intel is breaking X and putting me in low graphics hell. Please help

I have now nearly the same issue.

Please check your Xorg.0.log

if you see something like

[    10.109] (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
[    10.109] (EE) NVIDIA(0):     system's kernel log for additional error messages and
[    10.109] (EE) NVIDIA(0):     consult the NVIDIA README for details.

Then remooving Bumblebee maybe the way to solve the problem. I will try it myself this evening.

Taken from here: AskUbuntu


One of the people from TurboTax said in response to a Linux user:

[...]you can try the link below to bypass TurboTax's system requirement checks. We can't make any guarantees that you won't run into problems though.
https://turbotax.intuit.com/login/start.jsp


How do I save command output to the local system when SSHed to a remote system?

Run the question over SSH but capture the answer outside SSH.

On nr1:

ssh user@nr2 'who -b' | awk '{print $(NF-1)" "$NF}' >> existing_file_in_nr1.txt


How to repair missing GPG public keys for packages

The webupd8team has created a very good program for fixing PPAs and just general PPA management.

To install the tool run:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

Then run it with:

sudo y-ppa-manager

Go to the the Advanced section:

And then run Try to import all missing GPG keys:

This may take a while, but it will alert you when done.

More information about webupd8 can be found here.


You still have some cron jobs doing this command. Have a look at crontab -l -u root and files under /var/spool/cron/.

If you believe your machine was compromised the only sane solution would be to reinstall everything from scratch and from known good and non infected backups.


Hope they put again in repos, meanwhile u can download from:

http://packages.ubuntu.com/lucid/i386/libqt3-mt/download

cheers

Award


'enable wireless' not showing in ubuntu 12.10

1. First thing to check is you didn't disable wireless with your keyboard (more common than you might think). If you have a networking key on your keyboard see if that fixes it.

2. If not, do you see the network monitor applet in the top bar, where the battery icon etc. are? There should be a dropdown menu with an "enable wireless" setting or something similar. Eg in Gnome Shell:

3. In the System Settings, you should see "Network" in the "Hardware" section. From there you should be able to select Wireless settings and turn on networking. Again, this is how mine looks in Gnome Shell (yours might be slightly different if you're using Unity):

4. You can also use the terminal, if you're comfortable with that. First you need the name of your connection, probably 'wlan0' but sometimes 'eth1'. Run ifconfig and you should see a number of entries listed. Then to turn the wireless on, run sudo ifconfig wlan0 up, or sudo ifconfig eth1 up.

5. If none of those work, it may be that you don't have the correct drivers installed. Afaik, HP notebooks are very well supported, so I doubt it is a driver issue. Nevertheless, you can check your wireless card is activated and such using the command sudo lshw -C network as described here. Look for the one with description: Wireless interface and make see if the line configuration: has a driver listed. If you need a driver, check "Additional Drivers" under "Hardware" in System Settings.


Right Click on Cairo Dock, click on the Add-ons tab then scroll down until you see the Switcher icon. Tick to install.


Resolution of certain programs too small on Ubuntu 14.04 LTS

Usually, reducing the display resolution makes all items appear larger.
There is also the "Scale for menu and title bars" index that can be adjusted.
This option is located in "System settings/Displays" under the resolution bar.
Hope that's useful, it works for me...


I get this message when I try to install software in the Software Center Ubuntu 12.10. No fixes I saw here helped

Please make sure you have aptdaemon installed properly by running on a terminal:

sudo apt-get install --reinstall aptdaemon aptdaemon-data

After this, please try again. This is just a guessing, though.


The answer was the firewall it has somehow changed the setting for the apache2 so it couldnt connect through port 80.

now the apache is up and running


Ubuntu doesn't support Seamless Mode in VirtualBox

This might be due to the issue with unity effect in ubuntu 14.04. Start with out seamless mode do the following things

 sudo apt-get install compizconfig-settings-manager

In compizconfig-settings-manager

set "Active window shadow color" Opacity to 0.
set "Inactive window shadow color" Opacity to 0.
checked "Override Theme Settings"


According to this page 5.1.x versions of Connector/J supports JDBC 4.0 and the version of Connector/J available in latest Ubuntu repository is libmysql-java 5.1.16-2. So the driver you are using probably supports JDBC 4.0.


How Ubuntu UI is better/easier than Lubuntu?

Most of the problems you've listed would be solved by using Unity, especially the shortcuts thing. I've been using both Unity and LXDE for quite some time.

Unity has great built-in shortcuts and a very good way to handle custom shortcuts. I really can't live without them. For example you can move through workspaces using Ctrl+Alt + an arrow. To move a specific window with you to another workspace just add a Shift to the previous combination.

LXDE (which is the Lubuntu desktop environment) would only be good if your computer is too old and very low on resources. Of course there are solutions for your problems under LXDE but it would be a tedious process. LXDE can get quite time-consuming. You'd fine more people using unity, and therefore you'd find more answers to your troubles and with a better quality.

...you can install Unity on your current ubuntu, but I advise you to do a clean Ubuntu installation (and then install LXDE with it if you want).

by the way; I'm assuming that you mean "workspaces" by "multiple monitors".


I'm not sure if this would really constitute as a fix or not, but it's what I did to make it so that the users could write to their directory.

chown -R ftpuser:ftpgroup /var/www

Afterwards within /etc/apache2/envvars

# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data //Replaced
export APACHE_RUN_GROUP=www-data //Replaced

And simply replaced it with

# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=ftpuser
export APACHE_RUN_GROUP=ftpgroup

So far I've seen no issues and everything is working great.


I met this behaviour of K3b: I prepared 15GB data folder to be written to a BD-R. I ordered K3b to keep the iso, if it were needed for some later copy. First I let the K3b self decide the writing speed - the mission failed. Next I forced the speed 4x, with this speed the disk was burned. But when I asked next day to burn the same disk but from saved ISO image the K3b did not recognised the media (Verbatim 26BG 4x). I tried to burn the ISO with CLI:

# wodim -v dev=/dev/sr0 -dao image.iso

but got the error message that medium is unknown and cannot find hidden track ... Hence the medium and the right speed could be the reason.
I googled and modified this:

# growisofs -dvd-compat -speed=4 -Z /dev/dvd=image.iso

what burned the ISO image successfully.
I hope this could be helpful for somebody.

N.B.: I tryed the Brasero for this purpose also failed.


I've installed lsd in Ubuntu 19.04. But when I run lsd command, it shows command not found

Edit your /home/yourname/.bashrc and add the following line:

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

Then restart your Terminal and you should be able to run lsd.


Missing Operating System when Installing from USB

Those instructions are six years old, and things have changed a lot in the intervening years. Most importantly:

You refer to syncing your partitions. I assume you mean using gptsync or a similar tool to create a hybrid MBR. This is necessary to boot in BIOS/CSM/legacy mode on a Mac, but both a hybrid MBR and BIOS-mode booting are ill-advised today. You're much better off installing in EFI mode, which requires no hybrid MBR. (Hybrid MBRs are ugly and dangerous; see the page to which I just linked for details.)
You refer to rEFIt, which has been abandoned since 2010. I forked rEFInd from rEFIt in 2012, and I'm still actively developing it. Thus, you're much less likely to run into problems with rEFInd than with rEFIt, particularly if you're using a relatively recent version of OS X/macOS, which add features that will stop rEFIt from working unless you know how to work around them. (These features do affect rEFInd, but at least they're documented in rEFInd, and in some cases the rEFInd installation script automatically compensates.)
Ubuntu has moved on and provided better support for Macs in the six years since Ubuntu 11.04 was released. I strongly advise against installing Ubuntu 11.04 -- it's no longer supported, so you won't get important security updates for it, and in fact you'll be out of date the moment it's installed. Instead, I recommend using the latest Ubuntu LTS point-release (16.04.2 as I write) or perhaps the latest non-LTS release (17.04 as I write). These versions will be likely to install better on your Mac, particularly in EFI mode, than a six-year-old version.

I don't have a reference to step-by-step instructions for your specific computer; but the following guides to installing on EFI-based computers generally may be helpful:

My page on installing Linux on EFI systems -- This page is a practical introduction to EFI-mode booting.
My page on the CSM -- This page covers the CSM, including when it's useful and when it's not.
The Ubuntu community wiki entry on UEFI -- This page is a bit disjointed, but is the most Ubuntu-specific introduction to EFI and its issues.

If you install Ubuntu in EFI mode following "generic" EFI-mode installation instructions, which are usually written with UEFI-based PCs and dual-booting with Windows in mind, GRUB might take over as the boot loader, and the computer might or might not successfully boot to OS X from GRUB. If you can boot to OS X from GRUB, and if this is acceptable, then fine; but if not, you can probably work around the problem with rEFInd on a CD-R or USB flash drive. You can then install rEFInd in OS X -- or even in Ubuntu, if you have problems getting the removable medium to boot. (I generally recommend installing rEFInd in OS X rather than in Linux because Macs are weird; but for the past two or three years, installing in Linux has generally seemed to work OK.)


How to check for missing drivers in Ubuntu 14

Most of the drivers are installed by default (eg. open driver for intel/amd/nvidia chip) For closed driver search " additional driver" from dash. It will list closed driver for amd(fglrx)/nvidia or wifi driver.


Dual Booting 2x Linux Distros - LVM Confusion

The main point of LVM is to remove the emphasis from partitions (which are inflexible) to logical volumes (which are handled more like files; you needn't be concerned with their exact start and end points). It might be a little easier if you were to use a GUI LVM tool such as system-config-lvm, shown here:

This particular example shows that my volume group consists of two physical volumes (/dev/sda5 and /dev/sdb5), which are combined together and then split up again into nine logical volumes. The image in the center shows there's a significant amount of unused space. I can create new logical volumes at will, without resizing or moving existing logical volumes. If I were to delete one of the existing logical volumes, there would be no gap in the display; anything to the right of the deleted logical volume would be moved to the left. (On the disks, the data would not move; the LVM would just keep track of where the gaps are and create new logical volumes in the available space, no matter where it is.)

In your specific case, you should verify that you have some free space. You can use system-config-lvm (it's in the Ubuntu repositories) or the underlying text-mode tools like vgdisplay. If you don't have space in your LVM, you'll need to add disk space, delete an unwanted logical volume, or shrink one or more logical volumes. Once you've got some free space, use system-config-lvm or the text-mode lvcreate to create a new logical volume for your new installation.

The likely trouble spot is that you'll also probably need a partition (outside of the LVM) to use as /boot for the new OS, and that could get tricky if you didn't plan for this when you set up your computer. (In theory, GRUB can load kernels from within an LVM, but I've never tried this myself and I've not seen documentation on how to do it.) With any luck you'll have something big enough that you can shrink to make room. You'll need to use traditional partitioning tools, like GParted, to handle this part of the task. Alternatively, if you add a disk to make room in your volume group, you can set it up with your new /boot partition, too. (I'd create another one or two for future use while I'm at it.)


Creating a script for modifying several users crontabs

Probably the simplest way of doing this with cron is to:

start the torrent service at time T1 for each user in user group A
stop the torrent service at time T2>T1 for users in group A
start the torrent service at time T2>T1 for users in group B
stop the torrent service at time T3>T2 for users in group B

Choose times, e.g.

T1 is anywhere between 0:01 am and 1:59 pm on D-day
T2 is 2:00 pm on D-day
T3 is 11:59 pm on D-day

You can change that anyway you like to make time sharing equitable for all group A and B users.

For user "username" in group A:
1) Edit existing crontab entries by commenting them out. Don't erase them just comment them out so they do not fire.
2) Add new crontab entries:

# => either start daemon, while checking that (i) startup takes place between 0:01 am
#+ and 2:00pm and (i) no 'rtorrent' process owned by "username" already runs.
*/10 0-14 * * * [ -z $(/bin/ps -eF | /usr/bin/awk '/rtorrent/ && /username/') ] && /sbin/start-stop-daemon -S /usr/local/bin/rtorrent
# => or start client-app based on similar conditions
*/10 0-14 * * * [ -z $(/bin/ps -eF | /usr/bin/awk '/rtorrent/ && /username/') ] && /usr/bin/env DISPLAY=:0.0 /usr/local/bin/rtorrent

# stop 'rtorrent' process if it exists and is owned by "username"
#+ Check every 5 minutes between 2pm and midnight
*/5 14-24 * * * /usr/bin/kill "$(/bin/ps -eF | /usr/bin/awk '/rtorrent/ && /username/ printf "%s",$2')"  > /dev/null 2>&1

Details of the command starting yr daemon will depend on a number of factors, e.g. whether the client starting rtorrent is a single user machine or whether several user can simultaneously run their own instance of rtorrent. In this case you may want to save the process pid in a run-file for each user so you can manage those processes as a unction of traffic load. Look at this to actually start the rtorrent process identifying user, socket and pid.

I could not tried this solution, so it is a bit of a foray in the dark as far as the correct start procedure is concerned. In particular I assume that yr /home/username/.rtorrent.rc is adequately configured, and that irssi gives you no trouble as detailed elsewhere.

HTH. Please report.


Unable to format Micro SD card from ubuntu, android

I had the same problem. My sd-card would only mount read-only. For many Sd-card adapters theres a hardware lock feature included. Make sure you haven't accidentally switched the pin to "lock", which will only allow read-only access.


How to change window manager to default?

We are running ubuntu 16.04 LTS. We are autostarting.   We want to start with the openbox window manager.  We have found that the window manager selection is stored in /var/lib/AccountsService/users/ubuntu.   Note: In my case ubuntu is the user name.

In this file we have:
    [User]
    Xsession=openbox
to start with the openbox window manager.

To start with the Unity window manager we have:
    [User]
    Xsession=ubuntu


Is there another way to verify Ubuntu 12.04 settings for Flash Drive handling than System Settings?

Yes, there is another way. It is via terminal:

Open a terminal by Pressing Super key and typing "terminal" there.
Write in terminal these commands:

gsettings set org.gnome.desktop.media-handling automount true
gsettings set org.gnome.desktop.media-handling automount-open true

It should now work.


How to Force SMB Legacy Mode Version 1 SMB1 In Ubuntu 19.04

A Linux samba server is designed to negotiate with the client the best smb dialect to use between two values: "server min protocol" ( which is set to LANMAN1 predating SMB1 ) all the way up to "server max protocol" ( which is set to SMB3 ). Modification of these defaults by adding them to smb.conf should not be necessary to accommodate a client that can only use SMB1 ( aka NT1 ).

I suspect that the version of the samba client on the Android device may be so old that it's the authentication protocol that is the problem and not the smb dialect. You might want to set those authentication levels with this in smb.conf - right under the workgroup = WORKGROUP line:

lanman auth = yes
ntlm auth = yes

Then restart smbd: sudo service smbd restart

Or do what adasiko suggested and find something newer for your Android.


Somehow my character set had got changed from "Unicode" to "Unicode (UTF-8).
Changing it back completely fixed this issue

See screenshots:

Before:

After:


Ubuntu: locked out of user account after playing with X and virtual consoles

The command you ran was most likely

sudo startx

which changed permissions for files in your home directory (~), including a file called .Xauthority which is vital to the X Server. It is now owned by root and cannot be read - But it's needed for a successful login, as you might have noticed. Now you know, but nonetheless: Don't run startx with root permissions!

To fix the permissions, we need to access a command line without X Server. But that's no problem. The "terminal prompt" you saw is a non-graphical "user interface". To switch to one, press Ctrl+Alt+F1. You will see the same login prompt. You need to put in your username, press Enter and put in your password.

If you are not sure about your username (as there is a "display name" visible most of the time, if you defined one), switch back to the graphical login via Ctrl+Alt+F7 and log in as guest. Take a look at the /home directory via your file manager - There is a directory named the same as your username.

Go back to your terminal login prompt, type in your username and your password. I cannot help you with figuring out your password, but I hope you remember it. Be sure your keyboard layout is correctly configured (for example while being asked for your username).

Now, we'll fix permissions. It's pretty straightforward, just run

sudo chown -R $(id -u -n):$(uid -u -n) /home/$(id -u -n)

$(id -u -n) will be replaced with your username when the command is running. Of course, you can replace them by hand if you want, but it will work either way. If you want to know what exactly happened, look up the chown command.

Now switch back to login (Ctrl+Alt+F7) and you should be able to log in just fine.


Use the commands it suggests (sudo apt-get install php5 php5-cli mysql-client mysql-server)  to install PHP and MySQL, and reboot the Apache server using sudo service apache2 restart. It should load both programs and function properly.


Volume control on ASUS Xonar DG in Xubuntu

I had the same problem with the ASUS Xonar DGX when using headphones, perhaps the solution can be applied to your card as well.

First, check the available modes for "Analog Output":

$ amixer -c 0

[...]
Simple mixer control 'Analog Output',0
  Capabilities: penum
  Items: 'Stereo Headphones' 'Stereo Headphones FP' 'Multichannel'
  Item0: 'Multichannel'

When this set to "Multichannel", volume control does not work. Set it to "Stereo Headphones" to enable the internal amplifier.

$ amixer -c 0 set "Analog Output" "Stereo Headphones"
Simple mixer control 'Analog Output',0
  Capabilities: penum
  Items: 'Stereo Headphones' 'Stereo Headphones FP' 'Multichannel'
  Item0: 'Stereo Headphones'


How can I use "find" in a shell script to search from the current directory?

Whether or not anything was found, find always returns true. You can use grep to determine if find found something:

read -r a
if find . -maxdepth 1 -name "$a" -print -quit | grep -q .
then
  echo "You found the file"
else
  echo "You haven't found the file"
fi

Quitting after the first match (-print -quit) should improve performance, as Eliah has noted. Use -maxdepth 1 to limit results to the current directory - but then find is overkill for this.


How to check the integrity of Live USB in Ubuntu

You can check the integrity of the image written to the USB drive by checking its MD5 sum against the original ISO's MD5 sum:

Check the original ISO's size:

% ls -l archlinux-2015.10.01-dual.iso
-rwxrwxr-x 1 user user 689963008 nov 22 21:35 archlinux-2015.10.01-dual.iso

Run this command (replace /dev/sdc with the actual device and change 689963008 according to the original ISO's size):

sudo dd if=/dev/sdc iflag=fullblock count=$((689963008/512)) 2>/dev/null | md5sum -

Check the output against the original ISO's MD5 sum.

If you want to get fancy:

Enable the Universe repository (you can do that in Software & Updates);
Install pv: sudo apt-get install pv;
Check the original ISO's size:

% ls -l archlinux-2015.10.01-dual.iso
-rwxrwxr-x 1 user user 689963008 nov 22 21:35 archlinux-2015.10.01-dual.iso

Run this command (replace /dev/sdc with the actual device and change 689963008 according to the original ISO's size):

sudo dd if=/dev/sdc iflag=fullblock count=$((689963008/512)) 2>/dev/null | pv -s 689963008 | md5sum -

Check the output against the original ISO's MD5 sum.


Why is my Broadband Dongle not detected after upgrade to 13.04?

found a solution ,

installed this on my laptop. now i can connect via this application pretty cool.

http://dokter-internet-indonesia.blogspot.com/2013/05/mobile-partner-linux-bam-huawei.html

EDIT

If above link is not working, Google for Mobile Partner Linux (BAM Huawei) 21.003.28.00.03 and get download and install

this is my solution if any one have another solution please post


Sampler Samplv1 remains silent - LV2 Plugin with Ardour 5

I've had this problem too and it's because samplv1 (and drumkv1) aren't automatically connecting to audio output. Here's how I solved it.

Right-click on the samplv1 plugin in the Mixer and go to Pin Connections. Your window most likely will look like this:

Click on the Manual Config button. Click twice on the + button under Audio Out and drag a cord from the two green outlets to the newly created Audio Out inputs (hover over them to see their functions). Your Pin Configuration should now look like this:

Now when you play it you should hear your sample being played.

In my experience most plugsin automatically connect to audio output so I'm not sure why this one doesn't.


Probably this is only a spell-checking matter of Ubuntu or something has been overseen here :

So I assume that grub2 is installed already but Ubuntu is performing in the wrong way the command update-grub instead of update-grub2 ?!

Try to run in terminal simply this command when you have entered your password after this, it should work and then you can re-boot your machine and Windows 8 should be visible in the boot-manager of grub2.

  sudo update-grub2 (and not: sudo update-grub)

Inform me, if this worked.


How to access to synchronized folders via BitTorrent Sync?

Take a look at this video: http://www.youtube.com/watch?v=Nz4cWCRdOj4
Did not have any problems with the folder as you have to specify it yourself in
web interface. No terminal commands needed.

Hope this helps.


Should I upgrade to 10.10 now or wait a while longer?

The answer is really: it depends.

If you are very happy with all the software you are using now, and you are using your netbook very regularly, I would not see any reason to update now (or even in the future). You can just stick to the LTS versions.

On the other hand, if you like me want to have the newest software, or just a piece of software that is not available for your version, it is ok to upgrade. The upgrades of ubuntu are really smooth and the change of breaking something  is not big. There is however a change, so just weigh your risks.

For now, there is really a new interface for the netbook. I would suggest using a live-usb to test the new version whether you like it or not and decide based on that.


If Kdenlive doesn't come with a .desktop file, it cannot be put onto the Desktop. As most programs are advanced, and .desktop files are easy, most programs have them, though I think Kdenlive is one that doesn't. If you want to look into it, it is fairly simple to create your own .desktop file it. Just google it.


Which Nvidia driver will work on my Macbook Pro 5,5

Through trial and error, I managed to fix this on my own, although I'm not sure what my exact steps were. I installed the xorg-edgers PPA, which provides more recent versions of these drivers. I identified a total of 7 different nvidia-* packages, and decided to try each one, starting with the most recent, nvidia-349. I manually checked to see if they passed these tests:

rendered non-garbled login screen
allowed me to login
rendered non-garbled desktop
supported dual monitors
supported suspend/resume

The most recent one to pass all tests was the nvidia-340, so that's the one I used.

I did not use the Additional Drivers dialog, and installed everything through apt-get. Oddly enough, Additional Drivers now shows I'm using the open source Xorg driver, even though I'm using nvidia. I think this is because I'm using the xorg-edgers PPA, which lists several nvidia packages not shown in the dialog, so that's probably the default if it doesn't match any of its nvidia options.

While I was trying things out, I removed the quiet and splash parameters from /etc/default/grub to capture debug information during boot.

To fix the login loop I used

sudo rm ~/.Xauthority
sudo rm ~/.config/autostart

Since my issues were worst on Unity, I actually uninstalled Unity and Compiz [Editor's note - Unity is the whole desktop environment. Removing Unity and Compiz may have unexpected and dramatic effects. If you want to do this, please run the command below with the -s (simulate) flag first to check what APT will do]

sudo apt-get remove --purge compiz unity


Ubuntu 17.10 doesn't boot. Plymouth and intramfs prompt error

Seems that any partition got corrupted somehow. Probably this can solve your problem:

There must be some message telling the name of the partition that got corrupted. If not, try executing exit command (when it shows you that screen again, may the message with corrupted partition appear).
Execute this:

(initramfs) fsck <name-of-the-partition> -y

It'll start checking the partition and after the checking is done, reboot the system by executing reboot.

Done, most are the chances that system will now boot without any errors. Let me know this solves your problem or not.


Adding a folder to side panel nautilus NOT as a bookmark on Ubuntu 18.04

I am using Fedora 31 and had the same issue inside nautilus.
There is a config file for every user that contains some path for the standard directories such as Downloads, Documents, ...
Default content must be like this:

$ cat ~/.config/user-dirs.dirs

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

I guess your default paths for missing items in panel had changed to something else like "$HOME".

You can edit this file manually and point to correct path. But most likely there is a command like xdg-user-dirs-update available in your shell just for this purpose. Rename or remove the config file and run the command to make a new config file with default values.

mv ~/.config/user-dirs.dirs ~/.config/user-dirs.dirs.broken
xdg-user-dirs-update

Any changes takes effect after logout and login.

For more details see this answer: https://unix.stackexchange.com/a/167833/340334
and this article https://wiki.archlinux.org/index.php/XDG_user_directories


Replaced Windows 7 with Ubuntu 13.04 but won't boot from internal HDD

Install from USB or DVD?
If you use a USB-Stick for the installation, it could be that the bootloader (grub2 i think) is written on the USB-Stick.
So if you remove it, the Machine couldnt boot..

Look at the installation were the bootloader will be installed (were the partition window is).

If that doesnt work, burn a dvd and try with it. That should work!

Have a nice day ;-)


print from VirtualBox to networked printer

I don't think it's possible to get the 32bit driver installed on 64bit currently. But if you know you have a 32bit requirement it might be worth getting 32bit desktop instead.

As for virtual box, there is no reason I can think of why it wouldn't work. Try reinstalling the windows drivers and making sure the network is good.


Installing Ubuntu 16.04 on 120Gb ssd and 500Gb hdd partitioning [ CLOSED ]

You won't have to format your new ssddrive.  If you'll be installing ubuntu on that drive, the formatting and other processes for using it is done automatically during the install process.  Just select that drive to install Ubuntu.  When selecting the drive, you should easily know which drive by looking at the size.

Checking and changing which drive boots (the boot order)

To check or set which of your drives will be the primary one for boot, you would do this in the bios.  You can get to the bios with:

When you first turn on a computer you should see a key to hit to enter the bios.  For the Asus the key is the DEL key.


The first key-exchange algorithm supported by the server is diffie-hellman-group1-sha1?

According to Release notes:

  Support for the 1024-bit diffie-hellman-group1-sha1 key exchange is
  disabled by default at run-time. It may be re-enabled using the
  upstream instructions.

As mentioned here you need to use

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@legacyhost


Playing iPhone (iOS10) music in Rhythmbox on Ubuntu 14.04

You can play your iPhone's music by using your laptop/desktop speaker. To accomplish this, please follow the steps below:

Ensure your Ubuntu's laptop/desktop Bluetooth is turned on.
Turn on iPhone Bluetooth and pair with the Laptop/desktop.
Once pairing done connect your iPhone with Ubuntu via Bluetooth.
and play songs on iPhone and all your music buffer on your Ubuntu.


How can I copy text from dialog boxes and menus?

Make a screenshot and use OCR

Install OCR software

sudo apt-get install tesseract-ocr
sudo apt-get install tesseract-ocr-jpn

Install a GUI for tesseract

sudo apt-get install gimagereader

Make a screenshot of your desktop or of a part of your desktop
Start gimagereader and start the recognizion

Copy the text into the right pane and translate


You can use lots of tricks, but this are the two most effective:

Install Preload, an app which improves Ubuntu's performance by speeding up the most used apps. Click here to install it.
Modify swappiness: this method uses the RAM for swap instead of the hard disk, this improves a lot the system's speed with 4 GB or more of RAM. To change it, open a terminal from the Dash, copy/paste gksudo gedit /etc/sysctl.conf, press ↵ and type your password. In the new window, change vm.swappiness to a number between 0 and 20. When lower, it will use more RAM. Simple, right?

Source: Modify Ubuntu


Best graphics driver for HP Laptop with Switchable Graphics?

Ubuntu 13.10 now supports Hybrid Graphics. If you have Ubuntu 13.10 and Radeon hybrid graphics you can install the driver and catalyst control center as easy as follows:

sudo apt-get install fglrx fglrx-pxpress

You can start catalyst control center in dash by shortcut or through terminal as follows:

sudo amdccle

PS:-
  Remember to run Catalyst Control Center as root to switch graphics. Unlike in Windows, you need to restart the system to complete switching.


How to download facebook videos by using 'youtube-dl' in linux?

When using youtube-dl try to clean up the URL you use.  For example, the following URL will work.  Thanks for the video ^_~.

https://www.facebook.com/video.php?v=10152588878600983

How did you install youtube-dl?  If you installed it through apt, I would recommend the following:

sudo apt-get remove youtube-dl
sudo apt-get install $(apt-cache depends youtube-dl | grep Depends | sed "s/.*ends:\ //" | tr '\n' ' ')
sudo pip install youtube-dl

pip seems to have a more up-to-date version.

Some characters need to be escaped to prevent issues.  You can single-quote your URL to help prevent these issues:

youtube-dl 'https://domain.tld/path/file.ext'


How can I make a list with most used commands in terminal?

We will use the records from .bash_history file to do this. The next command will give you a list of all commands in order that you used them most often:

history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr

If you want only top 10, you must to add head at the command above:

history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head

To get a specific top, for example top 5, use head with -n 5 option:

If you want the list in reverse order (top with the rarely used commands), don't use r oprion for second sort:

history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -n

And finally to get a list with the commands used once for example, use grep ' 1 ' (change 1 with the desired number):

history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | grep ' 1 '

To deal with sudo commands (like sudo vim foo), instead of just {print $3} in the awk command, use:

{if($3 ~ /sudo/) print $4; else print $3}

So the entire command would look like:

history | awk 'BEGIN {FS="[ \t]+|\\|"} {if($3 ~ /sudo/) print $4; else print $3}' | sort | uniq -c | sort -nr

For example:

$ history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head
    284 vim
    260 git
    187 find
    174 man
    168 echo
    149 rm
    134 awk
    115 pac
    110 sudo
    102 l

$ history | awk 'BEGIN {FS="[ \t]+|\\|"} {if($3 ~ /sudo/) print $4; else print $3}' | sort | uniq -c | sort -nr | head
    298 vim
    260 git
    189 find
    174 man
    168 echo
    153 rm
    134 awk
    115 pac
    102 l
     95 cd

You can see the jump in counts for vim, rm, etc.


These commands solve the problem finally,

sudo modprobe -r r8169
sudo modprobe r8169


No graphic card or input devices recognized after 12.10 upgrade (thus useless)

To save the data you have on drive.. :

Create a live CD / USB device ( USB - recommended )

Use this software for this purpose : UNetBootin software for creating live boot devices

Boot using the Live USB and using that copy all important data and take backup in some secondary storage device.


HP Laserjet 2100 printer doesn't print in Ubuntu 14.04

I have a LaserJet 3200 (similar to your 2100 for printing). I didn't install HPLIP because it looked like a big software which I didn't need because I use it only for printing.

I tried many drivers (Footmatic, CUPS, Postscript, PCL5, PCL6) because the default one was having a pause between each page. In fact, some didn't even work. But the one that works great is the "Generic PCL Laser Printer". So to install:

System Settings -> Printers
Add printer
Makes = "Generic" (instead of HP)
Model = "PCL Laser"

About the Duplexer option at the end of the wizard (to print on both sides of the page), I didn't tick it because I don't use it (the 3200 doesn't have any automatic reversing document feeder so I would have to reverse the pages manually which is not practical).

Hope it helps


How to setup bluetooth tethering with iPhone?

This is how I achieved it.

First don't forget to enable tethering in iPhone settings
Use blueman (sudo aptitude blueman), it is more userfriendly
In blueman settings make sure that in "Local services" PAN support switch in "NetworkManager"
In blueman plugins settings make sure that NMPanSupport is enabled (and MNIntegration is disabled)
Pair Blueman with iPhone as you would do with any other device
After iPhone is connected, right click on it in Blueman main screen and connect to "Network Access Point" service.
You're online, congratulations!


I also just installed version 3.6.3 from the libreoffice website. Before installing with I purged the old files & libraries with this command:

sudo apt-get purge libreoffice*

edit: you also probably want to do this, too, before installing

sudo apt-get autoclean

and

sudo apt-get autoremove


"Ubuntu" - is Vanilla Ubuntu.

Kubuntu, Lubuntu, Xubuntu and Mint are all derivatives of this. However, in their own right, they are Vanilla too.

If you want to be extremely technical, Vanilla Ubuntu is a fresh install with no extra packages installed and no changes made.

In a broader sense, Vanilla Ubuntu can refer to Ubuntu (the OS) as opposed to any derived OS, or to Ubuntu (the OS) with any of the officially supported Desktops (KDE, LXDE or XFCE), but without any third party software (that is, software from a source other than the official repositories.

Vanilla Ubuntu cannot refer to:

Ubuntu with all proprietary or closed source components removed (like GNUSense).

This is a derivative, and also consists of removing packages and keeping a strict rule of free software only.

A remaster of any kind.
Ubuntu with a customized UI (at the code level).

Customizing at the code level invalidates the "Vanilla nature" of the OS.


How to record log of bash script in another script?

I'd try the following modification in your script:

#!/bin/sh
. /full/path/to/foo.sh > /tmp/foo.log
exit 0

Update your script to include the full path of foo.sh
Remove the @


Lubuntu 16.04 - How can I get rid of `nomodeset` on my old netbook?

A post on the Lubuntu Official Facebook group announced that this problem was caused by the omission of the package xserver-xorg-video-intel from 16.04.  Installing this package regained all the lost functionality and allowed me to remove nomodeset from grub.


How to correctly invoke awk in Perl to print out the 3rd last field in a line?

You don't need to call awk inside your perl program, perl provides the necessary functions to perform such operation:

#!/usr/bin/perl -w

my $line="1 2 3 4 5 6 7";
my @tab = split(/\s+/, $line);
print $tab[-3],"\n";

This small program outputs: 5


I assume that you have already backed up any data that cannot live without.  If you have not do that first.  I think the commands to update from the command line are:

sudo apt-get update
sudo do-release-upgrade


How do I remove the application icon from the top panel?

/path/to/your/gnome-shell/theme/gnome-shell.css
(default path is /usr/share/gnome-shell/theme/ )

Find there something simmilar to this: (it's on lines 3xx-4xx)

.panel-button #appMenuIcon {
        width: 0px;
        height: 0px;
}

.panel-button #appMenuIcon {
    app-icon-bottom-clip: 0px;
}

.panel-button:active #appMenuIcon,
.panel-button:checked #appMenuIcon,
.panel-button:focus #appMenuIcon {
    app-icon-bottom-clip: 0px;
}

.app-menu-icon {
   /* width: 24px;
    height: 24px; */
}

Alt+F2 -> r

That should remove the icon.


gtk-update-icon-cache: The generated cache was invalid

You need to check two things :

The name of icons directories in theme.index file like (apps/24x24, places/128x128 ... etc) if they listed in index file and dose not exist in icons directory ( or vis versa)
The names of icons images if they have a white spaces or some thing like this

As you said, you made a double check for theme.index file and dirs, so you need to check the images names.
for me I use this command inside the icon dir :

ls -a -R * > ~/outfile.txt

to list all images names, after that I replace the white spaces with (@) symbol  using my text editor to find and fix the images names.


The problem was as comments suggested with the VGA cable.
Below are notes form Lenovo T420 specs:
Maximum external resolution: 2560x1600 (DisplayPort)@60Hz;
                             2048x1536 (VGA)@75Hz;
                             1920x1200@60Hz (single-link DVI-D via cable 45J7915)

Even though my system was reading EDID file correctly it was not able to use that resolution (2560x1440) over VGA cable.
Today my DisplayPort cable arrived and I'm able to use my monitor at its native resolution.


unable to create `/etc/skel/.bash_logout.dpkg-new': No such file or directory

It looks like you've accidentally deleted the directory /etc/skel. Check by typing the following command in a terminal:

ls -ld /etc/skel

If the directory does exist, post the output of this command for further diagnosis.

If the directory doesn't exist, create it:

sudo mkdir /etc/skel

You should also reinstall the packages that have files in /etc/skel. You're going to update bash anyway. Check if there are others by running the command dpkg -S /etc/skel. If this lists packages other than base-files and bash, run apt-get --reinstall install on them, e.g.apt-get --reinstall install mksh syslogout`.


I think you are connecting another one more display to your pc. If that is like it, you go to 'System settings' --> 'Displays' select 'All Display' instead of 'Built-in Display' and click on 'Detect Display' and 'Apply' and click 'Keep this configuration'. try with this it may works...
All the Best...


Do the brcm80211 drivers need patching to work correctly in airmon etc?

it is my experience that most Wireless card can not do some of the basic Air-Crack options without been altered in some way with an injection (Take mental note that I do not know what aircrack is or have I ever used it in anyway). if you read the changelog you will see that some drivers for wireless cards receive a "patch" which is the injected code that lets them do.. what they do in air-crack: http://www.aircrack-ng.org/doku.php?id=changelog

Afterwards if you read the compatibility list you will see which ones Air-Crack supports without a patch, which ones need a patch and which ones work mostly: http://www.aircrack-ng.org/doku.php?id=compatibility_drivers

For example, for the Broadcom you can find if it is supported here: http://www.aircrack-ng.org/doku.php?id=b43 and do the injection test in that same page to see if it qualifies.

Also in the air crack forum you can find guides to "patch" the Wireless card. There are other testing softwares like Backtrack which include a lot of patches already or Metasploit. Anyway with this is enough to determine if you need to patch or not. Good luck friend.


ComboBoxText in Glade / GTK+3 / Python - disappears when displayed 2nd time

The problem lies with the Window.

You should implement a callback for the 'delete-event' signal of the Window widget.

def on_event_editor_delete_event(self, widget, event):
    self.event_editor.hide()
    return True

This callback hides the Window and returns True so the event isn't propagated further (i.e. the Window isn't destroyed, including your ComboBox).


Boot partition full and I can't purge old kernels

apt-get autoremove.

As you worked out yourself, you will have to remove an old kernel manually first.

After running apt-get autoremove, your boot partition should be much emptier. I personally have a root cron to do that weekly so I don't get into your situation.

Make sure you do an update and upgrade too to resolve the dependency issues, then reboot to start the new kernel.


To investigate the cause of the boot duration, please create a boot chart.
For the slow graphics performance you should install Nvidia's proprietary graphics drivers from the Additional Drivers application.
Your RAM is definitely being used. A lack of RAM may lead to performance issue but 4 GiB should be plenty. If you're still concerned look at the output of:

LC_MESSAGES=C free -h

The value in the line labelled “Mem” and the column labelled “free” should be quite low (< 1 GiB) if you have been using your computer for a few hours. If it isn't, that just means that your usage doesn't require that much memory.


I boot to a grub prompt. How can I fix this?

Press the Boot Menu option F-Key during the BIOS boot and choose Windows

On my Dell laptop, it's the F12 key. Otherwise, you can press the Menu key (F2 on the Dell) and arrange your boot order to Windows first.


Is there a way to mimic Windows 7's WinKey+Number shortcuts?

In Unity Desktop Environment this option is there by default.
Just hold the Windows key (also called super) and the numbers for the shortcut will appear on each program's icon.

I don't think Cinnamon has this option.


Why am I getting Mount Error (121), Remote I/O Error?

Try adding vers=2.1 in your option string:

sudo mount.cifs //fx4130server/linux_share /home/howard/Desktop/Windows-Share -o user=howard,vers=2.1


Steam: OpenGL GLX context is not using direct rendering, which may cause performance problems

A proprietary AMD driver is not installed. You can install it by running

sudo apt-get install fglrx

in terminal.

If the opensource radeon driver works better for you, then use it and ignore that error message.


Launcher Auto-hide leaves a dark bar, doesn't display properly

Check your display: System -> Display and check laptop mode only.

And try to download Ubuntu Tweak. It is very good, and I think it will help you.

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak


Getting issue with display on Ubuntu 18.04.4

Based on the following error:
E: You don't have enough free space in /var/cache/apt/archives/.
It seems like your hard drive may be full.
You can check how much space you have available by running df -h


SWAP space is used for RAM paging in cases where you may run out of available memory.  If SWAP is active, but you are not using it, then it is likely that your resources are held in memory which has significantly faster read/write times than the SWAP space on a HDD.

To configre SWAP space, follow this guide


Can't restrict Apache to accept only connections from local machine

You can add an .htaccess file on webroot dir

order deny,allow
Options -Indexes
deny from all
allow from 127.0.0.1


Using the "Alternative to the Magic Patch" on a server: good idea or bad idea?

I'd recommend that you do not apply it to a Ubuntu server. The change improves scheduling more or less specific to desktop usage. It won't improve server response. That's the core of the criticism made by that RedHat guy, whose name I won't bother mentioning.


You have to assure that your dvd drive is on top priority of your boot device list in your bios. In most cases you can configure that by pressing F2 at boot time or F12 for temporally setting. But depends on your Bios...

You checked that already?


Why does rEFInd not allow to change theme?

The theme.conf file in the Ambience theme is hard-coded to look for files in the themes\refind-ambience subdirectory of the main rEFInd directory on the ESP; however, it sounds like you renamed this directory to either themes\refind-ambience-master or themes\rEFInd-minimal-master (you refer to both locations). You must either use the directory names specified by the theme's author or update theme.conf to match your own names. If you change the directory name without updating theme.conf, then only the parts of theme.conf that do not refer to those directories will take effect. These include banner_scale fillscreen, which causes the banner to fill the screen; and a couple of options to hide most UI elements aside from the OS selectors. You will not get the updated banner (background image) or changed icons.


Make it permanent:

sudo gedit /etc/default/grub

Change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To:

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset quiet splash"

sudo update-grub


GIMP not working after updating to 11.10

You'll possibly find that you have another instance of GIMP already open with a file sufficiently large that you've put the process to sleep.

At least that's what I encountered.

Launched gimp
Received warning as above.
Ran ps, discovered a sleeping gimp
Killed sleeping gimp
Relaunched gimp, warning reappears, but so does gimp as it should.

lev@isocracy:~/Desktop/webdev$ gimp
(gimp:25974): GLib-WARNING **: /build/buildd/glib2.0-2.30.0/./glib/goption.c:2168:
ignoring no-arg, optional-arg or filename flags (8) on option of type 0

lev@isocracy:~/Desktop/webdev$ ps afux | grep gimp
lev      21142  0.0  1.5 164356 32372 ?        Sl   Dec05   0:26 gimp-2.6 /home/lev/Desktop/newwebsitevpac.svg
lev      25976  0.0  0.0   4188   776 pts/2    S+   15:08   0:00      _ grep gimp

lev@isocracy:~/Desktop/webdev$ kill 21142

lev@isocracy:~/Desktop/webdev$ gimp &
[1] 25982

lev@isocracy:~/Desktop/webdev$
(gimp:25982): GLib-WARNING **: /build/buildd/glib2.0-2.30.0/./glib/goption.c:2168: ignoring no-arg, optional-arg or filename flags (8) on option of type 0


Assuming that you have dual booted correctly, you can try this:-

1. Go to boot menu option(by Pressing F9 or similar keys)
2. Choose Ubuntu

I was having the same issue in my HP Pavilion Laptop.
Grub didn't showed up. Method above worked for me.


Where can I find a log or see the progress of importing images in MAAS?

Logs can be found in /var/log/maas/celery.log and they should look like this: http://pastebin.ubuntu.com/7652758/. More specifically the task called tasks.import_boot_images.

It's not possible to see the current progress. That's been filed as bug 1271188


To find out the DHCP server that's giving you the IP, just press Ctrl+Alt+T on your keyboard  to open Terminal. When it opens, run the command(s) below:

cat /var/lib/dhcp3/dhclient.leases

Or you can just use grep command to get DHCP server address.

grep dhcp-server-identifier /var/lib/dhcp3/dhclient.leases

OR

grep dhcp-server-identifier /var/lib/dhcp/dhclient.leases

For Ubuntu 14.04, 16.04, and 17.10 you can use:

dhclient -d -nw eth0

Sample output:

Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:0c:29:49:3e:67
Sending on   LPF/eth0/00:0c:29:49:3e:67
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x4f723f9)
DHCPREQUEST of 192.168.138.136 on eth0 to 255.255.255.255 port 67 (xid=0x4f723f9)
DHCPOFFER of 192.168.138.136 from 192.168.138.254
DHCPACK of 192.168.138.136 from 192.168.138.254
RTNETLINK answers: File exists
bound to 192.168.138.136 -- renewal in 892 seconds.


lightdm package upgrade fails with exit status 30

Print Screen

E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get install --reinstall unattended-upgrades
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a

For your problem:

sudo apt-get install --reinstall lightdm
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a


The latest version in Trusty is 1.9.1. To install 2.1.4  you need Vivid. To get version 2.4.6 you have to wait for Wily.

To install packages from this PPA  you need at least Lucid.

Based on the output of

apt-cache policy git

you have installed version 2.4 6

I assume, either you don't use /usr/bin/git or the file was overwritten.

To resolve the first point, check the output of which git

If the output isn't /usr/bin/git, remove the file, because you want to use the binary from the git package.

sudo rm /usr/local/bin/git

and for the second point

sudo apt-get install -reinstall git


In your picture, sda6 shows a key icon, which means the partition is mounted.  Mounted partitions can't be operated on by gparted.  Back up your data - things can go wrong - then boot your system with a live USB - gparted is included on the Ubuntu live .isos - and perform your operations.


Ignoring file 'Untitled Document 1' in directory '/etc/apt/sources.list.d/' as it has no filename extension

Somehow a file called Untitled Document 1 was copied to the /etc/sources.list.d folder. That's very odd. Such a file is usually a word processing document, and not a configuration file at all.

You can move this file to your desktop by opening a Terminal window (Ctrl+Alt+T) and running:

sudo mv /etc/apt/sources.list.d/Unt* ~/Desktop

Then the file will be on your desktop (in case it contains something important), and the first error message should go away. If it doesn't, please comment here and edit your question with details of what happened next.

The first message was actually a "warning"; it might work even if you leave Untitled Document 1 in place,.

The second error message can be solved by following the instructions here:

How do I fix this "E: Type '*' is not known on line * in source list ..." update error?


How can I add items to the indicator-session menu?

some refs:
 - jimi312 / Titlebar Menu / source — Bitbucket:
 - Programming with DBus using PyQt
 - Unity/QA/StateIntrospection - Ubuntu Wiki: especially example code

At the moment passive querying can extract information such as shown in this post:
How does one find out which application is associated with an indicator icon? .

I am also exploring the answer to this question as it relates to DBus, to use as high a level interface as possible to avoid low level programming.  The ultimate objective is to create a utility that minimally identifies the host applications of the indicators and the sub-apps of their component menus. Maximally it would allow modifications to the menus such as the session-indicator menu including the top level menu, ie. the icon indicator of the unity-panel itself.

It would be good to know which, (if any!) modifier methods exist in the DBus environment to modify the DBus, so the indicator panel and it's components, such as Session Indicator, could be modified as you require.

The following commands reveal the interface methods to manipulate the session indicator bus information but unfortunately the parameters used in these methods are not described here - the reference above supplies links to the documents describing the general indicator interfacing - but specifics for the session indicator are still needed.

The output from

qdbus --session  com.canonical.indicator.session

implicates the existence of menu interfaces as the items below:

  /
  /org
  /org/ayatana
  /org/ayatana/indicator
  /org/ayatana/indicator/service
  /com
  /com/canonical
  /com/canonical/indicator
  /com/canonical/indicator/users
  /com/canonical/indicator/users/menu
  /com/canonical/indicator/session
  /com/canonical/indicator/session/service
  /com/canonical/indicator/session/menu

The interfaces can be examined with:

gdbus introspect --session --dest com.canonical.indicator.session \
                 --object-path /com/canonical/indicator/users/menu --recurse

and

gdbus introspect --session --dest com.canonical.indicator.session \
                 --object-path /com/canonical/indicator/session/menu --recurse

Note the internal reference to interface com.canonical.dbusmenu.

For a real comprehensive dump use:

gdbus introspect --session --dest com.canonical.indicator.session --object-path / --recurse

Several sub-apps are bound to the session indicator drop down menu but what is not clear is whether these interface methods just transfer data to the associated sub-menu apps or whether in fact there is a communication channel to the session indicator app itself so its menu can be "methodized".

Also,

qdbus --literal --session  com.canonical.AppMenu.Registrar           \
                          /com/canonical/AppMenu/Registrar           \
                           com.canonical.AppMenu.Registrar.GetMenus  \
| sed -e 's/], \[/],\n[/g' | sort -k 4 -V

provides a list of interface menu associations (there are menusfor the windows and also for the indicators like the session indicator, which is which in the list below still needs determination)

[Argument: (uso) 25167301, ":1.22", [ObjectPath: /com/canonical/menu/18005C5]],
[Argument: (uso) 25165828, ":1.22", [ObjectPath: /com/canonical/menu/1800004]],
[Argument: (uso) 48234500, ":1.81", [ObjectPath: /com/canonical/menu/2E00004]],
[Argument: (uso) 55244411, ":1.114", [ObjectPath: /com/canonical/menu/34AF67B]],
[Argument: (uso) 55370996, ":1.114", [ObjectPath: /com/canonical/menu/34CE4F4]],
         ...
[Argument: (uso) 65083174, ":1.275", [ObjectPath: /com/canonical/menu/3E11726]],
[Argument: (uso) 65085474, ":1.275", [ObjectPath: /com/canonical/menu/3E12022]],

Examining

qdbus --session  com.canonical.AppMenu.Registrar /com/canonical/AppMenu/Registrar

it may be these methods are useful:

method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value
method void com.canonical.AppMenu.Registrar.RegisterWindow(uint windowId, QDBusObjectPath menuObjectPath)
method void com.canonical.AppMenu.Registrar.UnregisterWindow(uint windowId)

Note the parameter identified as menuObjectPath. These method names are qualified
with {un}RegisterWindow, so the methods perhaps are irrelevant to indicator menues.

Once the correct methods with their parameters are identified it is easier to use qdbus (cannot use QVariant parameters however) or D-Feet than gdbus to invoke the methods.

Basically qdbus and gdbus are functionally the same and use identical parameters except:

qdbus does not identify the separate components with --dest, --object-path, --method, ... but instead requires the corresponding attributes be given in exact order
gdbus method calls handle more parameter types
qdbus is not as exhaustive asgdbus especially w/ --recurse
qdbus can expediently extract its command parameter sequence via double or triple click from its output w/ a middle click to concatenate it to the end of the command

The answer
How does one find out which application is associated with an indicator icon?
in the post mentioned above describes how to use qdbus as an expedient technique to compose the scripts.

The manpage man gdbus (or gdbus:) has a better exposition than man qdbus but consider D-Feet.


If you have rsyslog running then it is, essentially, "properly setup".  Customization is going to be based on your specific needs.  If you can provide more detail we can probably give better advice.

As far as analyzing the data, LOGalyzer is open source.  You can check it out here:

http://logalyze.com

It takes a bit of work to get running properly, but it's free.  You can also pay for support, but their prices are relatively hefty, especially if this is for non-work purposes.


ubuntu 14.04 system program error detected

I think you should log on using TTY1 to clean up your crash directory by:

Pressing Ctrl+Alt+F1 to go to TTY1
log in there (1970s style)
Type: sudo rm /var/crash/*


Boot after 14.04 installation fails because of missing /tmp

After a careful examination of the differences between the /etc directories on a working and a broken system, I found the solution.

The problem is a missing nss_initgroups_ignoreusers line in /etc/ldap.conf. This line lists all local users, and prevents the system from accessing the LDAP directory when looking up these users. This line is created automatically on each boot by /usr/sbin/nssldap-update-ignoreusers, but with my installation method it was missing on the first boot. So during this first boot, the system was trying to lookup user information from LDAP before the network connection was brought up. Of course this failed.

I now added a call to /usr/sbin/nssldap-update-ignoreusers to our script that runs between installation and first boot, and now everything works fine.


How could i add an Applications Option to the left Nautilus pane like Finder on OSX or PCMANFM?

You would probably have to create a bookmark to /usr/share/applications in your nautilus sidebar.

It will Not give you categories, but it will be at least the closest to what you are looking for.

Apart from this you could write a Nautilus extension, if you know a bit of Python.


zfs - single disk setup: Where is the missing space? [1TB (931,5 GiB) disk: 32,5 GiB missing as usable space]

I cannot reproduce your problem.
root@banshee:/tmp# truncate -s 931G disk.bin
root@banshee:/tmp# zpool create -oashift=12 test /tmp/disk.bin
root@banshee:/tmp# zpool list test
NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
test   928G   480K   928G        -         -     0%     0%  1.00x    ONLINE  -

In the above example, I begin with a 931GiB (1TB, roughly) block device, and create a pool on it using 4KiB sectors. The available capacity is 928GiB, as expected when you account for metaslab remainder.
root@banshee:/tmp# zdb test | grep metaslab | tail -n 3
loading concrete vdev 0, metaslab 115 of 116 ...
    metaslab    114   offset   e400000000   spacemap      0   free       8G
    metaslab    115   offset   e600000000   spacemap      0   free       8G
    vdev          0     metaslabs  116      fragmentation  0%

My 931GiB "disk" was divided into 116 8GiB metaslabs; this left a 0.44125 metaslab remainder.
0.44125 metaslabs * 8GiB/metaslab == 3.53GiB

931GiB disk - 3.53Gib metaslab remainder == ~~928GiB usable

... and Bob's your uncle. Why you are seeing roughly ten times that amount of overhead, I have no idea; I'm also on Focal, with the same ZFS version as you're reporting.
root@banshee:/tmp# apt policy zfsutils-linux
zfsutils-linux:
  Installed: 0.8.3-1ubuntu12.5
  Candidate: 0.8.3-1ubuntu12.5
  Version table:
 *** 0.8.3-1ubuntu12.5 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.3-1ubuntu12 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

It might help to see the actual creation of your pool itself command by command from scratch and/or the output of zdb | grep metaslab_shift on that pool.


Enabling two finger scrolling in Ubuntu gnome 14.04

Your touchpad is not supported by the current kernel.

You can upgrade linux kernel to get new drivers by running in terminal

sudo apt-get install linux-generic-lts-vivid

and reboot.


Can't make new unlisted resolution, BadMatch error

I solved it by using the nouveau drivers and forcing the resolution with xrandr...

NVIDIA's drivers wouldn't let me use xrandr for some reason


If the image is a TIFF (or PSD, or XCF) and really opens as three layers that represent the R/G/B channels(*), you can combine them all into a plain layer using Layer>New from visible and then removing the R/G/B layers.

(*) Other formats (JPG & PNG in particular) will always open as a single layer. So if this is is your source, make sure that you are looking at the Layers list (Ctrl-L) and not at the Channels one, because the Channelswill always show the 3 R,G,B channels of the visible image, even the image has only one layer.


How to remove Kali Linux base from Ubuntu

You might need to do a clean install. First, back up all of your files. Next, insert an Ubuntu DVD/USB into your computer and boot to it. Finally, go through the installation process and you should be good.


For future users: get the newer version/a working link from https://julialang.org/downloads/

# go to your user folder
cd ~
# get julia
wget https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.0-linux-x86_64.tar.gz
# extract the file (eXtract File as options)
tar xf julia-1.3.0-linux-x86_64.tar.gz
# Create a shortcut (a soft link) that's places in a globally accessible folder
sudo ln -s ~/julia-1.3.0/bin/julia /usr/local/bin/julia

Now you can run julia anywhere.


How to make the command line / terminal mirror the GUI?

Most of "GUI actions" don't really have a terminal equivalent, or have more than one. That's because most time GUIs don't really issue terminal commands, they issue system / kernel commands.

What you can do:

with dmesg you can see "kernel messages", see http://tldp.org/LDP/LG/issue59/nazario.html
For some softwares (with GUI), opening them from terminal will allow you to see some debug and various messages (info, notices, warnings)
Check the software source code
Debug a software


ls command by default is showing one line per file? How to change it?

Are you sure you are not mixing lowercase L with 1?

ls -l (list long) shows a long list of 1 file per line but with as many lines as the terminal shows.

If "ls" is the only command that does this you might have used the "1" (digit one) option somewhere. [man ls][1]:

  -1   Prints one entry per line of output.

Your command could be aliased to using a "1". Check if it is with ...

alias ls

And to remove that use

unalias ls

and check again. If so find the alias (probably .bashrc) and fix it.


Yes and there is even a page on the Ubuntu wiki about this: https://wiki.ubuntu.com/ContentInternetFiltering

From that page I took the names and added a link where you can learn more about this:

ContentInternetFiltering/Willow: https://wiki.ubuntu.com/ContentInternetFiltering/Willow
DansGuardian: http://dansguardian.org/
SquidGuard: https://help.ubuntu.com/community/SquidGuard


Figured it out, instead of adding the tags file (/home/jeff/project/tags) to the target index, I was supposed to just add the directory that the tags file is in (/home/jeff/project/) - not the tags file itself.

After changing the target index to /home/jeff/project/ and updating the index, then I am easily able to hop to definitions like I expect.


Adobe Air error when installing Scratch 2

had the same problem, I did get it to work though when I used an older Version of scratch. Starting with version 456.0.1 Scratch needs a newer version of Adobe Air, whitch isn't available for linux afaik.

You can download version 455 from
https://scratch.mit.edu/scratchr2/static/sa/Scratch-455.air

That is the latest version I did get to work, updating it is not possible, so one has to put up with the annoying "A newer versio of Scratch is available" popup when you start the program, but updating fails with the error message you reported.

Hope that helps!


Issue with dual monitors on Intel and AMD cards

Upgrading to a kernel version 4.9 and above may work; support for the newer AMDGPU driver in pre-GCN 1.2 AMD cards (which the R9 390 is) was added. The open source Oibaf or Padoka drivers may not support dual monitors with two different video cards.

Instructions for upgrading to 4.9 and compiling it for AMDGPU support can be found here.


Help with installing jre-8u101-linux-x64

Webupd8team has made a very good job in preparing installation packages for the official oracle java.  You can follow these three steps and install it correctly and add the webupd8team update server to your system so that a new java is installed whenever it's released automatically.

Add the server by typing: sudo add-apt-repository ppa:webupd8team/java.
Update your system: sudo apt-get update.
Install both oracle-java8-installer and oracle-java8-set-default by typing: sudo apt-get install oracle-java8-installer oracle-java8-set-default.
Done!


How to track traffic on my server in real time?

You can install the package iptraf which gives you realtime monitoring of various tcp and udp information. Page hits are realtime logged in the apache log that you have configured. You can either scan that file for number of lines matching your time period, or you can use some like piwik for your apache server which gives you analysis similar to google analytics.


Finally it worked on Ubuntu 14.04.2. It has to be the exact patch level ...2. Amazing.

$ cat /etc/issue
Ubuntu 14.04.2 LTS \n \l

OpenCL working:

Number of platforms:                 1
  Platform Profile:              FULL_PROFILE
  Platform Version:              OpenCL 2.0 AMD-APP (1912.5)
  Platform Name:                 AMD Accelerated Parallel Processing
  Platform Vendor:               Advanced Micro Devices, Inc.
  Platform Extensions:               cl_khr_icd cl_amd_event_callback cl_amd_offline_devices

  Platform Name:                 AMD Accelerated Parallel Processing
Number of devices:               2
  Device Type:                   CL_DEVICE_TYPE_GPU
  Vendor ID:                     1002h
  Board name:
  Device Topology:               PCI[ B#0, D#1, F#0 ]
  Max compute units:                 2
  Max work items dimensions:             3
    Max work items[0]:               256
    Max work items[1]:               256
    Max work items[2]:               256
  Max work group size:               256
  Preferred vector width char:           4
  Preferred vector width short:          2
  Preferred vector width int:            1
  Preferred vector width long:           1
  Preferred vector width float:          1
  Preferred vector width double:         1
  Native vector width char:          4
  Native vector width short:             2
  Native vector width int:           1
  Native vector width long:          1
  Native vector width float:             1
  Native vector width double:            1
  Max clock frequency:               450Mhz
  Address bits:                  64
  Max memory allocation:             194992128
  Image support:                 Yes
  Max number of images read arguments:       128
  Max number of images write arguments:      64
  Max image 2D width:                16384
  Max image 2D height:               16384
  Max image 3D width:                2048
  Max image 3D height:               2048
  Max image 3D depth:                2048
  Max samplers within kernel:            16
  Max size of kernel argument:           1024
  Alignment (bits) of base address:      2048
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                     No
    Quiet NaNs:                  Yes
    Round to nearest even:           Yes
    Round to zero:               Yes
    Round to +ve and infinity:           Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                    Read/Write
  Cache line size:               64
  Cache size:                    16384
  Global memory size:                779968512
  Constant buffer size:              65536
  Max number of constant args:           8
  Local memory type:                 Scratchpad
  Local memory size:                 32768
  Max pipe arguments:                16
  Max pipe active reservations:          16
  Max pipe packet size:              194992128
  Max global variable size:          175492864
  Max global variable preferred total size:  779968512
  Max read/write image args:             64
  Max on device events:              1024
  Queue on device max size:          8388608
  Max on device queues:              1
  Queue on device preferred size:        262144
  SVM capabilities:
    Coarse grain buffer:             Yes
    Fine grain buffer:               Yes
    Fine grain system:               No
    Atomics:                     No
  Preferred platform atomic alignment:       0
  Preferred global atomic alignment:         0
  Preferred local atomic alignment:      0
  Kernel Preferred work group size multiple:     64
  Error correction support:          0
  Unified memory for Host and Device:        1
  Profiling timer resolution:            1
  Device endianess:              Little
  Available:                     Yes
  Compiler available:                Yes
  Execution capabilities:
    Execute OpenCL kernels:          Yes
    Execute native function:             No
  Queue on Host properties:
    Out-of-Order:                No
    Profiling :                  Yes
  Queue on Device properties:
    Out-of-Order:                Yes
    Profiling :                  Yes
  Platform ID:                   0x7fd39b7aca18
  Name:                      Kalindi
  Vendor:                    Advanced Micro Devices, Inc.
  Device OpenCL C version:           OpenCL C 2.0
  Driver version:                1912.5 (VM)
  Profile:                   FULL_PROFILE
  Version:                   OpenCL 2.0 AMD-APP (1912.5)
  Extensions:                    cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_khr_gl_depth_images cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes


You were able to get Ubuntu to read and write floppies?  Good job! I've tried and have not succeeded.  When I need to change file permissions, I use Nautilus/Files in SUDO mode. I know people caution about using Nautilus as SUDO/root. I just make sure I'm making changes to the correct file in the correct folder. To change file permissions using Nautilus, just right-click the file in question, select 'properties' then click the 'permissions' tab.


Ubuntu 20.04 LTS dock's “Show Applications” only showing first page

Yes, it happens when your dock is displayed on the left side of the screen. It's a bug as far as I know.
There are three workarounds:

If you use a dual-screen setup, try detaching and reattaching the secondary screen.

Go to Settings >> Appearance >> Position on Screen - Right or Bottom
Changing dock position solves the issue somehow.

Running this in your terminal will help you solve it if you like the dock to be on the left side only:

gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false


How to create a desktop shortcut for a command?

You can create a .desktop file in your /home/user/Desktop/ directory that looks like this:

[Desktop Entry]
Version=x.y
Name=ProgramName
Comment=This is my comment
Exec=/home/alex/Documents/exec.sh
Icon=/home/alex/Pictures/icon.png
Terminal=false
Type=Application
Categories=Utility;Application;

This the user must be owner of this file and the executable permission must be set, see my example:

And here the file:

user@host:~# ls -la /home/user/Desktop/firefox.desktop
-rwx------ 1 user user 9177 Dec 27 08:27 /home/user/Desktop/firefox.desktop

For more information see the wiki.


Use the Path key to change the working directory and run  java -jar Jmol.jar:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Jmol
Comment=Jmol-14.31.0
Exec=java -jar Jmol.jar
Terminal=false
StartupWMClass=Jmol
Path=/home/adamch/Downloads/Jmol-14.31.0-binary/jmol-14.31.0/
Hidden=false


As I said: build-essential and linux-headers-generic are required for building

Above the package name at both links I provided below, select your distribution "precise" for 12.04 and "quantal" for 12.10 (by default I linked you to the 12.10 version). In the download section select amd64 if you have a 64bit install and i386 if you have a 32bit install. Choose any mirror you want.

You will download 2 .deb files. Transfer them to your laptop. Double click both these files. Software center should open and let you install them. When both are installed you should be able to build your driver

build-essential

linux-headers-generic

EDIT:

You will also need this one

linux-headers-3.5.0-17-generic

EDIT2: build error

There's something wrong with the driver code. Open File Manager, navigate to the driver folder for the driver rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012. Double click on the file base.c. When asked whether to run or display base.c choose "display". In gedit go to Edit > Preferences. Toggle "display line numbers". Go to line 320 and change this line

IEEE80211_HW_BEACON_FILTER |

into

/* IEEE80211_HW_BEACON_FILTER | */

save and close the file. Run make again.

If the build is sucessful run:

sudo make install
sudo modprobe rtl8723e

pray that wifi works

EDIT3: make the change permanent

first check if the driver really works

sudo modprobe rtl8723e

if wifi works after this, make it permanent by running:

sudo -i
echo rtl8723e >> /etc/modules
exit

make sure the spelling is correct

Now if everything works don't wander off like last time. Because of our work-around you still have static deb files installed that won't get updated automatically. To fix this run:

sudo apt-get install --reinstall build-essential
sudo apt-get install --reinstall linux-headers-generic
sudo apt-get install --reinstall linux-headers-`uname -r`

the ticks in the last command are backticks ` not quotes '


What is the most effective and recommended way to install Apache-PHP-MySQL in Ubuntu?

There is a package called lamp-server that installs them all and has all of the packages pre-configured to work out of the box where you see a "it works" when you open http://localhost.

LAMP is what we use.

WAMP is WINDOWS so not useable. MAMP is MacOS so also not useable. Stay away from XAMPP. It is not suited for production systems so if you use that you will learn all the wrong things.

All you need on Ubuntu is ...

sudo apt install lamp-server^

and sit back until it finishes (well along the way you will need to add a password for MySQL but that should be it).


Sound is Jerky, choppy and distorted in Ubuntu 12.10

I am having the same problem, with the same AudioSoundCard.

I see this problem when trying to hear some music with Rythmbox. The sound is choppy and is changing from one side to other (several times per second) everytime.

I was browsing the sound options, and founded that changing the output scheme for another (it seems to work fine with Stero Output everytime), the problem fixes, but just for the current song. Next one repeats the problem until I change for another output scheme.

If I try to test speakers, the problems it's the same testing each speaker. And it does not sound just the speaker I choose, but the sound keeps moving from one speaker to other.


I don't have Studio, Ubuntu 10.10 (Gnome).

apt-cache search ubuntustudio reveals some packages.

ubuntustudio-desktop
ubuntustudio-font-meta
ubuntustudio-gdm-theme
ubuntustudio-graphics
ubuntustudio-icon-theme
ubuntustudio-look
ubuntustudio-menu
ubuntustudio-screensaver
ubuntustudio-sounds
ubuntustudio-theme
ubuntustudio-video
ubuntustudio-wallpapers

I've installed Studio before, but never wound up without those things.
Does this help?


Okay, so here's the simple answer I would have loved to find but couldn't

cd into the directory the file is in
Run php -S localhost:8000 (or replace 8000 with a different port)
Go to localhost:8000 in the browser


Error installing a package: "trying to overwrite directory /usr/share/pixmaps"

Browsing the .deb package using File Roller and noticed /usr/share/pixmaps is not a directory, it is an image file (/usr/share/applications is also not a directory as it should be).

I believe the problem is with your Makefile, specifically these two lines:

cp -r images/* $(DESTDIR)/usr/share/pixmaps
cp other/opentracks.desktop $(DESTDIR)/usr/share/applications

Neither of the directories you are trying to copy to exist, so cp just creates new files $(DESTDIR)/usr/share/pixmaps and $(DESTDIR)/usr/share/applications

To fix this, modify your Makefile:

mkdir -p $(DESTDIR)/usr/share/pixmaps
mkdir -p $(DESTDIR)/usr/share/applications
cp -r images/* $(DESTDIR)/usr/share/pixmaps
cp other/opentracks.desktop $(DESTDIR)/usr/share/applications


How do I create alias for AWS or create SSH config file for connecting Amazon using SSH?

This:

IdentityFile=~/home/user/Desktop/AWS Machines/file.pem

has spaces and the ~/ should precede the Desktop name as it is the same as /home/user/ so do

IdentityFile="~/Desktop/AWS Machines/file.pem"


How can I run a Snappy / ubuntu-core image with LXD

The LXD snappy package is not yet currently available as a general release image for LXC. What is however availble is a snap for testing LXD on snappy - stgraber has posted about this here:

https://plus.google.com/+St%C3%A9phaneGraber/posts/aX6vogzEQ1X

relevant bits:

A binary for amd64 can be downloaded at:
    https://dl.stgraber.org/lxd_0.11-git0_amd64.snap

Then installed with:
    snappy-remote --url=ssh://localhost:8022 install lxd_0.11-git0_amd64.snap

But this only helps you get started running other containers on snappy, not with loading snappy in LXD.

A good place to start the dialogue about what you would like to do would be the ubuntu mailing lists for LXD, or perhaps file a bug against the LXD project requesting a snappy image be published for consumption, where the team can then build an image, or request  CPC build one.

Anything beyond that will be an exercise in manually building the LXC rootfs and containerizing it. YMMV


Where can I get the official Chromium .deb package?

You can simply open a terminal (CTRL+ALT+T) then type sudo apt-get install chromium-browser, press the Enter key, type your usual login password (the password will not be echoed to screen as you type, for security reasons), then hit the Enter key and this way you'll install the official build of the Chromium web browser.

My Chromium version is Version 20.0.1132.47 Ubuntu 12.04 (144678) - and I installed it using the method above.


There is no easy way to do that.
One possibility is to open the ~/.profile file for editing and add this line:
export LC_TIME=en_DK.UTF-8

After next login the weekday and month names will be in English. However, the date and time formats will be changed too (to more like what ISO prescribes). If you are not happy with that, you can test with other English locales. Possibly there is one with reasonable formats for someone who resides in Uzbekistan.


Black screen on boot on a Dell Vostro 3555

Comment converted to an answer

Found the fix. You get yourself to the boot prompt and then log in to your system. Then install fglrx using the command: sudo apt-get install fglrx.

After that, log into your graphical interface and then enable your 'proprietary software'. In this case, it is the AMD / ATI.


Move you mouse pointer to the Launcher and select the cog-wheel icon System Settings.

When the system settings panel appears select the icon Keyboard.

When the keyboard applet opens there are two tabs; Typing and Shortcuts. Select the shortcuts tab.

When the shortcuts tab opens the left pane lists the various categories you can choose from. Select the category Sound and Media.

Within the Sound and Media category click on the option Volume mute and you are prompted for a new accelerator key combination. For this tutorial hold the Ctrl and Alt keys down at the same time and tap M.

Sample screen:

From now on Ctrl+Alt+M will mute and un-mute your sound like a toggle switch. Your screen will also pop up a cool notification.


Can't configure windows boot loader to choose between windows and Ubuntu during dual boot

I would use boot-repair as described here:

How to make grub menu appear instead grub minimal bash-like in booting?

Note: If you can't boot Ubuntu at all, use a Live USB to boot Ubuntu, select "Try before installing" and perform steps below.

After booting the hard way, open a terminal with Ctrl+Alt+T and install boot-repair:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

Then type boot-repair and a menu will appear:

Select the recommended option.
If your system boots normally after recommended repair great. If not post the link to the problems reported.

Caveats
On some systems this annoyance can occur:

Boot-Repair created too many grub menu entries for Windows

If this happens to you, visit the link for a solution.


Create hotspot using CLI only - ubuntu 14.04

You may use ap-hotspot to create hotspot on CLI

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt-get update

 sudo apt-get install ap-hotspot

You are using Ubuntu 14.04 so there is a bug in hostapd.You need to downgrade it if you need to work on ap-hotspot

Step:1

sudo apt-get remove hostapd

Step:2

Copy and paste the command below into terminal that matches your OS type – check out via System Setting -> Details – and hit run to download, install, and hold the old version of hostapd.

While running the commands below, type in your user password in terminal when prompt.

If you use 64-bit system

 cd /tmp && wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa   /hostapd_1.0-3ubuntu2.1_amd64.deb && sudo dpkg -i hostapd*.deb && sudo apt-mark hold hostapd

If you use 32-bit system

cd /tmp && wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb && sudo dpkg -i hostapd*.deb && sudo apt-mark hold hostapd

Step:3

Configure your ap-hotspot if it installed

sudo ap-hotspot configure

Step:4

To start your hotspot

 sudo ap-hotspot start

To stop your hotspot

 sudo ap-hotspot stop


Terminator does not start after updating

make sure you are pulling off the new & maintained repo:
https://github.com/gnome-terminator/terminator
as i have answered here, snap binary is also broken currently, but this worked for me on 20.04.2 LTS:
sudo add-apt-repository ppa:mattrose/terminator
sudo apt update
sudo apt install terminator


$/etc/init.d/httpd start will not work on Ubuntu, Debian/Ubuntu support listed  below commands and CentOS/RHEL support service httpd restart:

How to start Apache 2:

 sudo service apache2 start

How to stop Apache 2:

sudo service apache2 stop

How to restart Apache 2:

sudo service apache2 restart

How to reload Apache 2:

sudo service apache2 reload


What does the ~ symbol mean next to the files that are listed with ls?


Canon Pixma MG8200 Printer Drivers on 18.04

use the Canon drivers; so go here https://www.canon-europe.com/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg8240.aspx?type=drivers&driverdetailid=tcm:13-866172&os=Linux%20(64-bit)&language=EN and click to download the debian package there; it will come down as cnijfilter-mg8200series-3.60-1-deb.tar.gz. Your printer has lasted well: 7yrs old

open a terminal; copy each line of command below; paste it into the terminal; hit the ENTER key after each paste

cd Downloads

tar -zxvf cnijfilter-mg8200series-3.60-1-deb.tar.gz

cd cnijfilter-mg8200series-3.60-1-deb

sudo ./install.sh

the last command is the install script; watch as it runs as it will ask you questions; we hope all goes well


Currently ironhide is no longer maintained.
You should install Bumblebee instead using the bumblebee/stable ppa.

But to answer your question:
"Disabling" the nvidia card in this way does nothing. By default the nvidia card is not used, only when using optirun <command>. The nvidia card cannot be disabled any more then to deprive it of it's drivers and run on intel only.

However there is a possible workaround I read, which is to reverse engineer the windows drivers to find the ACPI calls needed, then create a script for it yourself. Not recommended unless you are an expert on this.


Ubuntu Restore window size after Unmaximize

You can use the keyboard shortcut to maximize the window via Ctrl + Super + ↑ Then to bring the window to the same size use the unmaximize shortcut Ctrl + Super + ↓

  Note: If you maximized the window via double-click and want to unmaximize(while double-clicking) it will not be the same as it was before.


How to check empty space in a folder using commandline?

Folders are as big as the total size of their contents; they do not have any free space.

The df command shows empty disk space.


have you tried removing driver ?

      sudo apt-get remove bcmwl-kernel-source