Can't type non-english characters in certain places

I confirmed I had the same problem in Unity and Chromium with the same setup that you are showing, but fixed it with the following workaround.
The existing problem is that even when the menubar correctly shows that you have switched the layout to, say, S1, Unity reacts as if it is using the English layout.
That is, only English output is produced, even though the indicator says S1. Key presses in Unity will only produce the English key, or nothing will appear if no key corresponds to the Serbian combo, or another part of the interface will fire if the combo happens to trigger it. Other applications, however, for example, gedit, will correctly use the Serbian layout shown in the menubar; but Unity still only reacts as if the layout is set to English. In addition, this is not affected by changing the font.
There are 2 issues:

There is a bug somewhere.
This answer provides a workaround for the bug.

Please also note that:

This has nothing to do with input methods. This worked with the default input method set to ibus, fcitx, or none.

This is also not related to settings in xkb-options, such as the Compose Key or the 3rd level chooser (referred to as Alternative Characters Key in Keyboard >> Typing.
(You don't have either of these set; this point is just for completeness.)

The key setting is found in System Settings >> TextEntry.
The default setting is Use the same source for all windows. Unfortunately, the default setting seems to always create the problem.
The workaround is to switch this to Allow different sources for each window.

The New windows setting will work with either choice, but use the default choice seems to be less quirky and work correctly more consistently.
You shouldn't need to log out and in, but it doesn't hurt. At this point, entry with the Serbian keyboards works in both Chromium and Unity search. Well, most of the time. I discovered that Unity is still sometimes a little quirky, but this is also easily worked around.
With New windows use the default source, things worked as expected almost all of the time:
That is, you open Unity, the source switches to English, then you use Ctrl+Space to switch the source. Now the source is S1 (latin). Typing  [  correctly produces š and keys that depend on a combination also work correctly in Unity. For example, Right-Alt+a produces æ.
The quirk is that sometimes Unity's input source and the input source displayed in the keyboard indicator seem to get out of sync and you get or continue to get the problem as described above.
The work around for this quirk is to cycle through the input sources. Press Ctrl+Space until you get back to the source you want.
This re-syncs the input sources most of the time. A few times I had to cycle through twice. Another time, I had to cycle through the sources, exit out of Unity and restart Unity.
The good news is that once the sources are re-synced they seem to stay correct through the rest of the session.
Better yet, as mentioned above, using the setting new windows use default source seems to prevent the quirk from happening in the first place almost all of the time.
The frequency of this quirk appears to be:

Under the default setting Use the same source for all windows: Always. It will never work.
Under the setting Allow different sources -- new use current source: Frequent. Cycling through the input sources and sometimes exiting/restarting Unity is frequently needed.
Under the setting Allow different sources -- new use default source: Rare. Works as intended most of the time. Cycling through the input sources and sometimes exiting/restarting Unity needed now and then, but not often.

I couldn't find this bug in Launchpad, so you may want to report a new bug against input source switching. (I'm not sure of the exact package to report.) There are similar bugs in Launchpad, but all of the ones I saw were older and were not active.


The Messaging Menu API changed between 12.04 and 12.10. The GSettings key in the linked answer is for the 12.10 version, and does not exist in 12.04.

I do not believe there is a way to change the ordering in 12.04 (without modifying the code). From a quick glance at the old code, it looks like everything is sorted automatically.


I'm going to recommend PureFTPD because it's been the simplest and easiest to use in my opinion. You'll need to install it first: sudo apt-get install pure-ftpd once it's installed it'll start itself up. By default it uses PAM Authentications - meaning it uses the accounts which already exist on the system for it's auth. All you'll need to do is create a user account with the home directory being your www path and set the password for that account. You should then be able to connect with that user/pass combination to upload/download files.

Something like this:

sudo adduser ftpman --home /var/www/ --ingroup www-data

Which will create the ftpman user and put him in the www-data group which Apache uses and will walk you through the rest of the setup script. Once that's defined make sure to chmod the WWW folder if you get errors about it already existing to the user/group combination you created.

Lastly if you want to lock down SSH access for that account run: sudo chsh -s /bin/false ftpman which will change that users shell to false. (Replace ftpman with your ftp user)


Any way to upgrade from 9.04 to 10.10 with no CD drive?

You can upgrade and install Ubuntu by using a USB stick. Do note that you cannot upgrade from 9.04 to 10.10 directly, you can move from 9.04 to 9.10 to 10.04 to 10.10 though.

That can take a long time so you'll probably save a bunch of time by backing up your data and reinstalling.


How can I add links/launchers icons to Gnome 3 panel?

Run the app, right click on the icon in the panel, select dock to launcher.


Run the following to fix your home directory permissions:

sudo chown -R $USER: $HOME


To open "Software & Updates" run on terminal:

software-properties-gtk

Ubuntu Wiki is good.


How to display random jokes from www.icndb.com in your terminal?

You can use the icndb RESTful API: http://www.icndb.com/api/.

Install the cowsay, recode and jshon packages:

sudo apt-get install cowsay recode jshon

Then just add the following lines to your .bashrc:

if [ "$PS1" ]; then
    wget "http://api.icndb.com/jokes/random" -qO- | jshon -e value -e joke -u |
    recode html | cowsay -f tux
fi

Note: checking if $PS1 is set ensures that the jokes won't be displayed on non-interactive sessions.
Now when I open a gnome-terminal I get:


If you look closely, you can see that the installer is warning you that you are loading from the hard disk partition sda3 and you will not be able to install it into the same.

From the documentation of unetbootin

  If you provide a LiveCD iso file, such as the Ubuntu desktop iso, to UNetbootin and use the hard disk install mode, the resulting install will NOT be a full, standard hard drive installation. Rather, you are simply booting into the live environment, the same way as if you had booted from a live CD or a live USB, except it's being loaded from your hard disk instead. This is often referred to as a "frugal install", as it doesn't install a dedicated bootloader and doesn't make a separate partition, but rather piggybacks off the existing OS's bootloader and installs the files for the live environment inside the existing partition.

You have to use a USB drive and make it bootable using unetbootin, and then boot from that USB drive and install the OS onto your hard disk.


How to skip grub screen and just boot to windows 7?

To hide the GRUB OS selection screen modify:

GRUB_TIMEOUT=0

And after you save and close run:

sudo update-grub

To permanently delete GRUB use a Windows 7 bootable DVD like this:

when you see the install screen choose the Repair your computer option
select Command Prompt option
write these commands: bootrec /fixmbr and bootrec /fixboot
restart your PC

You will lose the ability to boot into Linux. You'll have to use a Linux live CD to repair GRUB if you want Linux back!


Swap mouse's Primary Button using a shortcut-key

the commands for toggling this behavior are

gsettings set org.gnome.desktop.peripherals.mouse left-handed true
gsettings set org.gnome.desktop.peripherals.mouse left-handed false

make a script for toggling of them like below.

#!/bin/bash

key="org.gnome.desktop.peripherals.mouse left-handed"
current=$(gsettings get $key)

if [ "$current" == "true" ]; then
  gsettings set $key false
else
  gsettings set $key true
fi

for toggling this script needs to run.

save this script in your preferred location.
I have saved the script in ~/bin/ as RLT.sh (Right Left Toggling)

Make the script RLT.sh executable by  running below command.
chmod +x /home/user-name/bin/RLT.sh #replace user-name with yours.

now set a custom shortcut for it as you wish.

go to keyboards, add new short cut anything you wish.

I have made custom shortcut as Alt+Z for running this script.
now, when Alt+Z is pressed, it toggles.


I have not tested this!
This is a guess based on your error message. Since it is complaining that <test></test> sections can't have multiple values, probably all you need to do is split it into multiple ones:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <test name="family" qual="any">
            <string>은 바탕</string>
        </test>
        <test name="family" qual="any">
              <string>UnBatang</string>
        </test>
        <test name="family" qual="any">
                <string>은 돋움</string>
        </test>
        <test name="family" qual="any">
              <string>UnDotum</string>
        </test>
        <test name="family" qual="any">
                <string>은 궁서</string>
        </test>
        <test name="family" qual="any">
              <string>UnGungseo</string>
        </test>
        <test name="family" qual="any">
                <string>은 필기</string>
        </test>
        <test name="family" qual="any">
              <string>UnPilgi</string>
        </test>
        <test name="family" qual="any">
                <string>은 그래픽</string>
        </test>
        <test name="family" qual="any">
              <string>UnGraphic</string>
        </test>

        <edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
        <edit name="hinting"   mode="assign" binding="strong"><bool>false</bool></edit>
        <edit name="autohint"  mode="assign" binding="strong"><bool>true</bool></edit>
        <edit name="hintstyle" mode="assign" binding="strong"><const>hintslight</const></edit>
    </match>
</fontconfig>


Will dual booting Ubuntu alongside Windows 7 on my low-end notebook affect performance

Yes, your linux performance will be much better when running directly in your machine instead of virtualized.

Test a live USB of 16.04 (which is the latest long term support distribution) before installing to see how it will work. It will run slower from the USB, much faster once you install it.


According to the gconf-editor man page

  GConf-Editor  is  a  tool  used  for  editing  the  GConf configuration
     database.  It might be useful when the proper configuration utility for
     some software provides no way of changing some option.

and

  This tool allows you to  directly  edit  your  configuration  database.
     This  is  not  the recommended way of setting desktop preferences.  Use
     this tool at your own risk.

Also look at the answers in Gconf, Dconf, Gsettings and the relationship between them for an overview on gconf, dconf, and gsettings.

To find which files are modified (edited) when you make your changes, you can use the find command.

find ~/ -mmin -5 -type f

will find all files in your home modified in the last five minutes. You can reduce the time find takes by excluding certain folders:

find ~/ ! -path "*mozilla*" ! -path "*cache*" -mmin -5 -type f

Will exclude ~/.mozilla and ~/.cache from being searched.

To give an example, I used gsettings to modify whether FileChooser shows hidden files and folders:

$ gsettings get org.gtk.Settings.FileChooser show-hidden
false
$ gsettings set org.gtk.Settings.FileChooser show-hidden true
$ gsettings get org.gtk.Settings.FileChooser show-hidden
true
$

I then ran find and saw that ~/.config/dconf/user was modified. That file is a binary:

$ file user
user: data
$

In other words, you can't open it and see what's inside as you would open a text file or even a xml file.

I don't have gconf-editor or dconf-editor installed but you can use the same find command to find which file has been modified when you make your modifications and then use file to figure out whether you can see what that file contains (without using a hex editor).


Instead of extracting downloaded files to standard output using -O option with tar you can extract the downloaded archive with -v option.
It will print the extracted filenames with their full path in standard output, pipe that to zip. Your job will be done.
curl -L "http://someurl/some.tar.gz" | tar xvzf - | zip -qr /path/to/myfile.zip -@

Here file list is specified as -@, zip takes the list of input files from standard input instead of from the command line. To know more about zip see man zip
Contents of myfile.zip will be as below:
myfile.zip
└──some
    ├── file1
    ├── file2
    ├── file3
    └── folder
        ├── file4
        ├── file5
        ├── file6
        └── file7

Every files and folders are inside parent folder some which is in  zip's root.
How to the put all files and folders in the zip's root
As OP asked to have all files to be in the zip's root, unlike the above case where all those files and folders were inside a folder that was in zip's root.
Use the following,
curl -L "http://someurl/some.tar.gz" | tar xvzf - --strip-components=1 && zip -qr /path/to/myfile.zip *

It will create contents of myfile.zpi as following:
myfile.zip
    ├── file1
    ├── file2
    ├── file3
    └── folder
        ├── file4
        ├── file5
        ├── file6
        └── file7

The option --strip-components=1 with tar do not extract the first component of the archive i.e., the parent folder. So all the files and folders get extracted in current folder.
You might want to do it inside an empty temporary folder. So that after creating the zip file you can clean the residue.


130+% CPU usage /lib/systemd/systemd-timesyncd

Did you ever get a solution to this? I am having the exact same issue with timesyncd causing the same system unresponsiveness requiring a physical reboot - I am using Xubuntu 16.04. I have seen several other people with various flavors of Ubuntu 16.04 all experiencing this issue.


You can change startup (or any other) sound in Ubuntu as follows:

What you will need: startup sound in ogg format. You can find some ogg sound here

Browse to following paths

/usr/share/sounds/ubuntu/stereo/
/usr/share/sounds/

Look for desktop-login.ogg in the list. If you don’t want to hear anything at startup, delete this file.
If you want to change the sound, replace this file with your favorite track and with the same default name desktop-login. Save and close

You will need root permission to copy the file into this directory which can be done by running nautilus as root. Nautilus is a graphical application and, as such, it is better to open it with gksu instead of sudo:

gksu nautilus


Pan0 is a very good looking panorama viewer

It is free, fast, and makes the panoramas look impressive. It uses a Flash-based spherical panorama viewer, which you can even embed into your own site or blog. Unlike Gigapan, Panoramio and similar sites, pan0.net takes care of perspective transforms, and allows to view the panorama as if you were rotating your head - it is not just zooming and panning a large flat image. It is much more immersive.

It Features

very immersive spherical panorama player (open source)
support for 360°×180° and partial panoramas (if angle of view is set)
interactive map reference (also the view direction on the map)
hotspots on the panorama (text or image)
virtual tours
panoramas are embeddable (just like you embed youtube videos)
small and large resolution views, view on black or view on white

Upload limits

Source panorama image can go up to 8000×4000, but it is effectively ‘rescaled to 5000×2500 for smooth panorama preview’;

Credit to @sastanin, from whom I sourced this info off StackExchange's Photography Site:
https://photo.stackexchange.com/questions/12765/online-viewer-for-panorama-photos


Selecting between installed java versions :

sudo update-alternatives --config java

... Then select the preferred version.


Why is mysql run in server-client model?

MySQL operates in a networked environment using a client/server architecture. In other words, a central program acts as a server, and various client programs connect to the server to make requests.

MySQL Server, or mysqld, is the database server program. The server manages access to the actual databases on disk and in memory. MySQL Server is multi-threaded and supports many simultaneous client connections. Clients can connect via several connection protocols. For managing database contents, MySQL Server features a modular architecture that supports multiple storage engines that handle different types of tables (for example, it provides both transactional and non-transactional tables).

Note : But sqlite in just no sql file where it can br read and write to  main certain amount of data. Similar to excel sheet storage


How to add a drop shadow effect in Gimp?

Making a drop shadow is quite simple in gimp, but is a bit tricky sometimes.

First make a selection, this will be the area where your drop-shadow will be made.

I'm going to fill my selection with red.

Now, go to in the menu -> Filters -> Light and Shadow -> Drop Shadow...

That will open this dialogue:

There are many options, X and Y change the distance from the object the shadow is left/right and up/down, the values go positive and negative. Play around with them to your liking or purpose.

The default values make a drop shadow like this:

Maybe not exact to what you want, so playing around with the values, we can come up with something nice.

If we want to get more advanced we can add a layer mask to the drop shadow layer and mask off only the bottom part of the shadow (or erase the rest with the eraser if you want).

Or If you feel skilled with the paint brush you can paint a shadow from scratch as show below:

And in mixing techniques you can come up with convincing shadows for your design:


Yes you will have to create at least 1 partition to install Ubuntu. You can shrink either /dev/sda2 or /dev/sda3 to make space for Ubuntu. You can use the Windows 7 disk management console to do this (recommended) or GParted (I recommend that you have a Windows Repair CD handy in this case).

Then you can create an extended partition in the free space, and - using GParted either from the Wubi install or a live CD - create two logical partitions, one as ext4 for Ubuntu and another as linux-swap for the swap partition. The swap partition must be > than the size of your RAM if you want to be able to hibernate. Refer to this guide for an indepth discussion of partitioning using GParted on a live CD.

Then you can either migrate the Ubuntu install using the link Jorge Castro provided. There is a script that will do it automatically (my answer at that link) or you can do it manually as per the accepted answer.


I was able to fix the black borders in Ubuntu 13.10 with the commands below. Although I did not have problems with terminal not showing text.

Reset compiz settings:

dconf reset -f /org/compiz/

Then restart Unity:

setsid unity

(Source)


That's a Java Network Launch Protocol file. You need to install Iced Tea, which can run JNLP files.
Open a terminal and run the following command
sudo apt install icedtea-netx icedtea-plugin

Double-click the .jnlp file to run it.


Clearing Discs With Ubuntu & Windows to Install Ubuntu Only

First, you must determine your boot modes: BIOS or EFI. Note the plural modes; it's possible to install Windows in one mode and Ubuntu in the other. You can learn each OSes' boot mode from Ubuntu:

Check for a directory called /sys/firmware/efi. If it's present, Ubuntu is booted in EFI mode; if it's absent, Ubuntu is booted in BIOS mode.
Type sudo parted /dev/sda print | grep Table. (This assumes you've got one disk, /dev/sda.) If the result reads Partition Table: gpt, Windows boots in EFI mode; if it reads Partition Table: msdos, Windows boots in BIOS mode.

If you're booting Ubuntu in EFI mode, as I suspect, you can adjust your boot menu by using the efibootmgr utility. Type that command alone (with sudo) to see your boot entries. You can then change the order by using the -o option. Note, however, that some computers have buggy EFIs that ignore or reset these settings. With them, ugly workarounds are required, as noted on this page of mine.

If you're certain you want to wipe both Windows and Ubuntu from the disk and start fresh, you can completely destroy all your partition table data from Ubuntu:

sudo sgdisk -Z /dev/sda

This command will completely destroy your partition table data on /dev/sda. When you re-run your Ubuntu installation medium, you can set it up to take over the whole disk. That said, if you're using EFI, it's conceivable that the NVRAM entries that point to your old Ubuntu installation will survive. In this case, you may want to use efibootmgr to delete them, particularly if they cause you any trouble. I recommend you ignore this possibility for now and post a new question if you have problems, or check out this question and answer, which covers the most likely problem.


Allview m7 Start doesn't sound so mainstream (no offense), meaning that the VendorID might be necessary to allow it to connect via USB. Weird stuff, but similar to what I experienced with different phones (Ubuntu phones, but the problem was with the PC. It could very well be that your problem is the same, and can pretty easily be fixed. Open up a terminal on your pc, and run:

lsusb

The lsusb command lists all usb devices. this is to get the vendorID from your phone. Output should look something like this: (if you don't know which device it is, unplug, run lsusb, then plug in, run lsusb again. Probably there is no name after the ID code if it is unidentifiable)

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 05c8:021e Cheng Uei Precision Industry Co., Ltd (Foxlink)
Bus 001 Device 007: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 002 Device 003: ID 0781:5567 SanDisk Corp. Cruzer Blade

The 4 character string after ID is the vendorID. This needs to be listed in ~/.android/adb_usb.ini. Because this is hexidecimal, it has to be prefixed with "0x":

0x2a45

If the file or directory is not present, (I'm not sure and can't really test now, please comment on that!) the above may not help without installing android-tools first:

sudo apt-get install android-tools

Good luck!


How to check that ssh will launch on restart?

From a terminal run systemctl list-unit-files | grep ssh and if the service says enabled it should start back up when the system reboots.

$ systemctl list-unit-files | grep ssh
ssh.service                                                      enabled
ssh@.service                                                     static
sshd.service                                                     enabled
ssh.socket                                                       disabled

And you can check the current status of ssh by running systemctl | grep ssh

$ systemctl | grep ssh
ssh.service    loaded active     running   OpenBSD Secure Shell server

Hope this helps!


Can't mount ubuntu partition ubuntu 14.04

Boot the computer with a live-dvd/usb.

Open a terminal.

Run it:

sudo -i
fsck -a /dev/sdb5


How to compile folder that contains bin, lib and share

The compiling instructions are documented on the FileZilla Wiki,

  FileZilla 3 has the following dependencies:

  libfilezilla
  wxWidgets
  GnuTLS
  libidn (under Unix-like systems)
  gettext (Compiletime only)
  libdbus (under Unix-like systems)

Then to actually compile it,

  If all dependencies are installed, compiling FileZilla is as simple as calling

  ./configure
make
make install

This is pretty much the standard way of compiling and installing most free/libre and open source software on GNU/Linux.


I just added your device to my fork of Mange's rtl8192eu-linux-driver on github, in terminal
sudo apt-get install git dkms build-essential
git clone https://github.com/jeremyb31/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0

Reboot

You will have to remove any driver installed with ndisgtk before this will work

Edit I figured out I had a typo

sudo dkms remove rtl8192eu/1.0 --all
sudo dkms uninstall rtl8192eu/1.0
sudo rm -r /usr/src/rtl8192eu-1.0
sudo rm -r /var/lib/dkms/rtl8192eu
cd rtl8192eu-linux-driver
git pull
cd
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0
Reboot


Answering the first half of your question How can I identify what produces this empty window, with the window open, open the Terminal and type xlsclients:

dell  bamfdaemon
dell  ibus-ui-gtk3
dell  ibus-x11
dell  unity-settings-daemon
dell  unity-panel-service
dell  indicator-printers-service
dell  indicator-keyboard-service
dell  unity-fallback-mount-helper
dell  polkit-gnome-authentication-agent-1
dell  nm-applet
dell  gnome-software
dell  nautilus
dell  compiz
dell  telepathy-indicator
dell  gnome-terminal-server
dell  update-notifier
dell  notify-osd
dell  hud-service
dell  google-chrome-stable
dell  conky

Then close the window and run xlsclients again. The process running the window will be the one(s) on the first list but not on the second.

Finding the process name is the first step to stopping it.

HTH.


Clean Install to "upgrade" from 14.04 to 16.04 on Acer (AMD), and going back?

Use CloneZilla to perform a complete system backup, install Xenial Xerus and if you don't like it or it doesn't work the way you expected it, then ... try to fix it first ;)

And if it still doesn't work you can use your image created with CloneZilla and restore your system exactly the way it was before.


Ceph drive failure and replacement procedure

Ceph is designed to remain highly available despite individual failures of hard disks, nodes, or entire racks when a cluster is correctly designed. This is the primary reason for the 3-replica strategy on the data (RAID is not required nor is recommended).

You do not need to replace a hard disk before it fails, the standard replacement procedure would be to swap all failed hardware on a scheduled day of the month as part of your operational routine. You of course need to have enough free space in the cluster to accomodate your nominal hardware failure rate, but you need to have free space for other reasons in any enterprise storage system, so that goes without saying.

Once the drive fails, Ceph will create new copies of the data that was stored in the corresponding OSD elsewhere in the cluster, and restore the level of resiliency for that data to three replicas. That data is "degraded" to two replicas until this completes, but remains highly available as you still have at least two copies of it in the healthy part of the cluster.


Have a look at your /etc/apt/sources.list and remove (or fix) those two lines that cause the error 404. After removing the update process can be started again and it will continue updating.

Canon precise page.

  Canon printer driver precise

  This PPA does not contain any packages yet. Find more information about how to upload packages in the PPA help page.

This is probably the cause for the error 404 (non existing URL).

There is also:

Canon printer driver daily.

deb http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu precise main
deb-src http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu precise main

But I am not sure if this is what you need.

It could also be this that you need:

Canon printer drivers 2012

Though these only seem valid for Oneiric.


Bluetooth headphone stops playing sound after some time

This is the problem with simultaneous usage of Wi-Fi and bluetooth. They share the same radio frequency at 2.4 GHz. You can fix it by turning on bluetooth coexistence feature.

Run in a terminal

sudo tee /etc/modprobe.d/ath9k.conf <<< "options ath9k btcoex_enable=1"

and reboot.


How to hide ext4 and dm-crypt partitions from a windows (7) install?

I'm guessing you are using GPT instead of the msdos partition table.  It seems that for some time parted followed Microsoft's lead and used their GPT partition type code when creating partitions, and Ubuntu has not yet updated to a version that no longer does that.  This causes Windows to assign the partition a drive letter, and when you try to open it, and it doesn't recognize the filesystem, it offers to format it.  You need to change the partition type code to get Windows to ignore it.

sudo apt-get install gdisk
sudo gdisk /dev/sda
t
1
8300
w

Use the gdisk command to change the type of the partition ( 1 in this example ) to the Linux type ( 8300 ).


How can I recover Endpoint Encryption bootloader?

I have done some checking for you in relation to this and it looks like bad news to be honest.
Without access to the Wintech CD (The MEE recovery software) or the Safetech FD (Pre version 5) it is almost and I say almost impossible to recover the files.

I don't know if you can download an ISO of the Wintech Cd and use your .SDB file (Assuming you created one when you set-up the encryption.

There are companies that specialise in recovering data from Hard drives and this sort of error and I know my company deal with this kind of issue on a much lesser scale so it may be worth thinking about that option however as you have now installed Ubuntu I am daring to make the assumption losing this HDD for a while is not an option.

I hope this helps.


It's fairly easy.

Open up the Unity menu (you can open it via the Super/Meta/Win key) or via clicking the Ubuntu logo in the upper-left:

Then search guake:

And click on the Guake Preferences icon. It'll be different looking for you, since I use the Numix Circle icon theme, but the text will be the same:

Once it opens, select the Keyboard Shortcuts tab and then click on the F12 item, under the Shortcut label:

And you should be able to set it from there!


This is a known bug, with some fixes. Happens to me from time to time.
Bug:
Dash (from Unity) does not showing Applications

Fix: Work your way through the suggestions listed here.
Dash search gives no result


You cannot open unity's dash using cairo dock but the dock comes with its own applications menu, you can use Ctrl + F1 to open it. It has a search box on top which you can use to search with-in the applications menu items.

it is not as powerful as unity dash, doesn't search files etc but better than having nothing at all.


VLC Plays Local Files, Does not Play Files on SMB Share

That's a known VLC issue.  It never did.  When you mount your network share, its files are also shown in the /run/user/your_user_id/gvfs folder.  Locate the file you want to play in that folder and play it from there.


Making "java -jar OSBuddy.jar" an icon I can execute on my desktop?

Write a shell script such as:

#!/bin/bash
java -jar OSBuddy.jar

save that to a file called OSBuddy.sh (caps in unix file names bug me but thats just me) and make sure to mark the permissions as executable.

chmod +x OSBuddy.sh

Now when you call it make sure to use:

./OSBuddy.sh

if you are in the same directory otherwise put it in the full path (if you call it from the command line).

To make an icon for it:
Right click on your shell script in the file browser. Create link. Then drag and dropped the link to desktop.

Or run the program if its a GUI, and then on the launcher, right click and there should be a command to "Lock to Launcher".


My wordpress site shows the .htaccess content instead of output

It looks like the PHP module for Apache isn't installed, because the PHP code is displayed as raw text. Try to install and enable it:

sudo apt update
sudo apt install libapache2-mod-php7.0
sudo a2enmod php7.0
sudo systemctl restart apache2.service

Here is step-by-step guide for WP installation on Ubuntu 16.04: WordPress Installation Failed.


Ubuntu Touch Development: DBus connection via apparmor-template=unconfined?

Thanks for your answer.
This is what I did. See manifest.json.in:

{
    "policy_groups": [
        "networking"
    ],
    "policy_version": 1.2,
    "template": "unconfined"
}

Thus following ways worked for me for muting BQ phone by any Ubuntu Touch application, but only by specifying the security template as unconfined.

Launch pulse audio command:

 [...]
myProcess = new QProcess(this);
connect (myProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(printOutput()));
connect (myProcess, SIGNAL(readyReadStandardError()), this, SLOT(printError()));
QString cmd("/usr/bin/pactl");
QStringList arguments;
arguments.append(QString("set-sink-mute"));
arguments.append(QString("0"));
arguments.append(QString(muted?"1":"0"));
myProcess->start(QString(cmd), arguments);

Send DBus message:

QDBusInterface handlerPropertiesInterface("org.freedesktop.Accounts", "/org/freedesktop/Accounts/User32011", "org.freedesktop.DBus.Properties", QDBusConnection::systemBus());
handlerPropertiesInterface.call("Set", "com.ubuntu.touch.AccountsService.Sound", "SilentMode", QVariant::fromValue(QDBusVariant(muted)));

To my mind it would be better to have a specific template for sending DBus messages (other than "wide" unconfined template), right? Or is it possible to define own security templates?


Accessing an old hard drive on a usb adapter with ubuntu 11

In theory, it should just work.  That is, if the 3.5 inch disk is connected properly, when you plug in the USB connecting the external disk to your computer, Ubuntu should just recognize it.  Then, it should either appear on the sidebar, or when you open a folder, you should see it under 'devices.'

If that isn't happening, then I would guess that it's a hardware issue and not a problem with Ubuntu.  To verify this, you could try plugging it into a different computer and see if it works there.


Ubuntu 14.04 stops responding and capslock light blinks

A blinking Caps Lock LED indicates that a kernel panic jut happened.

Why does my 'Caps Lock' diode blink when my system freezes?


XDG-open is for opening the "right" application for the file type. In your case you like to run the application google-chrome in the background - XDG-open is not used for this purpose.

Instead, use your shell (assuming Bash here) to have the program run in the background:

nohup google-chrome &

Explanation: appending & makes it run in the background (you'll get your shell back) while nohup will keep the application open (disowns). See my answer in How can I close a terminal without killing the command running in it? for more details.


How can I make the network boot before mountall in 12.10?

Look in /etc/rc0.d for the service, it will have S##service e.g. S35networking

Renaming it to S36mountall will make it load just after networking. Or make the number 99 and it will load last.

That's all I can think of.


Sendmail very slow - /etc/hosts configuration

Got the answer at superuser.com https://superuser.com/a/626219/242163:

Sendmail requires that the result of "hostname" be a fully qualified domain name to start cleanly.

Set the hostname to something like piotr-probook.localdomain and update /etc/hosts.

/etc/hosts

127.0.0.1   piotr-probook.localdomain piotr-probook localdev localhost


First remove any nvidia packages you might have had laying around

sudo apt-get purge nvidia*

Add the repository to your repo list

sudo add-apt-repository ppa:graphics-drivers

And update

sudo apt-get update

Then enter the following

ubuntu-drivers devices

in terminal which gives the following output:

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001B81sv00001462sd00003302bc03sc00i00
vendor   : NVIDIA Corporation
model    : GP104 [GeForce GTX 1070]
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-396 - third-party free
driver   : nvidia-driver-415 - third-party free recommended
driver   : nvidia-driver-390 - third-party free
driver   : xserver-xorg-video-nouveau - distro free builtin

Now one may take the recommended driver from the list and installs it by

sudo apt-get install nvidia-driver-415

Credits to j-money for 80% of this answer


16.04 LTS on Virtualbox - Drag/Drop from PC to Ubuntu Not Working

I figured out it sort of works.  The file is transferred to /tmp/VirtualBox Dropped Files/'time stamped dir'/'file'.  It doesn't put it in dropped folder.  You can manually move it.  /tmp/VirtualBox Dropped Files is deleted on reboot.


Ubuntu Sublime Text 3 SublimeLinter jshint not working

Change "show_errors_on_save" from false to true; and then restart you sublime. Should work. Did for me!


No sound when playing a music or a video but notification sound effects work normally

Try going into your sound settings and selecting a different output method.
See screenshot below:

If I choose "Digital Outout (S/PDIF)" as my output, there is no sound. But if I choose "Speakers" sound works correctly.


Running Ubuntu via live USB error on Dell XPS 15 9560

It appears that the 'nomodeset' trick does the trick! I have now installed Ubuntu 18.04 successfully onto the Dell XPS 15 and it is working fine!

If the bootable USB is set up correctly, and the install/live trial is freezing after the GRUB, then try the following 'nomodeset' trick, as explained in this link provided by pHeLiOn:

http://www.dell.com/support/article/uk/en/ukbsdt1/sln306327/manual-nomodeset-kernal-boot-line-option-for-linux-booting?lang=en


How do I remove a user completely from Ubuntu 16.04?

use the command from terminal

sudo userdel <username>

after this you can delete the home directory of that user using

rm -r -f </home/username>


It saves the file in your log location. it doesn't actually output to the screen. mine was saved to /var/log/named/. YMMV.


How to associate a file with a newly installed app on tablet?

For a particular mime types default handling application you'd want to look in

/usr/share/applications/defaults.list

This file contains the default applications for all handled mime types.

If an application isn't configured to open a file at all (not only as the default application for that type of file), you'd need to look in its desktop entry in

/usr/share/applications

To add it where appropriate. These desktop files are also used in the defaults.list, where the format is:

handlerType/fileMetaType=desktopentry.desktop

handlerType is the type of handler, e.g a binary file will have "application" because it will be specific to an application, while a common mp4 file would have "video" as the mime type, a text file "text", and so on. The fileMetaType is the specific file type, such as a pdf of binary format which would have the fileMetaType of "pdf". desktopentry.desktop is simply the desktop entry of the file you're using to open that application. These terms are probably not what are widely used, but I'm using them to hopefully better explain what the things mean. Let me know if anything isn't clear.


Permission denied error executing C++ files stored in a windows 7 (NTFS) partition

I'd suggest coping the files into your local home directory using:

cp -r /media/sandun/Data ~/

This should fix the permission (and owner-ship) issues.

Then use the copied data in the following directory: ~/Data/cpp

Note: ~ refers to your home directory (something like /home/username/Data/cpp)


How to connect to DSL modem using PPPoE?

Setting up your device as a plain modem removes its ability to provide network addresses to your network, instead it acts only as a modem, passing the internet connection directly to your PC.

Looking at your ifconfig:

  ppp0
  inet addr:92.229.x.x P-t-P:213.191.x.x Mask:255.255.255.255

you can see your internet (external) IP address, and here

  eth0      Link encap:Ethernet
           inet6 addr: fe80::x:x:x:x/64 Scope:Link

you can see you don't have an internal IP address. Hence you will not be able to connect to any other devices in your network.

In your modem/router settings you should have the option to set it up as a router so it gives out IP addresses and shares the internet connection between devices. This setup depends on your router, though.

To reset to factory settings you normally power up the device while holding in the reset button for 30 seconds or so.


How do I paste to terminal executable content by command line?

I am not sure whether I understand what you are trying to achieve, but you can easily run long commands or scripts without storing them as a file by using Bash's command editor.

Press Ctrl+X, then Ctrl+E. This will bring up your default editor, usually nano.

In here you can now easily paste the commands or the full script you want to run.

When you're finished, exit nano saving the changes by pressing Ctrl+X ("Exit"), then answer Y (or whatever letter represents "Yes" in your locale) when asked whether to "Save modified buffer". Then press Enter to accept the proposed temporary file name.

As soon as the editor terminates, Bash will run the temporary script and then delete it afterwards.


How to upgrade Ubuntu and keep Steam game data?

Steam keeps all its data in your home folder (specifically, .local/share/Steam/), and uses the SteamApps directory within it for downloaded content (unless you configured it to use a different location. Since upgrading usually leaves your home folder untouched, Steam data should also be left untouched.

You can also make a separate partition for /home, but it would simpler to make Steam use a different location (on some other partition).


The user added icons are in the user's home folder in a hidden folder:

home/user/.icons

The installed icons through APT aswell as the defualt icons are in:

usr/share/icons

The first can only be used by the user that has them, the second can be used system wide.The icons you mentioned for example are in the Humanity folder under usr/share/icons/Humanity/actions/XX (xx=size) most are in the 48 size folder and are in both .png and svg file formats and some other in ubuntu-mono-dark.

To edit them you need to use gksu


adjust character order of file names (batch)

If you really only need to "adjust character order" then it's fairly straightforward with the Perl-based rename command, using capture groups and backreferencing.

Ex. given

$ ls
000000  02jan1999  19.11.2017  23-11-2012  file

then

$ rename -n 's/(\d{2})[-.](\d{2})[-.](\d{4})/$3-$2-$1-file-name-default/' *
rename(19.11.2017, 2017-11-19-file-name-default)
rename(23-11-2012, 2012-11-23-file-name-default)

OTOH if you want to do date conversions like jan --> 01, then it's a bit more complicated. You could write your own lookup table using a hash, or make use of the strptime and strftime methods provided by the Time::Piece module:

$ rename -n '
  BEGIN{use Time::Piece};
  my $dt;
  eval {
    $dt = Time::Piece->strptime($_,"%d-%m-%Y");
  } or do {
    eval {
      $dt = Time::Piece->strptime($_,"%d.%m.%Y");
    } or do {
      eval {
        $dt = Time::Piece->strptime($_,"%d%b%Y");
      } or return;
    }
  };
  $_ = $dt->strftime("%Y-%m-%d-file-name-default")
' *
rename(02jan1999, 1999-01-02-file-name-default)
rename(19.11.2017, 2017-11-19-file-name-default)
rename(23-11-2012, 2012-11-23-file-name-default)


Ubuntu 12.04: Google Cloud Print Credentials Error

[[EDIT]] It appears this is a bug in Chromium:

https://productforums.google.com/forum/?fromgroups=#!topic/chrome/py5rXlYDM8w

and appears to be resolved in the code: https://code.google.com/p/chromium/issues/detail?id=154155#c7

However, as of this writing I'm still experiencing the bug, so the release hasn't yet made it downstream through Ubuntu :'(

Soon. Soon...


Adding Seamonkey/Firefox extensions to custom LiveCD

Two options for creating custom ISO for ubuntu:

Remastersys: A tool that can be used to do 2 things with an existing Debian,  Ubuntu or derivative installation.  It can make a full system backup including personal data to a live cd or dvd that you can use anywhere and install.  It can make a distributable copy you can share with friends.  This will not have any of your personal user data in it.  How to use this tool w/ Ubuntu: http://www.geekconnection.org/remastersys/ubuntu.html.
APTonCD: A tool with a graphical interface which allows you to create an ISO with all of the packages you've downloaded via APT-GET or APTITUDE, creating a removable repository that you can use on other computers.  APTonCD will also allow you to automatically create media with all of your .deb packages located in one specific repository, so that you can install them into your computers without the need for an internet connection.


Lubuntu14.10 file server not playing video files

14.10 is a version of Ubuntu with a shorter support period.  Problems are solved more quickly on this version, but it also has more problems.  For stability, always choose LTS versions.  See this Q&A for more info.

Furthermore, copy-paste or cut-paste should make no difference, however the way you remove the USB disk has an impact.  If you just yank it out without ejecting it, you're going to end up with unreadable files in the long run.

I don't think you have to re-install the system: do a apt-get purge kodi and apt-get install kodi
OR
try MiniDLNA.

On the other hand, if you do decide to re-install, read this Q&A on how to better set up and backup your system, so that if you do run into troubles, you're just a restore away from a solution.


Is there a way to limit the upload rate of a particular application?

Try to install trickle

sudo apt-get install trickle

  Trickle is a voluntary, cooperative bandwidth shaper. it works
  entirely in userland and is very easy to use.

  The most simple application is to limit the bandwidth usage of
  programs.

here's a reference: http://www.tuxradar.com/content/control-your-bandwidth-trickle


Cannot access local webpage (error: could not resolve host)

As @George said, while there is no FQDN that points to your server's IP,  you need to bind the domain name with the loopback interface - 127.0.0.1, through the next line in the /etc/hosts file:

127.0.0.1 localhost223.com

Then edit /etc/apache2/sites-available/test.conf in this way:

<VirtualHost *:80>

        ServerName localhost223.com
        DocumentRoot /var/www/test

        <Directory /var/www/test>
                Options None FollowSymLinks
                # Enable .htaccess Overrides:
                AllowOverride All
                DirectoryIndex index.html index.php
                Order allow,deny
                Allow from all
                Require all granted
        </Directory>

</VirtualHost>

Don't forgot to sudo a2ensite test.conf, then restart the web server:

Ubuntu 14.04: sudo service apache2 restart
Ubuntu 16.04: sudo systemctl restart apache2.service

Try to access your page through the browser.


AMD 6870 Twin Frozr II video adapter issues

Press Ctrl+Alt+F1 keys at the purple screen to you can access a terminal, login with your username and password.

Remove all the fglrx traces from your system:

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

Remove your xorg.conf

sudo rm /etc/X11/xorg.conf

Reinstall xorg

sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64

Configure Xorg

sudo dpkg-reconfigure xserver-xorg

Reboot:

sudo reboot

You should be back at using the open-source drivers and being greeted with your login screen.

After this install the drivers from ATI.

Download the newest ATI driver (current version is 11.11)

mkdir ~/ATI && cd ~/ATI
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-11-x86.x86_64.run

If you have a 64 bit system, then install this before anything

sudo apt-get install ia32-libs

Once downloaded set the downloaded file to run as executable

chmod 755 ati-driver-installer-11-11-x86.x86_64.run

Build the packages for Ubuntu 11.10 and install them

sh ./ati-driver-installer-11-11-x86.x86_64.run --buildpkg Ubuntu/oneiric
sudo dpkg -i fglrx*.deb

Once the driver is installed you need to start up a new xorg.conf file with this command

sudo aticonfig --initial -f

Reboot

sudo reboot


13.10 - Samba mount error: Could not resolve address

the CIFS module only supports DNS names, not NetBIOS names (which I suspect gonzalo-pc is). Try replacing 'gonzalo-pc' in the CIFS mount command with the IP address of the machine.


Undelete Ubuntu One files, deleted with reconnected PC

So, the reason why files became inaccessible was the removal of the UDF upon the connection of a new machine. The reason for that behavior has to be determined. The UDF was recovered on the server side and now I am awaiting the confirmation from Khoss.

Update: Khoss confirmed that the files are now available.


Same happened with me also (in Ubuntu 12.04)
I did the following.
Hope its of some help.

Enter the log in screen
Press CTRL+ALT+F1, (to revert back press CTRL+ALT+F7, though it won't be needed)
login with your username/password
ls -Shla | grep "Xauthority"
sudo mv .Xauthority Xauthority.old
sudo shutdown -r now


How to make Rhythmbox stop continuous auto playing songs

rhythmbox --rhythmdb-file '' example.mp3

This tells Rhythmbox to temporarily use another library database filename, in this case an empty string so the library is always empty and never saved.

You can use two single quotes (not backticks), or two double quotes, for the empty string. On exiting, it will print this (hopefully) harmless warning: "Couldn't rename  to .tmp: No such file or directory".

You can also use /dev/null as a filename. Then Rhythmbox will print this (hopefully) harmless warning on exit: "Can't save XML: Permission denied".

In both cases, it will not interfere with your default library, which you can get back when you don't specify the 'rhythmdb-file' argument.


PlayOnLinux Help - Error: What's the reason for this apt-get install error?

Remove, rename or disable this repository entry file:

/etc/apt/sources.list.d/playonlinux.list

Then run these commands:

$ sudo apt update
$ sudo apt apt autoremove
$ sudo apt install --reinstall playonlinux


Impossible to boot on encrypted root partition after 15.10 upgrade

The problem is fixed for me.

boot on a live DVD
mount the root partition and devices, then chroot
reinstall lvm2 that was removed during the 15.10 upgrade
remove all local diversions
reinstall dmsetup to add a missing udev script in initramfs (55-dm.rules) => that cause this freeze
reboot


Of course you can...

But... normally, on a default Ubuntu, the system will clean up logs automatically using something called logrotate.  By default it will logrotate daily (You can see that in /etc/logrotate.d/rsyslog)

Since they did become so large, you may want to see what is causing the log to become so incredibly large in less than 24h... There might be a significant problem, like a disk having a lot of errors. Perhaps take a look at the contents in real time for a while.  To do that:

tail -f /var/log/syslog

To get back to your prompt, hit Ctrl-C.


Ubuntu One won't sync certain files, even though they appear in the web interface

So after contacting Ubuntu One support, I was given the following steps:

Stop Ubuntu One with: u1sdtool -q
Delete the following folder: sudo rm -rf ~/.local/share/ubuntuone
Restart Ubuntu One with: u1sdtool -c
Open the Ubuntu One Control Panel and reselect my sync folders.

Step 4 gave me a prompt asking me if I wanted to merge my local folder with the cloud version of the same name. After clicking "Yes", it proceeded to resync everything from scratch, which took so long I left it overnight. I can't tell if it actually downloaded or uploaded anything, but anyway by the morning it said file sync was complete.
At first glance this seemed ok, although I have no way of telling for sure if there are any more missing files elsewhere in my synced folder.

Anyway, hope this helps someone who encounters a similar problem.


"apt-get install grub" wants to install packages although the GRUB bootmenu works?

sudo apt-get install grub is a wrong command to run.

It installs legacy version of grub and removes grub-pc or grub-efi.

You can check /var/log/apt/history.log and revert these changes.


Mirror Displays of 2 different resolutions

Okay I am trying two answer(it does not help you are not mentioning your OS), I am using Ubuntu 18.04 LTS and I am using a dual monitor set-up. In Ubuntu it is called Join Displays. I am not using Mirror.
Both monitor (27"/28") keep their native resolution(1920x1080,3840x2160).
Problem is hidpi monitors are not well supported yet and usually trying to scale one monitor affects the other one as well.
Following  [https://wiki.archlinux.org/index.php/HiDPI] helped to work around that problem.


Enable GRUB after disabling it in Ubuntu

Boot from the Ubuntu (DVD/USB) installation media - select Try Ubuntu without installing.
Once you are on the Ubuntu Live desktop - open a terminal and execute these commands :

sudo mount /dev/sdXX /mnt
sudo nano /mnt/etc/default/grub

Make sure that these variables are set :

#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10

Then re-installl the GRUB boot loader :

sudo grub-install --boot-directory=/mnt/boot /dev/sdX

Note : sdX = disk | sdXX = system partition

To identify the partition numbers use GParted - it is included in the Ubuntu install media.
Now you can select which operating system you want to boot from the GRUB boot menu.


Disk Partitioning for Ubuntu server with SQL server

Thx everyone,
Finally I will use Ubuntu 18.04 LTS and partition the disk as follows :
25G /
500M /boot (may be)
5G /var/log
65G /var/opt (but i try going to make it bigger)
3G Swap
And I hope, that in the future i havent any problem with this partitioning.


I've just looked into your question... so it might be too late to answer you since it's been years you've posted it.

You are using a rather old ubuntu that is known/was known at that time to have trouble in that specific domain.

However I encourage you to see this question : How to check battery status using terminal?

The answer of Lekensteyn is the start of what you are looking for.

As you can see in the answer the matter evolves along the kernel version and so the solution ...

To be more specific and retaking your conditions (get status and ubuntu 12.04), you need upower in your system and can create a script like :

#!/bin/sh
DATE=$(date +%Y-%m-%d:%H:%M:%S)
STATE=$(upower -i /sys/class/power_supply/BAT0 | awk '/state/ {print $2}')
echo "$DATE $STATE" >> /var/log/battery_status.log

Then add it in a monitoring process loop ... or a crontab.

It might need root privilege (sudo)

Hope this helps.


Kill and Restart TeamViewer 10 Ubuntu 14.04

In other versions of teamviewer some times the daemon has to be restarted the in order to run the teamviewer app again after closing it.

sudo teamviewer --daemon stop
sudo teamviewer --daemon start

or

sudo teamviewer --daemon restart


"No protocol specified , Could not open X display" error when Running bleachbit as root on KDE

Maybe this could help, it seems others have had this issue as well:
https://bugs.launchpad.net/bleachbit/+bug/1377719


One possibility is a little known glitch in 16.04 that produces an effect similar to the issue you describe. This glitch is activated by moving files from a directory that has a hard linked icon on the desktop.

The most common "fix" for this glitch is to simply:

(1) close or minimize all windows [ Alt+F4 to close individually; Ctrl+Super+D to minimize all windows simultaneously ];

(2) press and hold the Super key until your launcher displays numbers atop its icons;

(3) release the Super key

If this particular glitch is responsible, your desktop icons should immediately become visible. NOTE: This is not a permanent resolution but will work the same way every time it is used.


The Linux kernel includes the hfsplus module for mounting HFS+ filesystems. HFS+ fsck and mkfs have been ported to Linux and are part of the hfsprogs package.
In 2009, these drivers were diagnosed to be corrupting HFS+ drives with a capacity greater than 2 TB. Consequently, Linux distributions such as Debian and Ubuntu also stopped allowing mounting of HFS+ drives or partitions greater than 2 TB. As of February 2011, work is in progress to lift this restriction.
Under Linux's current HFS+ driver, journaling must be disabled in order to write data safely to an HFS+ partition; journaling can be disabled under Mac OS X, provided the partition isn't being used by Apple's Time Machine software. An HFS+ partition with journaling enabled may be forcibly mounted with write-access under Linux, but this is unsupported and unsafe.
Around April 2011, Netgear released the source code of one of its NAS appliances, providing an implementation of write-support for journaling-enabled HFS+ partitions; unfortunately, the code is compatible only with an earlier version Linux. A port to newer versions of Linux has been released for review and further development, though it is apparently untested and untrustworthy.

 Source: wikipedia


How can I add a back button to my web browser using Web Kit and Quickly and how add a google search bar?

If this is the tutorial by Jono Bacon on Youtube, launch glade with quickly design and add a button to the toolbar similar to the refresh button that Jono adds ~12:30. Call it backbutton and create a handler for it when clicked and then sketch a function that will pull the previous URL that was passed (just create a list and append successful URLs to it, then pop it when needed). If you want to preprocess a URL entered in the entrybox, add code in the handler to do it. Here's some sample code:

#Code for other initializing....
....whatever goes here...
self.history=[]

def on_urlentry_activate(self,widget):
    #store previous location in history
    self.history.append(self.webview.get_uri())

    url = widget.get_text()

    #add http:// if not present in the url
    if 'http://' not in url:
        url='http://'+url

    self.webview.open(url)

def on_backbutton_activate(self,widget):
    #Only get the last url if there's something to get
    if len(self.history)!=0:
        #Use pop to remove the last entry from the list
        url=self.history.pop()
        self.webview.open(url)

This code is not very sophisticated, but should give you the idea.

As Timo has pointed out, WebKitGTK has a number of great functions and features including a go_back() method (If you read the manual).  Here's a callback function which uses it:

def on_backbutton_activate(self, widget):
    if self.webview.can_go_back():
        self.webview.go_back()


There is no need to manage, monitor or clear the Linux cache manually during normal operations, and no performance benefit in doing so.

The purpose of the cache is to store recently-accessed data from disk so that subsequent attempts to read it complete more quickly. This is why loading a large document is typically much faster the second time around. However, the memory is still considered "free" by Linux and can be re-used instantaneously if there is a need for more memory (e.g. you load a new program or document), so clearing the cache does not achieve anything. The drop_caches control is there to help developers with benchmarking and testing, not for ordinary users.

It is not possible to say what is causing your slow program loading without more information, but it almost certainly has nothing to do with the cache. Poor disk performance or the presence of other disk or CPU-intensive processes are possible culprits.


I had the same problem. I think it should be "--quiet" not "-quiet"


How to install LEO-NANO150N Leoxys mini USB Wifi adapter on ubuntu?

Getting the linux drivers from the product website and all didnt work for me for this device.

To get it to work, just follow these steps (make sure you have an active internet connection):

Open a terminal (Ctrl+Alt+T) and run these commands in sequence:

sudo apt-get install build-essential linux-headers-generic git
mkdir ~/RTL8188EU
cd ~/RTL8188EU
git clone git://github.com/lwfinger/rtl8188eu
cd ~/RTL8188EU/rtl8188eu
make
sudo make install
sudo cp -v ~/RTL8188EU/rtl8188eu/rtl8188eufw.bin /lib/firmware/rtlwifi/
sudo depmod -a
sudo update-initramfs -u
sudo modprobe 8188eu

Wireless should spring to life.

source


xdotool press key by keycode (press option key)

Problem solved thanks to the comment from Jacob Vlijm.

The name of the button can be found this way: run xev, then press the button and the name shows up in the brackets. In my case it was this: keycode 135 (keysym 0xff67, Menu), here Menu is the name of the key.

Then I could run xdotool Menu. However to make it work with a custom shortcut I had to add sleep before it, so I ended up with this code:

sleep 0.5 && xdotool key 'Menu'
sleep 0.01 && xdotool key 's'
sleep 0.01 && xdotool key 'e'

and it works! :)

BTW: The purpose of this whole thing was to quickly switch between spelling languages in Chrome.


USB: Enable Trim (FITRIM ioctl failed: Operation not supported)

unfortunately there are software problems with trim on usb

Trim and SSD with usb 3.0 enclosure does not work - UASP not supported?
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1336541


How to automatically run a specific command on Live USB on boot?

Place that command in a script and add the script to the init scripts. If you are using some init-alternative, place your new script where appropriate or follow what ever structure it may use for storing commands that will be executed on run-time.

If you want to know how to add scripts to init, look at this thread - How to install an init.d script?


Print the second or nth match of a sed search which is based in between two patterns

I would just switch to another tool. Perl, for example:

perl -ne '$k++ if /Pattern1/; if(/Pattern1/ .. /Pattern2/){print if $k==3}' file

That will print the 3rd match. Change the $k==3 to whatever value you want. The logic is:

$k++ if /Pattern1/ : increment the value of the variable $k by one if this line matches Pattern1.
if(/Pattern1/ .. /Pattern2/){print if $k==3} : if this line is within the range of /Pattern1/ to /Pattern2/, print it but only if $k is 3. Change this value to whichever match you want.

You could wrap this in a little shell function to be able to get the Nth match more easily:

getNth(){
  pat1="$1"
  pat2="$2"
  n="$3"
  file="$4"

  perl -ne '$k++ if /'"$pat1"'/;if(/'"$pat1"'/ .. /'"$pat2"'/){print if $k=='"$n"'}' file

}

You could then run it like this:

getNth Pattern1 Pattern2 3 'huge file.txt'

Using your example data:

$ perl -lne '$k++ if /start here/;if(/start here/ .. /end here/){print if $k==2}' testfile.txt
start here
123
1234
12345

123456
end here

Or:

$ getNth 'start here' 'end here' 2 testfile.txt
start here
123
1234
12345

123456
end here

Just for fun, here's another perl approach:

$ perl -lne '($k++,$l++) if /start here/; print if $l && $k==2; $l=0 if /end here/' testfile.txt
start here
123
1234
12345

123456
end here

Or, if you like golfing (thanks @simlev):

perl -ne 'print if /^start here$/&&++$k==2../^end here$/' testfile.txt


Why LibreOffice 3.4 rc 1 missing a shared library that is present on the system?

Here is what you should do:

Run: locate libjvmfwk and copy the full path without the filename.
eg: if the output is /usr/lib/ure/lib/libjvmfwk.so.3 write down /usr/lib/ure/lib)

Run gksudo gedit /etc/ld.so.conf.d/libjvmfwk.so.3.conf and add the path you wrote down in the first step to the end of the file. (Please note that the file will be created if it does not exist)

Finally run sudo ldconfig to update the symlinks

Source


Dragging from Gnome's Google Drive broken

From what I tested, with a pdf file, the behaviour of transferring files from Google Drive, from a connected Google account, depends on what applications you are using.
If I work with source and target Nautilus windows, I can either Copy-Paste or Click-and-Drag, and the name is correctly kept.
It appears integration with Gnome, which has Nautilus as its file manager, works well.
If I work with source Nautilus and target Dolphin (the KDE file manager) windows,
Click-and-Drag uses the temporary file name in the target,
while
Copy-Paste sometimes produces that same result and sometimes does not even work ("unable to create io-slave klauncher said unknown protocol 'google-drive'").
I didn't investigate further.
kio-gdrive is required for KDE applications to interoperate with GDrive, but I did not try that either.
As for Click-and-Drag from Nautilus to a Gmail composition as an attachment in Firefox that doesn't work for me.
EDIT:
This suggests you might have more luck trying a different desktop manager, but it seems like a big change (and merely an attempt), if only motivated by the drag-and-drop feature between different applications for GDrive.
EDIT #2:
As a possible workaround, you may have two Nautilus windows #1/#2 open.
You would drag from GDrive in #1 into a local temp folder in #2.
Then you would drag from #2 into your gmail composition.


Problems installing 12.04 although bug has apparently been fixed

After looking at the bug report, could you please try installing with your network connection off? This may be as simple as pulling out the Ethernet cable from the back of the computer, or perhaps turning your wireless router/cable-or-DSL modem off.

While the bug report says it's fixed, that's for the upcoming 12.04.1 ISO release, around August 26, 2012 or so. You still have the old 12.04 ISO with the bug. But if you upgrade 12.04 after installing it, you may see 12.04.1 now...


Ubuntu already installed on HDD. Error while trying to boot from it when plugged in externally

Here are 2 free toolkits that will help you investigate your problem:
A- Hiren's boot CD, http://www.hirensbootcd.org/download/
B- Ultimate boot CD, http://www.majorgeeks.com/files/details/ultimate_boot_cd_(ubcd).html)
In order to use them you may have to switch your BIOS mode from UEFI to Legacy. Legacy mode is less secured & thus less restrictive than UEFI.
You'll be able to run all sorts of tests on your hardware.
Good luck.


FFMPEG | How to encode a video to make it faster

Speeding up/slowing down video

You can change the speed of your video using the setpts video filter. The "old way" of creating timelapse or still frame was to first split up a video into individual frames, (for instance, as jpg's) then delete some and recombine the frames. Using the setpts filter is the new way and is faster and possibly less lossy.

To speed up your video from 1x to 5x, you can type:

ffmpeg -i input.mkv -vf "setpts=0.2*PTS" -an output.mkv

Source: FFmpeg - how to speed up / slow down a video


How do I switch my monitors separately on Ubuntu 14.04?

You might try the tool Nitrogen.

Get it from the official Ubuntu repositories with the command:
sudo apt-get install nitrogen

Pull it up into the GUI from the command line with:
nitrogen

Go to preferences, add your folder which contains your wallpapers, and screen 1, 2, etc to set different wallpapers for different monitors.


ASUS USB-AC56 (rtl8812au) WiFi Range issues

You can install a driver for this dongle from the official repository.

Run in terminal

sudo apt-get install rtl8812au-dkms

Reboot and test the dongle.

If you do not have an internet connection without this dongle, you can install the driver offline this way:

Download these files using another computer:

dkms

rtl8812au-dkms

Copy the files to your Home directory and run in terminal:

sudo dpkg -i dkms*.deb rtl8812au-dkms*.deb


Regarding the missing file /etc/cron.daily/apt:
The file is part of the apt package.
Thus, I downloaded the package via apt-get download apt, extracted it and manually copied the file named apt to the said location.

I do not know why this file has not been copied during a "normal" apt-get install apt; I even tried an apt-get install --reinstall apt without success.

Regarding the second missing file /etc/apt/apt.conf.d/10periodic:
This one I created manually (which seems to be "works as designed") and edited it according to the documentation part of the /etc/cron.daily/apt file.


You can move a window by pressing

Alt+F7, then moving it around with the arrow keys, and finish by hitting Return.
The same goes for resizing, using Alt+F8

You can also press Esc to cancel

Also, while I'm at it:

Alt+F9 minimises the window
Alt+F10 maximises it

You can also bring up the application's window menu with Alt+space:

If you want to change those shortcuts, you can go to System → Preferences → Keyboard Shortcuts and find them under Window Management:


Trick 64-bit Ubuntu to allow 32-bit pci wireless card?

You can't run 32-bit kernel mode code with a 64-bit kernel.


how to make root to mobile Samsung Galaxy Grand Neo GT-19060 on Ubuntu for upgradation

Install Heimdall, it's an open source alternative to Odin - sudo apt-get install heimdall-flash-frontend. Then - sudo heimdall-frontend.

Most likely, you can flash new frmware from sd-card.


How to boot ubuntu installation from usb in bios?

If you're booting from BIOS, select USB device. Place it first in the boot order if you need to. Legacy Boot from USB or use Sandisk Partition 1.


If windows have NTFS partition and ubuntu have ext3,4 than window will not show the ubuntu in your laptop/PC , so you can Dowload Easybcd software it is free for home user install it open it you will see add new entry click on it and select "GRUB2" and swap partition (when you install ubuntu it take some swap partition other wise use default c:\ partition) go to linux tab add entry click on edit boot menu select the appropriate timeout option and save setting.

for more use watch youtube videos of easyBCD.

After that restart the pc and you can see 2 options, windows and ubuntu/linux.


How to make speaking clock (via cron and festival tts) work while playing music

As per this answer: Can I use cron to chime at top of hour like a grandfather clock? you need to export an environment variable before playing sounds in your cron script:

export XDG_RUNTIME_DIR="/run/user/1000"


Why putting a script in /etc/cron.hourly is not working?

As you've probably seen in the comments to your question, the cronjobs in /etc/cron.hourly (and the other, similar directories) are executed by run-parts. run-parts is a little picky about filenames. By default it doesn't execute files whose filenames contain anything other than (all of those from ASCII)

uppercase letters
lowercase letters
digits
underscores
dashes ("minus signs")

So if your script has a filename of for example "myscript.sh", it just is ignored, because run-parts does not like the dot.


I have 12.04, but my guess is there is a similar solution.  If you have just installed Ubuntu and nothing else, it probably does not have the wifi drivers for your card pre-installed.  You will need to plug it in to an ethernet connection (for which it should have drivers) and then download the correct wifi driver that you need.  The recent versions of ubuntu, such as yours, should - probably - automatically download the correct wifi software...and then you can restart with the machine unplugged from ethernet and the wifi should work.  I say should...I had to do some tweaks to get it running and others have had to download and install the correct drivers "manually".

If you can't get the drivers installed or something else goes wrong, there are a LOT of questions on this board with solutions to wifi problems - do a search and read up.


I've got it working again, by purging Nautilus...
I first made a backup of my plugins and extensions data ...
Nautilus Notes and other metadata are in  '~/.local/share/gvfs-metadata'
'nautilus-scripts-manager' data is in '~/.gnome2/nautilus-scripts' ... etc.

apt-get remove ...my plugins, in case there was some clash
apt-get purge    nautilus  gnome-session  ubuntu-desktop
apt-get install  nautilus  gnome-session  ubuntu-desktop

Then I rebooted, and the search feature is now working.
Nautilus Notes was still working, so I then reinstalled my plugins,
and everyghing is working fine again.

There may have been no need to uninstall my plugin, but as it turned out, it doesn't matter; eaither way works... (I've been without this feature for 3 months... Today was the day !


So, after waiting for almost 50 hours on this I just gave up and decided to cancel the shrinking operation even though that could have meant data loss.

Once the operation was cancelled GParted couldn't recognize properly the Windows 8 partition, so I tried to use GParted to recover it. Without success.
That's when I decided to go for PhotoRec and TestDisk and I was surprised when TestDisk couldn't detect any errors on my partitions (even with the deeper search feature) and even better than that I was able to see that all my files and folders where intact on my W8 partition!

That's when I decided to give it a go and reboot it, but unfortunately (and as expect I should say) my W8 mbr was broken, so I used my W7 recover disk (I upgraded from W7 to W8 via downloading from Microsoft) to boot and run from the command line tool Bootrec.exe /fixmbr and voila! All my data was still there and my W8 was repaired (first thing I did was running a check disk that found no error).

To get back onto the Ubuntu subject, I decided to shrink the W8 partition from Windows this time, so after a few defragmentation runs and use of MyDefrag (to get the data at the beginning of my disk when possible) I was able to shrink my W8 partition enough to make space for my Ubuntu install.

To conclude I think that in my case GParted really was hanging (for nothing) as no data has been lost from my W8 partition, and althought that took me a few days to repair I feel lucky that cancelling the shrinking didn't do any damage for me.

What I do recommend though is that if you want to shrink your Windows partition before installing ubuntu (or any other OS) next to it, use the windows tool for that (diskmgmt.msc).


For full support on >=18.04 you should use chrony instead of ntpd.

Switching this resolved the issue for the reporter, documenting as answer to be more easily found than in just the comments.


Uninstalling Google Earth. Something that I can't find anywhere in the web

if you did not use "apt-get" to install forget about "apt-get" for removing software.
"home/google-earh"

Please be precise. that part you typed there contains typos. I would assume it is installed in /home/zack/google-earth. If so you should check inside the google-earth directory. There is an "uninstall" in there.

That would be

cd ~/google-earth
chmod 750 uninstall
./uninstall

Plus to remove the download

cd ~/
rm GoogleEarthLinux.bin


Which keyboard setting corresponds to "United States (International)" in Windows XP

If you still want the dead key behaviour (typing ' and e resulting in é), you can use the English (US, international with dead keys) layout.


How to manually trigger ssh add dialog box?

Not a direct answer to the above question, but a work around for the core problem:

Stop gnome-keyring ssh-agent from starting. Then ssh-agent, ssh-add and ssh works as expected. (Or at least as I expect).

To stop gnome-keyring ssh-agent from starting do:

sudo mv /etc/xdg/autostart/gnome-keyring-ssh.desktop /etc/xdg/autostart/gnome-keyring-ssh.desktop.disabled


How can I allow unprivileged users to shutdown from the panel? (no sudo)

Okay, I found it: The answer was actually very simple. Another user session was still open. My girls had just switched accounts instead of logging off. Of course, an unprivileged user issuing a shutdown command does not have any right to terminate another user's session, like a 'sudo shutdown' would.


Installed 16.04 lts now how to make it boot first or have a option when booting

You should go to BIOS, go to the option Boot, put ubuntu to the first element and windows the second. Probabily the error is it but if not found after this, put an answer here.

Good luck!


What to choose as application to launch Brightness-Controller?

Choose Software-Center from /usr/bin/software-center


Its a 0-day SRU (Stable Release Update). In simpler language:

1) An SRU is an updated version of a package which is uploaded for a release which has been released already. SRUs are more commonly known as 'software updates' and these are the things which come up in Update Manager.

2) 0-day SRU means that it is an update which will land very soon after the release of Ubuntu 11.04 (usually the same day as the release itself).

According to the SRU procedure, every SRU package should be first uploaded to the proposed repository. Then, the bugs fixed by it should be confirmed by a user as being fixed before the package could be moved to the main updates repository.

In this case, the Unity 3.8.12 package fixed 5 bugs, 3 of which have been verified (as of the time of posting this answer) and 2 are still in need of verification. The Unity 3.8.12 package is lying in the proposed repository, and will stay there until someone verifies the 2 remaining bugs. Once that is verified, then you'll get Unity 3.8.12 as an update from Update Manager. This should happen in a maximum of 4-5 days from now.

You can check the status of the Unity package in the proposed repository at this link. Browse down until you reach natty and then look at the Unity package row. Under changelog bugs, a blue bug link is a bug which is awaiting verification, a green bug link is a bug which has been verified successfully by a user, and a red bug link is a bug which wasn't verified successfully (in other words, the bug fix didn't work).

If you are impatient and want the package right now, then you can enable the proposed repository in your system by following this guide (WARNING: not recommended as the updates could be untested and might lead to regressions) and then you will get the Unity upgrade automatically. Once you've upgraded, then you can yourself verify a bugfix and go to the relevant bug page and comment that you've successfully verified the SRU. Also, tag the bug with verification-done and remove the verification-needed tag if you have verified the SRU successfully. If the bugfix doesn't work, then tag it with verification-failed.


Sounds like it could be a memory leak. Try to take a look at the task manager and see if a program is "leaking".


i want to install csh but the following error appears

I've just checked and both packages are in the repositories, so the only two things I can imagine:

You need to update your package list:

sudo apt-get update

sudo apt-get install csh kdevelop

Maybe these packages are in the universe or multiverse repository, and you neet to enable'm. Go to Software Sources (you can find it typing in the dash) and enable them:

My screenshot is in Catalan, but I'm sure you get the idea.

Then again, re-run both commands:

    sudo apt-get update
    sudo apt-get install csh kdevelop


The setting in NordVPN (or any VPN probably) is called  "Allow local network discovery" and/or "Invisible on LAN". The 1st needs to be active. The 2nd needs to be inactive.


How can I use Work-space edge settings on Gnome-Classic

To enable expo

Install compizconfig-settings-manager with the command

sudo apt-get install compizconfig-settings-manager

or using this link compizconfig-settings-manager
While you are on the gnome-classic session, open it (compizconfig-settings-manager)
Click on the Expo plugin
Click on the Expo edge in Bindings  tab
Set the edge of your liking

Now the feature is enabled.

To enable scale

Open compizconfig-settings-manager
Click on the Scale plugin
Click on the Bindings tab
Click on the Initiate window picker button
Set the edge of your liking. (I like the bottom-right).

Now, the scale is also enabled. As a bonus, Try also enabling the Scale Addons plugins. It will help you quickly close windows while you are on scale mood.

To enable show desktop

Open compizconfig-settings-manager
Click on the General plugin
Click on the key bindings tab
Click on the Show Desktop icon. There are two icons. Click on the one which is showing a monitor, not a keyboard.
Set the edge of your liking there.


What graphic drivers i need to install so my both graphic cards could run?

Install the xserver-xorg-video-ati driver:

sudo apt-get install xserver-xorg-video-ati

Then reboot.


Is it possible to have "python3-click-package" and "click 6.6" python 3.4 package at same time in Ubuntu 14.04?

I just want to show one possible way to solve the name conflict by renaming the python3 package. Maybe not a good idea.

Install the "python3-click-package" for apt-get.
Download the source of "click 6.6" and edit the setup.py to give it another name like "clickdev". Then install this "clickdev" package.
When I encounter some import errors in python project, I change import click to import clickdev as click. If there are several projects using "click 6.6", this could be a lot of work.

That's it.


Why does Ubuntu have a disabled root account?

Mitch posted a good link in comment: Why is it bad to login as root? and the Debian site has the main benefits listed in their wiki:

  Why sudo?

  Using sudo is better (safer) than opening a session as root for a
  number of reasons, including:

  Nobody needs to know the root password (sudo prompts for the current user's password). Extra privileges can be granted to
  individual users temporarily, and then taken away without the need for
  a password change.
  It's easy to run only the commands that require special privileges via sudo; the rest of the time, you work as an unprivileged user,
  which reduces the damage that mistakes can cause.
  Auditing/logging: when a sudo command is executed, the original username and the command are logged.

  For the reasons above, switching to root using sudo -i (or sudo su)
  is usually deprecated because it cancels the above features.

Regarding Ubuntu The benefits and disadvantages are listed on our wiki:

  Benefits of using sudo

  There are a number of benefits to Ubuntu leaving root logins disabled
  by default, including:

  The installer has fewer questions to ask.
  Users don't have to remember an extra password for occasional use (i.e. the root password). If they did, they'd be likely to forget it
  (or record it unsafely, allowing anyone to easily crack into their
  system).
  It avoids the "I can do anything" interactive login by default. You will be prompted for a password before major changes can happen,
  which should make you think about the consequences of what you are
  doing.
  sudo adds a log entry of the command(s) run (in /var/log/auth.log). If you mess up, you can go back and see what
  commands were run.
  On a server, every cracker trying to brute-force their way in will know it has an account named root and will try that first. What they
  don't know is what the usernames of your other users are. Since the
  root account password is locked, this attack becomes essentially
  meaningless, since there is no password to crack or guess in the first
  place.
  Allows easy transfer for admin rights by adding and removing users from groups. When you use a single root password, the only way
  to de-authorize users is to change the root password.
  sudo can be setup with a much more fine-grained security policy.
  The root account password does not need to be shared with everybody who needs to perform some type of administrative task(s) on
  the system (see the previous bullet).
  The authentication automatically expires after a short time (which can be set to as little as desired or 0); so if you walk away from the
  terminal after running commands as root using sudo, you will not be
  leaving a root terminal open indefinitely.

  Downsides of using sudo

  Although for desktops the benefits of using sudo are great, there are
  possible issues which need to be noted:

  Redirecting the output of commands run with sudo requires a different approach. For instance consider sudo ls > /root/somefile
  will not work since it is the shell that tries to write to that file.
  You can use ls | sudo tee -a /root/somefile to append, or ls | sudo
  tee /root/somefile to overwrite contents. You could also pass the
  whole command to a shell process run under sudo to have the file
  written to with root permissions, such as sudo sh -c "ls >
  /root/somefile".
  In a lot of office environments the ONLY local user on a system is root. All other users are imported using NSS techniques such as
  nss-ldap. To setup a workstation, or fix it, in the case of a network
  failure where nss-ldap is broken, root is required. This tends to
  leave the system unusable unless cracked. An extra local user, or an
  enabled root password is needed here. The local user account should
  have its $HOME on a local disk, not on NFS (or any other networked
  filesystem), and a .profile/.bashrc that doesn't reference any files
  on NFS mounts. This is usually the case for root, but if adding a
  non-root rescue account, you will have to take these precautions
  manually. However the advantage of using a local user with sudo is
  that commands can be easily tracked, as mentioned in the benefits
  above.

And we always have had it (from the very 1st release).

Oldest reference I found speaks about 4.10 that has "sudo"

  SHUTTLEWORTH LAUNCHES DEBIAN-BASED UBUNTU LINUX

  ... The Debian-based Ubuntu Linux includes Gnome 2.8, kernel 2.6.8.1, OpenOffice.org 1.1.2 and comes with a text-based, but easy, installation procedure. Ubuntu has disabled the root user preferring to use sudo much like Mac OSX does ...


How can one get sound louder for a laptop that comes with Dolby Home Theater?

Have you tried alsamixer? Please check whether every setting is proper, using that. Use command alsamixer.


Redirect stdout and stderr so that it is displayed or stored nowhere


Login prompt no longer on external display

You have pam-mount? Or other configuration? Try:
PS1="\s-\v\$"
If it works try:
Open /etc/bashrc (Redhat and friends) / or /etc/bash.bashrc (Debian/Ubuntu) or /etc/bash.bashrc.local (Suse and others) file and append following code:

vi /etc/bashrc

or
$ sudo gedit /etc/bashrc

Append the code as follows

If id command returns zero, you’ve root access.

if [ $(id -u) -eq 0 ];
then # you are root, set red colour prompt
  PS1="\[$(tput setaf 1)\]\u@\h:\w #\[$(tput sgr0)\]"
else # normal
  PS1="[\u@\h:\w] $"
fi
Close and save the file.

Source

http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html


To run Turbo C++ in Ubuntu you must have the following:

A.Turbo C++ setup
   If you have the setup then excellent

B.DOSBox Emulator
   If you have it installed on your system the good but if you don't go to
Ubuntu Software Center and search for DOSBox and install the emulator.

or using terminal:

sudo apt-get install dosbox

Now follow these steps...

1.Extract the rar file and you'll get a setup folder.

If you don't have unrar utility you just need to install small package called " unrar "

Step 1 : goto your Terminal  then type

sudo apt-get install unrar

you can now extract your .RAR file by "right-click" then chose " extract here "

or via terminal

 unrar dosbox.rar

Move the extracted folder to your home folder

2.Open the DOSBox emulator

Write the following commands :

   1.mount c ~
   2.C:
   3.cd setup
   4.install.exe

3.The turbo C++ installation utility will appear.*Press Enter*.

Enter the source drive as C.Press Enter.

Change the source path to \setup if it isn't.Press Enter.

4.Select Start Installation and Press Enter.

The installer will install the files.Once finished u can delete the
   setup folder.

5.To run the Turbo C++ every time run the following commands:

   1.mount c ~
   2.C:
   3.cd tc\bin
   4.tc.exe

To enter into fullscreen mode press
Alt+Enter and press it again for window mode.

source


Cannot ssh over pptp after upgrade to Ubuntu 15.10

Try lowering the mtu down to something like 1392.  You can test this by typing:

ifconfig ppp0 mtu 1392

or another value below 1492
once you find a value that works then to make it permanent edit the /etc/ppp/peers/ and add

mtu <value>

eg. mtu 1492


No inodes left error, df -i command says contrary

Okay, problem solved. The Windows drive was corrupted and somehow was preventing Ubuntu to write any data to it. I ran the disk checker program at the start of Windows boot and everything works fine now.


This means you perhaps don't have the correct repository open.

sudo gedit /etc/apt/sources.list

If universe is not included then modify the file so that it does.

deb http://archive.ubuntu.com/ubuntu xenial universe multiverse

then try installing.

sudo apt-get update && sudo apt-get install kjots


You actually moved andreas home directory to the location /admins so andreas can't log in. To fix we will try to create another user and add to the sudo group from the recovery mode using the grub menu.

Steps:

Boot into your GRUB menu using the shift key

at boot press the shift key so you see the grub menu, then

Select the Advance option from grub menu
Select recovery mode from the list presented to you.
Choose the root option from the list seen.
Then when the terminal appears press the Enter key, and type the following in the terminal:

a. mount -o remount,rw /

b. adduser new_user_name

enter passowrd and just press the Enter key for all other options

c. usermod -a new_user -G sudo

d. Type exit and press the Enter
Try to log in.
If you login using the new user, return andreas' home directory using the terminal with:

sudo mv /admins /home/andreas

Look at the content of /home/andreas it should be the same as before you moved it. Now logout and try to log in as andreas.

UPDATE:

Since the folder is lacking the required default files for a user:

a.  Change into the admins directory and copy the contents into the andreas one level up with: cp . -R ../
Copy the contents of the /etc/skel dir into andreas with:

sudo cp -r /etc/skel /home/andreas

Make sure these files are present in the /home/andreas/skel folder in andreas:

.bash_logout
.bashrc
examples.desktop
.profile

Change ownership of skel folder and its contents:

sudo chmod -R andreas:andreas skel

Remove the admins folder from andreas: rm -rf admins
Move the skel directory and move its content out into the parent folder andreas:

cp . -r ../

Now the andreas folder should have these files in it:

.bash_logout  .bashrc   examples.desktop   .profile
Desktop    examples.desktop  personal_info.txt  sensitive_info.txt
Documents  mario             Pictures           Templates
Downloads  Music             Public             Videos

Now we check to see if user andreas is ok in two places: /etc/passwd and /etc/group:

cat /etc/passwd | grep andreas

# result should like this
george:x:1000:1000:george,,,:/home/george:/bin/bash

cat /etc/group | grep george

# result should be like this:
adm:x:4:syslog,george
cdrom:x:24:george
sudo:x:27:george
dip:x:30:george
www-data:x:33:george
plugdev:x:46:george
lpadmin:x:108:george
george:x:1000:    <---------| subject of interest
sambashare:x:124:george
docker:x:999:george
libvirtd:x:134:george

If user andreas is not found in either of this places, then use

sudo vipw
sudo vigr

to add them to the /etc/passwd and /etc/group file respectively using the format seen there, and set a new password with:

sudo passwd andreas

Now to make sure user andreas owns the /home/andreas run ls -al /home/andreas and make sure the owner = andreas and group = andreas, else run:

sudo chown -R andreas:andreas /home/andreas

Now change the password for andreas just to be safe:

sudo passwd andreas

Now reboot and log in using user andreas, if successful you can now delete the new_user created earlier with: sudo deluser new_user --delete-home


How to make a window transparent in Gnome?

I am not sure about Gnomw itself, but in Compiz, there is a plugin called "Opacity, Brightness and Saturation adjustments", which allows you control transparency of windows any way I can imagine, including Alt + {sroll} as Andrea Lazzarotto said.


Ubuntu 14.04 Nvidia 331.38 Chrome renders with bugs

Seems like it's ulimit -n that prevents Chrome from creating new shmem files.
Temporary fix
(all the commands should be run within one terminal)
ulimit -Sn 4096
ulimit -Hn 4096
google-chrome

Permanent fix
(requires reboot)
Step one:
sudo -H gedit /etc/security/limits.conf

add the lines (or check what lines to edit)
* soft nofile 8192
* hard nofile 65536
root soft nofile 8192
root hard nofile 65536

(seems like wildcard has no effect on root user, so the root user should be noted explicitly if needed)
Step two:
sudo -H gedit /etc/pam.d/common-session

add the line
session required pam_limits.so

Step three:
Reboot the machine


OpenSSH (OpenBSD Secure Shell) in its universe repositories, which is a suite of security-related network-level utilities based on the SSH protocol

sudo apt-get install openssh-server
sudo service ssh status


Display settings lost on reboot on ubuntu 18.04

Going off of @sri krishna's answer and taking it a step further to explain where the config string came from. Run the Nvidia Settings GUI app directly and set up your display configuration the way you like it.

Then, in the terminal, run nvidia-settings -q=CurrentMetaMode. This will dump output of your current configuration:

Attribute 'CurrentMetaMode' (tx-0:0.0): id=50, switchable=no, source=nv-control ::
   DPY-1: nvidia-auto-select @1920x1080 +4608+360 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0},
   DPY-3: nvidia-auto-select @2560x1440 +2048+0 {ViewPortIn=2560x1440, ViewPortOut=3840x2160+0+0},
   DPY-2: nvidia-auto-select @2048x1152 +0+288 {ViewPortIn=2048x1152, ViewPortOut=2048x1152+0+0}

Note that I've formatted it slightly here for readablility. I have three displays, here labeled as DPY-1, DPY-2, and DPY-3. Copy the output starting at the first display name all the way to the end of the output and use that for the --assign flag to assign the CurrentMetaMode varible with nvidia-settings:

nvidia-settings --assign CurrentMetaMode="DPY-1: nvidia-auto-select @1920x1080 +4608+360 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}, DPY-3: nvidia-auto-select @2560x1440 +2048+0 {ViewPortIn=2560x1440, ViewPortOut=3840x2160+0+0}, DPY-2: nvidia-auto-select @2048x1152 +0+288 {ViewPortIn=2048x1152, ViewPortOut=2048x1152+0+0}"

Don't forget the quotes!

You can put this in a startup script or if you're using a shell like Zsh throw it in your .profile for GNOME to pick up when logging in.


The /etc/overlayroot.conf file only exists if you install the package overlayroot, an encrypted overlay for use in cloud environments.
Here's an article about Overlayroot by it's creator Dustin Kirkland.

The overlayroot.conf file is unnecessary if you just want to mount an overlay filesystem.
Overlayfs is available and ready to use as soon as your Trusty Tahr installation is complete.

I'd been struggling to get an overlay filesystem to work for / right from boot without mounting it manually, but was directed to the very useful askubuntu wiki here. Very useful to rebuild the initramfs, and get the overlayfs in place as soon as your system starts.

Hope this helps!


Bash script checking if specific Canon printer is online

I tried this command cnijnetprn --search auto and it gave the following output:

network cnijnet:/18-0C-AC-2E-EF-87 "Canon iP7200 series" "Canon-iP7200-series_18-0C-AC-2E-EF-87"

If the printer is not online then I don't get any output.

I think I could use that.


The value needs additional quoting i.e. to assign GVariant string value 'foo' you need to write the value argument as "'foo'"

dconf write /org/gnome/nautilus/preferences/show-directory-item-counts "'never'"

See dconf — Simple tool for manipulating a dconf database at https://developer.gnome.org/


Installing program - Vuze torrent client - using .tar.bz2 - vol. 2

First thing to note - this application is not single executable, so it is bit hard to install. It was previously packaged for Ubuntu as Azureus, but now it is missed in the repositories.
In this particular case you can use Snap version @ 5.7.6.0:
sudo snap install vuze-vs

If you want to install it manually, then you have to install Java Runtime Environment with
sudo apt-get update
sudo apt-get install default-jre

and then do the installation in the correct way by following ArchLinux PKGBUILD as good reference:
cd ~/Downloads
wget https://cf1.vuze.com/files/VuzeInstaller.tar.bz2
tar -xf VuzeInstaller.tar.bz2

sudo mv vuze /opt/vuze

sudo mkdir -p /usr/local/bin/
sudo mkdir -p /usr/local/share/applications/
sudo mkdir -p /usr/local/share/pixmaps/

sudo mv /opt/vuze/vuze /usr/local/bin/
sudo ln -s /usr/local/bin/vuze /usr/local/bin/azureus

sudo mv /opt/vuze/swt/swt64.jar /opt/vuze/swt.jar

sudo mv /opt/vuze/vuze.png /usr/local/share/pixmaps/vuze.png
sudo mv /opt/vuze/vuze.desktop /usr/local/share/applications/vuze.desktop

sudo sed -i "s|#PROGRAM_DIR=.*|PROGRAM_DIR=\"/opt/vuze\"|" /usr/local/bin/vuze
sudo sed -r -e "s|Exec=$pkgname %f|Exec=$pkgname %U|" \
         -e "s|(x-bittorrent)|\1;x-scheme-handler/magnet;|" \
         -i /usr/local/share/applications/vuze.desktop

update-menus


After paying for my music ubuntu-one-music-store tells me my network is down, yet it's not!

There is a bug filed on Launchpad on this particular error message. See bug #596394.

However the last comment tells that the bug has been fixed:

This bug was fixed in the package libubuntuone - 0.9.1-0ubuntu1
  * New upstream release.
    - False connection error message (LP: #596394)