There have been a lot of wifi problems with 13.10 with Kernel 3.11. This is often (not always) fixed by upgrading to 3.12. If you have wired internet download the new kernel:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-headers-3.12.0-031200-generic_3.12.0-031200.201311031935_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-headers-3.12.0-031200_3.12.0-031200.201311031935_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-image-3.12.0-031200-generic_3.12.0-031200.201311031935_amd64.deb

Then run:

sudo dpkg -i linux-headers-3.12.0-*.deb linux-image-3.12.0-*.deb
sudo update-grub
sudo reboot

This should install the new kernel and then reboot.


I mounted the ISO file and opened it in Nautilus only to see a readme.txt file. It said: "This disc contains a "UDF" file system and requires an operating system that supports the ISO-13346 "UDF" file system specification." Help

You are almost there. You need to mount it and tell it it is ISO-13346. Something like this:

sudo mount -t udf file.iso /media/iso

or

sudo mount -t udf, iso13346 -o loop file.iso /media/iso

(There is a ton of other options but this should be the base; change file.iso for your iso and change /media/iso to something else if you want).


Run the command with a leading \, an answer in examples: ;)

% ls
bar  foo

% alias ls="ls -laog"

% ls
total 4292
drwxrwxr-x  4 4329472 Nov  5 15:06 .
drwx------ 95   28672 Nov  5 15:15 ..
-rw-rw-r--  1       0 Nov  5 15:06 bar
drwxrwxr-x  2    4096 Nov  5 15:06 foo
drwxrwxr-x  2    4096 Okt  2 14:29 .foo
-rw-rw-r--  1     191 Feb 25  2015 .htaccess

% \ls
bar  foo

Slightly longer but also possible:

command ls


You won't have to install drivers for most devices because unlike Windows, Ubuntu ships with a comprehensive set of drivers built right into the operating system.

Is there anything actually wrong with your PC? Is the display resolution incorrect, do you have bad colour depth, can you not enable 3D effects?

If the answer to all of the above questions is no, you don't have to worry about installing drivers.


How do you whitelist an IP address with just one line command?

sudo ufw allow in from 123.123.321.1 to any port 22

CentOS doesn't use ufw. You'll have to use iptables.


We can consider installing packages from official repositories as safe, they should work out of the box.

Just try it, installing the new kernel will not remove your current kernel. If the newer kernel doesn't work for you, you can easily boot the older kernel via Grub's boot menu and remove the new one, there is really no harm in doing that.

Remind that there are generic and low-latency kernels, for Ubuntu Studio you should choose the low-latency kernel.

I just installed the low-latency kernel version 5.0.0-15 in Ubuntu Studio 18.04.2 and it seems to run fine. To install the kernel correctly you have to install 4 packages:

linux-headers-5.0.0-15
linux-modules-5.0.0-15-lowlatency
linux-image-5.0.0-15-lowlatency
linux-headers-5.0.0-15-lowlatency

My first impression is pretty good, programs open faster and the system appears a bit more responsive, I'll keep the new kernel...


On Ubuntu Desktop download page

  If you have a PC with the Windows 8 logo or UEFI firmware, choose the 64-bit download. Read more ›

Hope this answers your question.


Why qemu-system-x86 takes 100% of my CPU?

Have you tried to make sure you use the proper accelaration for qemu?
Such as:

qemu-system-x86_64  -machine accel=kvm [...]

This switch could make your computer use hardware virtualization
(cpu usage drops to negligible then)


Xfce 4 desktop zooming function conflicts with Chrome

This is fairly easy to fix with the following JavaScript:

window.addEventListener('wheel', function(e) {
  if (e.altKey === true) {
    e.preventDefault();
    return false;
  }
}, { passive: false });

To make this a global fix in Chrome, it would need to be incorporated into a Chrome Extension. You need a file containing the above code snippet, such as content.js, and a manifest.json file like this:

{
  "manifest_version": 2,
  "name": "Scroll Wheel Mod",
  "version": "1.0",
  "content_scripts": [
    {
      "matches": [ "<all_urls>" ],
      "js": [ "content.js" ]
    }
  ]
}

Once you have this, it's just a few simple steps in Chrome:

Go to chrome://extensions/
Enable Developer Mode
Choose Load Unpacked
Choose the local directory where you created the files


To install it, run the command sudo apt install gfortran-7 in a terminal.
Then use the command gfortran-7 to call it during compilation.
To make it default, run the following commands
Add it to alternatives
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-7 100

Now set it as default
sudo update-alternatives --set gfortran /usr/bin/gfortran-7


How to change "scaling_max_freq" file (set max frequency higher)?

From: http://laptopmedia.com/processor/amd-a6-7310/

  AMD A6-7310 is a 4 core, entry-level processor announced in Q2 of
  2015. It is part of AMD’s “Carrizo-L” architecture family and operates at a base frequency of 2.0GHz. If a higher frequency is needed, its
  cores can overclock to 2.4 GHz thanks to the TurboCore functionality.

I don't have an AMD CPU to give exact instructions, but you need to enable TurboCore just like TurboBoost needs to be enabled for Intel platforms:

echo "0" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

This enables turbo boost.

and

echo "1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

This disables turbo boost.

Further reading:

https://www.kernel.org/doc/Documentation/cpu-freq/boost.txt
AMD Turbo boost doesn't work for A8-7600 Desktop CPU

From How to set up a Debian system (focus on 2D or console/server) with an AMD Turbo Core APU for maximum energy and computing efficiency?, you need to install Radeon driver. Most likely you need to append radeon.bapm=1 to the value of GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and run sudo update-grub

:


NVidia graphics driver cannot detect second monitor

Generally it is recommended to use the NVIDIA drivers 352 from the official Ubuntu repositories.
But when there are problems with these drivers, you can install the latest official NVIDIA drivers.
This often leads to properly working graphics, a few days ago NVIDIA released stable drivers 361.

Remove the currently installed drivers.
Open a terminal and execute :

sudo apt-get purge nvidia*
sudo reboot

Install the latest official stable drivers.
Open a terminal and execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361 nvidia-prime
sudo reboot


Help! My server has been hacked - .IptabLes and .IptabLex in /boot

As Thomas said on comment 6.06 is WAY past end of life. You need to hire a Linux guy ASAP and help you out with the upgrade process.

In the meantime, Don't Panic! relax and read the following popular topics:

How do you know your server has been compromised?

How do I know if my Linux server has been hacked?

Hopefully you will find the best way to deal with your compromised server reading the following Canonical Question:

How do I deal with a compromised server?

Good Luck!


I don't know your logger ch.qos.logback.core.FileAppender, but you could use some variables to log into a desired folder, E.G.:

To log into root of your tomcat base folder:

${catalina.base}/logs/myApp.log

or in your user folder /home/drjerry/:

${user.dir}/logs/myApp.log


Wifi Only Works After Suspending MacBook Pro (7,1) with 16.04

After a fresh boot, try running these commands and see if the WiFi comes alive:

sudo su
service network-manager stop
ifconfig wlp2s0 down
ifconfig wlp2s0 up
service network-manager start
exit


Modifying default gateway with nmcli (Ubuntu 18.04 LTS)

You are adding a subnet mask at the end of the gateway IP address. You only use subnet mask '/24' to determine the size of a network with your IP address.
For example, if you want to change your IP address on a you would write:
nmcli connection modify Telia-2F1C ipv4.addresses 192.168.1.222/24

Note the '/24' at the end of the address which tells the computer how many IP addresses are in that network.
If you want to change the gateway you would write:
nmcli con mod Telia-2F1C ipv4.gateway 192.168.1.1

Note that there is no need to add the subnet at the end.


Installation hangs on partitioning step on 15.04 x64

So, I have good and bad news..

The good news is that I solved, the bad one is that I don't know how I did..

I will write down what I remember in order to be as much useful as I can.

I burnt also a dvd to see if the problem was my usb pen, but it turned out also the dvd had the same problem.

So I booted again with my usb. Until that, I always created and choose the partitions where install ubuntu manually. I thought to give a try with some automatic procedural.

I have a 256GB ssd so partitioned, 100GB to win, 1GB swap and the rest to a ext4 partition.
I already had installed win8.1 on one single partition (no system reserved small partition). So I imagined I could install Ubuntu on the ext4 partition by choosing "install ubuntu along windows", but I was wrong, once I clicked this, I had the choise to distribute my space outside win partition to two additional partitions, one for data (photo, documents, music, video, etc) and another for ubuntu itself.

So I clicked back, I chose the second one, "format the whole hd and install only ubuntu" but just for playing with the menu and check out if there were other options, I didn't go further than the confirmation menu and then I went back.

I tried once again the "manual choise", I set up my ex4 partition by selecting the format option and the / mount point, then I confirmed and then when the bottoms went grey, I tried to play a little with the keyboard, especially pressing randomly the arrows keys.

It accessed the following menu, I couldn't believe that..

Anyway, if this last time would have failed too, I was going to install it on the ssd through one of my laptop as last chance before downgrading to 14.10 and then upgrade.

I am sorry I can't give a rational explanation to this, but it worked, I wish anyone with my same problem to solve it too, good luck with that!


Where can I find a Subversion 1.7 binary?

As of Ubuntu 12.10, subversion 1.7 is available as part of the distribution. Subversion can be installed using apt-get.

sudo apt-get install subversion

For earlier versions of Ubuntu, there is a ppa available at subversion-1.7. The repository can be added as follows:

sudo apt-add-repository ppa:dominik-stadler/subversion-1.7

To get the latest version of subversion update and upgrade the repository.

sudo apt-get update
sudo apt-get upgrade

I needed to also do a dist-upgrade.

sudo apt-get dist-upgrade

I'm assuming that you already have subversion installed, if not:

sudo apt-get install subversion


Setting LD_LIBRARY_PATH before running an app from a terminal has no effect

Make sure that under

/home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14-0-g4e46ed9/appleseed/bin

you really have the shared libraries you want to load. Are they really in the bin/ directory of the archive? Not lib/?
Try

/lib/ld-linux.so.2 --library-path /home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14-0-g4e46ed9/appleseed/bin ./appleseed.studio

You can use the options from that program to control and debug the library loading process.


I fixed this by adding

Option "VertResolution" "7"
Option "HorizResolution" "5"

to 50-synaptics.config (in /usr/share/X11/xorg.conf.d)


My Windows 7 is getting the "An error occurred. Press control+alt+del" message on boot

Fix Windows via a Windows disk this way: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader , until you get direct access to Windows. (if this fails, you may need to reinstall Windows)
then recover the GRUB menu via Boot-Repair


How to install particular set of files from deb package to /usr/lib?

Download the DEB package of your choice, e.g. mc

apt-get download mc

Extract the package

dpkg -x *.deb mc

All files of the package are now in ./mc and you can copy what you need.


problem installing mobile partner driver

The above error was because of you renamed the driver folder into something else.Don't change the name of the folder.The folder name must be driver otherwise it shows the error like above.

avinash@avinash-Lenovo-IdeaPad-Z500:~/Desktop/driver$ ls
10-Huawei-Datacard-old.rules  HuaweiAutoStart.desktop  sleepsettings
10-Huawei-Datacard.rules      install                  sleep-settings.sh
32bit                         Mandriva2011_Patch       startMobilePartner
49huawei                      ndis_driver              Uninstall
60-cdrom_id.rules             patch                    usbmod
64bit                         ReadMe
copying                       skeleton
avinash@avinash-Lenovo-IdeaPad-Z500:~/Desktop/driver$


Updating release versions before hardware is certified

First of all, you don't have to upgrade (though upgrading sooner, especially if you're not on an LTS release, makes it easier, and quicker, to upgrade later). You can turn off release update notifications in the updater settings.

That said, just because a set of hardware hasn't been certified for a particular version, it doesn't mean it won't work. It's kind of like the little "Built for Windows XP" stickers on Windows machines - just because it was built for XP, it doesn't mean that Windows 7 or Linux won't work on it. However, it does mean that it might take more work to make it work or make it work ideally. You may have to compile drivers from source or download them a third party location, for example (compiling is not terribly painful, but not for novices, either). If you're running a modern computer, you usually don't run into such issues with upgrading, because the drivers will generally be the same (where you would run into issues is with legacy hardware, since you can't really expect built-in support for something like your 20-year-old dot matrix printer to continue indefinitely, they have to draw the line somewhere).

In your case, it sounds like there's a bug in the wireless drivers in 12.04 for your card. The easy thing to do is to hold off on upgrading for a month or two. This gives developers time to update the drivers for the new system. (On a side note, have you tried just going to 11.10? Depending on when the bug was introduced, you may be able to upgrade to 11.10 without issue, buying you more time before the release you're using goes end of life.)

Hardware matters aside, it's generally a good idea to update on some kind of regular basis, because the versions go end of life every few releases (non-LTS goes end-of-life every 18 months, or 3 releases). Once they go end of life, you won't get updates at all, and Canonical will pull the repositories entirely.

Updating also provides you with (easy) access to newer (or the newest) versions of your software, as well as things like kernel and security updates. In the case of Linux distros running Gnome 3 or Unity, it also means interface and usability enhancements, as these new technologies are refined.


Upload dialogs for Firefox and Chrome now differ; FF's doesn't include network drives

This is a known issue in Firefox versions that use GTK3 (like the recently released v46.0). See this Bugzilla ticket for background information. In short, the support for non-local files in the file chooser has changed with GTK3 and Firefox would now explicitly have to support remote files.

If you don’t need this feature very often, then there may be a workaround: you can try to find out the absolute path to your network share as mounted locally via GVFS. This will only work, if your network share was mounted before, e.g., by opening it in the file manager. Type/copy the following command into a terminal and press Enter:

ls -d /run/user/$(id -u)/gvfs/*/

It should print one line for each mounted network share. Copy the line of the share that you would like to access. Then paste the line into the “Location” text field of the upload dialog and press Enter. The file chooser should now open your network share. (If you can’t see the “Location” line, then click the pencil icon in the upper left corner.)

Once the mounted network share locations are known, they can also be added to the ~/.config/gtk-3.0/bookmarks file to create a persistent bookmark which the GTK3 file chooser can use – in this format:

file://$your_location Your Boomark Name

For example:

file:///run/user/1000/gvfs/smb-share:server=share.datastore.example.org.uk,share=share/users/thisuser/ My Shortcut


Connection issue after installing NordVPN on Lubuntu 20.04

I realized that the Linux firewall block the NordVPN firewall and the NordVPN killswitch stop the connection, so I should stop the Linux firewall and re-run the NordVPN service and the connection will get back on track.
By using the following command:
sudo ufw enable && sudo ufw disable && sudo /usr/bin/systemctl restart nordvpnd


Give different permissionson to folder and subfolder to different users

Yes, using the terminal not only possible but also the quickest way to do so when it comes to many files and directories with multiple permission types.

First, let's refer to a quick guide to learn about the basics of permissions and permission values and types.

The relevant terminal command is chmod "permissions" "filename".

For example: chmod 777 foo or chmod 777 /foo/food.

We must seperate this problem per file/directory and remember we have 3 types of permissions: creator user, group and others.
Highest permissions always beat lower ones (root > creator > group > others), thus applying only rules to a group with the creator won't always prevent the creator from doing operations defined by the group permission.

Overall what you want to set is this (if I understand the question correctly):

Parent- owner, group, others = 'r' (4). [444]

C1- owner = non (0) or 'w' (2), group = 'w' (2), others = non (0). [220]

C2- owner = 'rw' (6), group & others = non (0). [600]

C3- owner, group, others = 'x' (1). [111]


Ubuntu 16.04 menu outlook changed completely after a reboot

To me it looks like the "before reboot" desktop is Unity, and the "after reboot" is some kind of Gnome.

Try to choose "Unity" at the login screen.


Ubuntu - command history not available for newly created user

The git developers talk of plumbing (low level) and porcelain (high level) commands.
useradd is plumbing. You should have used adduser (=porcelain) instead.

From useradd's manpage:

  useradd is a low level utility for adding users. On Debian,
  administrators should usually use adduser(8) instead.

When using useradd you need to specify literally everything, like a home directory and a login shell. adduser on the other hand has reasonable defaults for them. The experience you made is either due to having / as the home directory (no write permissions there) and/or a wrong no login shell, as @steeldriver noted in a comment. adduser handles all this. Thus:

adduser dsweb           # create user with default settings (like $HOME, $SHELL)
adduser dsweb www-data  # add him to group www-data
adduser dsweb sudo      # ... and sudo

And yes, it's a real mess that we have two commands adduser and useradd. I myself always have to look up which is which.

To remove your previously created dsweb user, use deluser dsweb. Do not supply the --remove-home switch because you created him with / as $HOME and you don't want that removed.


Do I have to unmount not-linux partitions?

No, you don't, all mounted partitions are unmounted before shutdown.


All the Programming languages are good to use with Kubuntu. But you have to keep in mind that Kubuntu is based in KDE which is based in QT/C++.

So if you want something with a real native look for it, the best practice is to use QT (with the KDE libraries if necessary).

As for tutorials, there are very good tutorials for Qt in the Nokia QT official website here http://doc.qt.nokia.com/4.7-snapshot/tutorials.html.

But the best place to start if you already know a little bit of C++ is to start with the examples that comes with QtCreator (you can see them on the Start Page when you start QtCreator).

Just see some code, and try some sample stuff like and Hello World, using TextBoxes and change the text on it, and create a sample calculator, so that you can learn the basics of Qt.

If like me you learn better with videos, look a those official qt tutorial videos : http://qt-project.org/videos


How can I make fonts look like they do in Windows?

When you say “make fonts look good”, you really mean “make fonts look like I'm used to” - if you were coming from a Mac you'd be asking “how do I prevent my fonts being distorted”.

Font rendering in Windows is heavily aligned to the pixel grid, trading sharp edges for distorted fonts.  This corresponds to the “full hinting” option in Appearance→Fonts→Details.  You shouldn't have to touch any further configuration.

Font rendering on OS X is the other way around - it does not distort the font shapes, meaning that most glyphs span a pixel boundary.  This corresponds to the “none” hinting option.

By default, Ubuntu is somewhere in between - using slight hinting which distorts the fonts a bit to make them fit the pixel-grid better.

If you're using an LCD display you should have subpixel antialiasing enabled, regardless of the hinting type.


I can't write (only read) on USB device encrypted with Bitlocker

From dislocker's readme (important parts highlighted by me):

  dislocker-fuse: binary using FUSE to dynamically decrypt the
  BitLocker-ed partition. You have to give it a mount point where, once
  keys are decrypted, a file named dislocker-file appears. This file is
  a virtual NTFS partition, so you can mount it as any NTFS partition
  and then read from or write to it.

...and, in the notes section:

  dislocker-fuse: the one you're using when calling `dislocker'

So, as you correctly guessed, the problem boils down to:

How to mount an ntfs partition writable by my user (or everyone)

This question has been asked and answered several times on AskUbuntu. In short:

To change the owning user or group, use the uid and/or gid options. For example: Assuming that your user has uid and gid 1000 (default ids of the first user created in Ubuntu), you could do:

mount -o loop,rw,uid=1000,gid=1000 dislocker-file /media/mount

Alternatively, you can change the umask to not restrict permissions at all:

mount -o loop,rw,umask=0 dislocker-file /media/mount

By the way, since you switched to the root user with sudo su -, you can omit sudo from the mount command.


how to install librapidxml-dev by apt-get

librapidxml-dev is only available in the official repositories for Ubuntu 16.04 and later. However, since it does not depend on anything, installing the 16.04 package on 14.04 should be fine. You can get it from here.


Delete recursively all files which have a specific HEX content

Run the grep command first to see the files of interest:

grep -REl '\\xDE\\xAD\\xBA\\xAD' /path/to/file/location/

Then using rm:

rm -rf $(grep -REl '\\xDE\\xAD\\xBA\\xAD' /path/to/file/location/)

Information:

-R: used to search a location with grep

-E: grep's extended regex option

\: greps regex escape character, used to make sure \ is included in the search.

-l: grep's option to list the files where the said pattern have been found


Try a different server. The Spanish mirror (es.archive.ubuntu.com) has it.


Connecting to an Ubuntu Server using Ethernet cables but no internet connection

I'm not sure I understand entirely what you're asking for, but I'll see if I can answer, by making an assumption about what you are asking.  Feel free to inform me if I am incorrect.

You want to connect all the systems directly to the server without using the Internet to interlink them, right?  If so...

The easiest method is to buy a router that doesnt need much initial configuration, and then hook all the systems into the router including the server.  Then, you have your own internal LAN network which will allow all the systems to communicate with each other.  This method is easiest, and does not require extensive reconfiguration of your server box to act as a router/gateway/DHCP server.  This does, however, require you to go out and purchase a router.

The cheapest, but much more tricky, time-consuming, and extremely overkill for the standard user method would be to set up the Server as a gateway box and install/configure a DHCP daemon to assign IPs to the individual computers, and to give the server box its own 10.10.x.x IP address for the other systems to access it.


The nice sliding, multilayer Ubuntu webpage

You are probably talking about:

http://thenewubuntu.com/

an advertisement site built by the OMG! Ubuntu! team.


How to determine if the current Ubuntu installation is minimal?

This answer is relevant only to a subset of systems installed via .isos for Desktops. It does not apply to servers.
It applies to Ubuntu and to those flavors that provide their users a "minimal" installation from the full .iso. Covered are Ubuntu itself, Kubuntu, Ubuntu Mate, and any other official flavor offering the minimal install option.
Further, the minimal install option was first made available in 18.04. So this answer is not for versions older than 18.04.

The file to look at is /var/log/installer/telemetry:

See the relevant bits in bold: "Minimal": false, or "Minimal": true,.

For my Kubuntu 18.04, which is a "full" install:

{"Media": "Kubuntu 18.04 LTS \"Bionic Beaver\" - Release amd64 (20180426)",
 "Type": "KDE",
 "PartitionMethod": "manual",
 "DownloadUpdates": false,
 "Language": "en",
 "Minimal": false,
 "RestrictedAddons": true,
 "Stages": ...}

For an 18.04 install with the minimal option:

{"Media": "Ubuntu 18.04.1 LTS \"Bionic Beaver\" - Release amd64 (20180725)",
 "Type": "GTK",
 "OEM": false,
 "PartitionMethod": "use_device",
 "DownloadUpdates": false,
 "Language": "en",
 "Minimal": true,
 "RestrictedAddons": false,
 "Stages": ...}

For a 19.10 Ubuntu Mate minimal install option:

{"Media": "Ubuntu-MATE 19.10 \"Eoan Ermine\" - Beta amd64 (20190926.2)",
 "Type": "GTK",
 "OEM": false,
 "PartitionMethod": "use_device",
 "DownloadUpdates": false,
 "Language": "en",
 "Minimal": true,
 "RestrictedAddons": false,
 "Stages": ...}

After an edit the question became about

  google cloud

Google calls that the "Image family". That one is not available from command line. I do not believe you can besides opening the google cloud console. The only command where I see "image family" used is when you "create" an instance.


Can't install old version of MySQL through apt-get

Oh, it was another case of RTFM.

I needed to provide the full package name to make it work:

sudo apt-get install mysql-server=5.6.32-1ubuntu16.04


Syslog still receiving entries after filter to sepaqrate file

If your filters working you could edit your /etc/rsyslog.conf to stop duplicates as per this thread:

https://serverfault.com/questions/711708/stop-crontab-from-filling-syslog-ubuntu-15-04/717244#717244


Connect your file container with VeraCrypt the usual way, except that you should uncheck the  option that mounts the volume. That is unlock the file container, but do not mount it. Then...

fdisk -l                       # This to know the name of the device.
sudo bash
fsck /dev/mapper/veracrypt1    # The device name should go here, e.g. /dev/mapper/veracrypt1

Here allow fsck to fix the volume for you. After a successful fix, dismount the (yet not even mounted) volume from VeraCrypt, then mount it again, but this time the usual way with actually mounting it at the specified path in the file system.


You can go the ppa route.

Visit https://launchpad.net/ubuntu/+ppas and enter gnome-screenshot in the search box.

One of the hits is this. See the image below:

As for trusting this ppa, jbicha, who is providing the ppa, is well-known in Ubuntu and GNOME circles and a long-time member of Ask Ubuntu :)


Arbitrary EXT4-fs remounts scattered throughout dmesg output

It sounds that you have a loose power line or bad battery. The message "...,commit=600" is printed when the notebook is unplugged from a power supply. When reconnecting again, it'll print "...,commit=0". This is a power saving feature, to avoid wasting battery power (but at the expense of data loss on power failure), the filesystem does not immediately write away data.

I don't know what the "composite sync not supported" error is referring to.


If you read the help again you'll see it says previous --interactive. This means you can add an -I after all the other arguments (like at the end of the line) and it'll be honoured again!

To do that, you need a function instead of an alias, but just stick this somewhere in your .bashrc (et al)  and you're golden:

function rm { /bin/rm "$@" -I; }

A perhaps safer method than even this is using trash-cli's trash-put command. It will put things in your account's trash directory that can be reviewed/restored/emptied normally. It also has dummy -r, -f and, -i arguments so it makes a perfect alias possible:

alias rm="trash-put"


Ubuntu 12.10 & 12.04.1 LTS mouse freezing (Saitek Cyborg R.A.T.5 Mouse)

Okay, so thanks to about six different pages (being a new user, I can't post more than two links, so I've posted the two most useful), I've got this going. By running gksudo gedit /etc/X11/xorg.conf in the terminal (Ctrl-Alt-T) to edit X11's xorg.conf file, then pasting the following in at the bottom:

Section "InputClass"
    Identifier "Mouse Remap"
    MatchProduct "Saitek Cyborg R.A.T.5 Mouse"
    #May also be "Mad Catz Mad Catz R.A.T.5 Mouse" depending on production date.
    MatchDevicePath "/dev/input/event*"
    Option "AccelerationProfile" "1"
    Option "ConstantDeceleration" "5"
    Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 11 12 0 0 0"
    Option "ZAxisMapping" "4 5 6 7"
EndSection

You should change the MatchProduct field to match your own version of the R.A.T. mouse. You can find it with xinput.

A few things to note if you want to understand what this block of text means are the Option fields. AccelerationProfile 1 sets mouse acceleration off. It's a personal preference thing-- you can omit this line if you like acceleration, or make it a higher number for a few different kinds of acceleration. You can read more about it in the first of the links below.

ConstantDeceleration is also not necessary, but it really helps slow the mouse down so you can use a higher DPS (because why use 1600 when you can use 5600?) without having your mouse fly all over the screen. Play with this number if you don't think it feels right-- higher numbers mean a slower mouse.

ButtonMapping is where the actual fix takes place: you'll notice that where one would expect the numbers 13, 14, and 15, there are 0s. This is because the three mode buttons are mapped to 13, 14, and 15. We want to stop Ubuntu listening to those buttons, so we un-map them with 0s.

ZAxisMapping is to get the back and forward thumb buttons working like they should. I honestly didn't do any reading about this one, I just saw one guy saying it should work, so I tried it and it worked. It's particularly mystifying to me since the back and forward thumb buttons are actually buttons 8 and 9, but if it ain't broke don't fix it, right?

http://www.x.org/archive/current/doc/man/man5/xorg.conf.5.xhtml

http://ubuntuforums.org/showthread.php?t=1528982&page=2


In Lubuntu (18.04 LTS with LXDE as well as Cosmic with LXQt), I use

synclient touchpadoff=1

You may prefer

synclient touchpadoff=2

and enable the touchpad with

synclient touchpadoff=0

See man synaptics

   Option "TouchpadOff" "integer"
          Switch off the touchpad.  Valid values are:

          0   Touchpad is enabled
          1   Touchpad is switched off (physical clicks still work)
          2   Only tapping and scrolling is switched off
          When  the  touchpad  is  switched off, button events caused by a
          physical button press are still interpreted. On a ClickPad, this
          includes  software-emulated  middle and right buttons as defined
          by the SoftButtonAreas setting.

   Property: "Synaptics Off"

You can make an alias or aliases in order to run these actions in a more convenient way.


unable to ping 8.8.8.8 with wireless connection on raspberry pi 3?

Hello and welcome to ask Ubunbtu. Please share your interface details (see the comment below).
If you have e.g. wifi and ethernet you have to chooce from which device you want to ping e.g. ping -I wlan0 8.8.8.8.


Looks like there is an app out there called Synergy.  I'm just discovering this, so I know nothing about it.  I just stumbled across this article:
http://www.linuxandubuntu.com/home/share-mouse-and-keyboard-with-your-windows-linux-machines-with-synergy-1-7-1


How do I prevent my RTL8821AE from dropping?

There are a few reasons that your wireless might be dropping. First, let's turn off power saving in Network Manager. From the terminal:

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Next, there are a couple of driver parameters that control power saving. Let's apply them:

sudo -i
modprobe -r rtl8821ae
modprobe rtl8821ae ips=0 fwlps=0
exit

If this is helpful, make it persistent:

sudo -i
echo "options rtl8821ae ips=0 fwlps=0"  >  /etc/modprob.d/rtl8821ae.conf
exit

Finally, it is often the case that routers are set to have seperate 2.4 gHz and 5 gHz segments that are, by default, named the same. Many Linux drivers are troubled by roaming from one segment to the other and, of course, dropping in the switch-over. If this is your case, I recommend that you rename the segments to different names such as NerdofL24 and NerdofL5. Then experiment connecting to each to see which is most stable and fastest.


Screen completely screwed up when in dual screen in Unity

Have you tried to reset unity after reconfiguring the display setup?

$ unity --reset &


How to change my hostname in network connection

you need to do that on the router not on the host.

this will typically be done by assigning an ip and hostname combination to the mac address of the network adapter you use on your host.


The answer may come a little late but installing libusb (http://www.libusb.org/) worked really fine for me!


afther installing ubuntu and goes back to installtion menu

Did you check the USB on another computer? You might have selected the wrong storage for installation. So you installed Ubuntu on the USB instead of your HDD, which could explain why there is no OS detected.


How to access the Windows 7 shared folders

If you open your Home Folder you can access your Network by clicking on Browse Network in the bottom left corner. From there you can access all your shared folders. I access my Desktop running Windows 8 like this. :)


If you mean the panels: Use Alt+Rightclick instead of just Rightclick. See this blog post from Vincent Untz for some more about the Gnome3 Gnome-Panel.


lenovo thinkpad E560 trackpad stopped working

I have the thinkpad e560 and have not experienced any problems until last night. I tried many things and the only thing that fixed the track pad was to close the lid, putting the computer to sleep and then opening it back up and it worked again! No idea why this fixed it but it did.


You can stop this logging, keeping the rsyslog service running.
Edit the file: /etc/rsyslog.conf.
Comment the line:
  $IncludeConfig /etc/rsyslog.d/*.conf.

Restart the service by service rsyslog restart or systemctl restart rsyslog.


Any ubuntu drivers for wireless adapter Trendnet TBW-108UB?

I have modified the lwfinger rtl8723bu so that it should support your device, do

sudo apt install git build-essential dkms
git clone https://github.com/jeremyb31/rtl8723bu.git
sudo dkms add ./rtl8723bu
sudo dkms install rtl8723bu/4.3.6.11_12942.20141204_BTCOEX20140507-4E40

Secure Boot will need to be disabled on UEFI systems, you can check Secure Boot status in terminal with mokutil --sb-state

Reboot


How to customize indicator-datetime to two line configuration?

You need to change the time-format key to custom. Have a look at this answer: How to change the date format?

When done, your time string seems to work fine.


Ubuntu 18.04 freeze after log in (dark window and mouse frozen)

Solution for the gdm problem should fix it for you.  Be patient. GDM 3.34.1 is super unstable as we speak. login/corruption/not seeing enviroments proper etc.. To name a few issues I've been just learning about


It should be fine to use lightdm to select fluxbox. Next, to fix the nauitlus issue

install gnome-tweak-tool

sudo apt-get install gnome-tweak-tool

then, use the command

gnome-tweak-tool

under desktop, look for "have file manager handle the desktop" and make sure this option is set to off

see here http://ubuntuforums.org/showthread.php?t=2080212


In general the main advantage of zip over gzip is that it's more widespread in the Windows community.

In your case it might be more or less equivalent.

M.


Skype crashes when selecting photo for avatar

To install Skype the correct way:

sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update
sudo apt-get install skype


There will be a preview session for Ubuntu Touch as part of the Ubuntu 13.10 desktop release.  Currently you can run the shell (unity 8) by itself inside a window on your desktop, but it won't have all the functionality of Ubuntu Touch on a device.  For that, you'll need to wait for the 13.10 preview session.


How to get KDE to update settings once config file has been changed

Mousekeys functionality is provided by the xkeyboard driver, and the easiest way to activate and deactivate mousekeys from the terminal or scripts is to use a program dedicated to that task, such as xkbset.
sudo apt install xkbset
xkbset mousekeys   # enable mousekeys
xkbset -mousekeys  # disable mousekeys

Another utility, xdotool, provides functions to control mouse movement programmatically. This may be useful if you need to control the mouse cursor without any user involvement.

As far as I can tell, kwriteconfig5 activates or deactivates most changed settings immediately. In cases where that doesn't happen, it's usually sufficient to reload whichever program uses the config file in question.
Usually, the problematic programs are plasmashell or kwin, but in this case, reloading either is not helpful because neither uses kaccessrc nor provides the functions you desire.
Reloading kaccess also appears to not work. Normally, the xkeyboard driver is handled by other processes during startup/login. Since there is usually no need, kaccess does not alter xkeyboard settings when loaded.


As it happens this is a "feature" of pyroom (review)
ctrl+super+D should show your desktop (super is penguin/windows key)
But this is disabled on purpose as part of eliminating distractions.
I'd say that the video game is accessing raw video mode. You might be able to get back by using keystroke ctrl+alt+F7 to return to your Desktop session, but the game may just take over.

The completeness of full-screen in Ubuntu can be disorienting until you grow accustom to it. In the standard Unity Desktop for Ubuntu, full screen mode apps can hide the window bar. Firefox by default does this and also the location bar and tabs but it all comes back when you point the mouse cursor near the top edge of the screen.


In your favorite editor

#!/bin/bash
apt-get autoremove
apt-get clean
aptitude purge ~c
aptitude -f
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs apt-get -y purge

Make sure you run as root, and you have aptitude installed. Save this file as whatever. However, I do not recommend removing old versions, as sometimes they have legacy items in them. The final line ONLY takes care of linux-kernel (see last sentence why). Even so, I would recommend having multiple kernels just in case one goes BA-ZOINK.


Can't suspend my computer with Ubuntu 18.04

How to select Unity desktop in Ubuntu 18.04
When you were running Ubuntu 16.04 you were on the Unity interface. After upgrading to 18.04 the Unity interface is still there but new interfaces are offered as well. It sounds like you are searching for the Gnome Desktop which you can select from the "gear" next to the Sign In button during login:

You can try all the desktops to see which you like best but keep in mind:

Many have reported problems using the Wayland window manager which was designed to replace X11 but has not lived up to expectations.
When I tested 18.04 upgrade of 16.04 clone some of the options resulted in a purple screen with only a movable mouse cursor.

Can't be sure at this time but it sounds like this:

My laptop shuts down when I close the lid even though it's set to hibernate


Installing mysql Error: dpkg ' Sub-process /usr/bin/dpkg returned an error code (1)

Space

df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           789M  1.8M  787M   1% /run
/dev/sda1       458G   88G  347G  21% /
tmpfs           3.9G   77M  3.8G   2% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/loop0       13M   13M     0 100% /snap/gnome-characters/103
/dev/loop2      121M  121M     0 100% /snap/ubuntu-clock-app/5
/dev/loop1      2.4M  2.4M     0 100% /snap/gnome-calculator/180
/dev/loop3       77M   77M     0 100% /snap/drakon/1
/dev/loop4       87M   87M     0 100% /snap/core/5145
/dev/loop7       15M   15M     0 100% /snap/gnome-logs/37
/dev/loop8      104M  104M     0 100% /snap/pac-vs/1
/dev/loop9      172M  172M     0 100% /snap/dbtarzan/5
/dev/loop11     2.4M  2.4M     0 100% /snap/gnome-calculator/199
/dev/loop12     4.2M  4.2M     0 100% /snap/demo-curl/4
/dev/loop14      88M   88M     0 100% /snap/core/5328
/dev/loop15     3.8M  3.8M     0 100% /snap/gnome-system-monitor/51
/dev/loop17     3.8M  3.8M     0 100% /snap/gnome-system-monitor/54
/dev/loop18      35M   35M     0 100% /snap/gtk-common-themes/319
/dev/loop6      147M  147M     0 100% /snap/clementine/54
/dev/loop10      87M   87M     0 100% /snap/core/4917
/dev/loop19      13M   13M     0 100% /snap/gnome-characters/117
/dev/loop20      15M   15M     0 100% /snap/gnome-logs/40
/dev/loop13     198M  198M     0 100% /snap/vlc/365
/dev/loop16     141M  141M     0 100% /snap/gnome-3-26-1604/70
/dev/loop5      172M  172M     0 100% /snap/dbtarzan/4
tmpfs           789M   16K  789M   1% /run/user/121
tmpfs           789M   40K  789M   1% /run/user/1000

After

sudo mkdir /etc/mysql/conf.d

I tried  again, and

$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (8.0.12-1ubuntu18.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-community-server (8.0.12-1ubuntu18.04) ...
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 7: Could not open 'abstractions/mysql'
Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
Setting up mysql-server (8.0.12-1ubuntu18.04) ...
aW: APT had planned for dpkg to do more than it reported back (3 vs 7).
   Affected packages: mysql-community-server:amd64


How can i run ubuntu alongside windows 8 if my comouter have a bootlocker?

If you mean a dual boot.... Install Ubuntu next to Windows 8 (UEFI dual boot)

If by 'alonngside' you mean running at the same time, you might want to look into virtualbox.


Welcome to the community :-)

The hotspot network is already accessible through the AP. Thus, you don't require a second network card.


How do you delete unspecified users from a text file of wanted users?

let me offer a simple solution based on your limited information. I made two files:

name.txt:

george
koko
victor
bassey
jane
effiong

remove.txt:

net
paul
garret
jonah
jane
koko
effiong

The steps would be:

use grep to only match names not in name.txt:

grep --file=/path/to/name.txt -v /path/to/remove.txt

Result:

net
paul
garret
jonah

Then remove non-macthin names using sed command:

grep --file=/path/to/name.txt -v /path/to/remove.txt | sed 's/$//g'

The above command will will not remove the names from the remove.txt but list them to the terminal, from here you can send the names to a new file or add the -i option in sed command to do the actuall name removal.


How to implement event changed event on Entity object Python/Quickly

If you are getting started with PyGtk and Quickly, I would definitely recommend this tutorial, it has helped me very much.

Are you using Glade for your gui designer? If you arn't, you would have to connect the signals manually by doing something like this:

from gi.repository import Gtk

class Handlers:
    def on_button1_clicked(self,builder):
        print "Clicked Exit"
        Gtk.main_quit()

    def on_entry1_changed(self,builder):
        entry = self.builder.get_object("entry1")
        self.builder.get_object("TestWindow").set_title(entry.get_text())

builder = Gtk.Builder()
builder.add_from_file("example.ui")
builder.connect_signals(Handlers())
window = builder.get_object("TestWindow")
window.show()
Gtk.main()

More about manually connecting handlers like this is found here.


unable to locate packages lib32bz2-1.0 ,libXt6:i386 , libXp6:i386 and libmwsgl.so in ubuntu 16.04 please help me

have the reflex of doing package search : apt-cache search <package>

apt-cache search bz | grep -i 'lib'
apt-cache search ncurses
....


Manually installing ia32-libs-multiarch on Ubuntu 12.10 64bit

First of all, did you try installing Skype before installing the libs? I've seen a few reports that there's no need to manually install ia32-libs on Quantal (ie - 32bit applications install just fine), though I haven't confirmed that myself. If you haven't, try that first. If you have, then continue on (and, since you're new, it'd be good to read on, anyway).

You don't need to download packages from packages.ubuntu.com in order to install them. That site is really only there for documentation and reference purposes.

All you need to do is open up terminal and run:

sudo apt-get install ia32-libs

It'll prompt you for your password. Put it in, and let it do its thing. Once it's done, you should be able to install Skype without issue.


Backlight flickers after lid close and switch to battery

I've found that removing the gnome-screensaver package does the trick. I've seen threads about disabling the vsync option in CompizConfig for OpenGL settings as well.

With both items done, I can close my laptop and re-open with no hiccup. I have an Intel integrated graphics card on an old HP Compaq NC6120 laptop.


Ubuntu server install failing under Hyper-V

I had this issue as well a while back. I simply resolved it by installing it as a Generation 1 VM. As long as you are willing to give up the extra features of Generation 2 (UEFI, larger max storage, secure boot which you yourself said you aren't using, etc) then you could give a Generation 1 VM a shot.


how do I move grub to SATA drive from USB flash? And make new GRUB boot ubuntu server from USB?

I did this.

Boot from Live CD.

Mount boot drive.

Grub-install to HDD.

And it worked!


How to fix NVidia failing to recover from suspend (Ubuntu 16.04)?

To answer my own question: I have not found the root cause but at least a workaround. After installing the mainline kernel (in my case the version v4.13-rc6) the problem does not appear any more.

Instructions to download and install the mainline kernel can be found here: https://wiki.ubuntu.com/Kernel/MainlineBuilds?action=show&redirect=KernelMainlineBuilds


Update Manager doesn't show up anymore when there are available updates

Follow this tutorial to display hidden startup applications. Then head to Startup Applications

and look whether Update Notifier is checked:

Activate the entry, if it isn't.

Edit: If the entry doesn't exist at all click add and enter the following:

If that doesn't work, head to /etc/cron.daily and make sure that there is a file named update-notifier-common.


Create a bash script to crawl subdirectories and perform a command with ffmpeg

Enable recursive globbing to recurse into subdirectories:

shopt -s globstar

Then you could do:

for f in **/*.m4a
do
    printf 'ffmpeg -i %q -c:a copy %q\n' "$PWD/$f" "$PWD/${f%.m4a}.mkv"
done > bulk.command.txt

printf's %q quotes strings so that they can be safely used as shell input, so you don't have to mess with quotes there:

  %q    quote the argument in a way that can be reused as shell input

If you make this a script, then you can use arguments to decide whether to use a different directory for the output files:

#! /bin/bash
shopt -s globstar

for f in **/*.m4a
do
    printf 'ffmpeg -i %q -c:a copy %q\n' "$PWD/$f" "${1:-$PWD}/${f%.m4a}.mkv"
done > bulk.command.txt

${foo:-bar} uses the the value of variable foo, if it is not empty, or bar otherwise, so in this case it uses the first argument if not empty and $PWD otherwise.

You'll need to recreate the directory structure in that case, which can be done with mkdir -p:

#! /bin/bash
shopt -s globstar

for f in **/*.m4a
do
    printf 'mkdir -p %q\n' "${1:-$PWD}/${f%/*}"
    printf 'ffmpeg -i %q -c:a copy %q\n' "$PWD/$f" "${1:-$PWD}/${f%.m4a}.mkv"
done > bulk.command.txt

That's if you really need to create a script for later usage. Personally, I don't see the point - you could just run the loop directly when you actually need to run it:

#! /bin/bash
shopt -s globstar

for f in **/*.m4a
do
    mkdir -p "${1:-$PWD}/${f%/*}"
    ffmpeg -i "$PWD/$f" -c:a copy "${1:-$PWD}/${f%.m4a}.mkv"
done > bulk.command.txt


Ubuntu 18.04: Put window into screen corner

After writing the question, a similar one popped up: Resize 4 windows to occupy the screen without overlap on Ubuntu 18.04

The keyword was "tiling" and the GNOME extension ShellTile does exactly what I was looking for.


Syncing a folder between Laptop and Linux server

You can install Dropbox for linux

You will be able to specify the folder you want to sync the account ect.

i found a nice tutorial showing this  :
link


I have two solutions for you and I prefer Solution B

Solution A

The simplest way without a terminal is, add a wrapper script in the folder where the Makefile is.

Create a wrapper script

nano /your/make/file/folder/makeit

Add two simple lines

#!/usr/bin/env bash
make

Make the script executable

chmod +x /your/make/file/folder/makeit

Configure nautilus to ask each time, if you double-click an executable text file

gsettings set org.gnome.nautilus.preferences executable-text-activation ask

or for a start without asking

gsettings set org.gnome.nautilus.preferences executable-text-activation launch

Solution B

A Makefile has the mimetype

text/x-makefile

Therefore create and use a desktop file with a wrapper script

Create the wrapper script

mkdir -p ~/bin
nano ~/bin/makeit

Add the code below

#!/usr/bin/env bash
cd "$(dirname "$1")" || exit
make

Create a desktop file

nano ~/.local/share/applications/makeit.desktop

Add the configuration below

[Desktop Entry]
Name=Make It
Comment=Start the make command
Exec=/home/user/bin/makeit
Icon=
Terminal=false
Type=Application
Categories=Editor;
StartupNotify=true
MimeType=text/x-makefile;

IMPORTANT Replace user in the line Exec= with your username, the output of

echo $USER

Restart Unity/GNOME Shell, for the GNOME Shell e.g. Alt-F2, type r and Enter and Nautilus with

nautilus -q

Associate the Makefile with the makeit script

Open your file manager and right click on a Makefile
Click Open With Other Application
Click the button View All Applications
Select the entry Make It


Well, I figured out why according to /var/log/lightdm/lightdm.log:

DEBUG: Failed to load session file /usr/share/xsessions/ubuntu.desktop
DEBUG: Session 1800: Sending SIGTERM
Started seesion 2020 with service 'lightdm', username 'lightdm'
DEBUG: Session 2020 authentication complete with return value 0: Success
DEBUG: Greeter authorized
DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
DEUBG: Failed to load session file /usr/share/xgreeters/default.desktop: No such file or directory
DEBUG: Greeter failed to start
DEBUG: Stopping display

There was something wrong with /etc/lightdm/lightdm.conf. I changed it to:

[SeatDefaults]
user-session=xubuntu
greeter-session=lightdm-gtk-greeter
autologin-user=ubuntu
autologin-timeout=0

This forced it to use xubuntu.desktop and lightdm-gtk-greeter.desktop instead of ubuntu.desktop and default.desktop, which do not exist and will cause failure.


You need define coding_seq first

genomic = open("genomic_dna.txt").read()
exons = open("exons.txt")
coding_seq = ""
for line in exons:
    positions = line.split(',')
    start = int(positions[0])
    stop = int(positions[1])
    exons = genomic[start:stop]
    coding_seq = coding_seq + exon
    print("Coding sequence is: " + coding_seq)


How to prevent auto-pausing processes in an inactive user session?

I run into this problem too because I switch between console and graphical virtual terminals on a regular basis. Xorg by design suspends its clients during VT switches, which is why its clients seem to "freeze" when Xorg's VT is no longer active. Wayland does not, so if the programs you need to stay running in a background VT support the new display protocol, use a Wayland compositor instead of Xorg.

One way to work around this problem is to run graphical programs on a local VNC server so that they never get suspended. This is the workaround that I use the most frequently.


Try

$ sudo apt-get -f install

This would try to fix dependency problems and reconfigure your packages.
Also there is command dpkg --reconfigure may help to solve .


How about this for a start:
complatex ()
{
    if [[ -n $1 ]]; then
        pdflatex -output-directory $(dirname "$1") "$1" &&
        xdg-open "${1%%.tex}.pdf"
    else
        for i in *.tex; do
            if [[ ! -f ${i%%.tex}.pdf ]]; then
                pdflatex "$i" &&
                xdg-open "${i%%.tex}.pdf"
            fi
        done
    fi
}

Oneline version:
complatex(){ if [[ $1 ]]; then pdflatex -output-directory $(dirname "$1") "$1" && xdg-open "${1%%.tex}.pdf"; else for i in *.tex; do if [[ ! -f ${i%%.tex}.pdf ]]; then pdflatex "$i" && xdg-open "${i%%.tex}.pdf"; fi; done; fi ;}

This function tests for an argument, if there is one it just runs pdflatex saving the output files in the argument's directory (instead of the current one) and opens the output .pdf in the default PDF viewer. If you call it without an argument, it goes through every .tex file in the current directory, tests whether there's a .pdf with the same name and only if not does the same as above.
To make the complatex command available on your system, just copy one of the two versions from above into either your ~/.bash_aliases (create it if necessary) or your ~/.bashrc file and open up a new terminal or source the changed file in an existing one with e.g. source ~/.bash_aliases.
Example run
$ tree -A --noreport
.
├── dummy.pdf
├── dummy.tex
├── other\ dir
└── test.tex
$ complatex test.tex &>/dev/null  # opens test.pdf in PDF viewer
$ tree -A --noreport
.
├── dummy.pdf
├── dummy.tex
├── other\ dir
├── test.aux
├── test.log
├── test.pdf
└── test.tex
$ rm -f test.!(tex)  # removes the output files that were just created
$ cd other\ dir/
$ complatex ../test.tex &>/dev/null  # opens test.pdf in PDF viewer
$ ls  # other dir stays empty
$ cd ..
$ tree -A --noreport
.
├── dummy.pdf
├── dummy.tex
├── other\ dir
├── test.aux
├── test.log
├── test.pdf
└── test.tex
$ rm -f test.!(tex)  # removes the output files that were just created
$ complatex &>/dev/null  # opens test.pdf in PDF viewer, doesn't process dummy.tex as there's a dummy.pdf already
$ tree -A --noreport
.
├── dummy.pdf
├── dummy.tex
├── other\ dir
├── test.aux
├── test.log
├── test.pdf
└── test.tex


Wireless driver Lenovo Flex 14 Ubuntu 12 Ultrabook

I have bought Lenovo Flex-15 and faced the same problem with WiFi driver. Please check your kernel version on Ubuntu.

cat /proc/version

Now download the stable backport drivers version which is same or higher version of your kernel from here. As an example I chose the version for 3.8-rc5.

After you download the kernel, open a shell/terminal (probably CtrlShiftT) uncompress it:

tar zxvf compat-drivers-3.8-rc5-1-u.tar.gz    # Depends on which archive format
tar jxvf compat-drivers-3.8-rc5-1-u.tar.bz2   # you downloaded. Or just try the
tar Jxvf compat-drivers-3.8-rc5-1-u.tar.xz    # last option. It is supposedly a
tar xf compat-drivers-3.8-rc5-1-u.tar.gz      # catch-all option.

then change into the directory that was just expanded:

cd compat-drivers-3.8-rc5-1-u

Now build the kernel:

make

And install the built kernel:

sudo make install

Once installation is done, there will be prompt in shell to reboot for the installed drivers to be enforced.

If in case still you have any problem please let me know, I shall try to provide a solution.


How do I turn off the monitor when I close the lid?

I currently don't have Ubuntu installed on a laptop, but I believe it should be at:
System settings > Power
you should have an option to choose what to do when the lid is closed.


Unable to install Ubuntu 14.04. PC restarts after I click "continue" button in "Install Ubuntu"

when boot from USB or DVD you must edit boot options & add this:

radeon.dpm=0

Source: aleks-nl5 @ https://forum-en.msi.com/index.php?topic=179619.0 24-April-14, 12:38:39


configuring server to receive traffic at a specific ip address

The trouble with modern browsers is, they hide the underlying error message in the sake of user friendlyness.

Try using telnet to access your program

  telnet 107.170.xxx.xx 8080

If it times out, you're probably firewalled. If it returns immediately, then either your program is not correctly bound on the ubuntu server or a firewall rejects your request.

Note: You wrote you have allowed firewall port 80, yet write your program sits at 8080. Thus you would be firewalling your program away from everyone.

Check netstat on the server to see where your program is bound to:

  netstat -tulpen

This lists all programs with open listening sockets along their processid/names (if you are root or owner of them). If your program is bound to one of the external addresses or the ephemeral port "::" it can only be the firewall.

If your program is listening on 127.0.0.1 it will only be reachable on the same system.


Dell XPS 13 fails to boot; grub-install installed grubx64.efi instead of shimx64.efi

My problem was that I had the shim package installed, but not shim-signed.

Installing shim-signed fixed my problem.

grub-install now installs shimx64.efi instead of grubx64.efi. Having the package shim installed is insufficient.


Is there a Gnome applet similar to the Windows 7 dock with ungroup option?

AWM allows it.
Right click to open setting, then click on task manager and then click on group/ungroup option.

Cairo, I haven't found it yet.
Not being able to work with ungrouped windows made leave unity.
Ungroup windows is a requirement when you really work with linux, when it is not a leisure, like when you use osx to work and then have fun with linux.

I've lost more than 3 man days to see that there was a stupid will to prevent users from chossing to group or ungroup windows. This is a considerable regression.


Make sure that .folder exists in your home directory.

And the most important part is to modify your script like this

#!/bin/sh

now=$(date +"%m_%d_%Y-%T")
export DISPLAY=:0
import -window root .folder/Image$now.png

Basically you are including this line in your script. export DISPLAY=:0

Restart your cron. You should see that working.

NOTE: Its a nice idea, I am using it on my machine now :) Thanks.


I got troubles installing xubuntu in my netbook dell

After downloading the ISO file, check that the md5sum (hash) of the ISO file matches the md5sum of the file as listed on the download site. If the values do not match, download the file again. The md5sum can be checked from the command-line in GNU/Linux with the md5sum command or with the HashTab program in Windows or MacOS.

If the problem persists, try using a different USB flash drive. The ISO can be copied to a USB flash drive from a variety of operating systems with the UNetbootin program.


Not able to boot system after changing plymouth theme

You messed up your system boot by doing mistake in this step.

There was no darwin in /lib/plymouth/themes/darwin/darwin.plymouth, so I created these directories and pasted it there.

It seems you copy pasted command without knowing correct path of plymouth themes in your system. There was no issue with grub bootloader at all.

For installing plymouth theme properly follow below steps.

Download OS X Yosemite/darwin theme from here.

Unzip tarball file and copy content to /usr/share/plymouth/themes directory.

sudo cp -a darwin /usr/share/plymouth/themes/

Configure Plytmouth darwin theme to run on system boot.

sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/darwin/darwin.plymouth" 100

sudo update-initramfs -u


Why do the update/download servers cap out at like 100-130 kb/s?

Because the servers are always busy, and you may have left it at the default server (and so has everyone else) for your area.  Try changing the server to one closer to you, and you can also let it test the servers to find the one that gives the best response for you - ("Select best server" button)


I had the same problem last night and I fixed it using the following steps:

Before starting it would be safe to backup all your data, though I didn't and came out of the problem without losing anything.

First you must boot into your system using a live cd/usb and make sure you have all other devices unmounted from the system.
Run this  sudo e2fsck -C0 -p -f -v /dev/<partition_id>
Repeat step 2. for each and every partition you have until you find the corrupted one.
Upon finding the problem, it will show you something like this:

Inodes that were part of a corrupted orphan linked list found.

Home: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options)
Then run sudo e2fsck -f -y -v /dev/<corrupted_partition_id>
Press 'y' on every prompt to fix them.
Reboot after completion of the full recovery process.

For a detailed information you may look into this link


make an install disk based on your current installed OS?

Remastersys can do that. It's no longer supported, but the old version does work on Ubuntu 13.04 in my experience. Just visit remastersys.org to get the repo information then sudo-apt get install remastersys, and sudo apt-get install remastersys-gui. You must launch it as root or it won't open. It will generate an iso file that you can burn to a dvd and use just like a normal installation disc.


HTML not rendering correctly after installing Wordpress on Ubuntu

I have worked out what was happening. The web server on a ubuntu machine was connected to the internet via a reverse proxy on a Synology NAS. The comms between the reverse proxy and the internet was https whereas the comms between the web server and the reverse proxy was http. Consequently CSS and images were getting filtered out. I am now using https between the web server and the reverse proxy, and all is well


You could create a perl hash from the lines of the second file

#!/usr/bin/perl -w

use strict;

BEGIN{ $/ = $\ = "\n"; }

my $stringsfile = shift @ARGV;
open(my $fh, '<:encoding(UTF-8)', $stringsfile)
  or die "Could not open file '$stringsfile' $!";

my %h;

while (defined($_ = <$fh>)) {
    chomp $_;
    $h{$_} = 1;
}

and then split lines of the first (and subsequent) files into hyphen-separated fields, grep for those fields that are not in the hash, and join it all back together and print if the grep returns anything:

while (defined($_ = <ARGV>)) {
    chomp $_;
    my ($x, @F) = split(/_/, $_, 0);
    my @y = grep({not $h{$_};} @F);
    print join('_', $x, @y) if @y;
}

Usage:

$ ./foo.pl file2 file1
 1A00.pdb_HEM
 1A01.pdb_HEM
 1A05.pdb_IPM
 1A0F.pdb_GTS
 1A0G.pdb_PMP

Note: if the potential matches are all at the end, then there's a much simpler approach using awk:

awk '
  BEGIN{OFS=FS="_"}
  NR==FNR {a[$0]++; next}
  {while ($NF in a) NF--}
  NF>1 {print}
' file2 file1

For the sample data in your question, both approaches produce the same output.


Check the MD5SUM of your CD? Sometimes when you burn an ISO the data get corrupted. Check this How To MD5SUM.


Use Ctrl+Tab/Ctrl+Shift+Tab to cycle through open tabs in Guake

The developers of Guake have accepted this as a feature, but have not yet implemented it. https://github.com/Guake/guake/issues/152

Apparently there are some challenges since gtk doesn't allow the tab key to be used as an accelerator, but supposedly there are ways around that.


I know my indicators work under Xubuntu (XFCE) - untested on Mate.

I'd suggest you peruse What Application Indicators are available?, choose your indicator(s) and then trial and error.


update-grub always removing windows EFI entry

I have three suggestions:

Abandon GRUB 2 -- Several other EFI boot loaders for Linux are available, and when you start running into GRUB 2 problems, these alternatives are likely to be easier to configure than GRUB 2, which is complex and finicky. Chances are either rEFInd or Fedora's patched GRUB Legacy will work best, although with some adjustments to your configuration, gummiboot might work well, too. Note that you may need to move the EFI/Microsoft/Boot/bootmgfw.efi file down one level in its directory tree, to EFI/Microsoft/bootmgfw.efi, to get this to work with rEFInd; or create a manual boot stanza for Windows.
Run Boot Repair -- The Boot Repair tool includes the ability to rename boot loaders in a way that should fix your problem. If it works well, this may be easier than the first solution; but it's a little less elegant, and on occasion it causes additional problems.
Create a manual boot stanza -- You can edit the /etc/grub.d/40_custom file to include the boot stanza that works with your renamed Windows file. GRUB should then pick it up. Overall, this is likely to be the quickest solution.


Ethernet Connection Not Work (Xubuntu 15.04)

So apparently I fixed this myself. Tonight i changed my linux kernel for giggles and that fixed it. 3.19.0.21 breaks the DHCP requests, but they work again in 3.19.0.15. so that was the issue with my particular problem.


You can create a "guest" account that you can keep as a normal user (not a guest user) by making a user named "guest" and setting a password on that, though, and then potentially restricting their access. You can then disable the normal "guest account". (The guest account system however will never have a password.

For tips on how to add a user  go here https://help.ubuntu.com/community/AddUsersHowto


how to change archive repositories in 14.04

The easy way to change repository is to install a package manager like Synaptic, using terminal: sudo apt-get install synaptic. Once installed, run Synaptic and access menu "Settings -> Repositories". The rest should be quite straight forward.

If you are trying to edit files that require root permission:

Using GEdit, you need to run the GEdit with root permission first.
Press "Alt+F2" then type in gksu gedit. If you do not already have
gksu, install it by typing sudo apt-get install gksu in the
terminal.
More direct approach would be to just type this straight in the
terminal: sudo gedit /etc/apt/sources.lst, then edit and save the
file.


sudo freshclam not working: ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!)

sudo freshclam command is used for updating your antivirus database, which cannot be run while another instance (auto update)  is already running.

Stop auto uptade process:
sudo /etc/init.d/clamav-freshclam stop

Run manual update: sudo freshclam

Re-Start auto update process: sudo /etc/init.d/clamav-freshclam start

source.


Dual boot Ubuntu with Windows 10 - The partition table format in use on your disks normally requires you to create

Simple solution is to create your OS bootable drive using RUFUS imager tool by selecting the partition scheme as GBT and its by default select the target system as UEFI only.

Pre-Requisites:

Above method is for the laptops which comes with pre-installed windows with UEFI Mode.
Disable secure boot, else every time when you boot into windows, it would ask you enter the "boot recovery key"


The problem has been solved but I dont know why......I saw something some where (can't remember who or why) that made me get into the bios and turn iommu off. I then installed 16.04 with no problems......mystery to me....lolol
Thanks for the try Martin, I have a screen shot...............

screen shot


Unable to open /etc/smbldap-tools/smbldap.conf for reading?

If you read the directions very closely, it says:

  The package comes with a configuration helper script, smbldap-config.pl, that will ask questions.

So with a little guesswork, the missing step is to run:

sudo smbldap-config

which will run through an interactive script that will generate both:

/etc/smbldap-tools/smbldap.conf
/etc/smbldap-tools/smbldap_bind.conf


Wallpaper turns into distorted pixels after suspend

After long time I found a rather practical workaround: The trick is to automatically reset the background upon resume.

To achieve this create a file "reset-bg-color.sh", for example in /opt/reset-bg/:

#!/bin/bash
gsettings set org.gnome.desktop.background primary-color '#000000'
gsettings set org.gnome.desktop.background secondary-color '#000000'
gsettings set org.gnome.desktop.background color-shading-type 'solid'
gsettings set org.gnome.desktop.background picture-uri ''

The second part is to register this script, so it will be invoked automatically when the computer resumes. In /lib/systemd/system-sleep place the second script file, in my case named "reset-bg.sh", including the following content:

#!/bin/bash

PROGNAME=$(basename "$0")
state=$1
action=$2

function log {
    logger -i -t "$PROGNAME" "$*"
}

log "Running $action $state"

if [[ $state == post ]]; then
    log "WAKE UP"
    exec /opt/reset-bg/reset-bg-color.sh
fi

In case you prefer to have a wallpaper reloaded, instead of reset the background color, you can use the following file "reset-bg-wallpaper.sh":

#!/bin/bash
gsettings set org.gnome.desktop.background picture-uri "file:///home/alex/wallpaper/wallpaper-file.png"

and change the exec-statement in "reset-bg.sh" to the following:

exec /opt/reset-bg/reset-bg-wallpaper.sh


Privacy option not available in 12.10 after update?

Strange I have it, do sudo apt-get install activity-log-manager

In Software Center it is named

  Activities and Privacy Manager Tool

How did you upgrade to 12.10?
 Here https://bugs.launchpad.net/unity/+bug/988846

EDIT: This will do it sudo apt-get install activity-log-manager-control-center


Hard drive doesn't go to sleep when is not in use

Some machines do not natively go into hibernation with Ubuntu installed, my Sony Vaio didnt at first but i found this online and then i was able to put my machine into hibernation when i closed the lid the code is : sudo gedit /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla

and then paste this code into the file that opens in terminal:

[Re-enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

If you go to system settings > brightness and lock > select dim screen to save power


Permanent Solution
It seems that you need to add a directory to your environmental PATH variable.  It is possible that you've gotten that variable installed using your .bashrc.
What happens if you do this:
sudo su -
bash /home/**user**/.bashrc
python jsunpack.py test.htm

If this works for you, then you've probably installed the PATH variable to your user's bashrc and not root's bashrc.  To solve this you can open the user's .bashrc file and look though your PATH declarations:
cat ~/.bashrc | grep PATH

If you find a line that shows the path that you're looking for, copy and paste that PATH into your /root/.bashrc.

Single Time Solution
If you're really lazy, just:
cd /dir/with/jsunpack.py
python jsunpack.py test.htm

I am not familiar with jsunpack, but this may help resolve your issue.


How to change battery settings like in Windows. (Power saving, balanced, gaming)

Yes.  If you want something that is fairly straightforward, you can use TLP, which is a command-line power management tool developed by the folks at linrunner (see docs here).

Otherwise, check out the Ubuntu Wiki on the subject, it is fairly comprehensive and has some useful tweaks:

https://wiki.ubuntu.com/PowerManagement


Macbook Air with 20.10 connects to WLAN but no internet with router tplink

I changed the channel width from auto to 40Mhz. I seems to work ok now.
So probably had nothing to do with the device or the os.


Problems in Upgrading 12.04 to 14.04 which is 64bit wubi application?

what Jo-Erlend posted is not entirely true (at least not in my case), i just did the upgrade yesterday and when i typed the command:

  sudo do-release-upgrade --check-dist-upgrade-only --devel-release

it gave me the option to upgrade to 14.04 lts (i was using 12.04 lts)

however, i did encounter mayor problems after the upgrade (missing files, could not log in, etc)

Thankfully i had a backup, so i opted for an bootable USB with 14.04 and it all went perfect, no more issues, but Jo-Erlend is right, Wubi is not supported anymore

My advice, if you want to upgrade, back up your info and install 14.04 via USB (it will give you the choice of replacing completely the previous Ubuntu 12.04 version)


Download the version 3.3.1 from here.
Extract the archive in your download folder with

unzip LaTeXDraw-3.3.1-bin.zip

Start the installer without sudo

LaTeXDraw-3.3.1/install_debian_ubuntu

Use /opt as target folder
Start Latexdraw via the Dash


League of legends Ubuntu Play on linux "wget failed: Server issued an error response"

To add the solution from the @zork312 comment this are the values you want to add in your local resolution file /etc/hosts :

24.143.193.16 l3cdn.riotgames.com
64.202.189.170 pvp.net
50.57.198.72 support.leagueoflegends.com
66.151.54.140 beta.lol.riotgames.com
216.133.234.23 lq.na1.lol.riotgames.com
216.133.234.22 prod.na1.lol.riotgames.com
216.133.234.21 chat.na1.lol.riotgames.com
216.52.241.153 ll.leagueoflegends.com
23.21.255.17 http://www.leagueoflegends.com
23.21.255.17 leagueoflegends.com
216.133.234.24 store.na1.lol.riotgames.com
216.137.47.27 landing.leagueoflegends.com
72.21.91.29 crl3.digicert.com
205.234.175.175 crl4.digicert.com
199.21.207.10 ocsp.digicert.com


gedit cannot open file in external drive - permission denied

I found solution! And simple... in UbuntuSoftware, search gedit, and you will find together with , launch, remove another button saying permissions. click it and select "on" for "write/read in external drives.. grrr


xmodmap works for gnome session, but not for apps?

Ubuntu uses xkb up to allowing different keyboard layout per window. Those are activated per window and here probably is the reason of xmodmap being ignored.

First play with existing options (just open keyboard preferences and click Options on your keyboard layout). There are some key swapping options there (I don't have mac so I don't know whether there is an option to swap alt and command, but it is fairly likely).

If not, /usr/share/X11/xkb directory may be of interest but here I don't feel able to explain how to add new keyboard options.


Cannot connect to wi-fi network in Lubuntu 14.04

It seems I fell victim to multiple techniques of network configuration conflicting with one another. In my /etc/network/interfaces config file, I had entries for my network interfaces, and the UI in Ubuntu uses the network-manager suite of tools. After removing all my devices (except for loopback) from /etc/network/interfaces, I was able to use network manager utilities to establish my connection. This also resolved the issue of my boot process taking a long time waiting for network configuration.


Why Command Substitiution Works And Pipeline Not

To explain the difference between ls | wc -l and wc -l $(ls).  I am going to take an example.
1. ls | wc -l
As mentioned in the post that this command will count the lines in the output of `ls`.
For instance I have a directory ~/Desktop/Practice/python which contains 4 python scripts.
Now if I use the above command, I get the following output:
4

This means the wc -l counts the output of ls which returned 4 python scripts hence count became 4
2. wc -l $(ls)
Again as suggested by the post, this command will count lines in the list of files printed by `ls`.
Since in this case you are passing `ls` as an argument to the command
Now if I use the above command in the same directory I get following output:
12 palindrome1.py
11 palindrome2.py
12 palindrome3.py
6 palindrome4.py
41 total

This shows that wc -l this time counted the number of lines present in each individual python script which was returned to it by ls.
Difference b/w command line argument and standard input
The actual difference lies in the source of a command. A command could take input using either "commnad line arguments" or by taking a "Standard Input". Hence it is up to the developer of the command how to take input for a particular command.
The pipe passes the standard output of one command to the second command as standard input. Hence if the second command cannot process standard input it will throw an error. However some commands take both command line arguments and standard input like "wc" but the result is different because wc processes standard input and command line arguments differently.
In your case it was basename. If you read the man page of basename :
NAME
       basename - strip directory and suffix from filenames

SYNOPSIS
       basename NAME [SUFFIX]
       basename OPTION... NAME...

DESCRIPTION
       Print NAME with any leading directory components removed.  If specified, also remove a trailing SUFFIX.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --multiple
              support multiple arguments and treat each as a NAME

It is clearly specified that basename takes command line arguments for it's input. Hence pipe will not work.
How to make pipe work
As suggested by @bac0n, to execute the basename with pipe you need to use xargs.
ls | xargs basename -a

This works because xargs takes standard input and passes to another command as "command line argument".


With the following steps I succeeded to get the Lenovo T420 intel graphic running properly:

sudo apt-get install linux-image-generic-lts-backport-natty linux-headers-generic-lts-backport-natty

Then just change the following line in your /etc/default/grub (edit as root!)

GRUB_CMDLINE_LINUX_DEFAULT="quite splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quite splash i965.modeset=1"

don't forget

sudo update-grub

and of course a reboot!

You often can read something about 'i915...' but this seems to be for older Intel graphics (compatibility issues?). I found (somewhere?) the device code for the Intel HD 3000 which is i965.


How do I remap certain keys or devices?

If you want you can set the line on startup apps so you dont have to do it every time you turn on your computer.


What DVD players allow easy selection of chapters/titles during playback?

VLC
VLC  does let you select a different title and/or chapter while a video plays. I don't believe it can show a sidebar like Windows Media Player for this, but the exact same functionality is accessible through the Playback menu.
See below for alternatives, in case you don't want to use VLC.
The Title, Chapter, and Navigation submenus of the Playback menu in VLC let you select a different chapter, title, or both while playing a video.
(It only lists titles and chapters that are provided by the currently loaded video file or the current disc. But you can use View > Playlist to create lists of different media items and select between them.)
Here's a screenshot of a Playback > Title menu selection in VLC (larger size):

That screenshot is from a Lubuntu system, running the LXDE desktop environment. But you do in the same way in any other desktop environment, including GNOME/Unity. The difference is that, in Unity, an application's menu bar will typically be at the top of the screen rather than in the application window under the title bar.
Alternatively, you can right-click anywhere in the video itself, and access the menus, including the Playback menu and its submenus. This works even when VLC is in full screen mode.
Here's a screenshot of a Playback > Navigation menu selection in fullscreened VLC (larger size):

Different DVD's organize their menu hierarchy differently. The DVD shown above is divided into many titles, each with just one chapter. It's more common--especially for a DVD of a single artistic work like a feature film--to have a smaller number of titles (sometimes just one) divided into several separate chapters.
However your DVD is divided, the Title, Chapter, and Navigation menus in VLC let you switch from any title and chapter to any other. (They also usually let you select any of the top-level menus. For example, to jump back to the DVD Menu, use Title > DVD Menu.)
SMPlayer
SMPlayer  is one of a few players available for Ubuntu, besides VLC, that let's you switch to any title/chapter while playing a DVD.
SMPlayer is a bit rough around the edges. I'd suggest VLC over it, for playing DVDs. SMPlayer may ask you want version of mplayer you have installed. Assuming mplayer  is installed, the answer is usually the latest version that SMPlayer knows about, at least these days.
SMPlayer might also ask you to configure the DVD drive, the first time it runs, as it does not yet always have the ability to figure out what drive(s) to play DVDs from. If your Ubuntu machine has only one optical drive, then your DVD drive is usually /dev/sr0 (though /dev/dvd may also work).
And SMPlayer's support for displaying DVD menus is experimental. In my limited experience, it seems to usually work okay. Please note that this has little to no bearing on its ability to switch between titles and chapters via its own interface.
SMPlayer's Browse menu lets you navigate through the structure of the currently playing DVD, through its Title, Chapter, and Angle submenus. It also has menu items to switch quickly to interactive DVD menus (if you've enabled them in SMPlayer).

The Title and Chapter submenus of Browse in SMPlayer work mostly the same as the Title and Chapter submenus of Playback in VLC.
Like in VLC (as descrbed above), the menu bar in SMPlayer will typically appear at the top of the screen if you're in a Unity desktop; only a few applications override this and keep their menu bars inside the application window.
Also like in VLC, the SMPlayer Browse menu and its submenus are accessible while in full screen mode, by right-clicking:

Kaffeine
Especially if you use a KDE desktop (Kubuntu), you might wish to use Kaffeine .
It will work without KDE as well, and installing it doesn't tend to pull in too many additional dependencies. (This is nice, as many KDE applications require large parts of KDE to be installed; Kaffeine does not.)
Kaffeine supports DVD playback, and has had full menu support for some time. It also supports navigation to any title, chapter, and angle of a DVD from the Title, Chapter, and Angle submenus of its Playback menu, or directly from the contextual menu that comes up when you right-click inside the video.

To illustrate the techniques described, this answer contains a small number of partial still images from Reformation 1 (2009), Sin by Silence (2009), and Pushing Hands (1992). I believe these circumstances constitute fair use.


How to set default read privileges for all localhost projects?

If it's just you creating the websites and no other user needs access to it you can just change the apache config to run the webserver as your user.

in the terminal change the permissions of /var/www/html to your user

sudo chown -R username:username /var/www/html

Then change your apache envvars

sudo nano /etc/apache2/envvars

And change the lines to your user.

export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data

Restart apache and everything should work correctly without having to mess around with folder permissions.

sudo service apache2 restart

Alternative

You can set the permissions using a crontab, just type crontab -e into the terminal and add this line to the bottom

* * * * * chmod -R 755 /var/www/


/etc/pm/power.d scripts not executing after update to 13.10

I ended up adding the

upower -e

line to my /etc/rc.local file, which just enumerates the available power sources and starts upowerd if it's not already running.


Examine processes and threads of a program in the terminal

top is display linux processes.
More detail about top. Command man top


From the comments...

You need to enable a swap file or swap partition. 8G should work, or 17G if you have hibernation enabled.

Also check the manufacturer's web site for BIOS updates, and video driver updates.


How to install Ubuntu 12.04 on MacBook Pro?

It sounds like you might have bought the latest MacBook Pro, which is the 10,1 model.  People are still investigating how to get Ubuntu working completely on that hardware, so I would not recommend installing Ubuntu on it unless you know what you're doing and want to make a serious time commitment.

Here's the link to the relevant Ubuntu help page:  https://help.ubuntu.com/community/MacBookPro10-1/Precise  There's a link to the forum thread where people are working on the hardware issues.  There's also instructions on how to find out what model you have and a link to a directory of help pages for the older models.

Now to specifically answer your question...The general instructions for installing a dual-boot from the Ubuntu cd are here.  It involves installing rEFIt.  I expect it will work for you, but as I said above, the real problem may be afterwards, when trying to get all the hardware to work.


Headphones not working in Kubuntu 18.04, inbuilt speakers are working

Go to System Settings > Multimedia > Audio & Video > Device Preference

Make sure you set your headphones to a higher preference than inbuilt speakers for Music, Video, and whatever other audio categories you're using your headphones for.


how to write a script which will displays only regulars files

To get a count of all the regular files in the current directory and its subfolders, you can use
find . -type f -printf x | wc -c

Note that "regular files" include hidden files (aka "dotfiles") which you will not see with plain ls (it would need ls -A or ls -a)


I can't use "remove" to uninstall xtreme download manager

It seems to be installed completely in /opt/xdman, with xdman.desktop copied to /usr/share/applications/and creating a symbolic link /usr/bin/xdman. So, to completely remove/uninstall, you should remove the link, the desktop file and the installation directory:

sudo rm /usr/bin/xdman
sudo rm /usr/share/applications/xdman.desktop
sudo rm -r /opt/xdman

This should do it.


After installing telnetd and xinetd with command

sudo apt-get install xinetd telnetd

Create file telnet and put in /etc/xinetd.d

sudo nano /etc/xinetd.d/telnet

# default: on
# description: The telnet server serves telnet sessions; it uses
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

Restart xinetd service

sudo service xinetd restart

In xinetd.conf you have includedir /etc/xinetd.d and don't need line

telnet      stream  tcp nowait  telnetd /usr/sbin/tcpd  /usr/sbin/in.telnetd

erase it.

In telnet file you can add more option like:

only_from = 192.168.120.0/24 #Only users in 192.168.120.0 can access to
only_from = .bob.com #allow access from bob.com
no_access = 192.168.120.{101,105} #not allow access from the two IP.


Just realized. Duplicate question, just showed up on google for me.

Duplicate Question


ClipGrab was removed automatically from my PC and i coudn't install anymore

Download ClipGrab from the clipgrab.org website.
Extract the downloaded compressed clipgrab file.
Open the extracted folder and click on clipgrab.
The application will launch and is ready to be used.
The tool is portable ... so there is nothing to install.
Information for Ubuntu 16.04 LTS :
Currently the clipgrab executable doesn't launch.
But it is available for Xenial from the ClipGrab PPA.


I had this issue and finally was able to use alt+ctrl+del and selected gnome-session and clicked on end and then ok. This got me to login screen and I selected gnome flashback (metacity). All is good now.


An example as an answer

Two scripts in the same path

script1

#!/bin/bash
./otherScript
echo "script1" | tee script1.log

otherScript

#!/bin/bash
echo "otherScript"

Lets start script1 and check the output

% ./script1
otherScript
script1

and the logfile script1.log, created in script1

% cat script1.log
script1


Is there a downside to installing all google fonts in Ubuntu?

With about 1600 variants - I think bold, italic etc have a separate ".ttf" file which were counted here, you will have about 400 fonts

To handle them all in the normal user interfaces for text input has some drawbacks:

These font chooser interfaces are mostly linear, so it may take more time to find a font.
There may be performance problems with handling the fonts it the implementation is not expecting to handle this amount. That could be easily apparent, but it could also be in unexpected places, like seldom used programs or uncommon features. But overall, It's mostly a problem when font-related menus or dialogs open with a delay.
There will be fonts that you will not want to use ever. But you spend time scrolling past them every day, wasting time. And maybe there are times when you really only want to work with your three prefered fonts.

There is a tool that can reduce part of these problems, and make it quite feasible:
The tool that can manage groups of fonts, and activate or deactivate them - where deactivation means making them not installed, seen from the X font system, while the tool keeps track of them.

If, from time to time, you arrange the fonts that you will "never" use in a group, and others that you will "normally not" use, and disable these, you will hide lots of fonts over time.

This reduces the long scrolling along useless fonts
Performance problems will be reduced, depending on the size of number of fonts kept active; Suspected cases of font-related performance issues can easily tested by changing between large and minimal active font sets.
You can keep away the fonts you will never use - not deinstalling them allows to change your mind for unforeseen reasons, and to check against th
e list of names if you happen to get hold of a similar collection of fonts.

A suitable tool to manage fonts seems to be font-manager.
There is also fontypython - which is quite powerful in it's features, but has a very convoluted user interface, so that I can not fully endorse it.


Deleted files and folders to boot to Ubuntu - any way to retrieve files?

I was going to post this as comments, but seeing as it was going to be a series of long comments, and actually have some information in them, I decided to post this answer. I don't like posting answers that don't actually contain clear steps on how to solve an issue, but "data recovery" is not something that can easily be explained over the internet in a post like this; you'll need to do some reading of your own and explore the various tools.

  "So it's definitely gone, regardless. I also emptied the recycle bin."

Trust me, nothing is gone when you "empty the recycle bin" or Shift+Delete something; it's there, you just don't see it. Not to give you false hope though, because if you want any chance of completely recovering the stuff you deleted, stop using the computer now! Or at least, don't copy anything to and from the E partition. The more you use the E partition, the more your deleted folders are actually deleted.

You will need to try data recovery tools to recover your folder/files. There are several data recovery tools and guides for Windows on the internet that you can follow to retrieve the Ubuntu folder and the other files you deleted from your partition.

Unfortunately, even though these "data recovery" tools do actually recover data, if you've already used the E drive a bit, you (and this is my speculation, but you) might not be able to fully recover the Ubuntu folder the way it was, so you might not be able to normally boot back into your Ubuntu as if nothing happened. I'm unfamiliar with what exactly is in the Ubuntu folder, so I'm not sure if you can somehow, from Windows, read the files inside the Ubuntu folder and be able to browse what was inside your Ubuntu installation without actually having to boot into it.

  I am really hoping that it might be as simple as "Click here to download the folder and files you foolishly deleted and simply place them on your E: drive."

Yeaaaah...ehem...about that.


Creating alias and script alias in Apache

As far as I can see, you have only added aliases for /lg/favicon.ico and /lg/lg.cgi, and not the lg directory itself. Try pointing you browser to one of these files, or changing your configuration so that it applies to the entire lg directory.

Also, you should type sudo apache2 restart to make the new changes come into effect.

Update: I think this is the config file you should be using:

#vi /etc/apache2/sites-available/default

Alias /lg/favicon.ico "/usr/local/httpd/htdocs/lg/favicon.ico"
    <Directory "/usr/local/httpd/htdocs/lg/favicon.ico">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

ScriptAlias /lg/  "/usr/local/httpd/htdocs/lg/"
        <Directory "/usr/local/httpd/htdocs/lg/">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                AddHandler cgi-script .cgi
                Order allow,deny
                Allow from 127.0.0.0/255.0.0.0 ::1/128

        </Directory>

Notice that /lg/, which is a directory, points to /usr/local/httpd/htdocs/lg/, which is also a directory. The same thing applies to the Directory directive.

Then point your browser to http://<host>/lg/lg.cgi. Does this work?


Error installing VirtualBox on Ubuntu 18.10 x86_64

Virtualbox needs a couple of packages to work, the kernel headers and dkms.
To install both, you can run:

sudo apt install linux-headers-generic dkms

This will probably fix your problem. If you have recently updated your OS with a new kernel and haven't restarted since then. I highly recommend you to restart your computer.
If you're still encountering errors after this. You should reinstall virtualbox, just run:

sudo apt purge virtualbox-6.0 && sudo apt install virtualbox-6.0


Why my Alt Tab has become ugly? under Kubuntu 14.04

I switched to Xrender from OpenGL.

I don't know what was the problem with OpenGL. Maybe there were some compatibility issues when I installed Cuda ?


Full Disk Encryption Passphrase at Boot: Keyboard not working

I had this issue with 16.04.1. The workaround is to edit grub settings to use "nosplash" instead of "splash". (Note that simply removing "splash" does not fix the problem, at least in my case.)

From grub you can do this for the current boot by pressing e on the menu, and then searching for the line that says splash (should be close to the end), and then hit F10 to boot.

Instead of getting the graphical progress display and passphrase prompt you'll get a text-based prompt, and your keyboard should work. (On my machine I'll still occasionally get a blank screen instead of the prompt, but entering my passphrase at this screen still works, despite the lack of feedback.)

If this works for you, you can edit /etc/default/grub (again, change "splash" to "nosplash") and run update-grub.

Even with this setting, my machine (still running 16.04 LTS) will occasionally give me a blank screen (very dark gray, but slightly light lighter than the black of the BIOS startup) instead of the passphrase prompt. It turns out that you can still enter your passphrase at this point, though there will be no feedback unless you enter it correctly. (In my case, the drive light starts blinking, and the screen "unblanks" to continue the boot process.) This happens for about 25% of reboots. Thankfully, I don't reboot that often.


update manager and terminal is not working

I had the same problem yesterday. Try changing your download server in Software Sources to a different one.

To do this, open the Ubuntu Software Center, click Edit > Software Sources, and select a different (better) server in the Download from drop-down menu.


Is there a way to add shred to right-click menu?

If you want to shred file or folder you can use
nautilus-wipe  .
It is a nautilus extension that adds shredding data options in nautilus right-click menu.

You can add it to you nautilus using sudo apt-get install nautilus-wipe.
Now restart your nautilus using nautilus -q and then starting it either opening it from Dash or using Alt+F2 and entering nautilus.
Now you can find a wipe option in nautilus right click menu.

Selecting this option will open a pop-up window (with some additional option).

Click on OK to wipe you data completely.

Other option is by adding shred in nautilus right click menu.
  Here is a great article on it.


How to delete lines in a range matching a pattern from a file with sed?

In the end I found this killer oneliner:

sed -i '1795,$ {/PaTtErN/d}' file.log

be careful with the -i flag and read the manual before trying