Ubuntu Server 14.04 boots into blank screen

It sounds like you've installed in BIOS/CSM/legacy mode but your computer is configured to boot in EFI/UEFI mode by default. The easiest solution is to enter your firmware and reconfigure it to boot in BIOS/CSM/legacy mode by default. Unfortunately, I can't give you exact step-by-step instructions because the procedure to make this change varies from one computer to another. You've clearly already activated BIOS/CSM/legacy support, but you may need to change the boot order or disable EFI/UEFI support to get the behavior you want.

Another approach is to install whatever EFI boot loader for Linux appeals to you. Ubuntu uses GRUB2 by default (for both BIOS and EFI), and you can install that by running Boot Repair; however, it's best if you do this from EFI mode, which means you'll need to boot an emergency system into EFI mode or boot your installed system in EFI mode in some other way. You can do the latter with a USB flash drive or CD-R version of my rEFInd boot manager. If you like rEFInd, you could install it to your hard disk via dpkg or the PPA; it would then take over from GRUB. Given your setup, installing any EFI boot loader might require you to create an EFI System Partition (ESP); it's not clear if you've got one.

In the future, be aware that most modern computers support both BIOS-mode booting (via the CSM) and EFI-mode booting. This flexibility is useful in some cases, but it can also lead to problems such as the one you're experiencing. IMHO, it's usually best to disable the CSM (aka legacy-mode support). This will force an EFI-mode boot of the Ubuntu installer, which will then install an EFI-mode version of GRUB. Closing off the BIOS/CSM/legacy boot options makes it less likely that you'll have problems of this sort. The downside is that a lot of tools for creating Ubuntu install disks don't write EFI boot loaders by default; you've got to use either dd (to copy the image file straight to disk) or an EFI-aware tool for creating your boot media. If you decide to re-install Ubuntu, I recommend doing so in EFI mode.


How to access a Windows share from Ubuntu?

As far as I know it's replaced with cifs-utils now

sudo apt-get install cifs-utils

There's also this nice and somewhat related article about mounting windows shares.


Updating to Lubuntu 16.10 mess up with gtk graphic?

Just had a similar problem when I upgraded from 16.04 to 16.10. My theme was not GTK3 compatible. Ended up switching to https://github.com/horst3180/arc-theme and it works fine.


Recoll. What is the difference between "mime" and "rclcat"?

mime: is a specific MIME type like text/plain or application/pdf
rclcat: refers to a grouping of MIME types, e.g. in 'text', text/plain but also application/msword, application/pdf etc. These groups are defined in the mimeconf configuration file.
https://www.lesbonscomptes.com/recoll/usermanual/webhelp/docs/RCL.INSTALL.CONFIG.MIMECONF.html


Paper documents (archive) manager for Ubuntu

I believe a reference manager like jabRef would help you,
 jabref  is available from the repositories.

jabRef uses the Bibtex standard to store information about a wide variety of document types the Bibtex file is an ascii file that looks like this:

@article{Gettys90,
   author = {Jim Gettys and Phil Karlton and Scott McGregor},
   title = {The {X} Window System, Version 11},
   journal = {Software Practice and Experience},
   volume = {20},
   number = {S2},
   year = {1990},
   abstract = {A technical overview of the X11 functionality.  This is an update
of the X10 TOG paper by Scheifler \& Gettys.}
}

Your documents does not have to be books and they can be hard copies on a shelf or in a filing cabinet, or electronic on your computer, in the case of physical documents you just number the articles and use that as the number in the BibTex file, if they are electronic you can have a link to them in the BibTex file, they could even be on the internet.

You can read more about BibTeX here:

http://en.wikipedia.org/wiki/BibTeX

Take a look at the various Entry types. When you use this method to manage papers you have great flexibility as jabRef can export to many other Reference formats or export your library to a web page and so on. jabRef also has a good search facility. you can create citations for Latex and Office documents that refers to your papers.

jabRef tutorials are here:

http://www.cs.rpi.edu/~tayloj/JABREF.TUTORIAL/

There is a warning about this being old but from what I see it is still applicable.

http://www.youtube.com/watch?v=QRteWsNfMeg

This YouTube video is also helpful.


KDE login/logout issues in Kubuntu 15.10

After a lot of digging, it turns out that the NVIDIA driver was to blame for everything. The default NVIDIA proprietary driver that ships with Kubuntu 15.10 has a lot of bugs, especially with newer cards such as GTX 960M.

The solution is to add this repo. After installing the latest version (currently 364.12) and rebooting all the problems disappeared.


Ubuntu swap partition missing in windows 8

There are ways to recover a partition as you have not used Ubuntu (and swap) yet.

Search on the internet for "partition recovery software".

I think TestDisk is one of the best tools available but it needs some knowledge on disk structure, partitions, (logical, primary), partition addressing, formating - not a point and click task.

You can try also MiniTool Partition Recovery - a GUI tool more user friendly but not so advanced as TestDisk.

Read manual of whatever tool you will use before atempting repairs !

If unsure DO NOT WRITE CHANGES TO DISK ! Ask again for help on forum.


Check the location of the displays you have available:

cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done

then, from the locations listed, try using any as arguments to the --display option.

For me, synapse --display=:0 worked just fine.

NB: This allows you to manually launch synapse. However, you MAY want to ensure that:

When you start synapse from the application menu it launches with the options you desire.

append --display=:0 to the end of Exec=synapse in the file /usr/share/applications/synapse.desktop.

You WILL need sudo access to do this. Be mindful of the space in the string you will be appending.

If it’s autostarted from your startup it is launched with the options you desire.

ensure you have GNOME Tweak Tool installed. Install it using sudo apt install gnome-tweak-tool or install it from the Software application.

Then navigate: Tweak Tool>Startup Applications>➕. Search for Synapse then click "Add".

Navigate Settings>Keyboard>➕. Enter Name: "Synapse", Command: "synapse --display=:0", Shortcut: [Whatever keyboard shortcut you desire].

This should suffice as a solution until a patch is made.


What you want is libwnck (if you're just interested in windows) or libbamf (if you're interested in windows and the applications that own them).


getting the uniqueness from extracted grep results BUT with stream as an input

the working solution is:

$ tail -f infinite_server.log | grep -o memory=[3-9] > output &

then

$ watch "cat output | sort -u"


Unable to browse internet through Tata Photon Plus after connection is established

I had this problem with 10.04 but I updated to 12.04. You can try the following:

Connect your Photon+ USB modem to the device.
Click on the Network Manager applet (the icon to the left of the volume indicator) on the top panel.
Click 'Enable Mobile Broadband' option in the drop down menu.
Again, click on the Network Manager applet, select 'Edit Connections...'.
In the 'Network Connections' dialog box, select the 'Mobile Broadband' tab and click the 'Add' button.
Select country as India then select Tata Photon+.
Put "internet" as username and password. Make sure to tick 'Available to all users'. Let the number be #777 as it is.
Save and Close.
Disconnect and reinsert the Photon USB modem.
After the blue LED on the USB modem starts blinking, click on network icon and select the tata photon + network. The network will be established and you will be able to browse the Internet.


Long story short: my .vimrc file was corrupted.

Removing it is a solution for my problem.


You have a few mistakes in your network configuration:

Your Gateway is the same as your IP address.
Your Network is mistaken (out of range).
Your Broadcast is mistaken (out of range).

Ask for the correct values from your Dorm's support. Mind that Network and Broadcast aren't mandatory for the network connection to work, so you might just delete them from that configuration file, but still, your Broadcast cannot be the same as the Address.


terminal says inkscape not installed but it is

It seems you have installed the snap version of Inkscape instead of the traditional apt one (see this for reference). You can verify that by running

snap list | grep inkscape

You can remove it by running

snap remove inkscape

After that, you can install the usual apt version by running

sudo apt install inkscape


Choppy videos and animations since 18.04

I fixed the problem by removing nvidia-settings and disabling the gnome extension "NVIDIA GPU Stats Tool".


Command line based

There are some gsettings you can use:

Handling when on ac line

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing'

This will disable any action when the lid gets closed, and the laptop is plugged into AC.
To undo simply:

 gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'suspend'

Possible setting values instead of suspend are:

  'blank', 'suspend', 'shutdown','hibernate', 'interactive', 'nothing', 'logout'

Handling when on battery

gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing'

Handling when an external monitor is plugged in

gsettings set org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor 'nothing'

Using a gui

If you prefer a gui based solution, you have to install

sudo apt install dconf-editor

Invoke with

dconf-editor&

or by searching the program dash.

Go to the schema as show in the first line of the images shown above, and make your settings:


You will need to do this in /etc/default/console-setup file, let's say if we're gonna to use Terminus 16x32 fonts, the command will be:

sudo sed -i '/^FONTFACE/s/^/#/' /etc/default/console-setup # comment out the old value
sudo sed -i '/^FONTSIZE/s/^/#/' /etc/default/console-setup # comment out the old value
echo 'FONTFACE="TER"' | sudo tee -a /etc/default/console-setup # Set font to Terminus
echo 'FONTSIZE="16x32"' | sudo tee -a /etc/default/console-setup # Set font size

And finally, apply your change with sudo update-initramfs -u

Also, Ubuntu kernels (starts from Xenial) will soon support FONT_TER16x32 for console display in early boot stage [1].

To benefit from this HiDPI fonts support, one just need to add "fbcon=font:TER16x32" to the GRUB_CMDLINE_LINUX in
/etc/default/grub, and run sudo update-grub

[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819881


'xte mousedown' / '-up' via xbindkeys not working

I faced the same issue.

I fixed it by

"xte 'mouseclick 2'"
b:8+Release

Hope it helps

Regards


Problem installing virtualbox on ubuntu 9.04

First open the place where you downloaded Virtual Box package.deb file.

Open terminal

Type

sudo dpkg -i

Drag and drop virtualbox package.deb file into terminal with using mouse.
Come back to terminal and press enter.
Give password and virtualbox will be installed.


The most likely cause of ending up at a grub prompt, is that the Wubi virtual disk has been corrupted i.e. the file C:\ubuntu\disks\root.disk (it may also be on a 'drive' other than C:) This can occur from performing hard shutdowns on your computer or power failures.

You should first run chkdsk on the drive that contains your Wubi install. Then you will need to confirm that the root.disk is still present or recover it from the \FOUND.000 directory that chkdsk recovers to.

Refer to this for specific instructions: http://ubuntu-with-wubi.blogspot.com/2011/08/missing-rootdisk.html

To avoid problems like this, avoid hard shutdowns - even if your Ubuntu install is hanging, try Alt+SysRq R-E-I-S-U-B to reboot safely.


Able to connect to WAP, but cannot connect to internet.

For the first part, there can be a problem with your WiFi.

For the second part, in which it "tries to connect and after a while fails," it is due to some glitch.

Maybe, and just maybe, your later problem can be solved in this question.


what driver might work with asus strix-gtx960-dc2oc-2gd5 in ubuntu 14.04.1?

That's an nVidia card.  The open source driver nouveau should have been installed already, but many users opt for the proprietary driver instead.  More info here:

https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


Try to use Unetbootin (http://unetbootin.sourceforge.net/) to burn ISO to USB Flash Disk. You can see the example tutorial in here http://www.psychocats.net/ubuntu/usb (Windows) and here http://www.wikihow.com/Make-a-Bootable-Ubuntu-with-USB-Drive-Using-UNetbootin (Ubuntu). The Google keyword is unetbootin bootable ubuntu. I always successfully burn Ubuntu (even Hiren's Boot CD) by using Unetbootin.


your host may have disabled the mail() function

In order to perform the php mail() function you need to either configure it correctly and on linux you most likely need a sendmail program installed. Since sendmail is a quite bloated piece of software, there is a simple and lightweight alternative called nullmailer which can relay your mail to e.g. your ISP's SMTP server.


XUbuntu 12.04 GRUB recovery after separate Windows 7 install

The top answer at this link worked like a charm for me. I just installed Windows 8 onto the same machine as my Xubuntu so it overwrote the grub loader and used the Windows bootloader. This switched it back to using the grub loader. Hope it helps!

How can I repair grub? (How to get Ubuntu back after installing Windows?)


Upgrade from 15.10 to 16.04 - "no new release found"

You can change your software sources from wily to xenial, then update, upgrade and dist-upgrade.


Ubuntu 14.04,NVIDIA Corporation GF108M [NVS 5400M] laptop monitor problem

I have been instances like that.

Open System Setting and open Display (It symbol is computer screen).
On pop-up windows, It has two squares (Built-in Display and Unknown Display)
Select Unknown Display and turn off it.


cannot login into locked Ubuntu 14.04 session Unity

I solved by installing libpam-kwallet4 libpam-kwallet5 .

$ sudo apt-cache search kwallet |grep pam
libpam-kwallet4 - KWallet (KDE 4) integration with PAM
libpam-kwallet5 - KWallet (Kf5) integration with PAM
$ sudo apt-get install libpam-kwallet4 libpam-kwallet5
$ sudo service lightdm restart


Try downloading and install manually

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

===================OR=================

Update your sources cache again and then try again. I mean

sudo apt-get update
sudo apt-get upgrade


Is there an application that can store a list of commands for me to pick and run?

When using BASH, you can press Ctrl+r to do a reverse search through your command history. For example, you can press Ctrl+r and then type "vim" to see your last command that included "vim".  You can press Ctrl+r again to find the second to most recent, and continue pressing Ctrl+r until you find the command you want.  Once you find it, you can press Enter to execute the command.

If you wish to edit the command before running it, you can use the directional (Left or Right) which will drop you out of reverse search and allow editing.

To enhance this feature, be sure to allow for many commands to be stored in your ~/.bash_history file.  You can define the limit by exporting the value of HISTSIZE in your ~/.bashrc file:

export HISTSIZE=10000

You can ensure each unique command is only stored once, which is recommended for various reasons including preventing you from having to press Ctrl+r more times than necessary otherwise.  Again add the following to ~/.bashrc:

export HISTCONTROL=ignoreboth

You may also want to adjust the way BASH stores history when multiple terminals are open at once, to ensure commands from multiple terminals are all stored, by taking a look at this answer.

This is one of those most powerful things I've learned on Linux/BASH, and I hope you find it helpful as well.


Select ONLY the address bar in Chrome using Alt + D on Linux?

There are two options:

Press F6 to select only the address bar
Control+L like in any other browser

Alt+D should also work if you hold down Alt and then hit D


Error mounting system-managed device /dev/sda5

You can try the steps in the following link. It solved my problem.
http://www.makeuseof.com/tag/fix-corrupted-windows-ntfs-filesystem-ubuntu/    if you can't get ntfsprogs from repository(with apt-get install ntfsprogs), download it from http://launchpadlibrarian.net/115355735/ntfsprogs_2012.1.15AR.5-4ubuntu3_all.deb


Is it possible to transfer my configuration files to another installation?

Yep, it doesn't work. I always copied the xxx.default folder into .thunderbird new.default and it worked. Not this time. I have no idea what is going on and why this was changed, but it's such a pain, I have 9 email addresses...


How do I permanently change the brightness of the screen?

It was a bug on kernel 3.0.0-12-generic and i report it on launchpad

https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/875061

another report i linked to it:

https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/870805

The suggested solution was to upgrade to 3.1.  So, I installed kernel 3.1.0-030100-generic and the problem fixed.


Installing Windows 8.1 on Ubuntu 14.10 dual boot

Well..you got to create a partition for Windows (how much would you like? 100GB?) for that there are some tools you can use, but I like to do that on the Windows 8 installation.

Before you start it, I recommend you to make a backup of your files, just in case.

If you don't know how to do it:
1)Insert the CD/USB with the Windows installation files
2)Restart the computer (you might need to press f12 if it doesn't boot from cd and select it manually)
3)Follow the instructions and choose to administrate partitions
4)Create a partition where your ubuntu is installed (if you dint know which one is, it should be the bigger one ;) )
5) Choose the size of the partition you want
6) There must now be a new partition called Unallocated Space. Thats where you are going to put it.
7) select it and click next
8) there you go! :D (I recommend you to use Custom installation if you don't know what are you going to do)

If something bad happens, don't worry. You can always try to install it again.


Will there be future support for the pepper version of flashplugin for Firefox?

It is very unlikely that firefox will support the "pepper API" in the near future. There is a bugreport asking for the support here, it was opened on 2012-02-22 and was closed on the same they as WONTFIX.

Also there was a newer discussion between Mozilla developers here, with basically the same result: They are not going to support the "pepper API" in the near future (or at all).

It is also important to note that the pepper version of flash is made by Google, not Adobe. One quote from the previous link:

  Even if Firefox supported the Pepper API, we would still need a Pepper
  version of Flash. And Adobe doesn't have one; Google does.

There are also some very interesting talks and facts about the "pepper API" in those two linked discussions, if you read them through you will get the idea why it is very unlikely that "pepper flash" will arrive to firefox.

What you can do to get "better" flash support for Firefox is to install pipelight, which is a browser plugin which utilizes WINE to allow windows only plugins to run in a linux browser. So you can run the windows version of Silverlight, Flash, etc. from the linux version of Firefox. You can read more about it here. To install it do:

sudo add-apt-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install pipelight-multi

Then to activate the pipelight flash plugin in firefox (and also deactivate the linux flash plugin):

sudo update-alternatives --install "/usr/lib/mozilla/plugins/flashplugin-alternative.so" "mozilla-flashplugin" /usr/lib/pipelight/libpipelight-flash.so 1
sudo update-alternatives --set mozilla-flashplugin /usr/lib/pipelight/libpipelight-flash.so

(If you would like to restore the original linux flash plugin later you will have to run

sudo update-alternatives --remove mozilla-flashplugin /usr/lib/pipelight/libpipelight-flash.so

)

The pipelight installation instructions were taken directly from the developers' website, from here.


Right-click the panel, then choose Panel -> Panel Preferences> and uncheck don't reserve space on borders in the Display-tab.


Can I connect two external monitors on one USB-C port

The Link's fine print says only Windows supports the Multi-Stream Transport (MST) required to daisy chain two monitors. As such I suspect that is why monitors are mirrored.

Check with vendor perhaps there is a work around or it's not too late to return it and get your eighty bucks back.


Make sure chromium is the same architecture as your computer (64bit, 32bit)
If that doesent work delete chromium and run sudo apt-get update then reinstall it. That should work


Booting from live USB of Ubuntu 12.10 stops at black screen

This happens to me on my HP laptop. For some reason, it just refuses to boot with a usb drive.
I tried all sorts of different software to create the liveUSB.

In the end, I had to use a DVD, and it worked fine. Try that. Hopefully it will work.

You can burn a DVD by downloading the operating system iso and burning it to a disk using Brasero or equivalent software.


There might be a problem with your router's wifi channel. Try to change it.


Fresh Ubuntu install on a UEFI Laptop after HD wipe doesn't boot

It looks like your problems boil down to inappropriate use of your firmware's Compatibility Support Module (CSM), aka BIOS-mode or legacy-mode boot support. Please read my page on the CSM for an understanding of its problems. Without that understanding, you'll be reliant on sheer luck to get things working.

Broadly speaking, the path to solving your problem is:

Disable the CSM. As noted on my page on the CSM, how you do this varies from one computer to another, so it's impossible to be specific.
Fix the boot loader. There's evidence that you've got an EFI-mode boot loader on your computer, but it may not be properly registered with the firmware or otherwise malfunctioning.

The second step is a bit vague because there are many possible ways to go about it and one key piece of information was missing from your Boot Info Script output: It looks like you booted it in BIOS mode, and so it did not provide efibootmgr output that would reveal your EFI boot order. Your computer might be properly configured, except that it's trying (and failing) to boot in BIOS mode, in which case switching to a strict EFI-mode boot should fix everything; or you might need to fix the EFI boot order; or you might need to create a fresh EFI boot variable; or you might even need to completely re-install a boot loader.

Disabling the CSM will test the first of those possibilities, and may put an end to things. Editing the EFI boot order or creating new entries requires using efibootmgr in Linux, as described in various places, such as:

Change boot order using efibootmgr
Having Trouble adding UEFI entry using efibootmgr

Most newbies to Linux or to EFI find efibootmgr difficult to manage, and instead choose to completely (re-)install a boot loader. Boot Repair can do this for GRUB, but only if you boot the recovery tool in EFI mode, which you don't seem to have done to produce the Boot Info Script output I requested. Another option is to install my rEFInd boot manager. The simplest way to do this is to download the USB flash drive or CD-R image, boot with it, and then install the Debian package or PPA once Ubuntu has started.

One important caveat: Some computers have badly broken EFI implementations that ignore or forget their boot variables in NVRAM. With such computers, the best approach is to return them to the store for a refund and get new computers, since the machines are defective. Unfortunately, this isn't always possible, so jumping through hoops to rename boot loader files may be necessary. Boot Repair has an option to do this on its advanced tab, or you can rename rEFInd's binaries with the mvrefind script.


Proper way to determine manufacturer/model of wireless card in Ubuntu 16.04

You can run

lspci -knn | grep Net -A2

This will output the exact card id and the driver in use.

This is an example (an old unused card in my desktop)

pilot6@Pilot6:~$ lspci -knn | grep Net -A2
03:06.0 Ethernet controller [0200]: Qualcomm Atheros AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] [168c:001a] (rev 01)
    Subsystem: D-Link System Inc AirPlus G DWL-G510 Wireless PCI Adapter(rev.B) [1186:3a16]
    Kernel driver in use: ath5k

So the model name is Qualcomm Atheros AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] and the id is [168c:001a].

You can also see the vendor in the Subsystem section.

In some cases you can't see the exact model if it has not been added to the kernel sources, but the id is most important.

Your adapter model is Qualcomm Atheros QCA9377. Newer kernels know it.


ubuntu 13.04 64 bit AR8161 usually off net

13.04 was released with the working alx driver, so just get rid of the compat-drivers package

sudo apt-get purge compat-drivers-2013-03-04-u


How to make new directories inherit their parent's ACL?

Use the -Rdm (recursive) options.

R for recursive
d for future changes; the R takes care of everything below it.
m for add and modify rules.


Usually, you see all the queries that you put into the textarea in the "SQL" tab.
Check out if it works for you on the PHPMyAdmin demo site, currently running v3.5.3 (Login: root/no password). If it doesn't help, try describing precisely what you do. Maybe the extended AJAX functions in newer releases prevent the display of certain queries.

Also, there's a history function (Source):

  phpmyadmin does offer a brief history. If you click on the 'sql' icon
  just underneath the 'phpmyadmin' logo, it'll open a new window. In the
  new window, just click on the 'history' tab.

EDIT: Downgrading phpmyadmin to version 3.2.x should help. Back then, less or none AJAX functions were applied to the query text input.

BTW: I prefer Adminer to PHPMyAdmin for a few month now. Added solution


How to resize a /home partition in Kubuntu?

Boot from live media so no partitions are mounted.  The ability to live extend partitions is the big bonus of using LVM.

If you use something like resize2fs you should be able to do it without live media.

As long as your tool is doing an appropriate resize you should keep all your files.  This is why I prefer CLI for important operations over gui tools.  You never know exactly what they're doing.


Sublime Text not showing up in 17.10 fresh install

you didnt specify which DM you have (gdm kdm lxdm)
if you are on lxdm/lubuntu > terminal

rm ~/.cache/menus/*
lxpanelctl restart

to find your .desktop file > terminal as root

updatedb
locate <your.app.name> | grep -i desktop

should point to a .desktop file inside /usr/share/applications/; that file contains the group to which the program is assigned; my guess it should be assigned to programming group


The short answer is no.

PyGTK is being phased out and replaced with PyGObject as the widget set upgrades from GTK+2 to GTK+3. As of Oneiric all 'native' ubuntu applications run using the GTK+3 set.

On a personal note, fairly recently I started developing an application in Python, and having looked into it I decided to use Python3 with PySide (which is Qt4 instead of GTK+3) because I found that Python 3 would be the standard in the year or so it took me to write the program, and because Qt4 has a some very good documentation, and some first class development software (just have a trail of Qt 4 Designer...)


install of 14.04.03 cause kernel panic before boot complete

In the end it was the fact that I used a Sandisk Cruzer Blade USB drive and the pendrivelinuxtool. So I tried again with a different USB drive (LEXAR) and an different usb iso maker (Lili USB creator).

The difference was remakarkable and instant. Just using the USB was much slower in booting and running but did show a different menu than before to choose between installing or just trying Ubuntu. In the end I worked out I had 2 versions of grub each on a different partition. In gparted I had my HD showing up as 3 seperate drives and couldn't do anything about it. Luckily the installer was able to fix the lot.

I owe it all to Can't run a fresh install of Ubuntu 14.10, shows kernel panic

which contained    http://ubuntuforums.org/archive/index.php/t-2220625.html


Problem with wireless driver on ubuntu 15.04 and lenovo z51-70

Follow these steps to get your WIFI.
Prior to this update your kernel by installing from this page

  http://kernel.ubuntu.com/~kernel-ppa/mainline/

I installed 4.0.0 since latest 4.2 crashes my bluetooth and then follow the steps from here :

  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940/comments/34


Launcher sometimes doesn't show with the mouse

Since you have compiz config try changing the behavior.

CompizConfig Settings Manager> choose Ubuntu Unity Plugin> under Behaviour Tab choose Edge Reveal Timeout to 1 . Change Hide Launcher to Autohide.


How do I align my partition table properly?

Since alignment pops up in a lot of places -

"Advanced Format" hard drives with 4k blocks
SSDs
RAID
LVM

- I'll expand a bit on the question.

Aligning partitions

"Linux on 4kB-sector disks" (IBM developerWorks) walks through the steps with fdisk, parted and GPT fdisk.

With fdisk:

sudo fdisk /dev/XXX
c # turn off DOS compatibility
u # switch to sector units
p # print current partitions, check that start sectors are multiples of 8

# for a new partition:
n # new partition
<select primary/secondary and partition #>
first sector: 2048
  # 2048 is default in recent fdisk,
  # and is compatible with Vista and Win 7,
  # 4k-sector disks and all common RAID stripe sizes

Aligning the file system

This is primarily relevant for RAID (levels 0, 5 and 6; not level 1); the file system performs better if it is created with knowledge of the stripe sizes.

It can also be used for SSDs if you wish to align the file system to the SSD erase block size (Theodore Tso, Linux kernel developer).

In the OP post mkfs apparently auto-detected the optimal settings, so no further action was required.

If you wish to verify, for RAID the relevant parameters are:

block size (file system block size, ex. 4096)
stripe size (same as mdadm chunk size, ex. 64k)
stride: stripe size / block size (ex. 64k / 4k = 16)
stripe-width: stride * #-of-data-disks (ex. 4 disks RAID 5 is 3 data disks; 16*3 = 48)

From Linux Raid Wiki. See also this simple calculator for different RAID levels and number of disks.

For SSD erase block alignment the parameters are:

fs block size (ex. 4096)
SSD erase block size (ex. 128k)
stripe-width:  erase-block-size / fs-block-size (ex. 128k / 4k = 32)

From Theodore's SSD post.

Aligning LVM extents

The potential issue is that LVM creates a 192k header. This is a multiple of 4k (so no issue with 4k-block disks) but may not be a multiple of RAID stripe size (if LVM runs on a RAID) or SSD erase block size (if LVM runs on SSD).

See Theodore's post for the workaround.


can;t view desktop items when switching from gnome to unity

I had the same problem and I found a tentative (if not wholly perfect) solution here.

Basically what I did was to install tasksel: sudo apt-get install tasksel

Then run it: sudo tasksel

Then deselect (using the space key) the entry "Ubuntu GNOME Desktop" and select "OK".

It then uninstalled a host of packages, including some programs that I didn't expect it to, and that I use on a daily basis (like Anki), but when I rebooted the computer, the interface was back to normal. Use at your own risk! :)


You probably just need to chown the directory back to your user  & the appropriate group.

sudo chown -R your-user:appropriate-group /path/to/backups

Then you need to investigate how your user got dropped from the sudo group!


Your apache server listens only at localhost by default. In the directory /etc/apache2/ you'll find the configuration files. Look for the line

Listen 127.0.0.1:80

and change it to

Listen 80

Now you should restart the Apache process and the server listens also on public interfaces.

There might also be the chance that your internet router does not forward the packages to Apache. In this case you'll have to change the setup in your router so that packages to port 80 get forwarded to the Apache IP address.


Ubuntu rocks indeed, not only rocking, but neither Ubuntu nor Windows Vista play flash videos, Adobe Flash player does, and on Vista, it has hardware acceleration. If you haven't heard about the state of flash support, check out this.

So, what can you do? Not much really. There are some limited alternatives though.

FlashVideoReplacer Firefox addon (no longer available).
HTML5.

As an afterthought, perhaps Ubuntu is not the way for your friend to go. It's up to your friend to decide.


How to copy /sda3 to /sda1? UUID's can't be similar

The easy way, IMO, is to boot the Ubuntu desktop CD. You can then use gparted to copy-paste your partitions.

The only trick with gparted is that you have to apply the changes one setp at a time.

Delete sda1 -> apply changes -> copy sda3 -> paste -> apply changes.

Once you have copied the partition you can also use gparted to create a new UUID

Select the partition → New UUID

Mount the partition at /mnt

sudo mount /dev/sda1 /mnt

Edit fstab, enter the new UUID under the entry for the root file system.

List the UUID, if needed, with blkid

blkid

gksu gedit /mnt/etc/fstab

Re-install / update grub

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

See also:

https://help.ubuntu.com/community/MovingLinuxPartition
https://help.ubuntu.com/community/UsingUUID
http://www.youtube.com/watch?v=8BEZJmKqxYs


There isn't currently any quick and easy way to enable this kind of functionality on the desktop version of Ubuntu.

Personally I'm a big fan of the default compose key shortcuts; I find them faster and a lot more intuitive than mobile-style long press selection (♥). That said, if you have the time and determination, you might be able to piggyback the slowkeys option in the default core Universal Access application to build something similar to the mobile option.

Poking around in that myself, XKB seems to be associated with slowkeys control. You can use XKB to configure and enhance Ubuntu's keyboard bindings, and as far as I can tell, this section has what you need. So it shouldn't be that (relatively) difficult to have an alternative character print when a key is long-held.

Where things get complicated is assigning multiple special characters to a keystroke (example: hold down "a" and get options for ä, à, á, â, etc.). How do you cycle through the options? Do you have the characters pop up in a dialogue window, then use the mouse, tab or arrow keys to select one? Seems time consuming.

Or you could assign different hold lengths to different characters. 100ms hold for à, 200ms hold for á, 300ms for â... But remembering how many seconds are for which characters could get tricky, not to mention assigning all of them individually would be a headache. Plus when you get into longer lists of characters you could be sitting there holding a key for a good 3-4 seconds. Seems even more time consuming.

Rather than slowkeys, you could try the repeatkeys option instead to have multiple taps of a key provide a special character: 3 taps of "a" for à, for instance. But then you run the risk of having unwanted special characters popping up when you type anything like "good", or "eerie", or "aaaaaaahhh!"

You may have come up with some other, more efficient implementation method that I'm not thinking of, in which case go forth and modify! But I'll still recommend compose key combinations in the meantime. ☺


Can't supress Chinese timestamp from terminal

Solution is to reboot after changing and applying the language parameters.


Open the file.

Ctl+a to select all.

Either:
A
Format -> Row -> Optimal Height
OK

B
Format -> Row -> Height
Set a height.
You could find the desired height by doing this same thing on the largest row and checking the value


(community wiki - converted OP comment to answer)

One solution I found

By placing the music folder outside my ubuntuone folder, you can share it separately.

You can enable/disable syncing to this folder on every device.


According to this site https://wiki.ubuntu.com/Touch/Devices

Only The Sony Xperia S & T are currently, they are in Work In Progress although.

Forum devoted to Ubuntu Touch work in progress development

http://forum.xda-developers.com/forumdisplay.php?f=2068


id 0x4360, rev 0x03 and package 0x01 Analog 12, Type 11 (AC), Revision 1

This has now been resolved through the removal of conflicting broadcom drivers and installing the bcmwl-kernel-source package that provides the wl driver

As a side note, iwconfig doesn't appear to reflect the 'AC' and 5Ghz aspect of the card:

0a:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
        Subsystem: Broadcom Corporation Device [14e4:0619]
        Kernel driver in use: wl

wlp10s0   IEEE 802.11abg  ESSID:"ChateauBullow"
          Mode:Managed  Frequency:2.452 GHz  Access Point: XX:XX:XX:XX:XX:XX
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off


kubuntu 14.10, screen goes blank during HDD icon loading

OK, here's the solution:

Enter the directory ~/.kde/share/apps/kscreen List files and there will be listed two files which were made prior to this problem... In my case, I renamed 2 files with long weird names, lost some settings like keyboard shortcuts for Screen Lock & Show Desktop. Maybe I lost something else but I'm happy after 2 days of thinking something is wrong with video driver.


No more 4K Screen Resolution after Kernel Upgrade

Rather than reinstalling Ubuntu after a kernel update, boot with the older kernel.

From the Grub menu, select "Advanced Options" and from there you can select your older (original) kernel that works:

This image generated by grub-menu.sh that displays your grub menu without rebooting. Your real grub menu would look different during boot.

The original kernel version should still work. Then keep trying out new kernels that Ubuntu installs until the bug is fixed. Then after using the most recent kernel you can remove older kernels using:

sudo apt autoremove


It looks like you are trying to install 'picprog'. This is available as a Ubuntu package in the official repositories. No need to install from source! Click the button below and you should be set in a few seconds.


You can use open-source tool: TestDisk to repair the corrupt partition table.

Example of repair a damaged partition table:
http://geekyprojects.com/storage/how-to-repair-a-damaged-partition-table-or-mbr/


/catkin_ws/devel/setup.bash: No such file or directory

The program has left some unnecessary lines in your ~/.bashrc file. gedit ~/.bashrc find and delete them.

This one source/opt/ros/jade/setup.bash was added by the command, that you typed on the screenshot: $ echo "source/opt/ros/jade/setup.bash" >> ~/.bashrc.


Failure of Power Supply during Remote Desktop Connection makes the local Machine unusable?

Try using Ctrl+Alt+F1 to switch from graphical desktop to virtual terminal. After logging in there, you will be able to enter commands.

You may try killing the rdesktop process from there (or investigating the problem any way you want). To return to X, and use graphical desktop, press Ctrl+Alt+F7.


Really simple HTML server for raspberry pi

I take it, that you really just want to read an HTML document on the Raspi, but the system has not enough memory to start its default browser Firefox.

You could try a more lightweight browser like midori. Install with

sudo apt-get install midori

If you truly need to serve the pages to the local LAN, you need to install a web-server. nginx is resource-wise a good choice.

Install it with

sudo apt-get install nginx-light nginx-common

There is also a nginx-full package which brings more functionality, but I don't believe is needed here.

When the installation is done, the server should start automatically. You can control it with

sudo service nginx start/stop/restart/...

If you now browse to the address of the Raspi, you will already see a page being served ("Welcome to nginx...")
The welcome page you see is served from /var/www/html. The configuration is stored in /etc/nginx.

If you are lazy and want a quick fix, simply put your files into this folder. By default a document index.html is served. If it does not exist, a document tree will be served instead. The directory contains of course the welcome-page. Move it out of the way first. If you want to serve files from a different folder, read on.

There exist two directories

/etc/nginx/sites-available
/etc/nginx/sites-enabled

The first one holds the actual configuration files, while the second contains links to those configuration sites. These links tell nginx to process the config and serve the site.

For your goal it suffices to adapt the existing configuration a bit.

First, delete the symlink to default

sudo rm /etc/nginx/sites-enabled/default

so the server will not serve the Welcome page by default.
Now copy default and alter it

cd /etc/nginx/sites-available
sudo cp default mysite

Name it anyway you like better than mysite.
Open the file with an editor. Most of the setting are fine, but you need to adapt root so it points to the directory which contains the files you want to serve. This is basically all you need to do, but one option is quite useful:

index: Which document is served when the document root http://server/ is browsed.
Reload the config with

sudo service nginx reload

and your Pi should serve your webpage!


Kubuntu gets hung up on udev whenever installing anything

Upgrading the OS solved the problem. No clue why.


Edit your sudoers file with sudo visudo and add the following line after the existing defaults:

Defaults    timestamp_timeout=3

Note: visudo doesn't mean it'll neccessarily edit it with vi/vim/etc but if you find your $EDITOR value is sqwiffed-up and you'd prefer nano, you can run sudo EDITOR=nano visudo instead to force nano to be your editor.

The trick from the suggested duplicate, (sudo -k) is good for an immediate privilege dump.


update dell drivers on ubuntu 14.04 dell e5450

Dell has uploaded the drivers pack for Ubuntu 14.04.

It is at the same link. I think you can install it.

But I do not see anything that can help with the keyboard problem. Mostly there are Nvidia, bluetooth and Wi-Fi drivers.

They keyboard issue is probably a hardware one.


XML info for my computer installing Hadoop

In the tutorial you are following, there was a step where you created these folders:

  We should create and prepare directories for our data:

mkdir -p ~/hdfs/namenode
mkdir -p ~/hdfs/datanode
mkdir $HADOOP_INSTALL/logs

The folder ~/hdfs/datanode (which is actually /home/hduser/hdfs/datanode) was created for the purpose of holding the Hadoop data, so you should use that as the value under the property dfs.datanode.data.dir.

The fs.defaultFS is the IP address or hostname of your NameNode (the "main" computer) in your Hadoop cluster. You should already know which machine will be acting as your NameNode, so put its IP address or hostname there.


How can I switch directly to a workspace using the keyboard?

Ooops, not sure how I missed it; for some reason I didn't scroll and see more options:

System Settings -> Keyboard -> Navigation -> (Scroll down) -> Switch to Workspace 2


Sublime Text error "/bin/sh: 1 php not found" in Ubuntu 20.04

I suppose you're working on php files and have something setup in sublimetext to use php for building
-> install php to solve the issue
sudo apt update
sudo apt install php


Audio files sound much better played in Audacity than in GNOME Player?

Your computer may be the weak link in the chain if that is why you are using Lubuntu instead of Ubuntu. Getting a modern desktop computer would work better than a "duct tape" solution intended to accommodate the limitations of an old computer, however since you asked about something that can be improved upon in Lubuntu, try changing the engine required for playing .flac files in GNOME Media Player (gnome-media-player). Changing the engine makes a difference in the quality of the sound that I can hear on multiple computers, and you can't argue with what the ear hears.

There are three different engines in GNOME Media Player. To change the engine, open GNOME Media Player, select Engine and select one of these three engines:

VLC Engine
Xine Engine
GStreamer Engine

Then select Engine -> Restart Engine.

In order to use the VLC Engine you must also install VLC media player (vlc).


Intel Integrated Graphics driver problem on Intel Atom D2500HN

First to make sure your firmware and module libraries are intact for i915
======solutions=====
make sure that both your /lib/firmware/i915/ and  /lib/modules/'uname -r'/ are populated with files
I lost mine due to apt autoremove
~$ sudo apt install --reinstall linux-modules-`uname -r` linux-modules-extra-`uname -r`

====================
After which
~$ sudo modprobe i915

~$ sudo lspci -v | grep -A 10 -i vga
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D2xxx/N2xxx Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
    Subsystem: Intel Corporation Atom Processor D2xxx/N2xxx Integrated Graphics Controller
    Flags: bus master, fast devsel, latency 0, IRQ 28
    Memory at d0100000 (32-bit, non-prefetchable) [size=1M]
    I/O ports at 20d0 [size=8]
    [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: gma500
    Kernel modules: gma500_gfx

and finally edit your grub configuration :
~$ sudo <your preferred editor> /etc/default/grub

##video=LVDS-1:d  is disabling LVDS-1 port which some kernel version might be directing the video to that port on default despite your motherboars might not have such a port available to you
So change the following line :
GRUB_CMDLINE_LINUX_DEFAULT=""

to
`GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.modeset=1 video=LVDS-1:d"`

and then in terminal run  :
~$ sudo update-grub

my problem solved, credit due to https://bbs.archlinux.org/viewtopic.php?id=145648
which in turn drew his solution from
http://permalink.gmane.org/gmane.linux.mageia.devel/13667
I had spent many days trying to nail this issue. Hope my findings are of use to you linux supporters. Cheers


How to include firmware to Ubuntu Server Install?

I had the exact same problem, on a Gigabyte 1U server, but I found a good solution.

My solution:

    [ALT] + [F2]
    [Enter]
    sudo apt-get install linux-firmware

This installs lots of firmware files in /lib/firmware. It also triggers reloading the NIC driver. (Could see this using dmesg in the second terminal)

Return to the installer:

     [ALT] + [F1]

Select NIC -> IPv4 -> DHCP and it grabbed a v4 DHCP address on the bench network.

Continue the install, reboot, and all is well.

Hope that helps.


Downsizing EBS drive on AWS Ubuntu 18 not booting

I figured it out!
Step 4 is causing the issue. Instead I did
Create and start a new instance with same OS and desired lower volume size (VN). Stop instance and detach the volume VN.
Then steps 8-12 are not needed.


When manually setting up hard drives in the installer, how can I set custom mount points?

This was not intentional -- it's actually a bug in the installer that was noticed too late to be fixed in time for Ubuntu 11.04.

There is a workaround -- you can type the mount point you want ("/media/backup") in a text document, then copy and paste the text into the box in the installer.

Update -- This has now been fixed.  I doubt they'll re-release the Ubuntu 11.04 disk image, but at least we shouldn't have to worry about this problem in 11.10.


Real-Time Volume Leveling & Audio Outputs

To level output volume we can apply LADSPA filters to our audio sink:

Automatically adjust the volume based on content?

So after having installed the Steve Harris' plugins (swh-plugins ) we can issue the following commands in a terminal to create a sink with a compressor and a normalizer:

pactl load-module module-ladspa-sink sink_name=ladspa_sink master=<alsa_output> plugin=dyson_compress_1403 label=dysonCompress control=0,1,0.5,0.99
pactl load-module module-ladspa-sink sink_name=ladspa_normalized master=ladspa_sink plugin=fast_lookahead_limiter_1913 label=fastLookaheadLimiter control=10,0,0.8 sink_properties=device.description=Normalized_Sink

Replace <alsa_output> with the name of your default sink.

To send this normalized audio to all audio outputs in our system we can use the module combined:

Simultaneous output with paprefs no more working on ubuntu 13.04

The following command will create a myCombine sink from all audio cards available in our system further specified in slaves=. Replace the names of these sinks with those on your system.

pactl load-module module-combine-sink sink_name=combine sink_properties=device.description=myCombine slaves=sink1,sink2,... channels=2

We then can apply the LADSPA filters to this combined sink. This can be quite CPU demanding so not all systems may be capable to do that.

For a short documentation of the SWH plugins to be able to further fine-tune parameters see:

Steve Harris' LADSPA Plugin Docs


sda is where the system is, you can not dismount. Give Boot with a liveCD and use Gparted to format


You can install Windows from inside Linux onto your physical hard drive, but you need separate partition as NTFS or FAT32. Below is a way to use a virtual machine to do the actual installation, but it's performed on your hard drive.

Prepare a new partition onto where you want to install Windows.
Start the Windows installation with a Qemu virtual machine and your physical hard drive mapped (target partition can't be mounted):

qemu -hda /dev/sda -cdrom winxp.iso -m 1G -boot d --enable-kvm

Install Windows on the partition you created.
Reinstall Grub (if partition isn't first, you need to do a trick with mapping hd's, its working for me).


How to install twindb backup in 32 bit ubuntu 16.04

Unless we get a customer who runs 32 bit (which is highly unlikely in 2017) we won't package twindb-backup for 32 bit platforms.

You can try to install it from the source code though.

Install dependencies

# apt-get install python-pip python-dev

Download the source code

# git clone https://github.com/twindb/backup.git

Switch to the stable branch

# cd backup/
# git checkout master

Install the script

# pip install .

Then you need to put a config in /etc/twindb/twindb-backup.cfg. Get an example in support/twindb-backup.cfg.

And finally put twindb-backup.cron in /etc/cron.d


Not able to launch WiFi in Ubuntu 16.04 with RTL8723DE

With a temporary working internet connection, open a terminal and do:

sudo apt update
sudo apt install build-essential dkms git
git clone -b 4.11-up https://github.com/jeremyb31/rtl8723de.git
sudo dkms add ./rtl8723de
sudo dkms build rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
sudo modprobe rtl8723de

Reboot and your wireless should be working.


Usually the easiest way is just making a shell script.  What ever command you use to launch eclipse use the same.

You probably want to use "gksudo" and then your command which looks like

gksudo /opt/eclipse/eclipse

Then put that in a regular file with a .sh extension.  Right click the file and add execution permissions.  You can also use chmod +x filename.sh

Here is a good tutorial to get you the basics of bash scripts.  Its really easy and powerful.

http://linuxconfig.org/Bash_scripting_Tutorial

I haven't tried launching eclipse from the command line, but I believe it is built with java.  If that is the case you might also need to specify java -jar in there some where, but I'm not sure.

Hope this helps.


ModuleNotFoundError: No module named 'distutils'

From my understanding, after running this command:

vzzarr@mario:~$ ll /usr/bin/python3
lrwxrwxrwx 1 root root 9 Mar 13 12:20 /usr/bin/python3 -> python3.8*

the defaulted Python version is now 3.8 and not anymore 3.6.

So for me in Settings -> Project -> Project Interpreter and then from the perspective when clicking on Show All... and adding a new one - you should see something like that:

So in my case was sufficient to change Base Interpreter from /usr/bin/python3.6 to /usr/bin/python3.8


Buzzing in headphones after installing mkchromecast

Hmm. This problem went away yesterday when I did the latest round of updates to Neon. I have no idea why. Thanks laugeo for taking the time to respond.


Heavy battery drain in Ubuntu 18.04+Dell 7577 (Preinstalled OS=Windows 10)

After reading a few articles on the internet and trying a few things out, I guess the issue was somehow the CPU cores were kept at higher frequencies even if it didn't have much work to do. As a result the CPU used to get hot and fans kicked in harder to cool them down.
Solution is frequency scaling.
You may also undervolt (Watch a few good tutorials first though. You may use TLP or Intel Xtreme Tuning Utility (XTU). I haven't done this step.)
Some basics concepts of processor power management can be found in below links

Intel Docs P States
Intel Docs C States
Intel Docs More on Power Management

Apart from this some things seriously eating juice are: Screen Brightness, Wifi, Bluetooth.
A few simple things worked.

Check if you have all correct drivers installed.

Install CPUFreq Indicator
CPUFREQ is a quite helpful indicator applet that you lets you control your system’s CPU speed. In Ubuntu 18.04 it has 2 options: Performance and Powersave. You can select via the option on top right corner of screen.
sudo apt install indicator-cpufreq

NOTE: No need to install CPUFreq separately if you're going to use TLP

Install PowerTop
sudo apt install powertop

and run it a few times (ON BATTERY) to calibrate (It will tell you on screen how many readings you need). These readings are PowerTop checks how much power is used for various things like screen brightness, using 1 core, using all cores, using wifi etc (correct me if I am wrong) and gives you a set of readings which you may inspect as to what is eating up juice. In Tunables, “Bad” indicates a setting that’s not saving power, although it might be good for performance. “Good” indicates a power saving setting is in effect. You may let it auto tune
sudo powertop --auto-tune

NOTE: Don't use autotune if you have TLP also as attempting to apply powertop's --auto-tune settings on each boot will conflict with TLP
Read here: FAQs on using Powertop with TLP in TLP documentation

Install TLP
TLP can cover the functionalities of both the tools mentioned above in terms of actually managing power settings. It lets you do a lot of things with power management in true sense. There is a big settings file in which you can keep power settings the way you want (e.g. what devices to turn on after boot, turn wifi off if disconnected etc), save it and then start the TLP service.
you can simply type sudo apt install tlp OR read the documentation which covers everything in more detail.

TLP Documentation
TLP Power settings and configurations documentation
TLP FAQs

Keep screen brightness lowest possible yet visible. Keep bluetooth and Wifi Off unless needed. Connect an ethernet wire if need be. See what processes are running in background on startup. Disable unnecessary processes.

To set battery threshold levels like in Windows, the thing is whatever is set in Windows using Dell Power manager is also respected in Linux. I didnt explicitly find any tool for that in Ubuntu. However, there is something called Dell Command | Configure which gives you a client configuration toolkit (cctk) with such options. Refer the link below. I installed it and tried to run it but it said it cannot read settings from my BIOS. So didn't work for me but may work for you.
Dell Command Configure
Installation and document links are given in the above article

For nVidia Graphic card, first install drivers via Software and Updates GUI then go to nVidia X server settings application and in PRIME profiles switch to Intel Graphic card if you dont need nVidia when on battery or doing normal stuff like browsing.

Experts can correct me if anything is inappropriate above


Problem using Scirra Construct with Wine

Some steps to try based on the AppDB page for this program:

Update to latest beta Wine (instructions here)
Run winetricks and tick a few of the boxes that are suggested on the AppDB howto page.  I suggest doing them one at a time.  To run winetricks, install the beta package as above and then type winetricks into a terminal.


VLC-player disapears after upgrade from ubuntu 14.04 to 16.04

I solved it. I simply found the program "Software" (which can install programms) already installed in the system; there in the search I entered vlc. This time the programm showed up and I clicked install. The version which was newly installed is vlc 2.2.2. The one I last had under ubuntu 14.04 LTS was vlc 2.2.6.


mailx MTA problem in ubuntu server 16.04

You have come across one of the differences between the package bsd-mailx and the package heirloom-mailx. Undoubtedly you are using the bsd-mailx package (the default for Ubuntu) which does not have the -a option to attach files.

The easiest solution is to install the heirloom-mailx package, ensuring first that the bsd-mailx package is removed, and then your command line will function as you intended...


How to run a program in background and also using && to execute another command

It's just :

node app.js & curl localhost


Can I install 12.04 and then upgrade to 13.04 to get latest features?

No, if you upgrade you will get the same experience as if you loaded it directly.

In fact, I just attempted to to a upgrade to 13.04 from LTS on my netbook (Asus A0751h) and it warned me that it would be slow, so I stayed on LTS.


I came to Linux from a Win32 API background. Because Windows wraps up the equivalent of the Linux window manager and desktop environment into a single container, there just isn't a one-to-one match. Gtk and Qt really are more or less the equivalent to the Win API.

Keeping in mind that the Win API itself in most cases is a wrapper on lower levels, if you really want to get down into the low-levels of the windowing system, you can look at X11 programming. For example, X Window System and Brief Intro to X11 Programming. But Gtk and Qt are designed to be wrappers around these functions.


After a bit more research, I found that the line

bind "<alt>BackSpace" { "move-cursor" (display-line-ends, -1, 1) "delete-from-cursor" (chars, -1) };

works as I want it to.


How do I change desktop environment in Ubuntu 17.10 if user has no password?

I remember changing the XSession to ubuntu or gnome-org in /var/lib/AccountsService/users/<user-name>, to resolve same issue. It worked after restarting. My current file looks something like this.

[InputSource0]
 xkb=us

[User]
 XSession=ubuntu
 SystemAccount=false

(When creating new user, make sure you have correct DefaultSession in /etc/gdm3/custom.conf, as the same would apply to it.)


how to make a program autostart at every login on 12.10?

That would depend on what desktop environment you're running.  Here is how to manage startup applications if you are using:

Unity (the default)
Gnome-Shell
KDE
MATE is the same as Gnome-Shell.


These files are there because several components in your system conform to the XDG Base Directory Specification and expect the environment variable XDG_RUNTIME_DIR to be set. If not set, the user's home directory is used.

pam-systemd is the component that sets XDG_RUNTIME_DIR to /run/user/$UID, where $UID is the effective user id for the user. In your case, pam-systemd has not run or has otherwise misbehaved, that is hard to tell. But you can easily set the XDG_RUNTIME_DIR at boot time yourself, as follows: sudo nano /etc/profile and add the following lines:

XDG_RUNTIME_DIR=/run/user/$UID
export XDG_RUNTIME_DIR

From the next reboot on, the .PID files will no longer clutter your home directory.


Connected to remote VPN, now can't connect to server

I expect your vpn connection to manipulate your default routing so that every packet uses the vpn route.  In the end you lose any previous established connection. There should be two ways around this:

Connect to your Server after having established the vpn connection. Disadvantage: As soon as you terminate your vpn connection you have to reestablish the connection to your server.
Modify your routing rules. Create a rule that forces routing to your server outside the vpn connection. To do so you need to know the ip of your server and the ip and/or the network interface name of your ethernet card.

2.1. Type in ip a in terminal to find out your interface names and ip addresses.

ip a
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: enp3s0:  mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:24:1d:cd:37:6c brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.59/24 brd 192.168.178.255 scope global dynamic enp3s0
       valid_lft 863431sec preferred_lft 863431sec
3: enp4s0:  mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:24:1d:cd:37:6e brd ff:ff:ff:ff:ff:ff
4: virbr0:  mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: virbr0-nic:  mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 52:54:00:c4:0d:00 brd ff:ff:ff:ff:ff:ff

In the case of this example the interface name we are looking for is enp3s0. The ip it has been assigned to is 192.168.178.59.

2.2. Create a route to your server. Lets say your server has the IP 194.57.84.36 than you have to write the following rule: sudo ip route add 192.57.84.36 via 192.168.178.59 dev enp3s0

2.3. Check your routing table with ip route

Before modification:

default via 192.168.178.1 dev enp3s0  proto static  metric 100
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1 linkdown
192.168.178.0/24 dev enp3s0  proto kernel  scope link  src 192.168.178.59  metric 100

after modification

default via 192.168.178.1 dev enp3s0  proto static  metric 100
192.57.84.36 via 192.168.178.59 dev enp3s0
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1 linkdown
192.168.178.0/24 dev enp3s0  proto kernel  scope link  src 192.168.178.59  metric 100

Note: The rule will be deleted after reboot.


Looks like your blacklist bcm43xx is the issue in kernel. If you still have the live DVD, insert it, then in the live DVD:

go to pool > restricted > b > bcmwl and drag bcmwl-kernel-source to your desktop
pool > main > d >dkms and drag dkms to you desktop
cd ~/Desktop
sudo dpkg -i dkms*.deb
sudo dpkg -i bcmwl*.deb
Reboot


Can not use front audio output in ubuntu 16.04

Below the (output of pacmd list-cards, clipped for the part of my sound card.

index: 3
name: <alsa_card.pci-0000_00_1b.0>
driver: <module-alsa-card.c>
owner module: 9
properties:
    alsa.card = "1"
    alsa.card_name = "HDA Intel PCH"
    alsa.long_card_name = "HDA Intel PCH at 0xf7e10000 irq 34"
    alsa.driver_name = "snd_hda_intel"
    device.bus_path = "pci-0000:00:1b.0"
    sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
    device.bus = "pci"
    device.vendor.id = "8086"
    device.vendor.name = "Intel Corporation"
    device.product.id = "8c20"
    device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
    device.form_factor = "internal"
    device.string = "1"
    device.description = "Built-in Audio"
    module-udev-detect.discovered = "1"
    device.icon_name = "audio-card-pci"
profiles:
    input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
    output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
    output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
    off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
    alsa_output.pci-0000_00_1b.0.analog-stereo/#2: Built-in Audio Analog Stereo
sources:
    alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#3: Monitor of Built-in Audio Analog Stereo
    alsa_input.pci-0000_00_1b.0.analog-stereo/#4: Built-in Audio Analog Stereo
ports:
    analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
        properties:
            device.icon_name = "audio-input-microphone"
    analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
        properties:
            device.icon_name = "audio-input-microphone"
    analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
        properties:

    analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no)
        properties:

    analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
        properties:
            device.icon_name = "audio-speakers"
    analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
        properties:
            device.icon_name = "audio-headphones"


How can I search for filenames with special characters?

Fold open "Select more options", select "Name matches regular expression" and press the Add button.  Now you can fill in a regular expression to match.  To use the example of Joris, put [èö] in the text box next to the "Name matches regular expression" search option you added, and it will search for all files that contain è and/or ö.  You can add as many special characters as you want between the [].  Oh, and you can leave the main search box at the top empty when searching.


laptop suspend resumes immediately in ubuntu 13.04

Suspend from terminal.

sudo pm-suspend

IIRC, it will print errors. You will have something to go on.


In Kdenlive, how to change the rotate axis to a specific point?

I asked in the Kdenlive forums, and was told that this functionality does not yet exist.


Ubuntu not installing on intel NUC 6i7KYK

OK. i have been able to solve the problem with the help of two posts.

once the USB boot brings you to the screen where you have the option of trying ubuntu or installing ubuntu, the post

How to Access Boot Options 12.04 Live USB

is very helpful.

this allowed me to install Ubuntu.

once installed, the post

How do I set 'nomodeset' after I've already installed Ubuntu?

gives instructions to make the changes permanent and then on it is OK.

now i have Ubuntu 17.04 up on my intel NUC6i7KYK

Thanks.

/bazmi.


Is it better to use UUID or PARTUUID to automount HDD with fstab?

If you use the PARTUID, you need to indicate that in fstab by starting the line with PARTUUID= rather than UUID. In the example you give, the system looks for an UUID, not a PARTUID, and indeed did not find a maching one.
Replace UUID= by PARTUUID= and you should be good to go.
Both UUID and PARTUUID are intended to be unique identifiers, one related to the file system, so changing when you reformat the partition, the other to the partition, so associated with the partition itself (won't change when you reformat). Is it better to use the one over the other? It does not matter too much. When you mount a drive yourself in fstab, you need to be well aware what you mount, and at that level it does not matter much whether you use one or another unique identifier.


The terminal and MonoDevelop (monodevelop) from the default Ubuntu repositories is maybe all you need, and Visual Studio Code doesn't live up to its full potential until you install lots of software to go with it. It's amazing how fast Visual Studio Code can chew up a gigabyte of disk space when it turns your Ubuntu into a Windows development environment.

If you don't stop there you need to grant root access to some fancy development software to keep going. Visual Studio Code treats every platform as if it's Windows, so sometimes the extra software you installed doesn't work. Visual Studio Code doesn't warn you about this, so you need to install the software in order to find out if it works or not. Finally you have a Microsoft epiphany moment when you realize that Visual Studio Code is  a fancy code editor, not an IDE, and you need to buy the latest version of Windows and install Visual Studio in it. All this is optional, so in Ubuntu 17.10 and earlier you're better off starting with the lightweight MonoDevelop IDE and see how it goes.

MonoDevelop can be installed from the default Ubuntu repositories in Ubuntu 17.10 and earlier. This link tells how to run C# programs from the terminal and in MonoDevelop: How do I install Mono for 17.10?

The wonderful C# is open source and cross platform now that Microsoft has released a version of .NET Core, and it's blazingly fast. To install .NET Core in Ubuntu open the terminal and type:

sudo snap install dotnet-sdk


No "Are you sure you want to delete this file?" message?

Graphical

Nautilus there is. Right click a file and move it to trash or deleting files.

Command line

The command line add a few aliases in ~/.bashrc

# Command line
nano ~/.bashrc

# Graphical
gedit ~/.bashrc

Add a few aliases and activate noclobber

alias mv='mv -i'
alias cp='cp -i'
alias rm='rm -i'

set -o noclobber # Override >|

No clobber prevents you from redirecting and overwriting to an existing file.

So echo 'add this' > file not over write a file if it exists. You can still append echo 'add this' >> file. You can over ride it by adding a "|" echo 'add this' >| file

Delete key

I do not know any way of over riding the delete key. You may be able to map the delete key to a script, but, as I would assume you would use the delete key for other tasks, you would then map a key combination to perhaps a zenity script.

Perhaps someone else will add a way to over ride the delete key.


Run Windows program in Wine as administrator

As far as Windows programs are concerned, Wine runs with Windows administrator rights by default when it is started by an user with ordinary permissions (not root permissions). Never run Wine as root using sudo because it gives files in your ~/.wine directory root permissions that can be a security threat to your OS. By doing so you are giving Windows files in the ~/.wine directory root permissions to make changes to the Ubuntu operating system. If you ran Wine as root, remove your entire ~/.wine directory. Even if you remove the ~/.wine directory, running Wine with sudo may have done permanent damage to your operating system that can only be repaired by reinstalling the operating system.


How to make Rhythmbox toggle between pause and play with spacebar?

rythymbox's keyboard interface is incoherent.

The desired behaviour, (which imo is desired behaviour for all music players at all times,) of space bar being play/pause button, is actually possible after you click play or pause with the mouse. It is like it 'selects' that button.

However, after you select a track for example, the spacebar behaviour changes to selecting that track, so everytime you press pause, I mean spacebar, it will again select that track, and because it is playing it will start playing the track again. I hope this will get fixed sometime into something more sensible and intuitive. Like the desired behaviour.


Run this from terminal:

grep MD5SIG /boot/config-`uname -r`

if you see this:

CONFIG_TCP_MD5SIG=y

Then TCP MD5 signatures are compiled in kernel, so your OS is able to use them (in such case, you have false positive from scanner).

Depending on what scanner was actually reporting, please note that for every TCP connection, MD5 signatures needs to be explicitly enabled by calling setsockopt.


How to install drivers for TP-LINK TL-WN722N on 16.04?

I suggest, as a start, that you update the firmware. From the terminal:

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb
sudo dpkg -i linux*.deb

Reboot and test.


Do you have Synaptic Package Manager installed on your system?

1.If not open up your Ubuntu Software Center,type Synaptic Package Manager into the search box and install.You must be the admin to do this.
2.Once the Synaptic Package Manager has installed,open it and type LibreOffice into the search box.A list of LibreOffice software will appear.
3.Look for LibreOffice hyphenation,right click on it and choose "Reload" the program.This will reinstall the hyphenation software and as a bonus will alert you to other LibreOffice software that may be corrupted or missing.


How to prevent the colored border over all dialogs after resuming from sleep?

I found a partial solution to remove the border. Running pkill compiz removed the border.

Why partial solution?

pkill compiz doesn't behave nicely with workspaces. It puts all windows of all workspaces into the first workspace :(
The problem reproduces after next resume from sleep, thus need to run pkill compiz after every resume from sleep.


How To Create a Swap Partition on a flash drive

I wouldn't suggest creating a swap partition on a flash device. The read/write rate when swapping would shorten the life of the drive considerably.  But if you like, here how its done:

Open disks from dash, and follow the images below in the order that they are listed:
Click the + sign to create a partition

Make sure the right type is choose, and name is optional, and them click create

Click the little wheels, to change the partition type

Make sure the right type is chosen, and click change

Notice that the partition type is now Swap

Click on the little square to mount, and that's it

This answer was copied from here


`groups` and `groups $USER` show different groups (dialout is missing)

TL;DR: It's enough to log out and back in.

This is the expected behavior. Specifically, when a user is added to a group, that user's existing sessions continue to behave as though the user is not in the group. This is almost always what's going on in a situation where a user X sees a different list of groups in groups and groups X. The groups command with no username argument shows the groups that apply to the session in which it is run.

As you observed, rebooting works, but logging off and back on is sufficient. Really, even logging off isn't necessary, in the sense that subsequent logins have the status and privileges of group membership even if previous logins are still active.

Note that the shell you have in a terminal window in Ubuntu is not a login shell (unlike in some OSes, such as macOS, where it is), so opening a new terminal window or tab has no effect.

newgrp is indeed neither persistent nor very user-friendly. But it's mostly for the situation where you want to temporarily take on a group identity. Future logins don't have to run it.


Setting vsftpd for upload to public (http)

Ok, I got it.

Then, I'm using apache2 mod_userdir and public_html


There should be an option "Replace Windows with Ubuntu".
If there isn't one you can do it manually by choosing option "Something else" so you can erase Windows partition and make an Ubuntu one. There are numerous guides on how to do that.


How can I give a program writing access to a directory?

You need to change the unix permissions on the folder.

Either you set it to be owned by www-data, with :

chown www-data /var/www/thumb_nails/
chmod u+w /var/www/thumb_nails/

Or you use ACL ( a more complete permission system ) to let the user www-data ( ie, the user that apache is using ) write there

setfacl -m u:www-data:rw /var/www/thumb_nails/


How to add dropbox to file selection dialog box

Thanks for asking the question; it made me realize I didn't have dropbox bookmarked on this system.

Open dropbax (the folder in Ubuntu).  In the top right corner you will see what I call the I/O gear.  Below that is another gear.  Hover over it and it will announce itself as "Location options."

Left-clicking on that gear will open a menu.  One of the items will be "Bookmark this location" about 2/3 of the way down.  The keybord shortcut is referenced Ctrl-D.

I should mention that I am using the Gnome desktop with Ubuntu 14.10.


It seems like the newest system update for XPS 13 fixed the problem. I haven't experienced it yet after updating.


system settings disapeared from launcher

See this:

Missing System Settings after removing some packages

Majority users faced this problem after uninstalling/re-installing sound packages. Some dependencies might have been accidentally removed. You can rectify the situation by first installing the unity control center.

sudo apt-get install unity-control-center

If this doesn't solve the issue for you, then reinstall the ubuntu desktop package

sudo apt-get install ubuntu-desktop


Is It Safe to Delete My External HDD's Files/Folders That Are Hidden in Windows?

You have recycled your old Windows HD ? Very commendable. I can see that there are no important files left: Pagefile.sys is the swap space for windows, found.000 is part or whole of a lost file, take a look at whats inside. SYMEFA.DB probably belongs to Symantec, could be virus defenitions. msdownload is a temp file for upgrades $RECYCLE.BIN is the Trash can, mounting the drive on another windows will create a new instance, see if its empty. System Volume Information is where windows keeps its backup files for restoring to a point in time, added to at updates, for roll back. Index.. is the Index for fast access, now useless. so you can delete them all. Hope you saved all your mails.
Happy Ubunting


How to make a USB drive bootable after live image is copied into it using `dd` command?

Ubuntu isos are not designed to be dd'd to a drive. Use unetbootin or some other tool.


Ubuntu 12.10 external RAM on old laptop?

You cna make a USB stick swap, but you would get bad performance. You'll need to format the USB stick. Open Disk Utility by searching for it in the dash.

Enter the entry for the USB stick and delete the partition. Create a new partition there. Set it to be Linux swap. Let it finish. Reboot.


Ubuntu 14.10 mouse doesn't move without a click

Are you using a wireless mouse?  If so check the owner's manual-- the mouse probably has a time-activated power-save mode that switches it off to save battery, and the only way to reactivate the mouse its to click one of the buttons.


How to get sound working through HDMI with Intel HD Audio in Ubuntu 13.04

To my knowledge there is a bug in the 3.9.0-19-generic kernel that causes this, you can use the mainline kernel till it is fixed, here is a easy installer for it https://github.com/GM-Script-Writer-62850/Ubuntu-Mainline-Kernel-Updater


Based on this documentation you can use tar to make backup of whole your system in just one command:

sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /

It will create backup.tar.gz archive in folder where you are in. You can change destination as you wish (e.g pendrive)

If you have your home on different partition you need to back it up separately, or omit --one-file-system flag and exclude such directries like  /proc, /sys, /mnt, /media, /run and /dev

There are also many others tools like rsync or Déjà Dup


The joyful "Reallocated Sector Count" Failing alert... Fix?

A bad sector is a small part of your disk's storage (e.g. 512 bytes or 4 kB) that caused an error while trying to read or write it. It is most likely a tiny defect on the surface of the magnetic platters, which can be caused by high wear or minimal and inevitable inaccuracies in the manufacturing process.

The firmware of modern disks will automatically try to remap sectors it identified as bad when it is instructed to write anything there the next time, which means one of the additional spare sectors the disk has will be used instead of it from now on. After a successful reallocation, the OS will not notice any changes and be able to continue the drive as usual. This requires that enough unallocated spare sectors are left though.

However, although each disk has some bad sectors from the very beginning since its production, if their number increases significantly, this is a critical sign that the disk will most likely fail soon. It's not a guarantee - disks with many bad blocks can possibly survive years, but disks can also fail without showing any bad sectors before - but a strong indicator that you should back up your data and replace the disk as soon as possible.

If you like living on the edge, keep using it (make frequent backups though). Maybe it will last for another while. You should closely observe the bad sector count of the disk though. In case it stays pretty constant from now on, you might be lucky, but if it keeps increasing or if it makes significant jumps, it's really time to replace it.

Oh, and don't even think of opening the disk up and trying to fix any hardware in there by hand. First, it's not an issue of any electro-mechanical parts but most likely a surface defect which can not be repaired. The tracks on a modern HDD have a width in the range of nanometers. Also, the distance between the actuator head and the spinning platters is only generated by the air pressure caused by the rotation and is smaller than the diameter of a grain of dust. If you just open the casing and let any particles in, chances are high they will cause a head crash and destroy even more surface areas. So in short, don't open it except for wiping its data before throwing it away.


It looks like your card, from the make, has an NVidia chipset. A quick search brought up this page, which might help.

The gist of the solution is:

Add the repository for the NVidia driver tools.

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
Update the system:

sudo apt-get upgrade
Install nvidia-current using the drivers tool you added (jockey):

jockey-gtk

The commands shown there will/should work if you can get to a terminal, and not like @belacqua asked, are taken to a BIOS or UEFI screen.


apparmor.service fails with apt install (status=1/FAILURE), Ubuntu 18.04

I had the same error in the same ubuntu version however my problem was with the service spice-vdagentd.service.
I fixed it by doing something very simple: Removing the service from my computer:
sudo apt-get remove spice-vdagentd.service
so in your case you could try:
sudo apt-get remove apparmor.service


KDEconnect not visible in KDE system settings

Way to open a KDE Connect GUI settings is to enter a command

kcmshell4 kdeconnect

Also a KDE Connect launcher seems to be in

/usr/share/applications/kde4

with a commandline inside

kcmshell4 kcm_kdeconnect


Howto boot into console with Ubuntu 12.04 USB Stick?

But I didn't find corresponding boot options to do that.

When you boot the laptop (no USB stick), keep shift pressed down as soon as the BIOS screen comes up. You'll then see the Grub menu, with a recovery mode option. Try that, and that should let you drop into the terminal without X.


How can I extend a partition with nonadjacent unallocated space?

Unfortunately, you can't do that without Gparted having to literally rewrite most of the data on the disk.

A typical consumer HDD would be certified to have at least one "bit flip" error when rewriting an amount of data that large. Then there is also the matter of non-ECC RAM... The bottom line is don't even think about doing this unless you have a complete system image.

I consider that operation to be very high on the danger level, and personally, I wouldn't do it if it was my computer!

Partitions can never be extended backwards, only forwards.

What you can do however, is extend dev/sda5...


How To Configure The Default Sound Output Device

After looking at this post, I got it going finally via:
pactl list short sinks

This provides a list of sound output devices. Find the one pertaining to your desired output device and copy its string name, e.g. 'alsa_output.pci-0000_00_1f.3.analog-stereo' for my laptop's built-in speakers.
Then use the command:
pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'

Reboot and check default device on Settings.
Now verify by going on YouTube and click on some video. It should play out of the desired speakers.
If you have more than one account (e.g. if you have an admin as well as an ordinary standard user account) then do the above procedure within each account.


Use this command:
sudo apt update
sudo apt install os-prober
sudo os-prober
sudo update-grub


Is there a way for Banshee to rename a song file according to it's tags?

Edit -> Preferences and tick the Update file and folder names box.

Then flick to the Source Specific tab to set how you want the folders and files named.

Unfortunately, the files aren't renamed automatically. They only update when you manually change the tags.

The only way to achieve this today is to select all songs,
right click and choose 'edit track information' and then keep clicking Forward (or keep pressing Alt+F) to go through all the songs without changing any of the values, then on the final song hitting 'Save', this causes the renaming process to be invoked.

For more finegrained control over renamed individual files then you could install EasyTAG .

sudo apt-get install easytag


PulseAudio doesn't load after adding noise cancellation to config

I found the solution to it, before editing the config file, I had to make sure that the hardware for built-in Audio was configured with the profile "Analog Stereo Duplex", I had it on "Analog Stereo Output" as pointed out by :-

https://forum.manjaro.org/t/sound-problems-since-last-stable-update/30773/22

  E: [pulseaudio] module-echo-cancel.c: Can’t cancel echo between a sink and its monitor

  Pulseaudio failed to start because module-echo-cancel couldn’t find microphone input.

  If only available input device is the monitor of the output sink,
  better to have pulseaudio fail with error than try to use 2 identical
  signals for echo cancellation. I accidentally created similar
  situation by connecting a balanced microphone signal to a stereo line
  - pulseaudio remixed the balanced hot and cold to mono for skype calls, all callers heard was silence because remixing the 2 out of
  phase signals cancelled everything, but it still looked like it was
  working in Pulseaudio Mixer.

  Now you have Pulseaudio started, can try to add extra module back in
  with terminal command:

pactl load-module module-echo-cancel

  If you still get same error, check Pulseaudio Mixer is showing device
  is set to ‘Duplex’ to allow audio input and output, also check output
  device is not showing as “(unplugged)”


disable ascii art in Ubuntu installation process

Set DEBIAN_FRONTEND=text in the kernel command line e.g.

virt-install --boot,kernel=somekerne,initrd=someinitrd,kernel_args="DEBIAN_FRONTEND=text console=tty0 etc."


In order to install gfortran , you do not need to run any test suites. Just go to the software center, search for gfortran and install it (or click on the little package icon in the previous sentence).

Same goes for dejagnu  -- if you really need it you do not have to compile and install it yourself, just use Ubuntu's package manager.

You can find a lot of information on installing software for Ubuntu here on the help wiki


For the apt portions:

On the offline system, get the list of packages that you will need to download.
The easy way to do this is apt install build-essential git --simulate The output will include the complete list of packages (and the correct versions) that you need to download.

Some of your instructions include apt's -y flag. I recommend against using that flag outside of scripts. It disables an important safeguard.

On an online system (any OS), go to https://packages.ubuntu.com
Download each package

It's super important to get the correct version. DON'T try a different version, or a package from a different release of Ubuntu. You can really mess up your system by doing that.

Get EVERY packages on your list, or you will get errors in the next step.

On the offline system, place all the packages in /var/cache/apt/archives. That's where apt will look for them.
Now you're ready to run sudo apt install build-essential git

DON'T list every package you copied. Apt resolves dependencies. Let it do the job.


It is part of samba:

  CTDB is a cluster implementation of the TDB database used by Samba and other projects to store temporary data. If an application is already using TDB for temporary data it is very easy to convert that application to be cluster aware and use CTDB instead.

Check /var/log/ctdb. It should have the complete message.

There is a recent bug report claiming

mkdir -p /var/lib/run/ctdb

fixes -a- crash of ctdb. It is a fairly harmless command but do match your log file with the one in the bug report.

That bug is a duplicate of another bug. Comment #2 fixes it too but in a slightly different way:

  Changed

/etc/init.d/ctdb pidfile="/var/run/ctdb/ctdbd.pid"

  to

pidfile="/run/ctdb/ctdbd.pid"

  Then

sudo systemctl edit ctdb

[Service] ExecStartPre=/bin/mkdir -p /run/ctdb

  And it will work upon reboot as well. (/run is deleted every reboot)
  Still seems to be looking for /var/run in the logs though.

Pick one of the two and do a reboot


Ubuntu 12.04 LTS is the most stable and supported version of Ubuntu for the PC.

See this page for info on how you can monitor your office workspace with Ubuntu.
http://www.ubuntu.com/management


Using ctrl as modifier to produce swedish letters å, ä & ö on us keyboard while typing

I'd choose another approach and create a custom keyboard layout instead.

Add this to /usr/share/X11/xkb/symbols/us:

partial alphanumeric_keys
xkb_symbols "swedish" {

    include "us(basic)"
    name[Group1]= "English (US, with åäö)";

    key <AD11> { [ bracketleft,  braceleft,  aring,       Aring      ] };
    key <AC10> { [ semicolon,    colon,      odiaeresis,  Odiaeresis ] };
    key <AC11> { [ apostrophe,   quotedbl,   adiaeresis,  Adiaeresis ] };

    include "level3(ralt_switch)"
};

and this to /usr/share/X11/xkb/rules/evdev.xml:

<variant>
  <configItem>
    <name>swedish</name>
    <description>English (US, with åäö)</description>
  </configItem>
</variant>

That will let you access å, ä and ö via AltGr (RightAlt), which is the conventional way to access third and fourth level symbols.


What are the features of an application that become a core/pre-installed/default Ubuntu application?

Default applications in Ubuntu (except the phone) are decided by the Ubuntu Desktop Team https://wiki.ubuntu.com/DesktopTeam .

Their mission is to produce a desktop that is:

Stable
Usable
Accessible
Attractive
Consistent
Discoverable
Immediately useful

Their goal for the default applications on the install image is to provide a great experience for a wide variety of users, everything from business to gaming to internet surfing to multimedia. They must also keep the image size as small as possible for faster downloading. This means that the install image must be broad but shallow - which generates complaints from some users that the image is too sparse in their preferred specialty uses.

They do not like to change applications (which would violate "Consistent") without good reasons and plenty of discussion on the mailing list.


No HDD in boot order in BIOS in Asus x555LA

I am answering my own question for future references.
Problem:
My laptop comes with locked UEFI mode. So there is no option to disable UEFI boot. Still i can boot usb flash drive in non UEFI mode.
Solution:
I have created a new partition of 200 MB, format fat32 and set mount point as EFI boot. Other options of installation process are same. Also Ubuntu 12.04 unable to setup UEFI boot so I switch to 14.04.


The minimum disk space required to install Ubuntu is 10GB, and the recommended disk space is at least 25GB. If the information in the screenshots is correct, you do not have much of an alternative except to do a fresh installation of Ubuntu. Furthermore all the information in the 4 screenshots can't be correct, because the results of Windows Disk Management and Ubuntu terminal programs are contradictory.

The unallocated disk space in Windows Disk Management is split into two 9.77GB partitions which is not the ideal way of allocating space on the disk from the standpoint of recycling the unallocated disk space to install Ubuntu. Furthermore Windows Disk Management recognizes a different partition layout than sudo fdisk -l and sudo parted -l. This raises the question of whether anything that you do in Windows Disk Management to further change the partition layout of disk /dev/sda will be recognized by the Ubuntu installer or whether it will just add new problems to the problems that you already have. Your C: partition has 859.60GB, 41% of which is free. 60GB (or more depending on how much disk space you need to store files in your home directory) from this partition could be used to install Ubuntu on. sudo parted -l identifies this partition as partition 5 of size 923GB.

Before you make any changes to the partitioning, it would be wise to consider that your first priority should be to ensure the integrity of your files on the Windows partitions. This would be a good time to back up these files, if you have not already done so. You have a 1TB external hard drive that can be used to save backups.


As your normal user:

sudo usermod -aG kvm $(whoami) && sudo reboot


ok I solved it. first of all I installed python-setuptools from synaptic, then I run from the termnial a python depency App, and then I got this

then I run this as root:

pip install setuptools==0.7


Is it possible to use a USB guitar interface meant for ASIO on Windows with Ubuntu?

Reading the manual for the Peavey device led me to the CoreAudio protocol, then google led me to what seems to be a Very Good Answer!


how to use sudo command to install .tar.gz?

No need to use sudo to unpack the archive. Type this in a terminal:

tar -xzf archive.tar.gz

Or you can just double-click on the archive from Nautilus (the file manager) to see what's inside. No need for command line until now.

If this archive contains something to install in the system, then sudo would be useful at one point or another. Very often, such an archive contains software that must be compiled and then installed. Typically, what you then do is as follows:

tar -xzf archive-name.tar.gz
cd archive-name
./configure
make
sudo make install

As you see, only the step actually installing the program requires superuser rights; everything else happens just in your home directory, which you own. Please do not type blindly the instructions above; first, read any documents called "README" or "INSTALLATION" that you will find in the archive.