In settings -> color you should be able to change the color settings of your monitor.
Can not find what you need?


Is virtualization in Windows less battery intensive than Wubi? Than a disk install?

This is not universally true. Some manufacturers/brands of laptops, such as Lenovo Thinkpads, give about equal battery life in Windows or Ubuntu (from personal experience).

The two big culprits for why Ubuntu/Linux has somewhat poorer battery life than Windows are (a) Nvidia/AMD hybrid/switchable graphics and (b) auxiliary power management (ACPI) such as fans, screen backlight, etc.-
Most laptop manufacturers will choose to use the cheapest components possible. Since the laptop is bundled with Windows, and the overwhelming majority of its user base will use Windows, the manufacturer often does not bother to check whether these components have adequate Linux support or not. As long as the components come with Windows drivers, that's all that matters.
For graphics, the Nvidia/AMD refuse to enable the switching capability in their Linux drivers. Consequently, unless you take the extra steps of installing a third-party solution like Bumblebee or vgaswitcheroo -- which may or may not work and aren't automatic -- your discrete graphics are running all the time in Linux/Ubuntu and sucking up power, even if you are doing no "3D gaming" or other heavy stuff.
Similarly, the stock Linux drivers for things like fan control, screen brightness/dimming, etc. are often inadequately configured and you will have things like the fan running 100% full time, screen not auto-dimming, etc. which also use up power.

Note that everything which applies to a regular/dual-boot install also applies to Wubi. Wubi is only slightly slower/more CPU intensive than a regular install because it stores its filesystem on the Windows partition (NTFS), and therefore I/O has slightly more overhead associated with it.

While a virtual machine may at best be only 90-95% as efficient as a real machine, if your laptop has problems like the above, then yes, virtualization in Windows with the "working" drivers/power management will most probably use less battery than running Wubi/Ubuntu.

Sadly, there's no way to tell how compatible your laptop is until you try it -- spending time tweaking it, use it for a while, ask a few AU questions, etc. to see if you can get great battery life (or not). The laptops that do work well with Linux (Thinkpads, etc.) are usually sold as "business/corporate" machines, and have a price premium associated with them. It's fair though, because I suppose this premium partly enables the use of higher-quality/better-supported internal components.


Composing a message in Ubuntu Touch Messaging App

Aha. After giving the phone to our resident text-a-holic and asking her to see if she could send a text message she found the answer.

To create an sms message in the messaging app just swipe from the bottom of the screen to the top.

For posterity, some pictures:

it looks just like a small white box on the bottom of the screen

if you tap on the white box, it'll say "create new"

swiping up: i.imgur.com/F3IX4l4.png

voila!!: i.imgur.com/A3Ewdj1.png


LibreOffice can't use keyboard shortcuts while typing in any language but English?

It is a bug, see here: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1246583

But it has now been fixed in the new LibreOffice beta 4.2 version. It can be downloaded and installed  from the Libreoffice website.

However, I still have the same issue in UBUNTU 13.10 with Apache openoffice 4.0.1.
No fix there yet.


Sometimes, GTK apps (like most Gnome apps) will not show up in the menu or search function for QT based desktops (Kubuntu, Xubuntu, Ubuntustudio etc.) especially if there is a QT based counterpart for the app.
 You can usually make a custom launcher for those apps.

To search for apps manually, use dpkg -l | grep . For example, to search for installed apps that have the word "photo" in the name or description, type the following in an open terminal:

dpkg -l | grep photo

You should see something like this output ("ii" precedes the name of installed packages).

ii  darktable                              0.9.3-2ubuntu1                                      virtual lighttable and darkroom for photographers
ii  libgphoto2-2                           2.4.13-1ubuntu1.2                                   gphoto2 digital camera library
ii  libgphoto2-l10n                        2.4.13-1ubuntu1.2                                   gphoto2 digital camera library - localized messages
ii  libgphoto2-port0                       2.4.13-1ubuntu1.2                                   gphoto2 digital camera port library
ii  rawtherapee                            3.0.0~dfsg1-1build1                                 Free RAW converter and digital photo processing software
ii  shotwell                               0.12.3-0ubuntu0.1                                   digital photo organizer


X11vnc service is running but client can´t find server

Sounds like you didn't configure x11vnc as a system service, so that it's automatically started when the system boots.  I just did the same thing you're trying to do, and it works.  Execute the following and it should resolve your problem.

Step 1: Set a password specific to your username that you'll use to login to x11vnc from a remote system.

x11vnc -storepasswd

Enter a password and store the file to: /home/USERNAME/.vnc/passwd
Note: make sure to replace USERNAME with your actual username.

Step 2: Configure the 'x11vnc.service' file so that vnc will be automatically started when the system boots up.  You can use any text editor, but you'll need sudo access to edit the file.  I'm using nano in the example here.

sudo nano /lib/systemd/system/x11vnc.service

Copy and paste the following lines into nano.

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

Exit and save the file by pressing 'Ctrl-X', then type 'Y' and press 'Enter'.  Again, make sure you replace USERNAME with your actual username.

Step 3: Reload the services so your computer knows about the x11vnc service that you just configured in step 2 above.  And enable the x11vnc service.

sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service

Step 4: Start the x11vnc service.

sudo systemctl start x11vnc

Step 5: Celebrate!  :-)

Conclusion

Following these steps should startup x11vnc and configure your system so that systemd, the system and service manager, will start x11vnc automatically every time the computer boots up.

References: I derived this answer from Ubuntu's documentation on VNC/Servers.  Specifically, I referenced the sections titled "x11vnc" and "Have x11vnc start automatically via systemd in any environment (Vivid+)"  .The second section I reference pertains to Ubuntu Vivid Vervet 15.04.  If you're running a different version of a Debian linux distro, you'll need to reference the correct section from Ubuntu's VNC/Server page.


Chances are that this board is equipped with Nuvoton NCT6791D chip (or similar). I couldn't find that information via Google, and chances are high it is not available anywhere unless someone has physically looked at the board and checked if the chip is there. The manual might, but usually doesn't, contain this information.

Another thing is that many motherboard manufacturers (ASUS being one of them) make an ACPI implementation that conflicts with reading the chips manually (i.e. by software). This can be worked around by kernel parameters, but this can (according to documentation) be dangerous - as in: cause HW malfunction  and / or crashes resulting in data loss. Even HW damage can not be ruled out! Seems that the most accurate information about this is in the lm-sensors FAQ, which is not online at the moment, and in Kernel development bugzilla. Here is a link to the former in WayBack Machine.

DISCLAIMER: The discussion is so technical that I do not understand it nor the potential risks involved in using the parameter below. The problem is, as far as I understand it, that some obscure bugs / situations might arise since two separate pieces of code are using the same registers, which might lead into, among other things, CPU voltages set to unsafe levels.

If you want to try it despite the above warnings, you may want to add in Kernel parameters:

 "acpi_enforce_resources=lax"

And then either:

load nct6775 module (more safe, possibly)
re-run sensors detect (not that safe).

In case 1. we are guessing your motherboard has a chip supported by the module. If it is not, there is really no other option than 2., save for giving up on reading sensor data.

TL;DR: Read the above explanation, links and bug reports - and try this at your own risk!.


How to Install Lexmark x6650 Driver  (.sh.tar) file  in Ubuntu 11.10

It is enclosed script (.sh.tar) File , so extract it , by Right-click and Extract option ,

Then simply double click  the lexmark-08z-series-driver-1.0-1.i386.deb.sh file ,which will provide Options window where you should

click the "Run in Terminal" button or run the script file via command-line.

Further Follow the Instructions if any , asked by installer.

They have provided the Official instructions here. But it doesn't mentions Ubuntu 11.10 , which is currently your System, i guess it is Compiling so it will do.


I do think you need to add your key to MAAS, and, frustratingly, juju destroy-machine and redeploy.

  i had seen in many posts not to add ssh keys in MAAS web panel

Btw, where did you read that? If you remember it would be good to know, so that I can add a comment or something. If I'm right.


Run a Script when Power Button is Pushed

How about just placing your script in run level 6 as mentioned and detailed here:

How to run a command before the machine automatically shutdowns?


How to install Tomcat 7.0.42 on Ubuntu 12.04.3 LTS?

Yes, it is possible to install Tomcat 7.0.42, but you'll have to do it "manually".Here are steps on how to do so:

  Note: visit this question if you want to know why it's not in the repositories: Why don't the Ubuntu repositories have the latest versions of software?

  Prerequisite: you need to have Java installed, and we need its
  path. Java is usually installed under /usr/lib/jvm. Once you have
  installed Java, you can run the command update-alternatives --config
  java to show you the exact path; look at the first entry (the one
  with a * next to it. You can hit Enter to exit this
  screen). We only need the directory after /jvm/. On my machine, the
  directory was /usr/lib/jvm/java-7-openjdk-i386/. This answer will
  assume that this is the Java directory, but you should change the
  commands accordingly.

wget http://mirror.atlanticmetro.net/apache/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz

This will download Tomcat 7.0.42 to your current directory.

tar xzvf apache-tomcat-7.0.42.tar.gz

This will extract the files.

sudo mv apache-tomcat-7.0.42 /usr/local

This moves Tomcat to /usr/local. You can choose any path you want. The remaining commands will assume you have used this path.

nano ~/.bashrc - this will open up a text editor. Go to the end of the file (Alt+/) and add the following two lines:

export CATALINA_HOME=/usr/local/apache-tomcat-7.0.42
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/

  Remember: this was the path to my Java. Change it to your installed Java.

. ~/.bashrc

This will apply the changes we made.

sudo $CATALINA_HOME/bin/startup.sh - you should see something like  this:

Using CATALINA_BASE:   /usr/local/apache-tomcat-7.0.42
Using CATALINA_HOME:   /usr/local/apache-tomcat-7.0.42
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.42/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/local/apache-tomcat-7.0.42/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.42/bin/tomcat-juli.jar

And no errors.

You're done. Point your browser to http://localhost:8080 and you should see the Tomcat page:


How to change eclipse console output color?

The Run/Debug>Console menu is correct. But you have to use the "Standard Out/Standard Error text color" buttons. (You can select different colors for standard output and for standard error). Here:

Also see the Eclipse documentation:
http://help.eclipse.org/juno/topic/org.eclipse.jdt.doc.user/reference/preferences/run-debug/ref-console.htm


What is the simplest way to have remote GUI access to Ubuntu 16.04 “server” from Ubuntu 16.04 “desktop”?

ssh -X
In the server you need an ssh server, for example openssh-server and at least some basic X tools, for example xinit and fluxbox (and the programs and libraries that they need). You must also install the application programs that you want to run, I suggest xterm and the graphical application programs that you want to run.
In the client computer you need ssh to log in and sftp to transfer files or some other tool, that can perform the same tasks, for example filezilla.
Then you can log in remotely with graphics,
ssh -X user@ip-address
# for example
ssh -X sudodus@192.168.0.2

and then you can start graphical application programs, for example
xterm
libreoffice file.odt
evince file.pdf
eog file.png
virtualbox

See this link: Service - OpenSSH | Server documentation | Ubuntu
Using ssh directly like this is simple, but maybe not as elegant as RDP or VNC. But you should also consider learning the necessary command line tools, and manage your server that way or via a web interface.


Nautilus crashes after Ubuntu Tweak Package Cleaner

It seems I fixed this problem doing these:

1) I uninstall this nautilus script - http://mundogeek.net/nautilus-scripts/#nautilus-send-gmail

2) I removed a set of nautilus scripts previously installed - this pack

3) I installed nautilus elementary

I don't know which onow everything is back to normal


Patching kernel for graphics tablet, not sure if it'll work

From https://wiki.ubuntu.com/Kernel/MainlineBuilds

  The mainline kernels builds are produced for debugging purposes and therefore come with no support. Use them at your own risk.

The kernels are supplied "as is" with no guarantee that it will work, less so with a patch.

Have you ever compiled a kernel before ?

If not, see: http://bodhizazen.com/Tutorials/kernel

You can post back if you get errors or problems, but again support may be limited at best.


Seagate HDDs give lesser read write latency when you use them for the first time.

After a while, when the HDD fills up more then 50%, Seagate will perform its reputed 3.0 speed ie. around 100MBPS write and 150MBPS read speed.


Trying to install Ubuntu on a Acer Aspire One AOD255E

First try and use a live CD to download Ubuntu, they always seem to work better for me. To make a live CD of Ubuntu, simply insert the CD and double click the OS that you should have downloaded to your computer. You can get the OS here, assuming you are running desktop version:

Ubuntu

If CD's are unavailable, you may want to try a tool to make a live USB:

LiveUSB download

Third off, if none of these are working, Try to enter your BIOS settings by either pressing F12, esc, or c at start up. Then change your round robin boot settings to the appropriate device.


How to identify the process locking a file?

There is the infamous lsof:

sudo lsof /var/lib/dpkg/lock
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
aptitude 4974 root    3uW  REG   8,23        0 815673 /var/lib/dpkg/lock

In this case aptitude is using the file. You should use root in case you are not sure which user is locking the file. It's useful for a bunch of things too, sadly it doesn't come installed with Ubuntu, so you have to install it first.

For the rest of mortals, there's the fuser command. This is peculiar since it only returns the PID instead of the name of the process:

➜  ~  sudo fuser /var/lib/dpkg/lock
/var/lib/dpkg/lock:   4974

Here it says that the file and PID, which is 4974, so we must investigate who is:

➜  ~  ps 4974
  PID TTY      STAT   TIME COMMAND
 4974 pts/1    Sl+    0:06 aptitude


error message when opening synaptic source list line 57

Your second line lacks the distribution version (quantal) between the URL and partner.

Edit: In your entire file, each entry must be of the form:

deb|deb-src URL distrib archive [archive […]]

Line 29:

deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse>

should be:

deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

Line 44:

deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse>

should be:

deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse

Line 51 (doesn't matter since it is commented out):

# deb-src http://archive.canonical.com/ubuntu quantal partner>

should be:

deb-src http://archive.canonical.com/ubuntu quantal partner

Line 57 (last one):

deb-src http://archive.canonical.com partner

should be:

deb-src http://archive.canonical.com quantal partner

The rest seems correct. I didn't validate it with aptitude, though.


How can I make the file browser sort in ASCII order?

This is by design: groups of digits are sorted in numeric order.

/etc/default/locale contains the defaults for this. Set LC_COLLATE=C in it. This will sort files alphabetical BUT be sure you know what you are doing: capitals and small letters are -not- next to each other in ASCII. Names starting with a capital will come 1st and then the files starting with a small letter.

ls though will now sort as numbers as 04, 0400, 1, 11, 2, 22, 3, 33.


Snapcraft - how do I use an absolute path to files of a previous part

I was able to resolve this issue by adding the necessary files to the staging area

stage:
  - usr/local/BerkeleyDB.4.8/lib/*
  - usr/local/BerkeleyDB.4.8/include/*

and then pointing to them using the $SNAPCRAFT_STAGE environment variable.

build: |
  ./autogen.sh && ./configure LDFLAGS='-L$SNAPCRAFT_STAGE/usr/local/BerkeleyDB.4.8/lib/' CPPFLAGS='-I$SNAPCRAFT_STAGE/usr/local/BerkeleyDB.4.8/include/'


Grub freezes when logitech unifying receiver plugged in

You might try upgrading the firmware in the Logitech unifying dongles. See https://community.logitech.com/s/question/0D531000055gw8YCAQ/logitech-response-to-unifying-receiver-research-findings for instructions and the firmware.

You might also check the USB settings in your BIOS. They may need to be set to USB 2.0, or legacy.

Lastly, you might have to plug the dongle directly into your computer's USB port, instead of a hub (if you're using one).

Update #1:

new link is https://community.logitech.com/s/question/0D531000058b3B7CAI/logitech-response-to-research-findings


Running /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd fixed it for me.
I had been getting this on Ubuntu 20.04.
The cause was the notification daemon not running. Something tries to connect to it, and takes some time to time out.


From what I read so far, VeraCrypt uses all space that it got allocated when used as a File Container.
As seen in this below:

(source: securityinabox.org)
you should eventually consider using the partition / drive instead of a File Container.


There are two contenders for great playlist work under Linux now that Totem has 'dropped the ball' somewhat:

1. Clementine

Clementine, as you have mentioned is a good, easy to work with media player with great playlist support including the ability to edit, rearrange, export and import quite freely. The dedicated 'Playlist' tab makes it all quite easy:

Clementine has the ability to work with, both import and export, many different playlist types. You are keen on only PLS but it is nice to have some possibilities available. Below a screenshot of the export ability:

I have tested all of these functions under Xenial Xerus and all works perfectly...

2. Audacious

If you want something a little less fully 'featured' you will find that Audacious, while having less features in general, still has excellent playlist support. It has great shuffling, import and export, drag and drop from Nautilus, including reordering with the drag and drop, and a dedicated Playlist Editor tab:

Audacious is my own personal choice as it gets the job done with no fuss and has none of the fluff that many other players have. And from your point of view: great playlist editing support...


Is there a graphical way of installing fonts in 11.10/Gnome 3

Double click on the font, and on the right hand side of the font viewer click on "Install Font".

Alternatively, the manual way is to crate a folder called .fonts in your home directory and save fonts in there.

Also there is this wiki page: https://wiki.ubuntu.com/Fonts


use pthread_create(&tid,...) then you will get a legal pthread_t value to pass.  Or use your own tid:

pthread_kill(pthread_self(),0);


Cron only allows for a minimum of one minute. What you could do is write a shell script with an infinite loop that runs your task, and then sleeps for 5 seconds. That way your task would be run more or less every 5 seconds, depending on how long the task itself takes.

#!/bin/bash

while true; do
  # Do something
  sleep 5;
done

You can create a my-task.sh file with the contents above and run it with sh my-task.sh. Optionally you can configure it with supervisor as a service so that it would start when the system boots, etc.

It really does sound like you're doing something that you probably shouldn't be doing though. This feels wrong.


Suspected hard disk problem on Ubuntu partition - how can I check?

In the last year I had a problem with my notebook: sometimes when I push the power button it starts (I hear the fan) but nothing appears on the screen, I have to hit it on the bottom to make it start..

Thats a hardware problem and it is not related to your hard drive. The soldering of one of your chips (most likely your VGA) on your motherboard is broken. Simply speaking the connection between the chip and the motherboard became bad. When you hit it at the bottom, the connection between the chip and the MOBO is improved a bit and it manages to start.

You need a BGA Rework for your laptop.

But if you think that it is your HDD, then just boot from a Live USB, and use that one for a while. If it still shuts down, you can be sure that the problem is not with the HDD, if it won't shut down, then the HDD is the guilty.


can not run the command from shell script but it's fine when typing directly into terminal

#!/bin/bash
ns script.tcl
sleep 100

What happens if you try running the script with a proper interpreter declaration at the top?  This could possibly load your $PATH, which is how your terminal knows where to find ns.

If that doesn't work, you could try the following:

#!/bin/bash
/usr/bin/ns script.tcl
sleep 100

You should probably point to the path/directory in which your script.tcl is in.  If it's in the same directory as the bash script, then you'd be fine.  But what would happen if your CWD had script.tcl?  It's best to be specific when scripting.  I was able to tell where ns was located by running which ns in my terminal.


subversion password prompt in GUI window instead of terminal

Edit the ~/.subversion/config and uncomment the password-stores line as explained in the comments:

[auth]
### To disable all password stores, use an empty list:
password-stores =

the save it and try again.


Using Intel Wireless Display (WiDi) in Ubuntu

Intel has released "Open Source Software for Intel® Wireless Display TV Adapter Firmware"
Open Source Software for Intel® Wireless Display TV Adapter Firmware
That should get the computer talking to the tv via intel's WiDi.

EDIT: Be aware that this link is for source code released under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991 and compiling will be required.

EDIT2: Prerequisites:

PC running 32-bit Linux (e.g., Ubuntu 9.10)
Linux development tools: gawk, zlib1g-dev, libncurses5-dev, patch, etc.
    To install the tools on Ubuntu: apt-get install gawk zlib1g-dev libncurses5-dev patch


Create connection profiles in NetworkManager to your liking.

For that, use nm-connection-editor, nmtui, or nmcli, whatever suits you best.

See manual pages nmcli-examples, nmcli,  and nm-settings.

Try

$ nmcli

$ nmcli device

$ nmcli connection

to get an overview.

Finally, something to the amount of

$ nmcli connection add type ethernet ifname eth0 ...
$ nmcli connection add type vlan parent eth0 id 1 ...


How to change the name of the mountpoint of a Ubuntu partition

We can assign a label to any partition which will then be mounted to /media/username/<label.

In case we need permanent access to the drive we may want to consider mounting them to a defined mountpoint (i.e. a directory we need to create first). The partition will be automatically mounted when defined by an entry to /etc/fstab

UUID=<uuid>    <mountpoint>    ext4    defaults   0  2

By this we may create symbolic links in our HOME to directories on that extra partition, or we may move our entire HOME to there.

Consider to make a snapshot before experimenting with partitions and mount points to be able to quickly revert in case something goes wrong.


You may find it helpful to check out this thread.

Here's a quick summary as suggested in the comments:

1) install python-nautilus and python-mutagen with sudo apt-get install python-nautilus python-mutagen

2) Set your PYTHONPATH variable by following the instructions here.

3) Create a directory called python-extensions in ~/.nautilus

4) Download this python script and paste it into ~/.nautilus/python-extensions

5) Restart nautilus with $ nautilus -q && nautilus &

I still recommend reading through the thread though, there is a lot of useful information there.


Update: seems to be a bug from 13.10:

  https://bugs.launchpad.net/ubuntu/+source/libpam-ssh/+bug/1247169

Anyway running the following commands the problem was fixed for me:

How to fix

I fixed this by entering the following commands:

$ ssh-agent bash

This creates a new bash process that allows you to add private keys. When adding a new private key you will be prompted for the passphrase once and only once.

And then:

$ ssh-add /home/username/.ssh/id_rsa
Enter passphrase for /home/username/.ssh/id_rsa:
Identity added: /home/username/.ssh/id_rsa (/home/username/.ssh/id_rsa)

...where username is your username. You can do the same using $USER variable:

$ ssh-add /home/$USER/.ssh/id_rsa

Alternatively, just use ~ for your home directory.

$ ssh-add ~/.ssh/id_rsa

And the problem was fixed.


can shell themes be used with gnome fallback mode?

A desktop theme is broken into several components: window decorations, cursor theme, icon theme, GTK theme and the shell theme.

A shell theme doesn't do anything in a "Classic" environment as Gnome Shell isn't running, but you can still use the same window decoration and GTK theme settings.

I suggest you install gnome-tweak-tool and have a play around with the theme settings.


Microphone on Ubuntu 18.04.5 LTS stopped working

I solved it. I do not know exactly what solved it but some of it worked and this it what I did:
First I installed the synaptic package manager, which was present as a default in earlier ubuntu versions.
Then I looked up "microphone" in the synaptic search box.
I realized that there were some microphone apps and marked them for installation, I don't remember quite well, but they might be: jnoisemeter, apulse, gnome-alsamixer.
Ubuntu needed to install 3 missing packages.
Then I managed to record something with Cheese Webcam Booth, but at a very very low volume.
After that I tried with Zoom and the microphone was taking in sound ok!!!! It works.
To be sure that volume output I checked with a youtube recording.
Now I am trying to use record my desktop.


Compiz and gnome-shell do not go hand-in-hands together... Third heading in the link provides more insight about it: https://live.gnome.org/GNOME3Myths

Also the mailing list post about compiz and gnome-shell might be of interest for you:
http://www.mail-archive.com/desktop-devel-list@gnome.org/msg15602.html

So as far as I know, you can't get effects equivalent to those provided by compiz in gnome-shell... You might try to look for the gnome-shell extensions with similar functionality.


Can I do a full-install of Ubuntu 12.04 on a USB stick FROM the USB stick itself?

If I'm interpreting right this is iwhat you want to do:
(1) use a USB drive (we'll call it USBDRIVEA) with the LiveCD ISO on it to...
(2) Use USBDRIVEA to install Ubuntu to USBDRIVEA.

Unfortunately, i don't think you can from there, you'd need another USB drive to hold the image so you can free up USBDRIVEA from being mounted (which is what happens when you're on the live environment).  Typically you'd have to introduce another medium (for example, another USB drive, USBDRIVEB) to either receive the installation, or to have the LiveCD environment that's running so you can install to the other drive.


How to install Ubuntu on a computer with a Nvidia Geforce GTX 550 TI?

I figured it out. When the installation pops up, I clicked F6, then ESC. In the text that appeared on the screen, I changed quiet to noquiet, splash to nosplash, and added nomodeset right after nosplash.

The install finally opened. When installed I checked "install updates during install" and "install third party software" (or something like that) after connected to my wireless network, and when the setup finished and I rebooted my computer, everything was working just fine, with NVidia drivers installed and Unity 3D working.

For Alternate install:
After base packages are installed (before grub install), open a prompt (ALT+F2) and "chroot /target", then "apt-get install nvidia-current", "CTRL+D" to exit chroot, "ALT+F1" to resume install. Complete the installation and you should be good to go.


Found the answer here - http://urukrama.wordpress.com/2011/11/01/reverting-to-the-old-alt-tab-dialog-in-openbox-3-5/

You need to edit ~/.config/openbox/lxde-rc.xml (or ~/.config/openbox/lubuntu-rc.xml if you're on Lubuntu), and add <dialog>icons</dialog> to the Alt+Tab and Alt+Shift+Tab key-bindings, so they look like this:

<!-- Keybindings for window switching -->
<keybind key="A-Tab">
  <action name="NextWindow">
    <dialog>icons</dialog>
  </action>
</keybind>
<keybind key="A-S-Tab">
  <action name="PreviousWindow">
    <dialog>icons</dialog>
  </action>
</keybind>


take a look in the BIOS, Look for an option named “Intel Virtualization Technology,” “Intel VT-x,” “Virtualization Extensions,” “Vanderpool,” or something similar. Enable the option and select “Save and Exit” or the equivalent feature to save your settings changes and reboot your computer.


Troubleshooting poor performance with ATI HD 5800 GPU

I solved the problem. I dismantled all of my computers, installing GPU oriented components on what is now a Windows machine, and all networking components onto linux server, and workstation. Now I have driver support when I need it, and clean Linux for everything else.


Failed to load modules at startup: Could not find module by name 'off'

Solved by commenting out (using the '#' character) both lines with nouveau in them in the /etc/modules file.


Since 11.10 I have seen no need to have medibuntu since basically all formats are in the package "Ubuntu Restricted Extras". At least in the common videos and music formats. In your case, the mp3 format.

What I would do is remove the medibuntu ppa. Then go to Software Center and look for restricted

You should see a package called "Ubuntu Restricted Extras". Install this package (Or Reinstall it if you did already) and after it is installed you should have support for mp3 files. You will be able to listen to them.

For me it is working here and on 3 other PCs.

The only thing needed is the Restricted Extras package.

I would also like to point out, just in case somebody asks why remove the medibuntu ppa. I had a problem similar to the MP3 mentioned here. The problem was a somewhat confusion between the Restricted Extras and the Medibuntu packages. Somehow there was a format war between them. It was solved by removing medibuntu and just using what Ubuntu has. In this case the restricted one.


Trying to compile binaries with static flag?

remove the dash front of static and type dash '-' again. I think the ASCI code differs.


Ubuntu 15.04 flashes log-in screen then black

I too built a desktop, and used the 750Ti. I had the exact problem that the OP has, and I can personally testify that the below worked for me.
I don't have a ton of time, so I'll have to summarize. When in doubt, Google is your friend.

Go to NVIDIA's website from another PC and download the appropriate driver to a USB drive.
Plug this USB drive into your desktop and boot. At the login screen, enter runlevel 2 by pressing CTRL+ALT+2
Now you will be in a terminal (fun times!). Login using your account.
Kill lightdm.
Mount your USB drive and un-tar the driver.
Run the driver installer. If there are no errors during installation, then reboot. The login loop should now be gone.

This makes it sound simple, but unfortunately, it is actually pretty difficult. It took me four tries to get it right.

Let me know how this works for you!


Running cheese on your terminal will bring up your webcam if you have cheese installed.

To find out if you have cheese installed, type the following in your terminal:

which cheese

If cheese is installed, you should see the path to your cheese installation- something like /usr/bin/cheese.

But if you don't have cheese installed, simply install it by doing:

sudo apt-get update

sudo apt-get install cheese

Now that you have cheese installed, enter the cheese command on your terminal to bring up your webcam:

cheese

Enjoy!


Having trouble installing virtualbox-6.1 on ubuntu bionic

Try using

apt install -f

(-f to fix the installation)


14.04 Headphones do not appear as an output device

open terminam  , type  alsamixer , then navigate to HP/speakers ,press M on Keyboard (Un Muting) ,

Now remove audio jack and insert again, It should work as expected,

Its bug : https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1267675

By default CA0132 has the HP/Speaker and HP/Speaker Auto Detect muted. Unmuting them by going into alsamixer and pressing M on their controls unmutes them and sound works.'

Good Luck


What is this editor that gets opened by crontab?

That's ed

By default its prompt is the empty string. If you want to quit, just enter q. Don't prefix with :. If you have unsaved changes, it will reply with ?. You can interpret that as "are you sure?", and confirm by commanding q again. By the way any command it doesn't understand will also cause it to reply ?. That's the only error message it knows.

Its commands are what vim/vi/ex/sed is based on, so commands like g/re/p, %s/vi/&m/g, 1,3d, /pattern/,$d, w, q, wq work just like vim.

Commands like i, a, and c go into insert mode. To leave insert mode and go back to command mode, just enter a line that has only a .. To "move" to another line, just enter the line number, an offset from the current line like +2 or -1, or a regex as a command to go to that line. . means current line in command mode. You can use it to know where you're at. $ means last line.

By the way, if you want to learn more about it, this being a GNU program in linux, most of its documentation is in info ed instead of man ed.

Here is an example session, with comments added (not accepted by ed):

$ ed
i                    # insert (on current line)
vi
.                    # end insert
%s/vi/&m/g           # substitute vi for vim globally in all lines
i                    # insert (on current line)
first line
.                    # end insert
$a                   # append on last line
last line
.                    # end insert
%p                   # print all lines
first line
vim
last line
2                    # move to line 2 and print it
vim
/line                # move forward to line matching /line/ and print it
last line
-1                   # move 1 line backwards and print it
vim
?line                # move backward to line matching /line/ and print it
first line
+1                   # move 1 line forward and print it
vim
g/line/p             # print lines matching /line/ (grep)
first line
last line
p                    # print (current line)
last line
.                    # move to current line and print it
last line
c                    # change (current line)
final line
.                    # end insert
%p                   # print all lines
first line
vim
final line
/vim/,$c             # change from line matching /vim/ to last line
that's all
.                    # end insert
%p                   # print all lines
first line
that's all
wq                   # write and quit
?                    # write what?
h                    # help with last error message
No current filename
wq                   # write and quit to check error message
?
H                    # help with all error messages
No current filename
wq                   # write and quit to check error message
?
No current filename
wq file.txt          # write file.txt and quit
22                   # wrote 22 bytes

EDIT: Like grawity mentions, more helpful error messages can be activated with h or H. Also, , rather than % in the range part of a command is the official way to refer to "all lines" in ed. In GNU ed, the possibility to use % for this is supported but not mentioned in the info manual. Use of % for all lines was apparently invented by ex, seemingly because, there, , means .,. rather than 1,$ like in ed.

EDIT2: Setting a different editor

Like other answers mentioned, if you want to specify a different editor, you can do so by setting the EDITOR or VISUAL environment variables. The difference between the two is explained in this answer.

You can do so like this if you want to set it for a single command:

EDITOR=vi crontab -e

or like this if you want all programs launched in the shell session to use it:

export EDITOR=vi
crontab -e

You can save the export in ~/.profile or /etc/profile, depending if you want it to be a user or system setting for bash, respectively. That's the unix portable way to set the editor; you can do this in any distribution.

In Ubuntu, there is also the update-alternatives command. The current default editor can be seen with update-alternatives --display editor, and you can use update-alternatives --config editor to set it:

$ sudo update-alternatives --config editor
There are 4 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /bin/nano            40        auto mode
  1            /bin/ed             -100       manual mode
  2            /bin/nano            40        manual mode
  3            /usr/bin/vim.basic   30        manual mode
  4            /usr/bin/vim.tiny    10        manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in manual mode.


Nvidia Persistence Daemon/Login Loop 18.04

If the problem is only with the persistence daemon, this may fix it (at least it did the job for me).

If you do not need nvidia persistence mode, you can also simply disable both cases in the udev rules that are mentioned in the answer and stop right there. This way, it will not start the persistence daemon, thus not cause any problems for you.

To determine whether you need the nvidia persistence daemon, you might want to read this. (TL;DR: it increases the GPU performance)


How do i find the recently used files through terminal?

It works on Ubuntu systems which has nautilus as a default file-manager.

Run the below command on terminal to see the recently accessed(aka viewed) files.

sed -nr 's/.*href="([^"]*)".*/\1/p' ~/.local/share/recently-used.xbel

Information about all the recently accessed files are stored in this particular ~/.local/share/recently-used.xbel file. Extracting only the file along with it's path was done by the above command.

Command Explanation:

sed -nr 's/.*href="([^"]*)".*/\1/p' ~/.local/share/recently-used.xbel

-n   --> suppress automatic printing of pattern space

-r   --> Extended regex. If we use sed with -r, then we don't have to escape some characters like ((,),{,},etc)

's/.*href="([^"]*)".*/\1/p' --> sed searches for a line which has this(.*href="([^"]*)".*) regex in the input file. If it find any, then it grabs only the characters that are within double quotes which was after href=(href="") and stored it in a group. Only the stored group are printed through back-reference(\1).

Example:

$ sed -nr 's/.*href="([^"]*)".*/\1/p' ~/.local/share/recently-used.xbel
file:///media/truecrypt8/bar.txt
file:///media/truecrypt8/picture.txt
file:///media/truecrypt8/bob.txt
file:///media/truecrypt8/movie.txt
file:///media/truecrypt8/music.txt
file:///media/truecrypt8/foo.txt

If you want the output to be formatted then run this,

$ sed -nr 's/.*href="([^"]*)".*/\1/p' ~/.local/share/recently-used.xbel | sed 's|\/\/| |g'
file: /media/truecrypt8/bar.txt
file: /media/truecrypt8/picture.txt
file: /media/truecrypt8/bob.txt
file: /media/truecrypt8/movie.txt
file: /media/truecrypt8/music.txt
file: /media/truecrypt8/foo.txt


Android phone very slow to connect to Ubuntu 18.04 using USB

I have been having a similar problem: I can connect to the phone, but when I navigate to the DCIM folder, and try to open 'Camera', that's when it hangs for a couple of minutes.

It turns out that for me, the problem was caused by (a bug in Ubuntu triggered by) a filename which contained parentheses.  (Probably an opening parenthesis only.)

So, the solution is to use the file manager on the phone, or the ubuntu file manager after waiting for however long it takes to connect, find the filename with the parentheses, and rename it to something without parentheses.

If some software relies on the filename containing parentheses, too bad for that software.

Source: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1792085


Bash script to Run a command to X files at a time

Your script is not running all your files at once but one by one. And you are running the command recon-all in background wihtout waiting to its response, so in next run it picks the next file to run and still in background.

Use find with xargs and it will run for next file after the previous finished one by one.

find -type f -name '*.nil' -print0 |xargs -n1 -0 sh -c 'recon-all -i "$1" -s "$1DIR" -all > "$1_log3.txt"' sh

to run in 10 batches, do

find -type f -name '*.nil' -print0 |xargs -n10 -0 sh -c '
     recon-all -i "$1" -i "$2" -i "$3" -i "$4" -i "$5" -i "$6" -i "$7" -i "$8" -i "$9" -i "$10" -s "$1DIR" -all > "$1_log3.txt"' sh

note that the -subject is taking from first filename above.


This package exists in xenial repositories, so make sure your /etc/apt/sources.list file contains the next entries uncommented:

deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse

Then do sudo apt update and try again


groups shows you your groups and not all. You could list all groups for example like that:

getent group

If you added yourself to the group, you'll need to logout and login for the change to take effect.


md5deep create checksum for directory with relative paths

Try the -l option. From man md5deep:

-l     Enables relative file paths. Instead of  printing  the  absolute
       path for each file, displays the relative file path as indicated
       on the command line. This flag may not be  used  in  conjunction
       with the -b flag.

So do:

cd /home/user/
md5deep -lrs Documents > checksum.md5

For example,

$ md5deep -lrs Downloads | head -1
699cd26d7fe0bada29eb1b2cd7b50e4b  Downloads/Sublime Text 2.0.2 x64.tar.bz2


sudo apt-get install libnss3-1d

This will probably solve your problem.


Scroll (left/right) with Magic Mouse (apple)

If you're familiar with using the terminal, there's a relatively simple way to deactivate buttons using xinput (it works for disabling clicking the middle button as well). If xinput isn't installed on your computer, just open a terminal and use sudo apt-get install xinput.

Here are the steps to permanently disable the left and right scroll:

In any directory, use the xinput command. This should bring up a list of connected devices--here's an example of mine:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MSFT0001:02 04F3:304B Mouse               id=11   [slave  pointer  (2)]
⎜   ↳ MSFT0001:02 04F3:304B Touchpad            id=12   [slave  pointer  (2)]
⎜   ↳ Logitech M705                             id=9    [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=10   [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=13   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ Google Pixel USB-C earbuds                id=15   [slave  keyboard (3)]

Now, for my computer it listed a generic Mouse MSFT0001:02 04F3:304B Mouse in addition to the mouse I had actually plugged in (the Logitech M705). If you're unsure which mouse is yours, try unplugging it, running the command in the terminal again, and looking for the missing device.

Take the ID of your mouse (my Logitech mouse has id=9) and use the following command to get more information on the types of inputs recognized by the computer:
xinput list <mouse-id-here>

This should print up something similar to the following:

Logitech M705                               id=9    [slave  pointer  (2)]
    Reporting 7 classes:
        Class originated from: 9. Type: XIButtonClass
        Buttons supported: 20
        Button labels: "Button Left" "Button Middle" "Button Right"
            "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left"
            "Button Horiz Wheel Right" "Button Side" "Button Extra" "Button Forward"
            "Button Back" None None None None None None None None None
        Button state:
        Class originated from: 9. Type: XIValuatorClass
        Detail for Valuator 0:
          Label: Rel X
          Range: -1.000000 - -1.000000
          Resolution: 0 units/m
          Mode: relative
        Class originated from: 9. Type: XIValuatorClass
        ... (more here)

The important part for you to notice here are the button labels listed. Look through the labels and find "Button Horiz Wheel Left" and "Button Horiz Wheel Right". Figure out their position (mine are 6th and 7th in the list).

Now that you have those two positions, use the following command:

xinput get-button-map <mouse-id-here>

This should show you a list of numbers, like 1 through 20 for me:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Copy that list (if you're in a terminal you can do this with ctrl-shift-C, or command-shift-C for mac). Now use xinput set-button-map <mouse-id-here> <list-of-numbers>, pasting in the numbers and replacing the two that represent left scrolling and right scrolling with zeroes. So, for me it looks like:

xinput set-button-map <mouse-id-here> 1 2 3 4 5 0 0 8 9 10 11 12 13 14 15 16 17 18 19 20

This should make it so that your mouse no longer scrolls left and right.

If you don't want to have to do this every time you start up your computer, just open Startup Application Preferences (it should show up if you search for it in Ubuntu), click 'Add' and paste the full set-button-map command  in the command field. Now it should automatically run this command whenever your computer starts up. No guarantees that it will work if you disconnect and reconnect your mouse, though--you might have to restart your computer with the mouse plugged in for the change to take effect.

Hope this helps!

EDIT: I learned today that the device ID's can be subject to change between boots. This makes things a bit more difficult, but not unbearable.

Basically you'll need to use this command to pull out the ID number from xinput:

xinput | grep <device-name> | awk -F'[= \t]+' '{print $7}'

Note that that '7' might be a different number for you--just iterate through trying different numbers until it returns you the ID of your mouse. Then, enter the following command into the startup file:

xinput set-button-map "$(xinput | grep <device-name> | awk -F'[= \t]+' '{print $7}')" 1 2 3 4 5 0 0 8 9 10 11 12 13 14 15 16 17 18 19 20

Once again, make sure the '7' is replaced by the number that works for you. I understand this answer has thoroughly spiraled out of relative ease and downward into grep/regex/awk oblivion, but hey, it worked for me :).

Good luck!


Dropbox add to Computer Menu in Nautilus

Navigate to your dropbox folder, click the Bookmarks menu item and select Add bookmark:

Or you can simply press CTRL+D.


DigiKam update not showing thumbnails after upgrade

Solved problem by purging digikam and re-installing 7.1.0. Works.


ping -i2 8.8.8.8 | awk -W interactive -F'[ =]' '{print $10"\n#"}' > output.text


Stumbling on a YouTube video (https://www.youtube.com/watch?v=4_z_Cje_zls) with a brief note I found one solution to be to install the pulseaudio plugin for jack. This is mentioned on: http://ubuntuforums.org/showthread.php?t=1768036

sudo apt-get install pulseaudio-module-jack

and with this text

pacmd load-module module-jack-source channels=2; pacmd load-module module-jack-sink channels=2;

in qjackctl > Setup > Options > Execute script after Startup

After this setup and with jack running "Sound settings" should show a "Jack source (PulseAudio JACK Source)" in Input and a "Jack sink (PulseAudio JACK Sink) in Output that can be selected. Cheese will now be able to record video and sound while jack is running.


Zenity is lean tool for creating very simple GUI-Applications from the commandline.

Use zenity --help to see the options:

zenity --help
Usage:
  zenity [OPTION...]

Help Options:
  -h, --help                                     Show help options
  --help-all                                     Show all help options
  --help-general                                 Show general options
  --help-calendar                                Show calendar options
  --help-entry                                   Show text entry options
  --help-error                                   Show error options

... and so on.

For example, if you issue the command:

zenity --info  --text "Just a Demo"

displays a small dialog with a light bulb, an OK-Button, and the text "Just a Demo", try it yourself.

The usual way to do more useful things is, to capture the message, produced by zenity:

msg=$(zenity ...)

To your second question, why it failed: From the short message you reported, it can't be answered.


Or else, you can also use Ubuntu Tweak 0.7.1to do the same. Simply download and install it by running these one by one from a terminal:

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

Then start Ubuntu tweak, go to Tweaks menu, select Desktop Icons, and change Show Desktop Icons to On. Basically it does the same thing as what

gsettings set org.gnome.desktop.background show-desktop-icons true

does, but Ubuntu Tweak can also come in handy if you need some system-tweaking quickly, without using complicated codes.

Thanks.


Close but not quite. It should be:

import XMonad
import XMonad.Config.Gnome

main = xmonad gnomeConfig
    { modMask = mod4Mask }


How to write a shell script to start gedit and not showing the terminal window?

save this as run_gedit.sh

#!/bin/bash
gedit &

then run chmod 755 run_gedit.sh and you should be able to start it by clicking on the file.


What is the skimlinks scope and how does it work

Skimlinks is an affiliate links service that shows search results with buyable stuff in the dash. Skimlinks is one of the Remote Scopes which get downloaded from a Canonical server (along with Wikipedia and others). To see a list of all remote scopes, check out this file:

https://productsearch.ubuntu.com/smartscopes/v1/remote-scopes

As far as I can see these scopes can currently only be deactivated all together (switch in privacy options) or one by one:

Open the dashs application lens with Super+A. If you don't see the white icons of the dash plugins, select the filter to show them. Now click on Skimlinks and then Deactivate.


Enable permanent vertical and horizontal scroll bars

You can change scrollbar-mode with help of gsettings:

By default scrollbar is overlay-auto (to get current setting type following command):

gsettings get com.canonical.desktop.interface scrollbar-mode

You can set normal mode of scrollbar as follows:

gsettings set com.canonical.desktop.interface scrollbar-mode normal

Images from Unixmen.


How should I install TeX-Live 2010 on top of the existing installation?

Do you know how to do that using update-alternatives?
If you do please post the steps.
Thanks.

I did another approach

Edit the /etc/enviroment file as root and add the path directly,
like:
sudo gedit /etc/enviroment
then add the path, it should look something like this (if you distribution is 32 bit)

PATH="/usr/local/texlive/2010/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
logout or reboot
next puge kile out of you system
sudo apt-get purge kile kbibtex then
add this PPA   https://launchpad.net/~koshi/+archive/ppa
update and reinstall kile

P.S. Just one note, when you do a sudo tlmgr update --all it wont work. You just have to do a sudo su then  tlmgr update --all


How to make Downloads folder behave like a temp directory

Instead of changing how the directory works, you could have a little clean-up script. It's easier to implement and probably less dangerous in the long run.

The following will delete anything over 7 days old in your ~/Download/ directory:

find ~/Download/ -mtime +7 -delete

You might want to test that by just removing the -delete segment and checking the files it returns. But once you're happy with it, you can schedule it to run once a day by running crontab -e and adding this on a new line:

@daily find ~/Download/ -mtime +7 -delete

ControlX then Y to save and exit and you're done.


From the 'bash' man page:

  command [-pVv] command [arg ...]
          Run  command  with  args  suppressing  the normal shell function
          lookup. Only builtin commands or commands found in the PATH  are
          executed.   If the -p option is given, the search for command is
          performed using a default value for PATH that is  guaranteed  to
          find  all  of  the  standard  utilities.  If either the -V or -v
          option is supplied, a description of command is printed.  The -v
          option  causes  a single word indicating the command or filename
          used to invoke command to be displayed; the -V option produces a
          more  verbose  description.  If the -V or -v option is supplied,
          the exit status is 0 if command was found, and  1  if  not.   If
          neither option is supplied and an error occurred or command can‐
          not be found, the exit status is 127.  Otherwise, the exit  sta‐
          tus of the command builtin is the exit status of command.


Lost boot when installing Ubuntu 16.04 side by side with WIndows 10

Reinstalling Ubuntu 16.04 in UEFI mode, after installing Grub2 seems to have solved all the issues.  What got me into trouble was a post to put the boot sequence in non-secure legacy mode and the installation instructions to turn on legacy mode for third party software,  If you are installing side-by-side with Windows10, don't select that option.   I did learn that you must, at least for the Inspiron 5000 have that finger on F12 immediately.  What really through me off, was I was able to configure all the partitions, including the boot partition manually and get the Linux boot to work.  After the first Windows update, Ubuntu lost all windows capability but you could get to the command line by ctl-alt-F1.  Hopefully now Ubuntu is bullet proofed against Windows updates.  Fortunately critical work was saved at the command line on github prior to the re-install.


I have solved it myself with some help from Tyler's Tech, here's the list of kernel modules to disable for keyboard and trackpad functionality with a replacement touchscreen:

/etc/modprobe.d/blacklist-ish.conf

blacklist hid_sensor_rotation
blacklist hid_sensor_incl_3d
blacklist hid_sensor_magn_3d
blacklist hid_sensor_gyro_3d
blacklist hid_sensor_accel_3d
blacklist hid_sensor_trigger
blacklist hid_sensor_iio_common
blacklist industrialio_triggered_buffer
blacklist industrialio
blacklist hid_sensor_custom
blacklist hid_sensor_hub
blacklist intel_ishtp_loader
blacklist intel_ishtp_hid
blacklist intel_ish_ipc
blacklist cros_ec_ishtp
blacklist intel_ishtp

Save this file as root and run sudo update-initramfs -u then reboot. Your keyboard and trackpad should work. Note that this is for my HP Pavilion x360, your millage may vary. You can use lsmod to find out more modules to disable for your laptop.


Ideapad 300 suspend not working on 16.04

It's seems that it is a 4.4.0 kernel bug, installing 4.4.8 solves the problem.
You can either wait for a 4.4.0 kernel fix, or install the 4.4.8 kernel.

I recommand waiting for 4.4.0 fix, but i installed 4.4.8 and i've seen no problem whatsoever.

Execute following commands in order to install 4.4.8 kernel:

On 32-bit

Download

cd /tmp
$ wget \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-headers-4.4.8-040408_4.4.8-040408.201604200335_all.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-headers-4.4.8-040408-generic_4.4.8-040408.201604200335_i386.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-image-4.4.8-040408-generic_4.4.8-040408.201604200335_i386.deb

Install

sudo dpkg -i linux-headers-4.4*.deb linux-image-4.4*.deb

On 64-bit

cd /tmp
wget \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-headers-4.4.8-040408_4.4.8-040408.201604200335_all.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-headers-4.4.8-040408-generic_4.4.8-040408.201604200335_amd64.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-image-4.4.8-040408-generic_4.4.8-040408.201604200335_amd64.deb

Install

sudo dpkg -i linux-headers-4.4*.deb linux-image-4.4*.deb

Source : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1574125


How can I make pressing Super+[number] multiple times cycle through open windows of an application?

Ah, this extension gets very close to the above behavior. The only thing it doesn't do is show the window previews as a popup when holding down Super after pressing a number. I would love to know if there's a solution for that.


How to keep terminal session active after running a .sh script

If you want a active session after the script, don't run it, source it:

$ source ./run.sh
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

$

You can also start a new bash/sh session in your script and add the environment variables there. But that complicates things...


Can't open WD My passport Essential USB 2.0 hard drive

I have similar issues with my device. I found out that it is most commonly caused by underpowered USB ports. Try plugging it in through a powered USB hub


Black screen after installing CUDA 8.0rc from NVIDIA and unable to enter tty

I had a very similar problem where I got a blank screen when booting from an Ubuntu 16.04 Live USB on a GTX 1080, and found my answer in another question: Ubuntu 16.04 + Nvidia Driver = Blank screen

Super-short version: Add nomodeset to the boot options and then reinstall the NVIDIA drivers.

Longer version:

Most likely, CUDA installed NVIDIA drivers that don't work with your GPU.  Assuming you get to the GRUB menu on boot, press e to edit the boot command for Ubuntu, then add nomodeset to the options (it usually has quiet splash by default, so make it nomodeset quiet splash, for example). This should fix the graphics, but if not try adding nouveau.modeset=0 and nvidia.modeset=0 to the options as well.

Once you get into a terminal, you can install the correct drivers:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

And then sudo apt-get install nvidia-367, assuming you want the latest drivers (as of this writing), or apt-cache search nvidia to see what's available. Once the new drivers are installed, you should be able to reboot without the nomodeset option and everything should work.

A note when installing CUDA: If you're ever reinstalling CUDA, I recommend using the the runfile method and answering NO when it prompts to install drivers, as I very much suspect the drivers are what caused the problem.


Cannot boot without USB stick after successful install

It seems that Ubuntu has been installed in the USB instead of in the hard drive. This maybe related to a bug that is described (in Spanish) in the following address:

http://www.ubuntu-es.org/node/168068

If this is the bug that affects you, it seems that can be solved using the following command:

sudo grub-install /dev/sda && sudo update-grub

Just make sure that this is the issue that affects you before using this workaround!


The Problem

Using sudo inside a script often doesn't do what you expect (see Digital Chris' link: “How do I run this sudo command inside a script?”).
Sending sudo to the background will not work (correctly and reliably), if you need to provide a password.

The Solution

Retrieve the process ID inside the process spawned by sudo. If you use exec, you don't even need to use pgrep -P as a crutch. Create a shell script, say pid-badblocks.sh:

#!/bin/sh
echo $$
exec badblocks -o "$2" "$1"

Make it executable and invoke it with:

sudo ./pid-badblocks.sh <DEVICE> <OUTPUT>

This works, because exec replaces the current process with badblocks (in this case) while keeping the same process ID. We can therefore print the process ID of the shell process before invoking badblocks.


In short: Canonical funds it.

Where they get the money from is perhaps a better question. Well they sell services and support and they also have a fairly wealthy founder in the shape of Mark Shuttleworth.

Edit: As others have said, the latest report we have on finances is from 2008 when the company wasn't near breaking even but as I've just detailed in a comment, for things you believe in, breaking even isn't everything... Especially when you can afford for it to make a loss.

Of course the aim is for the project to become self-sufficient but at the moment the only return on investment comes through the channels I've already talked about. OEM services, B2B support, consumer level paid support. You have to respect that once Ubuntu hits critical mass gets real demand, the demand for professional services and complimentary products also increases.

If you want detailed financial information, I suggest you call Canonical. They'll either give you the numbers or tell you to stop being so nosey... But they're the only people that can tell you for certain.

Edit 2 (Re: "can't have it both ways"): - Utter nonsense! Of course you be benevolent and keep a vested interest in something. His belief and benevolence toward Ubuntu is there to help it fix Bug #1 which helps his commercial interests in Canonical.

There's no contract in kindness that stops you making money from it immediately or down the line.


What's the scope of `ufw` and its implicit Deny rule with regards to my network?

Based on your comments, I think you've failed to understand what ufw is, and what the scope of coverage is for software firewalls on individual systems.

This is a breakdown of the situation, and provides insight into the specifics of ufw and the rules on a network:

ufw will only affect one system - the system it's enabled on.  That is to say, Ubuntu System #1 (for sake of keeping track) has ufw enabled with an implicit deny rule.  That only affects Ubuntu System #1, and replaces the default "ACCEPT" rule that exists on the underlying iptables/netfilter system (of which ufw is just a 'easy to manage' front end for).
Since Ubuntu System #2 does not have ufw enabled on it, there is no "deny" rule on it.  Since ufw isn't there, the underlying iptables/netfilter system gets the default "ACCEPT" rule that is put in place on install (ufw changes those rules, and is just an 'easy to manage' front end for those).
Windows Firewall on Windows XP (if enabled) will be able to deny connections to the Windows machine.  It cannot affect other systems on the network

If you want Ubuntu System #2 to have the deny rule, install ufw on that system, enable it, and then the implicit deny rule will exist.

What you want, though,  is a network-wide access control rule, controlling what traffic is permitted between systems.  The only way to achieve this is to move the firewall and network controls to its own device, a separate Ubuntu box handling routing of traffic between all systems on your network, or a hardware Firewall to achieve this (such as a Cisco ASA, or a pfSense appliance).

Consider the following network:

I have a LAN network, and there's a router handling connections out from LAN to Internet (or other networks).  Every computer has 192.168.252.XXX, with static addressing.  Five computers are on that segment of the network.  I want to restrict communication between the machines to be ICMP PING packets only, and apply that restriction to all machines.

My options for implementation are as follows:

Install software firewalls on each machine, and configure the software firewalls to accept only certain types of traffic from the other machines on the network to each computer.  However, allow all traffic between each system and the gateway/router.
Install a hardware firewall that suits your network setups to replace the router, and provide explicit rule definition for permitted intra-network traffic (internal to the specific LAN) and inter-network traffic (communication between networks, so outside your LAN).  Configure as follows

Configure the hardware firewall to allow outbound to the Internet (a rule basically saying Anything Internal -> Anything Not Internal (NOT 192.168.252.0/24) is ALLOWED).
Configure the hardware firewall for the LAN itself for ALLOWED inter-system traffic, in this case ICMP only (a rule basically saying anything from 192.168.252.0/24 to 192.168.252.0/24 where the protocol is ICMP).
Any traffic patterns that do not match aforementioned rules is automatically denied.

Replace the router with an Ubuntu box with enough ethernet ports to provide enough connections for your network and Wireless if you need it, configure it to do DHCP, NAT, etc., and configure the firewall rules on the Ubuntu box to handle traffic both inside and outside the network (similar to previous).

To provide you with another point of view, though, which drives this answer, my network at home has a lot of LAN segments (as VLANs, or Virtual LANs).  I use a hardware firewall (a pfSense appliance, $500ish) to handle the VLANs on my network (DHCP, NAT out to the Internet, etc.), as well as inter-communication rules between the segments, which restrict access.  Machines I actively use exist on one VLAN, whereas restricted-access machines exist on a separate VLAN and network range.  Communication to those is restricted by a rule on both sides which dictates what traffic is permitted to pass between the segments.  Essentially, this is the second option from above, implemented in a much more advanced way.


There is no way to switch the audio output on the fly from one sound card to another with ALSA. To define my NuForce sound card as the one to use I created the file ~/.asoundrc with the content

pcm.!default {
    type hw
    card N2
}

ctl.!default {
    type hw
    card N2
}

where the name N2 comes from the content of the file /proc/asound/cards:

$ cat /proc/asound/cards
 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0x93480000 irq 23
 1 [B10            ]: USB-Audio - Benchmark 1.0
                      Texas Instruments Benchmark 1.0 at usb-0000:00:04.0-1, full speed
 2 [N2             ]: USB-Audio - NuForce µDAC 2
                      NuForce NuForce µDAC 2 at usb-0000:00:04.0-3, full speed

If I want to change to B10 say, I need to edit ~/.asoundrc and restart the sound application.


“no available channels” with Ubuntu dual boot on Nexus 7 2013 deb LTE

Now, thanks to Vojtěch Boček, who is also behind Ubuntu Touch for Nexus 7 2013 LTE, there is a bug reported on Lauchpad regarding this: https://bugs.launchpad.net/humpolec/+bug/1379034

So, it has no immediate fix, there is a bug in the app.


How can I prevent certain process from being swapped?

Normally you cannot prevent a single process from swapping and only the global parameter vm.swappiness can be used to control the swap behaviour.
With cgroups it is possible to specify different swappiness for the processes that are attached to a specific cgroup.

So, you would have to create a separate cgroup for your SSHD and give it a different swappiness.

I think your problem is caused by something else. swap does free up RAM, but if you access processes that have swapped out memory, that memory is read from disk and put into RAM again. So when accessing a process with swapped memory there is only ramp-up performance bump.
If you experience steady swap-out/swap-in issues, you either have too less memory or a run-away process eating up your RAM and puts your system under memory pressure.


Cant access in-built Bluetooth for Windows in Virtual Box

First make sure the following is correctly working:

The BIOS / UEFI has Bluetooth enabled (Just in case)
Your host (Ubuntu in this case) detects the Bluetooth correctly
You have tested the Bluetooth with a bluetooth device and can confirm it is working correctly. This 3 points are to avoid issues with the guest that might not be the guest at all.

Then make sure the following is correctly set up:

Latest VirtualBox version installed (As of this answer it is 5.1.28)
Latest VirtualBox Extension installed for VirtualBox (Host). This one you get either from the VirtualBox site or by upgrading from a previous Extension to the latest.
Latest VirtualBox Extension installed in Windows 10 (Guest). This one will show as a CD on Windows 10. Just simply install it from the Virtual CD and reboot.

This last 3 points are to make sure that the Bluetooth can be detected and used correctly in your virtual environment.

Now follow this steps:

Right click your USB Devices on VirtualBox (Not inside Windows 10, but on the VirtualBox bar below it) and Enable the Bluetooth device detected by VirtualBox. At this point, if you follow everything and the bluetooth does not show, on some cases it is because it can't be in use before sharing it with VirtualBox.

Windows will not try to install the proper drivers for it. If the drivers are not found, I suggest going to the companies website and downloading the drivers through Windows 10 and then proceeding on installing them manually.

After installation click on the Bluetooth Device Manager to Pair your Windows 10 with a real device:

Click on the Device found that you wish to pair and then click on the Pair button that will show.

Then simply test out sending something to the device

That's it. So the common issues that could be found are:

Missing the VirtualBox Extension (In the Host, Guest or both)
Bluetooth not working on your Host, hence, it will not work on your Guest.
Missing Drivers for the Bluetooth device in Windows 10

On most cases it will just work if you follow the steps. In the ones that don't, you can solve this 3 cases by installing the corresponding package / driver for it.


I don't know if this helps but you can use a program called wine that lets you run windows apps on ubuntu. An alternative program to photoshop is called GIMP.

Hope his helps :)


Many times, when moving a hard disk from internal, to an external hard disk enclosure (or the other way), requires that the hard disk be reinitialized. Any existing data or partition structure will be reset. This has to do with the hardware used on the expansion enclosure's USB to SATA bridge card.

Assuming that you have no hardware issue, just start gparted, create a new MBR or GPT partition table, create a new ext4 or NTFS partition(s), and you're good to go. GPT is the preferred partition table type, and NTFS is the preferred partition type if you're planning on sharing files between Windows and Ubuntu.


Infinite Login Loop (not permissions issue) - proprietary NVIDIA driver install gone wrong

You may need to run:

sudo apt-get build-dep nvidia-331

or similar, before installation. I'm on my phone right now but you can run

apt-get --help

If you get command not found. This should install the dependencies needed to execute the build.


Kubuntu 20.04 keeps perform black screen with NVIDIA

Give nvidia-460 a try. See if that works for you.
Also check that you have linux-headers packages installed. They don't install by default and nvidia drivers don't build without them. Yet they are not listed as a dependency.
Execute this command:
sudo apt install linux-headers-5.8.0-50 linux-headers-5.8.0-50-generic
Either it will say that it had nothing to do, or it will install these all-important but always missed packages.
Then try installing nvidia-460 driver by any convenient means.


Resources for making an Ubuntu-based router?

The easiest and simplest way is to turn on Internet-connection sharing in the machine you want to use as a router: http://ubuntuforums.org/showthread.php?t=1183420&highlight=xbox+360+bridge

For that to work, your router machine would need 2 network interfaces - one connected to the Internet and one connected to the other machines.

Then, the other machines would have to have their connections go through your router, which I'm not really sure how to do using VMs (ethernet cables IRL).  Presumably, your VM software could set up the networking to do that, but you might be able get by by manually setting the gateway in your VMs to be your router.


How do I open links in one browser automatically in another?

I'm fairly certain you'd have to modify Midori in order to do that. Perhaps you could make an addon. One way might be to add an option in a right-click menu, for instance. There is no general way of doing something like that, that I know of.


How to mount a ntfs disk in the text mode(from command line)?

You can mount the drive from command line easily even without creating a folder in /media as other question suggests.

Open a terminal
Type udisks --mount /dev/sda2

The result?
Your /dev/sda2 will be mounted in the /media/label, where label refers to the name of label of the partition. For example, my /dev/sda2 is labeled as Main, and when i do the command, "/dev/sda2" will be mounted on /media/Main.
How do i know, My Drive "Drivename"'s sdaX number ?

You can execute sudo blkid command in a terminal to know, which sdaX you have to input.
Example: My example run returns this:

anwar@edubuntu-lenovo:~$ sudo blkid
/dev/sda1: UUID="01CD4993623F05D0" TYPE="ntfs"
/dev/sda2: LABEL="Main" UUID="A80C1BD70C1B9F7E" TYPE="ntfs"
/dev/sda3: LABEL="Work" UUID="01CCB271A80A07E0" TYPE="ntfs"
/dev/sda5: LABEL="Free" UUID="DE53-CB6B" TYPE="vfat"
/dev/sda6: UUID="364126ac-01c9-4dd2-ab19-eecc733a9640" TYPE="ext4"
/dev/sda7: UUID="b1537dfc-e918-4fea-9a99-44a034e57429" TYPE="swap"
/dev/sda8: UUID="01CD49906DD38770" TYPE="ntfs"
/dev/sda9: LABEL="Precise-New" UUID="7c934266-dfcb-45de-879b-e3ceafcd0862" TYPE="ext4"

So i know that, if I wanted to mount "Work", I have to use sda3.
If the partition has no label:
If your partition has no label, it will be mounted in /media/UUID, where UUID refers to the UUID of the partition.
For example: If i mount my /dev/sda8, which does not have a Label, it will be mounted in /media/01CD49906DD38770 Folder.
Hope this will help.


Accidentally deleted a partition, now I am finding just the grub rescue window. What should I do?

Did that partition contained both Ubuntu and Windows10 ?
You cannot install Ubuntu and windows in the same partition. In that case you can get access from the other OS.

Anyway,if that is not possible, the easiest solution seems to be reinstalling Ubuntu 18.04.
I hope you have the live USB or DVD of Ubuntu at you installed earlier. Just insert it and enter the bios. Boot from USB/DVD and install it. You will be fine.
After installing Ubuntu you can dual boot it with windows10 if you wish.

In case you don't have live USB/DVD, you can use your phone as a bootable device :

1. Installing Ubuntu Using Cell Phone Only

2. Boot Linux ISO From Android Phone

3. How to Boot Into Linux from Your Android Phone


How to Enable Ubuntu KDE Dolphin to Preview Audio Thumbnails?

KDE preview thumbnail

The KDE applications can show a thumbnail for a file if there is a thumb creator plugin installed for the file type. After installation the plugin need to be enabled from the application settings.

KDE Frameworks 5 / Plasma 5 / Applications

Current KDE is released as three projects: Frameworks, Plasma and KDE Application. Release schedules: https://community.kde.org/Schedules

Application and the Framework version can be looked at the application help. With the Dolphin: Dolphin > Control > Help > About Dolphin:

Audio thumbnailers

KDE4: https://www.linux-apps.com/content/show.php?content=114885

KF5 (KDE Frameworks 5):

https://github.com/eplightning/audiothumbs-frameworks
https://store.kde.org/p/1155023/

A build example with the Debian based: https://www.kubuntuforums.net/showthread.php?t=32568&page=5&p=390275&viewfull=1#post390275

Copy of the build/installation example:

Downloading the audiothumbs-frameworks-master.zip

audiothumbs-frameworks: https://github.com/eplightning/audiothumbs-frameworks

Unpacking the audiothumbs-frameworks-master.zip

Installing build dependencies:

build-essential
cmake
extra-cmake-modules
kio-dev
libflac++-dev
libtag1-dev

Compiling and installing:

Generic commands:

mkdir -p builddir
cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
sudo make install

Example:

$ mkdir -p builddir

$ cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- TagLib found: -L/usr/lib/x86_64-linux-gnu -ltag
-- FLAC++ found: /usr/lib/x86_64-linux-gnu/libFLAC++.so;/usr/lib/x86_64-linux-gnu/libFLAC.so
-- Performing Test FLAC_STREAMMETADATA_OPERATOR_FOUND
-- Performing Test FLAC_STREAMMETADATA_OPERATOR_FOUND - Success
-- Performing Test FLAC_METADATA_PICTURE_FOUND
-- Performing Test FLAC_METADATA_PICTURE_FOUND - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rog131/tmp/audiothumbs-frameworks-master/builddir

$ make
Scanning dependencies of target AudioThumbs_automoc
[ 25%] Automatic moc for target AudioThumbs
Generating moc_AudioThumbs.cpp
[ 25%] Built target AudioThumbs_automoc
Scanning dependencies of target AudioThumbs
[ 50%] Building CXX object src/CMakeFiles/AudioThumbs.dir/AudioThumbs.cpp.o
[ 75%] Building CXX object src/CMakeFiles/AudioThumbs.dir/AudioThumbs_automoc.cpp.o
[100%] Linking CXX shared module AudioThumbs.so
[100%] Built target AudioThumbs

$ sudo make install
[ 25%] Automatic moc for target AudioThumbs
[ 25%] Built target AudioThumbs_automoc
[100%] Built target AudioThumbs
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/AudioThumbs.so
-- Installing: /usr/share/kservices5/AudioThumbs.desktop

Part of the official KDE release:

The audio thumbnailer is released as part of the KDE Applications 17.04 or later: https://git.reviewboard.kde.org/r/129985/ .

Audio thumbnailer is part of the kio-extras. Ubuntu packages: https://packages.ubuntu.com/search?keywords=kio-extras&searchon=names&suite=all&section=all

Possible backported packages

Kubuntu is offering backports: http://www.kubuntu.org -> http://www.kubuntu.org/news/


How to make hfs+ external drive read-write (journaling already disabled, still not working)

I had a similar problem than you. I have formatted the external driver on a Mac OS in HFS+, then I disabled the journaling feature in disk utility on macOS. Then, I plugged it into my ubuntu PC, I added the mount point in /etc/fstab
using

/dev/sda1 /home/jojo/mine defaults 0 0

the first time when I ran cat /proc/mounts, I saw rw for the external HFS+ drive
Then, for some reasons after I started it again, it loses its rw and it became a readonly (ro) mode. I didn't unplugged it while it was used.
Then, I formatted the drive using gparted on Ubuntu. However, when I plugged the drive into my macos and checked it with disk utility, it said there were an issue with the partition map.

I concluded it is more reliable to format a HDD in ext4 and create a shared network drive using netatalk. Then, it will be possible to read and write from a macOS to the external HDD. If it is required to read the external drive on a mac, it is always possible to buy an ext4 for MacOS software. I used the Paragon one and I had no problem. Another option would be to buy a WD my cloud NAS because it accepts APFS and HFS+ journaled.

For time machine, I have a router (netgear R6250) that accepts journaled HFS+ external drive plugged to it. I told myself that it is ok to play on a linux but let's stop dabbling into something when it is about our important files and our backups.


Connection Timeout on Windows Share (Network)

Had the same problem on Ubuntu 16.04.

Works for me after doing this quick fix:

Edit the samba conf file: sudo gedit /etc/samba/smb.conf
Then add this line in the [global] section client max protocol = SMB3


password invalid 12.04 when tryin to log in for the first time, cant get past login screen

This seems to be a question for wubi; I would report a bug to wubi as this is not an issue with standard installation of Ubuntu ; and can't be duplicated to troubleshoot.


laptop mutes after connecting to speakers or microphone

Try opening sound config on the speaker icon next to the computer clock. Every time you plug an audio device you need to check wich way is outcoming the sound.

Hope it helps.


Boot Problem [No bootable devices found]

Have you tried a boot repair disk? if not I recommend going here if you do not have a live Ubuntu USB
or here if you do have a live USB with Ubuntu both options use the same software it's just one is available in a bootable disk version.
Please note a USB drive is recommend for today systems as most do not have a DVD drive in it


Dual boot W10/Ubuntu 16.04 partitioning question

After the hashcheck of the ISO and media check, you still need to try booting the USB in a different machine, try different USB ports, and check your BIOS/UEFI settings for USB settings that might be available (e.g. legacy USB support might apply).

Once you fully confirm the USB is working and you still have the hanging problem, consider that having two disks might be causing problem.  Usually the two disk problems are trying to boot off one which causes grub to simply freeze, so your USB boot does not fall into that category, but  consider removing the HDD to try the install to the SDD.  When the installer runs grub, it does put it on sda, but when booting, grub will happily run off the boot device (sdb in your case).  You can manually copy in the bootloaders to the EFI paritition, but with a single disk for the install, things should just work out.

It is highly machine dependent how booting proceeds, I have a refurbished Lenovo which has Windows 10 and Ubuntu 16.04 in BIOS mode on the hard disk, and I installed 16.10 to an SDD in the disk caddy (in BIOS mode).  But I did have an EFI partition (blank) set up on the SDD, and later copied in a backup of the Ubuntu EFI bootloaders, changing the /EFI/ubuntu/grub.cfg file's uuid to use the sdd's full copy of grub.cfg.  On the Lenovo, that setup will boot in UEFI mode when booting the SDD directly (from the EFI menu), and boots in BIOS mode from the hard disk.  The Lenovo allows the choice of "legacy first" or "UEFI  first" in booting legacy first, the SDD had no legacy, so UEFI was (successfully) done.  Other machines force a choice of either legacy or UEFI, so you may have to choose.  Covering all bases and adding a 2M grub-bios flagged partition as well as having the EFI partition keeps your options open.


(L)Ubuntu 13.10 AMD ATI Radeon laptop screen is black after upgrade from 13.04

Ok, I finally fixed this by removing the closed-source proprietary driver, and using the open source Radeon driver. See https://help.ubuntu.com/community/RadeonDriver

The open source driver fully supports my ATI card
CEDAR                       Radeon HD 5430/5450/6330/6350/6370

To install the open source driver it is enough to fully remove the closed-source one (more details at https://wiki.ubuntu.com/X/Troubleshooting/VideoDriverDetection#Problem:_Need_to_purge_-fglrx). This is what I used:

sudo apt-get remove --purge fglrx*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo shutdown -r now

After restart both laptop screen and my external monitor screen worked. To set the resolution for the two monitors I used arandr tool.

To check all is ok:

  sudo lshw -c video

should show ... configuration: driver=radeon latency=0

Hope this will be of help.


How can I find out if someone logged onto my computer through putty?

Method 1:

  Get the user login history at any time

last command will give login history for a specific username. If we don’t give any argument for this command, it will list login history for all users. By default this information will read from /var/log/wtmp file. The output of this command contains the following columns:

User name
Tty device number
Login date and time
Logout time
Total working time

Command: $last jason

jason   pts/0        dev-db-server   Fri Mar 27 22:57   still logged in
jason   pts/0        dev-db-server   Fri Mar 27 22:09 - 22:54  (00:45)
jason   pts/0        dev-db-server   Wed Mar 25 19:58 - 22:26  (02:28)
jason   pts/1        dev-db-server   Mon Mar 16 20:10 - 21:44  (01:33)
jason   pts/0        192.168.201.11  Fri Mar 13 08:35 - 16:46  (08:11)
jason   pts/1        192.168.201.12  Thu Mar 12 09:03 - 09:19  (00:15)
jason   pts/0        dev-db-server   Wed Mar 11 20:11 - 20:50  (00:39

Method 2:

You can also use the command lastlog command on Linux. It gives you more granular controls as to ranges of dates when looking through the logs of user logins.

  lastlog man page:

lastlog - reports the most recent login of all users or of a given user

  Example: To find out the users that have logged into a system in the last 100 days.

$ lastlog -b 0 -t 100
Username         Port     From             Latest
sam              pts/0    pegasus          Wed Jan  8 20:32:25 -0500     2014
joe              pts/0    192.168.1.105    Thu Dec 12 12:47:11 -0500 2013

This shows that the last times these users logged into this system. The range of time shows the last 100 days. Before today (-b 0) and after 100 days ago (-t 100).

You can also show all the users by omitting any range and just seeing every usre that's ever logged in, and the last time they logged in.


Can I avoid reinstalling from scratch? Upgrade failing with "dpkg-divert: error: rename involves overwriting - with different file - not allowed

Just rm the mentioned file and it will be ok.
Also, it's already answered dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed


Bad substitution error for running a bash command for many files in a folder in for loop

Your NIIFILES is declared as a string and not as an array.

Assuming file don't have space in their filename, you could use:

NIIFILES=( "$INPUT_DIRECTORY"/*.nii )


It seems that 13.04 has moved to Unity 3D out-of-the-box, hence no 2D features (like Dash size) are available.

The only way, than, to change the dash layout would be to maximize / restore it via the window handles on top:


How to run zsh and tmux with xterm-256color by default

Usually tmux should get the TERM parameter from your terminal emulator. So you could just set it to xterm-256color in your its configuration.

If this does not work for some reason, you can start tmux like that

tmux -2

The parameter -2 forces tmux to assume 256-color support. Additionally you can set default-terminal in your `~/.tmux.conf

set -g default-terminal "screen-256color"


How can I use the mouse in a virtual terminal?

Yes, this is possible using the General Purpose Mouse interface (GPM ).

  This package provides a daemon that captures mouse events when the
  system  console is active, and delivers events to applications through
  a library.

  By default, the daemon provides a 'selection' mode, so
  that  cut-and-paste with the mouse works on the console just as it
  does  under X.

Install the package gpm
Switch to your virtual terminal
Move the mouse. Be amazed by the block pointer moving around.
Select a (harmless) piece text like you would in the GUI. Once you have it selected, it's on copied onto the clipboard.
Hit the middle mouse button to paste.
Enjoy the awesomeness!

I really like this doing it on servers when troubleshooting and you see some log files, but you need to copy & paste it to pipe it to grep for example.


Typing of Hindi joint letter "tra" (First Letter of Ta + Ra):

First type letter Ta (First letter Ta)
Press NumLock Key.
Then Alt+0170
Now you will get Hindi "Tra" joint letter.


I had similar problem to yours, would try to shut down or restart but the computer would go a black screen and would not power off. My computer has the same cpu.  I found the solution is to blacklist a couple of drivers as found in this link http://forums.linuxmint.com/viewtopic.php?f=42&t=163126&start=20#p961212 .  OldFred from Ubuntu forums pointed me to the link.


Is it possible to instal ubuntu on plain disk with no OS ?

Of course. The 2 normal options are ...

from dvd
from usb

Basically set BIOS of the system to 1st try to boot from either option and not from the disk. It depends on the BIOS on how to do this but it either will have an option to set these or will have an option to create an UEFI partition where you can tell the BIOS to 1 time boot from a media you can pick. You then pick the dvd or usb.

Lots of system automatically default back to dvd or usb is there is no system installed yet on the disk. You could try this 1st too.

You do need another computer to download Ubuntu and burn it to an DVD or USB.


Try this: (solved my problem with DNS)

Right click on Wi-Fi icon at the top-right corner of the screen
go to "Edit Connections..."
Mark your wifi network
click "Edit" button
Open "IPv4 Settings" tab
Choose method: "Automatic (DHCP) addresses only"
Copy&Paste 8.8.8.8, 8.8.4.4 to "DNS servers"
Save
Reboot PC


Ubuntu 14.04 failed to detect USB modem [MTS Mblaze] after system update

The following solution worked well for me. I am jotting down the solution by hoping it could save the day of some other folks that having the same issue.

Find out the name of your USB modem using the terminal command lsusb. I have got the following output

Bus 002 Device 007: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard

note down the Vendor ID and Product ID of the modem. In my case it is 12d1 and 1505

Create a config file in the /etc/usb_modeswitch.d directory. You can name the file as you wish. I have choosen the name as 12d1:1505.conf. Open the file in editor and add the following lines to it and save. You should use your Vendor ID and Product ID

*DefaultVendor= 0x12d1
DefaultProduct=0x1505

MessageContent="55534243123456780000000000000011062000000100000000000000000000"*
Run the following command

sudo usb_modeswitch -I -W -c 12d1\:1505.conf

Now hopefully you should see the "Enable Mobile Broadband" option in the network manager menu. If not then try to reboot the machine. In my case I was lucky enough to get detected the device as soon as I run the command.


Why is Nautilus so slow in copying files to Google Drive?

I am answering my own question based on the comments from the kind
readers. Using the directions in the pages pointed to plus a few others, I have
devised a framework that is working fine after a few tweaks.
The Framework Summary

Mount your Google Drive on Linux with google-drive-ocamlfuse.
Use rsync to copy files and directories.

Framework Setup Details

Install and setup google-drive-ocamlfuse. In a terminal window, run,

sudo add-apt-repository ppa:alessandro-strada/ppa &&\
sudo apt update && sudo apt install google-drive-ocamlfuse

.

Authorize google-drive-ocamlfuse so it will have access to your Google
account. In the terminal window and issue the command
google-drive-ocamlfuse. This command will open a browser window that
will either prompt you to log into your Google account or if you're
already logged in, ask you to allow google-drive-ocamlfuse access to
your Google account. If you've not logged in, do so and then click
Allow. The next window will ask you to grant permission for both
gdfuse and OAuth2 Endpoint to access your Google account. Click Allow
again. The next browser screen will inform you to wait until the
authorization tokens have downloaded. When your terminal prompt
returns with the message, “Access token retrieved correctly”, you know the tokens have been downloaded, and you're ready
to mount.

Mount your Google Drive.  Create a directory (e.g. google-drive) to serve
as the mount point (in subsequent discussions we are going to term
this as either the source or destination directory, whichever
applicable for you). From the terminal, issue the command,mkdir ~/google-drive, to create a new directory in your home directory. Issue
the command google-drive-ocamlfuse ~/google-drive to mount your Google
Drive to the google-drive directory.

At this point, you should see your Google Drive files/directories populate
in the google-drive directory. You can work with Google Drive as if it
were a local directory system.

When you want to unmount the google-drive directory, issue the command
fusermount -u ~/google-drive.

More on the previous steps can be found here.

Now you can start copying your files and directories using any GUI or
command line methodology you like. But I found rsync to be especially
suited for the purpose. I found the following command suitable (and
optimized) for my case.

rsync -uvrt --progress --human-readable <source directory/>\
<destination directory/>

A Few Words about rsync
rsync is a fast and extraordinarily versatile file copying tool.  It
can copy locally, to/from another host over any remote shell, or
to/from a remote rsync daemon. One of the important features of rsync is that it works on “delta transfer algorithm”, which means it will only sync or copy the changes from source to the destination instead of copying the whole file which ultimately reduce the amount of data sent over the network. Please see the man page for rsync or this page for
details.
rsync can be stopped (terminated) anytime and rsync will resume from
that point at the next invocation. Please see this question (and answers) for other helpful hints.


How to get wifi working on Dell inspiron mini 1011 without wifi on Ubuntu 15.04?

Well lets go over the obvious first

The mini series should have an ethernet port so that would be your best bet.

It should also have bluetooth so there should be some options there:
From Android and From Ubuntu.

If you are still having issues try copying the files to a usb or use a generic usb wifi dongle since they do not usually require non standard drivers.

Would you be able to give a short list of the things you have already tried and the reasons why they have not worked?


You will find all installed certs in /etc/ssl/certs or below. Either the cert is really there or you find a link pointing to the place (most likely under /usr/share/ca-certificates)


My Huawei E303F dongle detected but unable to connect to the internet in ubundu 15.10?

Install ppp(it may already have been installed). Then try your luck with Sakis3G. It is a very good and easy to use package for connecting to internet using USB dongles.

run the following commands in terminal for installing ppp and sakis3G:

sudo apt-get install ppp
sudo wget "http://www.sakis3g.com/downloads/sakis3g.tar.gz" -O sakis3g.tar.gz
sudo tar -xzvf sakis3g.tar.gz
sudo chmod +x sakis3g

now to launch it, run this:

./sakis3g --interactive


Update-ca-certificates: 0 added; 0 removed - how come?

If you're on Debian, try changing from .cer to .crt. File content is still the same.