Virtual box guest (Win 10/Ubuntu minimal) without IP on Ubuntu 18 host

I think the problem is usage of bridged adapter on wifi interface. In general wifi doesn't support bridging natively.
If you want bridged adapter use it on wired network.


How to remove Ubuntu partition from Windows 7? Which partition is it?

You can predict from the the size given to get the Ubuntu partition. So do you remember how much space you allocated to Ubuntu? I guess the first two partition is Ubuntu partition. 1st i,e 52GB is for Ubuntu home,root and others and 2nd i,e 5.92 GB is for swap. The reason why these partitions are unreadable because Ubuntu uses ext4 partition which can't be read by Windows OS.

If you still have any doubt then best thing you can do is to boot Ubuntu using Live CD/DVD/USB with Try Ubuntu option.

When booted run this command:

sudo blkid

It will give the output some thing like this:

/dev/sda1: LABEL="Windows" UUID="FA50DCB150DC763B" TYPE="ntfs"
/dev/sda5: LABEL="40GBTWO" UUID="00A0CE7EA0CE7A24" TYPE="ntfs"
/dev/sda6: UUID="7550252c-3da7-4cd9-8da3-71e9ba38e74a" TYPE="ext4"
/dev/sda7: UUID="088fd084-a011-4896-aa93-c0caaad60620" TYPE="swap"

Now you can get that /dev/sda7 is swap and /dev/sda6 is ext4. So it is clear that Ubuntu is installed in sda6 partitions. Now only thing you've to get is the size of /dev/sda6. So that you can match it with Windows table.

To do so run this command:

lsblk

It will give:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0  37.3G  0 disk
├─sda1   8:1    0    10G  0 part /media/Windows
├─sda2   8:2    0     1K  0 part
├─sda5   8:5    0  17.2G  0 part /media/40GBTWO
├─sda6   8:6    0   8.8G  0 part /
└─sda7   8:7    0   1.3G  0 part [SWAP]

Now using it you can get that 8.8GB is the size of /dev/sda6 in which Ubuntu is installed. This is one of the way. Though there would be another way.

Use Gparted to get solved your confusion. :)


Ubuntu Touch Dual Boot uninstallation - rewrote recovery

The "0" folder was always there. Android is now multi-user capable and so each user has their own "home" folder starting at "0". When you are "logged" in as the user you don't see the number, just the contents.

As for cleaning it up, I don't think that the recovery partition is affected by Ubuntu Touch. It just needed it installed to be able to write the zip file. If you open up the app in Android and follow the uninstall procedure there is will remove Ubuntu Touch from the phone.

If you want a more definitive answer then you will have better luck on an Android support site instead of Ubuntu.


Very slow wifi on Ubuntu 15.10 and Macbook Pro

A worng driver is installed. It can be fixed by running:

sudo apt-get install firmware-b43-installer
sudo apt-get purge bcmwl-kernel-source
sudo modprobe b43


Why Gmail chat appears when the screen is locked?

Definitely sounds like a bug.

I would suggest using Empathy for chatting instead of the web interface, because I have no experienced this problem with Empathy (or with the web interface for that matter). You can report the bug against the gnome-screensaver package.

You can also mark it as affecting chromium-browser (optionally), because imo Chromium should not display anything when the screensaver or screenlock is active.


How can I use DBus to create a client and server without dbus configuration files on recent releases of Ubuntu?

This example requires:

python3-dbus.mainloop.pyqt5, python3-dbus

Server example:

import signal, sys
signal.signal(signal.SIGINT, signal.SIG_DFL)

from PyQt5.QtCore import *
import math
import dbus
import dbus.service
from dbus.mainloop.pyqt5 import DBusQtMainLoop

class Server(dbus.service.Object):
  def __init__(self):
    busName = dbus.service.BusName('org.documentroot.Fisticuffs', bus = dbus.SessionBus())
    dbus.service.Object.__init__(self, busName, '/Fisticuffs')
    #Insert subprocesses here...

  @dbus.service.method('org.documentroot.Fisticuffs', in_signature = 's', out_signature = 's')
  def move(self, a): return "Move recieved"
  @dbus.service.method('org.documentroot.Fisticuffs', in_signature = 'dd', out_signature = 'd')
  def add(self, a, b): return a+b

DBusQtMainLoop(set_as_default = True)
app = QCoreApplication(sys.argv)
server = Server()
app.exec_()

Client example:

import dbus

bus = dbus.SessionBus()
server = bus.get_object('org.documentroot.Fisticuffs', '/Fisticuffs')
print('5 and 10 are:')
print(server.add(5, 10, dbus_interface = 'org.documentroot.Fisticuffs'))

Credits:
Adapted from here to get pyqt5 to listen to Ctl+C
and here to update a tutorial on getting a dbus-python server to run in the PyQt5 mainloop on python3.


Database issues after upgrade from Ubuntu 18.04 to 20.04

You need to upgrade to phpMyAdmin 5.0
See: https://github.com/phpmyadmin/phpmyadmin/wiki/DebianUbuntu#ubnutu-ppa
No php-gettext package to install.
sudo add-apt-repository ppa:phpmyadmin/ppa
sudo apt-get update
sudo apt-get upgrade phpmyadmin


How to format microSD to FAT with 64bit cluster size

mkfs.fat(8) has the options -s and -S for custom cluster and sector sizes.

  -s SECTORS-PER-CLUSTER

  Specify the number of disk sectors per cluster.  Must be a power of 2, i.e. 1, 2, 4, 8, ... 128.
  -S LOGICAL-SECTOR-SIZE

  Specify the number of bytes per logical sector. Must be a power of 2 and greater than or equal to 512, i.e. 512, 1024, 2048, 4096, 8192, 16384, or 32768.

So the command you want should be something like with the correct device name, 128 clusters per sector and a sectors size of 512byes:

mkfs.vfat -s 128 -S 512 /dev/name

for this purpose vfat and fat are probably the same although the 3DS might only want to read filesystems from partitions marked as vfat rather than fat. fat is from the msdos era and vfat is from the win95 onwards era.


Software installed on root partition or on home partition

I will try to answer your questions in the order you asked them:

It depends on how Matlab and Mathematica are distributed; if they are distributed as static binaries, then you should be okay. A static binary has any of the libraries needed by the program compiled into them. Generally, this is not the default for compiled applications, as it leads to extremely large binaries.
There really aren't any disadvantages, per say; it depends on the application. If you're installing an application from apt-get, Synaptic or from the Ubuntu Software Centre, the application is being installed in your root partition. If you have a static binary that you have downloaded and unpackaged yourself, then your best bet would be to keep it in your home directory. For any scripts or programs I write or install, that are not provided by the Ubuntu repositories, I keep them in a bin directory in my home folder. This way, they aren't "polluting" my base system.
The size of your root partition really depends on how many applications and libraries you plan on installing from the Ubuntu repositories. Different Linux distributions recommend different sizes. If you allow Ubuntu to automatically partition your drive, with a separate partition for /home, the Ubuntu installer will give you a sane layout. C and C++ compilers, Lisp REPLs, Python interpreters and the various databases do not take up much room. The only large compiler is for Java; I believe it weighs in at around 80MB for the JDK (Java Development Kit). As with my answer for your second question, most of the stuff you write, you should keep to your home directory, so you do not pollute the base system. Plus, if you ever upgrade your Ubuntu install, you will not have to worry about accidentally blowing away the directory you keep your projects in. Granted, you run this risk anyways, it will just be easier to keep everything you do in your home directory; that is what it is there for.


USB-C to HDMI Cable issues in Ubuntu 16.10 and 17.04

I use a duel-boot ASUS with Intel HH graphics as well, i connect to a direct hdmi port in the laptop and receive no issue. sounds like a connector error rather than Ubuntu itself, if your laptop uses an hdmi port of its own try that, or

go into settings>displays>and click the one thats not built-in display,change the resolution after you put it on show on display 2 only, as the desktop resolution may be non-native to the tv/monitor.


How can I redirect sound from Ubuntu desktop to Bravia TV?

Maybe Ubuntu sets the wrong output. Try the following.

Connect your PC to the TV. Then go to Sound settings:

You'll be presented with the following screen:

From the Play sound through select the output device corresponding to your audio jack. The list will be different from the one in the picture above, but if you can't figure out which one the right one you may just try them all (should be something like Analog Stereo Output).

Also be sure that the Output volume slider is not zeroed.


You can enable and disable the KDE wallet subsystem by doing the following:

In the Application Launcher, open "KDE Wallet (KDE Wallet Configuration)"

Uncheck the Box "Enable the KDE wallet subsystem"

Click "OK"


dependency errors when installing jdk-11.0.1-2000:11.0.1-ga.x86_64 on Ubuntu 18.04.1 LTS

As indicated in the error messages RPM should not be used to install packages in Ubuntu. The package should be converted to Debain format (.deb) using alien and installed from the .deb file.


Error setting up pbuilder following Ubuntu Wiki. How to set it up?

devel is not a version of Ubuntu. You will have to specify an Ubuntu release, e.g.
sudo pbuilder create --distribution focal

Sometimes, this might lead to certain issues with GPG keys related to PPAs. See this for more information.


See Jasperreports-server-installation-guide: the installer creates a log file in <js-install>/installation.log (don't let it scare you; it will be JAVA errors ;) )
From the link:

Installer Log Files
If you get an error when running the JasperReports Server installer on any platform, look at the log file created by the installer. This log records the status and completion of installer operations. If a specific error occurred, you may find an explicit error message. Even without an explicit error message, the log file should help you locate the cause of the error.
You'll find the installer log for your platform in the following location:
Windows

<js-install>/installation.log

Linux

<js-install>/installation.log

Mac

 <js-install>/installation.log

If you've tried multiple installs, make sure you view the most recent install log. Then you can submit the installation.log to Jaspersoft Technical Support.


Is there a way I can completely disable workspaces and remove the icon from my Unity-2D panel?

Disabling multiple workspaces:

Using GConf Editor, change the value of the /apps/metacity/general/num_workspaces to 1.

Removing the Workspace Switcher from the Launcher:

  Remove and Rearrange

  So to make this changes you need to edit one file.
  First to be safe make a backup:

(for 11.04 & 11.10)

sudo cp /usr/share/unity-2d/launcher/Launcher.qml /usr/share/unity-2d/launcher/Launcher.qml-backup

  when you screw up something just:

sudo cp /usr/share/unity-2d/launcher/Launcher.qml-backup /usr/share/unity-2d/launcher/Launcher.qml

(for 12.04)

sudo cp /usr/share/unity-2d/shell/launcher/Launcher.qml /usr/share/unity-2d/shell/launcher/Launcher.qml-backup

  when you screw up something just:

sudo cp /usr/share/unity-2d/launcher/Launcher.qml-backup /usr/share/unity-2d/launcher/Launcher.qml

  Now for removing items from the Launcher:

(for 11.04/11.10):

gksu gedit /usr/share/unity-2d/launcher/Launcher.qml

  scroll down to line 104, there you will see:

(for 12.04)

gksu gedit /usr/share/unity-2d/shell/launcher/Launcher.qml

  scroll down to line 104, there you will see:

Component.onCompleted: {
    items.appendModel(applications);
    items.appendModel(workspaces);
    items.appendModel(visiblePlaces);
    items.appendModel(devices);
    shelfItems.appendModel(trashes);

  items.appendModel(applications); = applications in launcher
  items.appendModel(workspaces); = Workspace Switcher
  items.appendModel(visiblePlaces); = Files & Folders and application   button.items.appendModel(devices); = mounted drives (NTFS) + flash drives etc.
  shelfitems.appendModel(trashes); = Trash

  You can remove these items by deleting their lines or you can rearrange items by moving lines up or down.

  Source

It should be noted that the second step is editing actual code and not a configuration file and thus any changes will be overwritten the next time you install a unity-2d update.


Probably it calls ffmpeg instead of avconv

Try this:

sudo ln -s /usr/bin/avconv /usr/bin/ffmpeg


Mount ecryptfs automatically after ftp login

When you login into your system, either directly or via ssh, it is usually the pam_ecryptfs module that takes care of automatically mounting your encrypted home.

This module will use your password to decrypt a better key (referred to as passphrase in the docs) and make your encrypted home directory available.

Setting up pam_ecryptfs for FTP logins seems like a really bad idea, though. FTP sends passwords (and data) in clear text. This means that anyone on your network will be able to steal your password and be able to decrypt your data.

I would either:

Not use FTP. Use sftp, scp, putty, winscp, whatever, based on ssh.
If you have to use FTP, I would not encrypt the data at all. Assume that once you do the first transfer, anyone will be able to access it anyway. Or create a subdirectory where you keep data available via FTP.

If you really really want to enable mounting encrypted directories automatically with ftp, you can add a line like:

auth    required        pam_ecryptfs.so unwrap

in /etc/pam.d/proftpd, assuming your FTP server is proftp.

If you use this and it works, please tell us you are using a VPN or a socks proxy over an SSL tunnel or ssh. Lie if you have to.


I think Stefano's comment might be the root cause of the file sync slowness. This situation is covered in the Ubuntu One FAQ.
https://wiki.ubuntu.com/UbuntuOne/FAQ/WhyIsItTakingSoLongForMyFilesToSync

Most users notice this issue when they add a new computer to sync with their Ubuntu One cloud or enable a new folder for syncing... but it generally happens when there are lots of new files to sync. The Ubuntu One team has made improving this experience a priority for the Natty cycle. Most of the enhancements are to the server side so everyone will benefit as they are deployed.

If you see slow file sync and you know that only a few files have changed, it might be related to a temporary disruption. The Ubuntu One status page is a great place to check for this info. https://wiki.ubuntu.com/UbuntuOne/Status


Do not slow down your computer, slow down your program.

You can use cpulimit. This program limits the percentage of CPU for a specified program or process.

The percentage is specified with -l argument and uses a number between 1 and 100*num_of_cpus

The program is specified with -e argument (if you use the program file name) or -p (if it is a running process).

You can install from Software Center or with the command:

sudo apt-get install cpulimit

Now you can use:

cpulimit -e my_program_exe_file_name -l 20

and you program will be limited to 20% of one CPU.

If you want to limit a running process (example process id 12345)

cpulimit -p 12345 -l 20


Installation issues for Virtualenv and VirtualenvWrapper in 13.04

Your trying to install a virtualenv on a mountpoint that does not support symbolic links . If you look at the output of mount you will see has some mountpoint at /home/yourusername/dropbox.
Try a different location, such as your home directory:

cd
virtualenv --python=python2.7 flaskenv

(note: currently flask only works on python 2)

There is no point syncing the vritualenv on dropbox anyway. It won't work on another system unless its identical. You can sync between virtualenvs using pip requirements.txt files .


If your reinstall of Ubuntu from the LiveUSB included a format of your hard drive, and if you don't have a backup stored somewhere other than the hard disk you reinstalled to, your old account and software are gone. If that is the case, you will need to create a new account and reinstall your software. You can read your /etc/passwd file to see if your old account is listed. If the account name is not in the passwd file, then the account doesn't exist in your newly installed Ubuntu.

$ cat /etc/passwd

or

$ less /etc/passwd


Package upgrade hangs forever on mysql-apt-configure

I had got the same problem a few hours ago. First I've killed the stuck process (kill -9 PID, or complete restart) then I completely uninstalled mysql.

sudo apt-get remove --purge mysql-server mysql-client mysql-common

or

sudo apt-get remove --purge mysql*

This will uninstall all mysql related packages, what is in most cases a bit overkill...

Be careful to make a copy of your databases before do this or simply don't delete the database when the uninstall process asks about it.
Then restart again (or kill the process of mysql-apt-config) and remove the mysql-apt-config package.

sudo apt-get remove --purge mysql-apt-config
sudo apt-get autoremove

After these steps I installed again everything solved the problem.

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

I'm not sure but probably it's enough to reinstall only mysql-apt-config. Good luck guys!


Fix Corrupted NTFS Partition from Ubuntu

chkdsk is a Windows command. You should boot from a Windows installation medium (DVD or USB) and run Windows repair. Make sure that your Windows drive is seen as first drive in BIOS or Windows repair will not be successful (had this issue once and documented it at the end of the following article https://www.claudiokuenzler.com/blog/778/install-linux-mint-18.3-software-raid-mdraid-device-partition).


I would try:

sudo dhclient -v eth0

it seems your link is up but you do not have ip address.


Getting the Prompt for Next Command in Terminal

Try adding a & after the name of the app, e.g.:

firefox &


Sounds comes out of both headset and speakers

Try configuring levels with alsamixer or gnome-alsamixer. The sliders you get depend of which sound card / ALSA driver you are using but there's usually a "master" and a "headset" sliders that you can use individually. After you setup your levels, you can make them default with alsactl store.

Also, if you do work with audio or video production, you want to look at using Jack instead of PulseAudio (or use both). The easiest way to set it up in my experience is using KXStudio's packages.


microphone not workin on skype 4.3.0.37 with ubuntu 14.04.1

Install PulseAudio Volume Control (pavucontrol), unlock the left and right input channels, set one channel to 0%, don't allow Skype adjust the mixer levels.It reduced the problem in my installation (Microphone works well with Audacity, but not with Skype).

Seems to be a problem with a ALC283.


If you want to view a font, just double click its icon and Gnome font viewer will open up with your font!

If you don't know where your fonts are, they are in /usr/share/fonts/truetype and into their individual folders. Hope I answered!

EDIT : Try using fontforge, free software on the Software center or in terminal : sudo apt-get install fontforge.


How to enable root account Ubuntu 14.0.4 permanent

I don't really know a way to automatically login using root but heres a way to login to root account from the greeter(Unity login screen).
In the terminal type
sudo gedit /usr/share/lightdm/lightdm.conf/50-unity-greeter.conf
Then add the line

greeter-show-manual-login=true

And then restart and login by typing "root" as username and type in the root password.Login using root is risky especially on an internet connected machine.(Don't promise your money thinking Linux is virus-free.)


How do I recover my RAID partition after the Ubuntu 11.04 upgrade?

If your RAID is configured on the motherboard and related to the information, that mdadm is'n installed (but i think it's installed, but you never used it?) so it looks like you are using the motherboards raid controller. That means you are useing an hardware RAID.

If this is the case, you should upgrade your RAID driver (modules) for the System/new kernel.

On the other Hand your posted output looks like there are 2 disk controlled by the mainboard RAID controller (sda & sdd).
How many disk are attached to your RAID Controller?

Because: if you are using an "hardware RAID" (configured on the mainboard/bios) so new kernel modules (driver) will be the solution (as i said).

If your RAID controller doen't build the RAID array and simply passed through the disk to the operating system, so you are using an software RAID (build by the ubuntu system). This could result in the problem with an invalid RAID description.

So first task: find out, what kind or RAID you are using.


Resolution Too High for Programs on XPS 13

Open up your terminal and type this command:

gsettings set org.gnome.desktop.interface scaling-factor 2

It sets the Window scaling factor, which is a factor used to scale windows on high-dpi screens, to 2.


Use Multiple IP addresses in the same NIC to Split Internet Requests

The software which sends request can probably bind to a specified address ,look at the parameters or config file

If you are using socket.create_connection() , the last parameter is source_address

https://serverfault.com/questions/496731/how-to-set-which-ip-to-use-for-a-http-request

wget --bind-address=10.0.0.6

For browsing internet, the source ip is determined by routing parameter preferred source , but that is a networking question i could not find any answers on how to change.


You can change the animation speed from the "System settings" application. Open up the [K] menu, select "System settings" (or type systemsettings and press enter). In the application, select "Desktop effects". This configuration page has an "Animation speed" setting, where you can choose everything from reaally, painstakingly slow, to "instant".

As an added bonus, on the "All effects" tab in this configuration window, there is a checkbox for "Sliding popups". If you cannot find an animation setting that works for you, you could try turning off the sliding animation altogether by disabling that particular effect (uncheck the box for "Sliding popups").


slow wifi connection on ubuntu 13.04 with rtl8723ae realtek wireless driver

You have a pretty marginal connection (quality 34/70), 6967 invalid misc packets, and your connection speed has dropped back to 18Mb/sec from the max of 54 for g networking.  Try improving your signal by moving your machine relative to the access point.  Another thing to check is the outside interference on your channel.  Use

  sudo iwlist scan

To see all the nearby access points and their channels/ strengths.  If you see many others on your channel (and really only 1 6 and 11 do not overlap, so nearby ones interfere too), try changing your channel.


Questions for Dual Booting Ubuntu 14.04 + Win10 with Multiple Hard Drives

I would say root~30GB, swap>16GB if you plan to hibernate, or 0 if you do not plan to, and the rest to /home.
If Windows is with UEFI and you install Ubuntu correctly with UEFI, it will be placed in the EFI directory.
You just do it (from live system) and set up accordingly the partitions in /etc/fstab and the bootloader (you might need to use boot-repair here if you have EFI)


Looking for VINO on Ubuntu Server 14.04 LTS

For Ubuntu Desktop, see the screenshots below:

If you have the server edition of Ubuntu, then Vino is not the right tool.


Unity launcher icon edges disappeared in 14.04

Unity is themable. It appears you are using the Numix GTK theme which does in fact remove the icon borders. You can use unity-tweak-tool to switch back to another GTK theme (like Ambiance) if you want to get those border back.


All you need to do is add the --rate switch after vlc and specify the value you want or have tested in vlc previously; for example, from the command line I could play a file with

vlc --rate 3 myfile.mp4

So vlc --rate 3 (substitute 3 for the value you want) is the key part of what you need for your launcher.

More command-line options for vlc are available by entering in the terminal vlc -h, or vlc -H for exhaustive help.

I don't know which desktop you are on, but on Xfce I create a very simple vlc mp4 launcher .desktop file in ~/.local/share/applications in this format (and make it executable):

[Desktop Entry]
Type=Application
Name=vlcmp4launcher
Comment=vlcx3
Exec=/usr/bin/vlc --rate 3 %U
Terminal=false

Then simply go to your file browser and right click an mp4 file, select this launcher, and check the box to make sure that all mp4s are opened with this .desktop application from now on. Now just clicking the video file will make it play using your custom parameters, but will leave unaffected any other video file that vlc plays.

This is the quickest way to associate your launcher with the filetype, but to do it manually you would edit ~/.local/share/applications/mimeapps.list and add the name of your launcher. As an example, you would add video/mp4=vlcmp4.desktop to the [Default Applications] section and the [Added Associations list] section should have video/mp4=vlc.desktop;vlcmp4.desktop;.

More information on .desktop files and launchers is here at the Ubuntu help pages.


How to install pipelight after closing the terminal the first time

Even if the terminal has closed, you can open another terminal to continue the process.

sudo add-apt-repository ppa:pipelight/stable

sudo apt-get update && sudo apt-get install pipelight-multi

sudo pipelight-plugin --enable silverlight

You'll also need a plugin like "User Agent Overrider" to make websites believe you are running Windows instead of Linux.
https://addons.mozilla.org/en-US/firefox/addon/user-agent-overrider/


How to change Ubuntu LTS 18.04.5 to 18.04.4

Ubuntu 18.04.4 with all upgrades applied becomes 18.04.5.
The [18.04].4 or [18.04].5 shows the upgrade level, and is more significant if using the HWE (hardware enablement) kernel as 18.04.4 used the now EOL 5.3 kernel, where as 18.04.5 uses the 5.4 kernel; if using the GA (general) kernel they'll both be 4.15.
To go backwards means reverting security fixes and is not a wise move.
Apt/deb package tools won't do that anyway; offering only automatic for newer/upgraded packages, so a backup restoration is easiest way to go backwards, but that is still unwise.


Unity desktop doesn't work, only wallpaper and launcher

It's likely because Nautilus is replacing your desktop with Gnome-desktop (which it does by default... which is inane). Use this command to fix that:

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


For me (gnome-ubuntu 17.04) this got rid of all android-studio installations I could see:

rm ~/.local/share/applications/androidstudio.desktop
sudo rm -rf /opt/androsudoid-studio/
rm -rf ~/.android/
rm -rf ~/.AndroidStudio2.1/
rm -rf ~/.AndroidStudio2.3/
rm -rf ~/Android
sudo rm -rf /opt/android-studio-ide-143.2790544-linux.zip
rm -rf ~/.gradle

Note: for you the build- and version numbers are probably different.

After that I could do a clean re-install and  finally got a clean, working android studio.


Apt-get broken after termination in mid-install

You can fix this by just run  dpkg --purge --force-depends "package_name" to purge a broken package then you have to run apt-get autoremove and apt-get -f install
After this, the problem will be solve.


Input has Sources only, the only way to get sink for input (mic) is to use loopback  module.

Create a virtual sink

pactl load-module module-null-sink sink_name=Virtual1 sink_properties=device.description=Virtual1

Loopback the microphone to it

pactl load-module module-loopback sink=Virtual1 source=alsa_input.usb-046d_0823_D81A0330-00-U0x46d0x823_1.analog-stereo

Not sure if you  mean source index: (by changing awk to get 1st column instead)

pactl list short sources | grep "alsa_input.usb" | awk '{ print $1 }'

Otherwise, if you mean a module use similar command

pactl list short modules | grep "portion-of-module-name" | awk '{ print $1 }'

Change portion-of-module-name, try pactl list short modules to see full list


How to create list of installed packages for remove after testing?

You can use dpkg -l before and after installing your package. This command lists the packages installed on your machine.

Saving the output in two files, you can afterwards compare both using a combination of diff and awk in order to extract the list of packages that have been installed when installing your new package.


Window freezes when mouse and keyboard button pressed at same time

I would have left a comment, but I haven't enough reputation. I had a similar problem and the problem was the graphic driver.

Every time the freeze happened, the system log file (/var/log/syslog) contained lines like this:

... kernel: [drm] GPU HANG: ecode 9:0:0x84dffff8, in Xorg [2082], reason: Hang on render ring, action: reset
... kernel: drm/i915: Resetting chip after gpu hang
... kernel:  [drm] RC6 off
... kernel:  [drm] GuC firmware load skipped

The solution was to disable SNA if favor of UXA acceleration.


This is because of that, you had installed xdm and then you set it as default display manager.

So you can reconfigure your previous display manager: (for example lightdm or gdm or ...)

sudo dpkg-reconfigure lightdm

Or if you have gdm before:

sudo dpkg-reconfigure gdm

Or for sddm:

sudo dpkg-reconfigure sddm

And so on ...

Then select your previous display manager in configuration process:

Also if you not use xdm you can purge it:

sudo apt purge xdm


Which startup applications can I safely turn off?

Bluetooth manager: bluetooth won't work until you re-enable it and re-login
disk notifications: don't disable it, it will warn you if your disk is going to die soon!
login sound: safe to disable
GSettings data conversion: I would leave this turned on, as it might cause problems in the future otherwise
power manager: you better keep this running
remote desktop: might be okay if you don't use it
Ubuntu One: again, if you don't use it...
User folder update: might be useful to keep it in case of changes in the future
visual assistance: if you are 100% sure nobody will ever need accessibility tools on this system...


Open your image in Gimp

sudo apt-get install gimp

and open Colors > Levels and adjust your values


Couldn't find any package by glob 'Python-3.7.0'

In Ubuntu 16.04 open the terminal and type:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.7

Alternatively you can also install Python3.8 in Ubuntu 16.04 with the following commands:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.8

To show the Python 3.7 version run the following command:

python3.7 -V

To start the Python 3.7 interpreter run the following command:

python3.7

To exit the Python 3.x interpreter run the following command:

exit


After around two hours of searching I found that I have to run those 2 commands..

sudo apt-get install --reinstall update-manager-core
sudo apt-get install --reinstall update-manager


How to install Canon Pixma E400 on Ubuntu 14.10?

Download the driver here. http://support-asia.canon-asia.com/contents/ASIA/EN/0100588102.html
I have e400 too, tested and working on Ubuntu Server 14.04. I didn't check scanner options yet.


Ubuntu 16.04 openconnect cisco vpn failed to obtain webvpn cookie

I found my answer through this post:
https://gist.github.com/l0ki000/56845c00fd2a0e76d688

I did the following:

cd ~
mkdir .cisco
cd .cisco
wget https://gist.githubusercontent.com/l0ki000/56845c00fd2a0e76d688/raw/61fc41ac8aec53ae0f9f0dfbfa858c1740307de4/csd-wrapper.sh
chmod +x csd-wrapper.sh

Edit the file with the vpn server:

CSD_HOSTNAME=vpnserver.com

Run the file

./csd-wrapper.sh

Run openconnect:

sudo openconnect --csd-user=YOURLINUXUSERNAME --csd-wrapper=/home/YOURLINUXUSERNAME/.cisco/csd-wrapper.sh vpnserver.com


Trying to run Ubuntu 12.04 or 14.04 with old ATI cards


I don't get this message: "If you have Linux installed, please reinit its boot loader"

"If you have Linux installed, please reinit its boot loader"

It asks you to reinstall grub2 bootloader on your hard-disk.To do that, simply run boot-repair.


Can't start GUI programs via command line due to wrong DISPLAY variable

The issue was that DISPLAY was incorrectly set to :0.0 by a shell configuration file. Once I removed that, launching programs from the shell was possible again.

You can use this command to search through all the default shell configuration files:

grep "DISPLAY" ~/.bashrc ~/.profile ~/.bash_profile ~/bash.login \
               ~/.bash_aliases /etc/bash.bashrc /etc/profile \
               /etc/profile.d/* /etc/environment 2> /dev/null

There are indeed two Xorg processes, which is expected behavior, so this should not be an issue in itself.

Also, the .Xauthority file does not seem to be necessary.


Why am I unable to ping the same interface after configuring an IPv6 address

The IPv6 address is showing as tentative because duplicate address detection can't be completed. And the reason that can't happen is because you have no physical Ethernet connection (the link shows NO-CARRIER).

To resolve the issue, connect your Ethernet cable.


How do I prevent totem and other programs from logging all recently played files?

This will hide your recently viewed items from the Totem interface.

sed -i 's/<separator name="recent-separator"/<!--<separator name="recent-separator"/g' /usr/share/totem/totem.ui
sed -i 's/"recent-placeholder"\/>/"recent-placeholder"\/>-->/g' /usr/share/totem/totem.ui


How to control group files are created with from remote users in samba (no Active Directory)

Of course, 3 minutes after i posted my question i find the answer in the related question suggestions.
How to force group ownership on samba share?


GParted white windows after 'Sleep mode'

As I said the process was killed. And nothing bad happened, huh ;) That partition has NTFS, so I tried to fix it with command ntfsfix but it didn't help too. Then I loaded Windows 8 and tried to run CHKDSK D: /F in cmd. Finally! That was right solution. But I've lost about 20 Gb of data. Note, this trouble was because of using Acronis Disk Director 11. I tried to move partition. Fortunately, I had a feeling that I should make a backup of the most important files, so that loss was not critical.


open a terminal and run "sudo apt-get install curl" then "sudo apt-get install -f" then try installing. If it gives another dependency then replace curl in the first command with the name of the new dependency


dpkg: unrecoverable fatal error, aborting, 'python2.7-dev' is missing final newline, ubuntu 18.04

Typing the following into a terminal (Ctrl+Alt+T) should solve your issue :

(rename all the "python2.7" files you find under /var/lib/dpkg/info/ like so : (look for the others I only showed how to rename the ones that would obviously be there))

sudo mv /var/lib/dpkg/info/python2.7.postinst /var/lib/dpkg/info/python2.7.postinst.bak &&
sudo mv /var/lib/dpkg/info/python2.7.list /var/lib/dpkg/info/python2.7.list.bak &&
sudo mv /var/lib/dpkg/info/python2.7.postinst /var/lib/dpkg/info/python2.7-dev.postinst.bak &&
sudo mv /var/lib/dpkg/info/python2.7.list /var/lib/dpkg/info/python2.7-dev.list.bak &&
sudo dpkg --configure -a &&
sudo apt clean &&
sudo apt autoremove &&
sudo apt update &&
sudo apt dist-upgrade

if this works you may delete the files you renamed :

sudo rm /var/lib/dpkg/info/python2.7*.bak


I think you should read this article first.

If wou don't want to install WoW again, you can just pass the "Installing World of Warcraft" step.


How to rename a .txt file in chronological order? (JavaScript or PowerShell)

I have written a bash script to rename all the .txt files as defined in question.

#!/bin/bash

let "i=0"
let "j=0"

for F in /test-directory/*.txt
do
    if [ $i -gt 9 ]       #if value of i goes beyond 9
    then
        i=0              #resets the value of i in order to have file names like 000-900
        j=$((j+1))
    fi

    mv "$F" /test-directory/C1_"$j"+"$i"00.txt #rename file
    i=$((i+1))
done


You should boot into live mode from a LiveUSB and use the provided disks utility to unmount the partitions /sda6 and above, then you will be able to remove the unneeded partitons and create partitions for 14.04.


-1 normally indicates 'unlimited quota'.


UEFI Question: why does Ubuntu 15.10 installer ask where to put bootloader?

Because the developers didn't bother to hide the box in the ui if using UEFI.  Grub ignores the setting and always installs to the ESP anyhow.  Probably should file a papercut bug report, assuming there isn't one already... maybe someone will fix it.


Gnome in ubuntu is unable to recognise Android phone connected to pc

Open up terminal and type the command lsusb and post the output here.

Try to make the Android phone to list as MTP (media share) / PTP (Android as a camera) / data instead of charging only by simply tapping at the charging like notification and see if its recognized or not.

Update:

Make a copy of /etc/udev/rules.d/51-android.rules , incase you dont have one then simply create one.In this case you need to change the permission once the file is created sudo chmod a+r /etc/udev/rules.d/51-android.rules
In the /etc/udev/rules.d/51-android.rules file, add this line:

SUBSYSTEM=="usb", ATTR{idVendor}=="2717", ATTR{idProduct}=="ff48", MODE="0660", GROUP="plugdev", SYMLINK+="android%n"

Using any editor like vi,vim,nano,sublime,etc. Make sure its in sudo mode.

Save the file and try connecting android again. It should work.

Note :

/etc/udev/rules.d/51-android.rules  happens to be a system file so make sure to copy it so that any tinkering gone wrong can be fixed by replacing the main file with the copied one.

/etc/udev/rules.d/51-android.rules   can only be edited in  sudo mode
You can add more Android device in your udev rules by cloning the repository Android Udev rules


Install  Xming and Putty in Windows.
Have a terminal server running under Linux.
Execute Xming under windows: double click the X icon.
Execute Putty: configure it to connect your server Ip and to forward the X11 to your Windows machine IP.
Login and run the Linux application.

Source: http://ubuntuforums.org/showthread.php?t=225898


How do I correctly set up Wine for Pivot Animator?

Pivot Stick Animator 4.1.10 installs and opens correctly. The current version downloaded from the official website does not.

Uninstall the version you already installed (probably optional but just in case): Open Dash and search "wine", click the icon "Uninstall..." and uninstall "Tete"
Download the version that works from here (link removed due to Malware). Extract and run setup.exe with the Wine installer.
Search "Pivot" in Dash, run it and enjoy!


howto prevent gedit always opening a new unnamed file when launched

This is a bug as you can see here: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/796076 and it doesn't look like it will be fixed because apparently, GNOME developers don't want users to run any application as root.

A work-around is to use "gksu" (or "gksudo") twice, like this:

gksu gksu gedit /path/to/file

You can make an alias so you don't have to run this twice. To do this, open ~/.bashrc and add this:

alias gksudo='gksudo gksudo'
alias gksu='gksu gksu'

Then, save the file and run this to source the ~/.bashrc file:

. ~/.bashrc


How to go automatically from Suspend into Hibernate?

The solution to this is simple.  First, upon suspend and resume, the pm-suspend program executes a series of scripts in /etc/pm/sleep.d and /usr/lib/pm-utils/sleep.d.  So my solution is to add a script that does the following:

Upon suspend, record the current time and register a wakeup event using rtcwake.
Upon resume,check the current time against the recorded time from above.  If enough time has elapsed, then we probably woke up due to the rtc timer event.  Otherwise we woke up early due to a user event (such as opening the laptop screen).
If we woke up due to the rtc timer, then immediately issue a "pm-hibernate" command to go into hibernation.

Here is a script that does this.  Name it 0000rtchibernate and place it in the /etc/pm/sleep.d directory (the 0000 is important, so that the script executes first on suspend, and last on resume).

#!/bin/bash
# Script name: /etc/pm/sleep.d/0000rtchibernate
# Purpose: Auto hibernates after a period of sleep
# Edit the "autohibernate" variable below to set the number of seconds to sleep.
curtime=$(date +%s)
autohibernate=7200
echo "$curtime $1" >>/tmp/autohibernate.log
if [ "$1" = "suspend" ]
then
    # Suspending.  Record current time, and set a wake up timer.
    echo "$curtime" >/var/run/pm-utils/locks/rtchibernate.lock
    rtcwake -m no -s $autohibernate
fi

if [ "$1" = "resume" ]
then
    # Coming out of sleep
    sustime=$(cat /var/run/pm-utils/locks/rtchibernate.lock)
    rm /var/run/pm-utils/locks/rtchibernate.lock
    # Did we wake up due to the rtc timer above?
    if [ $(($curtime - $sustime)) -ge $autohibernate ]
    then
        # Then hibernate
        rm /var/run/pm-utils/locks/pm-suspend.lock
        /usr/sbin/pm-hibernate
    else
        # Otherwise cancel the rtc timer and wake up normally.
        rtcwake -m no -s 1
    fi
fi

Hopefully this code comes through on this message board (this is my first post here).

Edit the timeout value autohibernate=7200 at the top, to however many seconds you which to sleep before going into hibernation.  The current value above is 2 hours.  Note, that you laptop WILL wake up at that time for a few seconds, while it is executing the hibernate function.

So if you plan on putting your laptop in a case, don't suspend, but hibernate instead.  Otherwise your laptop could overheat in esp. if it is in a tight fitting slip case (although it will only be on for a few seconds to a minute).

I've been using this method for the past couple of days, so far it has been successful (and saved me from a dead battery this afternoon).  Enjoy.

For other Linux distributions that use systemd and newer Ubuntu versions this should still work if you place the script in /usr/lib/systemd/system-sleep instead of /etc/pm/sleep.d.  Also, replace the /usr/sbin/pm-hibernate command with systemctl hibernate.


Wacom tablet - how to map the "ctrl" key?

I had the same problem as I wanted to use the my tablet with Krita.

The only solution I found is a workaround: I changed the shortcuts in Krita.

So instead of using Shift + left drag to change the Brush size, I mapped the shortcut Shift+B +  left drag in Krita to do the job, then I mapped Shift+B to one of the buttons of my tablet and it works fine now.

Same for Ctrl + left click, I mapped B + left click in Krita.


Enable acpi on Ubuntu 13.04 ARM ChromeBook

If ACPI is not installed, you can install it either by clicking here or by running in a Terminal (use Ctrl+Alt+T: sudo apt-get install acpi.

You'll then find the 'acpi' directory inside /sys/ (if not, try in /proc too).

For rest of the solution, go ahead as given in the link you've already posted and update whether it works or not.

P.S. Another possible way to work with it is available here.


Switch between desktop environments instantly within the running desktop session

I got a nice trick while I was looking for WM key-binding, reading man pages.

man dm-tool

dm-tool is a tool to communicate with the LightDM display manager.

   list-seats
          List the active seats and sessions that are running.

   add-nested-seat
          Start an X server inside a session and connect it to a display manager.

   add-local-x-seat DISPLAY_NUMBER
          Connect an existing X server to the display manager.

   add-seat TYPE [NAME=VALUE...]
          Add a dynamic seat.

Run:

$ dm-tool add-nested-seat
/org/freedesktop/DisplayManager/Seat2

Update: With newer release, it is possible to control the dimensions of the new window or let it be fullscreen by adding parameters --fullscreen or --screen XxY, see dm-tool --help.
Got new window with new session (titled Xephyr on):

Then login using other desktop (LXDE):

You can toggle if mouse and keyboard should be captured in the new session by typing Ctrl-Shift.
Check seat list:

$ dm-tool list-seats
Seat2
  CanSwitch=false
  HasGuestAccount=true
  Session2
    UserName='sneetsher'
Seat0
  CanSwitch=true
  HasGuestAccount=true
  Session0
    UserName='sneetsher'

To run in full screen:

Xephyr :1 -br -fullscreen &
dm-tool add-local-x-seat 1

Reference: Using_Xephyr


Why using "profile" in grub to optimize boot time doesn't work for me? How do I revert the effect?

One remark at the beginning: Although you're content with Ubuntu 13.10, I would still highly recommend upgrading to 14.04 LTS. Saucy has reached end-of-life for over a year now, which means you did not receive any updates for it since then - not good security-wise. Also, technically EOL releases are off-topic here.

The kernel boot parameter profile is a trigger for readahead profiling at boot-time. If it is set a readahead daemon will monitor the boot process , look for files that are loaded during boot and write an appropriate list file. This file will be used on the next boot and should cut down boot-time by reducing hard-drive seeks.

There are a few such readahead mechanisms that came and went over the years. Here is my take on them and I hope this to be more or less accurate.

Original readahead (deprecated)

The last version found in the the Ubuntu archives dates back to 2005. You can't install it anymore through the repository. I don't know when it was superseeded, but it must have been sometime before 10.04.

profile stored in /etc/readahead/boot.
trigger profiling by moving boot and booting with kernel parameter profile, although this bug report suggests its an undocumented and developer-only option.

readahead from Fedora

Originally from Fedora and still used there for systems not booting with systemd.

Ubuntu package is readahead-fedora. Available through the repository.
superseeds the original readahead
profiles stored in /etc/readahead.d/custom.{early,later}
profiling triggered by either

touch /readahead_collect or
setting kernel parameter profile on boot.

automatically profiles at least every month
Superseeded on Ubuntu by ureadahead

The original readahead and readahead-fedora created a list of files needed at boot time. This list would be read at boot in an order that minimizes hard-drive seeks.

ureadahead

This is the default on Ubuntu since - I think - 10.04.

Pre-installed
Really creates a page file which is loaded into memory at boot.
Stored in /var/lib/ureadahead/pack. To force profiling at next boot, remove this file.
Installs dpkg triggers, that fire and update the page file whenever something is installed that relates to init.

Ubuntu >= 15.04

systemd is the default init system since vivid. It brought its own readahead mechanism. ureadahead does not work with systemd. But even systemd-readahead is now unmaintained and deprecated, since apparently everbody owns a SSD these days... ureadahead is used on Vivid when booting with upstart.

As expected your system has ureadahead installed, which doesn't take the profile parameter. Why you would experience prolonged boot time after setting profile is not understandable. If you also applied the second hack in the how-to you followed (CONCURRENCY=...), this might be the culprit. upstart should take care of that on its own.

As said before, to force ureadahead to re-profile, remove the pack file

sudo rm /var/lib/ureadahead/pack

and possibly any other .pack in that directory. Be sure to login quickly after boot, because ureadahead records a bit even after booting has finished. This way it will hopefully also include the unity shell or whatever you're using.

If you want a really good grasp on what is taking how long to start, take a look at bootchart. It generates a graphical representation of the boot process.


Ubuntu on android linux deploy -sudo perm_root permission denied

I have solved this. In linux deploy settings change the user to root.

This then logs you in as root and you dont need to use sudo.


There are many options you can try:

boot your kernel with nomodeset and/or try to remove quite and splash to see more output (you should try this temporary on grub boot menu -> press e to edit the current entry -> modify the linux line (like suggested) -> press ctrl+x to boot with the modification)
when the system is up, try to switch terminal with ctrl+alt+f1 and check if you come to a text terminal.
try discover the problem in recovery mode by reading the log files /var/log/syslog and /var/log/Xorg.0.log

Hope this helps to get closer to the solution ;-)


Can I create an app for the Ubuntu Touch platform using PyQt?

For applications to run on tablets/phones (and desktops) we recommend using the Ubuntu SDK, which is based on QML.

You might be able to run Python apps from the phone, as the Python runtime will most probably be there, but this will not be supported in principle. This means you might get your Python apps to run, but effectively you'll be on your own.

You might want to try to write a PyQt app for the phone, but I'm not sure how well it supports QML and whether it can integrate with the Ubuntu UI Toolkit (the part of the SDK used to draw the widgets). PySide is out of the question, as it only supports Qt4, and the Ubuntu UI Toolkit uses Qt5.


How to show language chooser with Alt+Shift in Ubuntu 18.04

You can use this command to achieve what you want
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L']"


Installing 12.04 to dual boot: partitions not labeled

In most of the scenario Windows XP will be installed in the first primary partition C:Drive.When you choose "Install Ubuntu alongside with Windows" Ubuntu will also be installed in the same partition. For Installing Ubuntu you need only 4.5GB but as you have 50GB space in your Windows partition you can give 10-12GB for Ubuntu. This is very simple process. If you want to create a custom partition layout. I will suggest you to copy all your data on the second partition to an external hard disk and then delete the partition. Then reboot the system with the CD and select the installation option "Something else" and create a primary partition for root file system(mount point /, file system ext4) that is 10-12GB. Leave the rest of the space as it is, which you can partition in Windows(Disk management) and this will be available in Ubuntu too. No need to crate a swap partition if you have enough RAM, and u can create swap Partition even after installation :)


How to get DivX videos to play in Chrome?

Xvid is a H.263 compatible format. DivX is a company name and a trademark, but not a particular codec. Initially it was some flavour of H.263, then H.264 and the latest entry is H.265.

Chrome should by default be able to play H.264 content on Ubuntu. Chromium – the open source version of Google Chrome – has a package named chromium-codecs-ffmpeg-extra for that purpose.

If I recall correctly, then no particular codec was defined for the video element in HTML5. The various custom DivX formats however never were popular in that discussion and shouldn't be used for publishing on the web.


I think if you add a $HOME/bin directory it should be added to the path automatically, looking in my .profile would indicate this

Yes just checked and by creating a $HOME/bin directory the next time you log in its automatically added to the path.

Hope that helps


Ubuntu 12.04 won't load - hangs at Busybox v1.18.5 / initramfs


Switching to other Language without actually called/clicked keys/options in Ubuntu 18.04

It is because, the default setting for switching language set by " _ + Shift + KeyPress", Change the setting something similar to this

How to switch language keyboard combination?


VisionTek Radeon 5450 Graphics with Three Monitors on Ubuntu 16.04

I dug up a spare disk and went to reinstall Ubuntu 16.04.02. Upon boot, I decided to "try" Ubuntu first... To my surprise (or maybe not), all three monitors worked fine. I went ahead and installed to disk, and everything seems to be fine. I'm not entirely sure why, but I'm willing to chalk it up to my fault. I was trying all sorts of things to get it to work, so I probably caused the problem unintentionally.


Where do I find Juju Design and Architecture documents?

There is a general website with information here (Juju Charms documentation) but this does not cover any information on Juju itself.

There is detailed information on the juju github that will cover more information about the architecture and some other topics as well.


Where should the bootloader be installed when I want to run Ubuntu from an external HDD?

First, it's CRITICAL that you understand your boot mode. Modern computers can boot in either of two ways:

BIOS -- This is the old way of booting, which was used on most computers introduced prior to 2011. Modern computers support BIOS-mode booting via a feature called the Compatibility Support Module (CSM), aka "legacy-mode boot support" or a similar term. Thus, this method can be referred to by three names: BIOS, CSM, or legacy. It involves 16-bit boot loader code splatted in the Master Boot Record (MBR) and various other places. It's an inelegant but mature method of booting, and most sites that don't explicitly mention the boot mode describe BIOS-mode booting. If your computer came with Windows 8 or later, though, chances are it does not use this method of booting.
EFI/UEFI -- This is the native boot mode for most computers introduced since mid-2011, and it is completely different from BIOS-mode booting, so you should ignore any advice that explicitly states it's for BIOS-mode booting, or anything that doesn't mention the boot mode (since it's likely to be old or written by somebody who doesn't know the difference). One exception: Confusingly, many people, and even computer manufacturers, refer to their EFIs as "BIOSes." This practice creates a great deal of confusion.

Since you mention Windows 10, chances are your computer is EFI-based and boots in EFI mode. I'll proceed under that assumption. If this is incorrect, ignore the rest of this answer.

To boot an internal disk in EFI mode, the OS typically stores a boot loader as a file on the EFI System Partition (ESP) on the disk. This filename can be anything legal, but for Ubuntu it will be EFI/ubuntu/shimx64.efi, which in turn launches EFI/ubuntu/grubx64.efi. The OS installer registers the name of the boot loader with the EFI's built-in boot manager, which stores that name in NVRAM. If the EFI works correctly (not all do), this results in a working boot process.

The trouble with this process, as applied to a removable disk, is three-fold:

The Ubuntu installer will install GRUB to "the" ESP -- but you may have multiple ESPs available (almost certainly one on the hard disk and maybe one on the USB drive). Controlling where GRUB installs can be tricky. It is not done by using the option marked with the obvious title about where to install GRUB. Instead, it can be done (AFAIK) only from the "Something Else" installation option by marking the ESP you want to use as an "EFI boot partition" or "EFI System Partition" (which name depends on the Ubuntu version).
If you install GRUB to the ESP on the USB drive, then when you remove the USB drive, the EFI may notice that it's got a registered boot loader entry that's not valid, and delete that entry. Many EFIs do this, and it means that if you install GRUB to an external disk and then unplug it, you lose the ability to boot from that disk, even when you plug the disk back in.
The way Ubuntu configures GRUB causes it to rely on configuration files that are in the Ubuntu /boot/grub directory, which is not likely to be on the ESP. Thus, if Ubuntu installs GRUB to the ESP on your internal disk, you'll avoid the first problem but run into another one because when you start up with the USB drive disconnected, GRUB will launch and be unable to find its configuration files. The result is a grub> prompt that will mystify most users.

There are a number of solutions to these problems, including:

Manual install of GRUB to the fallback filename on the external disk -- OS installers boot by using a fallback filename of EFI/BOOT/bootx64.efi. If you copy Shim (which launches GRUB) to this filename (by copying EFI/ubuntu to EFI/BOOT on the ESP and then renaming shimx64.efi to bootx64.efi in EFI/BOOT), your firmware will be able to launch your USB-based GRUB just as it did the Ubuntu installer. This will work past both of the problems I've just identified, but you'll need to use the computer's built-in boot manager to select which OS to boot. This built-in boot manager ranges from unusable to tolerable, so this might or might not be an acceptable solution. You may also need to tweak your boot order after you install Ubuntu to keep it from launching GRUB from either the internal disk's ESP or the external disk's ESP by default.
Put a /boot partition on your internal disk -- If you install GRUB to the internal disk, then you can also put a /boot partition on the internal disk. This will enable GRUB to work normally on all boots; however, the Ubuntu option will appear all the time, even when the USB disk is unplugged. This may be undesirable, especially if Ubuntu is the default. Also, this solution means that your external USB drive will be bootable only on the computer on which you prepared it. If you want to be able to use that disk on other computers, you should avoid this solution.
Use a smarter boot manager -- A boot manager gives you a choice of OSes to boot, whereas a boot loader loads a kernel into memory. GRUB does both jobs and the EFI's built-in boot manager does only the first job. There are other boot managers available, some of which may help you avoid the problems I've identified. My own rEFInd, for instance, if installed to the internal disk's ESP and made the default boot program, will detect and present an Ubuntu option if and only if GRUB or a Linux kernel is present -- that is, when the USB drive is plugged in. By setting the default_selection option in refind.conf appropriately, you can configure rEFInd to boot Ubuntu automatically if your Ubuntu USB drive is plugged in and to boot straight to Windows if the Ubuntu USB drive is not plugged in. My answer to this question provides more details about this type of configuration, albeit on a Mac rather than a PC.

With any luck, one of these approaches will get you up and running.


This can also be achieved using wmctrl:

sudo apt-get install wmctrl

Script for wmctrl:

#!/bin/sh

while true
    do wmctrl -s 0
    sleep 5
    wmctrl -s 1
    sleep 5
    wmctrl -s 2
    sleep 5
    wmctrl -s 3
    sleep 5
done

wmctrl is a more elegant solution; it sends messages to the window manager and can do other things like move windows to a specific workspace or raise them which may also be useful to you. However, the window manager is free to ignore these messages so it is perhaps not the most portable solution.

wmctrl's -a option is the most suitable for your use: it will switch to the correct workspace and then raise the window. This avoids having to keep the windows on the correct workspaces, not minimized, and not obscured by other windows etc.


As far as I know you can't.
I think you can temporarily remove your device,  then add it again with the new name.


Press Super+w

It spreads all the windows in current workspace.

You dont have to kill the application


I finally found the solution for me.

First I followed the instructions in the article "how to fix your Ubuntu splash screen".

Then I manually changed the resolutions in /etc/default/grub to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=800x600-24, mtrr=3, scroll=ywrap" ;

(do not forget to run sudo update-grub afterwards).

Why, I do not know. In 10.10 it was 1280x1024-24.

I think it is with the changes in the Ati driver that comes with 11.04.  But I have a nice splash screen at boot time and logoff time now.


I cant connect to the wireless internet on Uuntu 13.04

ubuntu supports all wireless drivers so restart your device from windows ( not shutdown) and boot to ubuntu and check the wireless is working if not install the driver from this site http://wireless.kernel.org/en/users/Drivers


You should not install them at the same place their libraries are conflicting with each other. openmpi 2.0.0 uses MCA interface 2.1.0, openmpi 1.8.1 uses MCA interface 2.0.0. So you should install the libraries in a separate places


Gaps above and below panels in KDE Plasma

This was a bug that has since been fixed in KDE Frameworks 5.48.

https://bugs.kde.org/show_bug.cgi?id=389215

As a workaround, you can turn compositing on.


Booting with Ubuntu CD on Windows XP sp2 - says isn't supported

Try 32 bit Lubuntu 12.04.

https://help.ubuntu.com/community/PAE

Lubuntu and Xubuntu offered a PAE and a non-PAE release up to and including 12.04, but from 12.10 only the PAE releases are maintained.


How to fix a broken package, when "apt-get install -f" does not work?

I fixed my issue using this command:

sudo dpkg -i --force-overwrite path-to-the-deb-file

If --force-overwrite doesn't work, try:

sudo dpkg -i --force-overwrite-all path-to-the-deb-file

In your case:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/scala_2.9.2-400_all.deb


Errors while installing 19.10 on Adata NVME SSD (blk_update_request: operation not supported error)

Enabling "Windows 7 installation mode" in my MSI motherboard BIOS made those errors go away completely


Can't type Korean any more after 14.10 upgrade

It looks like Hangul mode was turned off by default despite entering the Hangul language mode.

You can either click on Hangul mode to turn it on or turn it on by default by going to Setup->Start in hangul mode.

After you have restarted, Hangul mode will be turned on by default and you will be able to type Korean without having to manually click Hangul mode every time.


How to change the console of Code::Block in Ubuntu 18.04

I don't think that there is any one specific correct answer for this and it really is all about preference, but here is something I have come up with that might help.  This answer is based on this answer that I wrote.

I recommend that you use any of the xterm terminal types. Probably the best one to use is rxvt-unicode

sudo apt install rxvt-unicode

Then in CodeBlocks go to Settings -> Environment...  then in the Terminal to launch console programs add the following:

urxvt -T $TITLE -e

Now, to change the colors and the fonts add like the following to your ~/.Xdefaults file at the bottom:

URxvt*background: black
URxvt*foreground: white

Then one of the fonts that I kind of like is a monospace font and you can add it like the following below the above 2 lines:

URxvt*font: xft:Monospace:size=9:antialias=true

Save the .Xdefaults file and now you should get something looking like this:

Or you can change background colors to whatever you want.  Here's Cyan with Black text:

URxvt*background: cyan
URxvt*foreground: black

If you want to play around with different fonts that you can run from a terminal window:

fc-list | sort

And it should give you a list of available fonts.  Probably best to stick with any of the Mono type fonts.

Hope this helps!


First

ls -l /root/ghamma

to verify it indeed is a file.Make sure you have right permissions.
then

gksu gedit /root/ghamma

Use gksu instead of sudo for GUI applications.


WIFI not working on one specific wifi network

I suggest you try the native driver and firmware:

sudo apt-get install firmware-b43-installer
sudo apt-get purge bcmwl-kernel-source

Reboot and let us hear your report.


How to run Gnome Startup Applications in i3?

Gnome and other DEs startup things use the .desktop files in ~/.config/autostart and /etc/xdg/autostart to know what to start.

A basic solution would be to examine these files and see what commands are executed, then manually add it to the config:

grep -r Exec /etc/xdg/autostart/

Note this includes ones that are disabled (by OnlyShowIn, X-GNOME-Autostart-enabled etc)

Another solution would be to use dex, as suggested over here on the i3wm FAQ/forums


Some of your script did not come through clearly, but it would be helpful if it checked for errors in a few place.
You can use perl's file matching - see perldoc for more info:
perldoc -f glob

perhaps expanded with list filtering the return from the glob with grep (here for files):
grep { -f $_ } <SE*>

Also consider:
perldoc -f system

to spawn off the dcm2nii command:
system("dcm2nii -b ~/.dcm2nii/dcm2nii.ini ".join(" ",<IM*>))

You also didn't ask for a code review, but I'd caution against blindly executing rm commands inside back quotes (use unlink instead of forking off a subshell and running rm) see:
perldoc -f unlink

I was also going to suggest enabling perl's warnings and strict checking to the top, but that might more than needed
use strict;
use warnings;


Try this. Set the SAME MAC address of the ethernet card, in both places in the file. Adjust the eth0 if required.
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      match:
        macaddress: 06:bf:0c:4a:a5:d6
      set-name: eth0
  bridges:
    br0:
      dhcp4: true
      macaddress: 06:bf:0c:4a:a5:d6
      interfaces:
        - eth0

Note: You may need to create /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
network: {config: disabled}

sudo netplan --debug generate
sudo netplan apply
reboot # mandatory
See https://cloudinit.readthedocs.io/en/latest/topics/faq.html


The enviroment that you get for a cronjob is very limited. For example, you don't get the DISPLAY variable which is required to open chrome.

Instead of google-chrome use /opt/google/chrome/chrome


Differences between first (initial) user and other users?

No difference that I know of, besides groups.

Creation of folders should be ascribed to /etc/xdg/autostart/user-dirs-update-gtk.desktop, default config files are copied from /etc/skel on user creation.


Just run

sudo apt-get install php5-cli

To run it in interactive mode:

php -a

Run a file:

php /path/to/file


No option to set the list-view of folders and files on Ubuntu Gnome 16.04

The 'four squares' and 'two squares with horizontal lines besides them' in the folder window switch between icon view or list view.


Keyboard shortcuts in Ubuntu are composed of 1 or more modifier keys, and one regular key. A regular key produces a character or is assigned an action when pressed on its own. These include most keys on your keyboard. A modifier key is a key that does nothing on its own, but that is pressed in combination with a regular key to change its behaviour. Modifier keys include Shift, Ctrl, Alt and Super.
A keyboard combination as  meta+arrowkey+arrowkey therefore is not possible because arrow keys are not modifier keys.
Examples of valid shortcut key combinations include: (1 modifier key): Shift+i, Super+g, (2 modifier keys) Ctrl+Alt+Up or (3 modifier keys) Shift+Ctrl+Alt+Up.


KDE Apps on Ubuntu 20.04 - Right Click Issue

This can be fixed by installing kde-plasma-desktop via the ppa ppa:kubuntu-ppa/backports.
Add PPA:
% sudo add-apt-repository ppa:kubuntu-ppa/backports

Update packages:
% sudo apt update

Install Package:
% sudo apt install kde-plasma-desktop

When prompted to use Choose gdm3 or sddm, choose gdm3.
Run an update post-install
% sudo apt update

Reboot the machine and log back into Ubuntu.
When you log in, try your regular desktop. When typing in password, gear will show on bottom right of screen, click on this to see desktop options. The standard for Ubuntu 20.04 Gnome is Ubuntu.
If you have issues logging into the desktop, you can type ctrl-alt-F3 to get to a console to troubleshoot. Note that it may be required to do another sudo apt-update after logging back in, as this is how I had to resolve login issues, although I did not do the update after the initial install.
That should get this right click issue as well as many other KDE app issues resolved under Gnome. I noticed that all the apps now look correct, have proper context menu functionality and function much better in general.
Update 2020-07-21:
My experience so far with initially installing kubuntu-desktop on the same machine as my Gnome Ubuntu has been bad as it broke my regular Ubuntu Gnome desktop. I'm now having to look at reverting back to the ZFS snapshot before the change as it pooched a bunch of functionality in Gnome. I hope to try again with kde-plasma-desktop after I survive that process (fingers crossed).
Update 2020-07-22:
Was able to revert the base system to before kubuntu-desktop was installed and subsequently installed kde-plasma-desktop. I can confirm that kde-plasma-desktop installation fixes issues with right click issues in KDE Apps. Note that kde-plasma-desktop itself was very large and the subsequent apt update took down a ton more changes. However, my Gnome desktop seems to be working well now alongside the KDE Apps.


how do I set my icon grid to a better shape?

I wrote iconic to solve this problem by letting you define grid dimensions for your icons. Additionally it will:

Allow you to move icons to any of three monitors
Not suffer the "lost icon syndrome" that occurs when monitors of multiple resolutions are used
Sort icons alphabetically, alphabetically with "Link to" prefix ignored, sort by modified date ascending or date descending
Allow different grid size (columns x rows) depending on monitor, EG more on 4K monitor than 2K monitor
Instant Test button for quick experimentation on column x row changes or reserved space changes for monitor left, top, right or bottom areas
Test button will last for x seconds defined by you, clear all windows before test and restore them after test
Bash script for easy modifications

You can get the script on github.

Here's the main screen:

Visit the github page for iconic to see all the other screens, explanations and a copy of the script.


How to install PlayOnLinux on Ubuntu 16.04

You can simply run command

sudo apt update
sudo apt install playonlinux

for installation. There is no need for PPA.

To update to the latest version, it needs to download .deb file.


Try the cloning method
The cloning method needs no pre-formatting, it simply overwrites the target drive with the data from the iso file (including boot sector and partition table). This works with hybrid iso files, and most current linux iso files are hybrid iso files.
I suggest that you install mkusb from the ppa according to this link
help.ubuntu.com/community/mkusb
and use it to create a live-only system (using the cloning method).
If you want to use the USB drive as a regular storage device afterwards, you can use the wipe menu of mkusb to restore it with an MSDOS partition table and a FAT32 file system, the standard for USB pendrives.


How to execute script file at startup without using any commands like ln -s or any other to be executed at first?

Interesting question. Thanks for pointing out files in /etc/rc0.d you learn something new every day!

Create directory to drop your scripts into

First you need to create a directory of scripts you want automatically run at startup. I would suggest creating it within /usr/local/bin but it can be anywhere:

sudo mkdir /usr/local/bin/startup-scripts

Modify rc.local to run all your scripts

Then type gksu gedit /etc/rc.local to edit the startup script that has sudo powers.

Before the last line that says exit 0 copy and paste these lines:

for SCRIPT in /usr/local/bin/startup-scripts/*
do
    sudo chmod +x $SCRIPT
    $SCRIPT
done

Optionally, for every script in the startup-scripts directory, I would put in something like:

echo "running script xyz within /usr/local/bin/startup-scripts"

as this message will appear in /var/log/syslog file and document your system setup.


Should I remove one partition before installing Ubuntu?

The 4-partition limit is an issue on disks that use the old Master Boot Record (MBR) partitioning system. Computers that ship with Windows 8 almost invariably use the newer GUID Partition Table (GPT), which has a much higher limit -- 128 partitions by default, although that can be raised with the right software. (Even MBR-based disks can have more than four partitions, but one of the four primary partitions must be an extended partition, which in turn can hold an arbitrary number of logical partitions. Getting this set up on a system that already has four primary partitions can be a pain.)

If you've re-installed Windows, or if your system came with Windows 7 and you subsequently upgraded to Windows 8, it's conceivable you'll have to deal with MBR's 4-primary-partition limit. If you want to be 100% sure of what you've got, you can check your partition table type, as described here.


You can use capture groups and backreferences e.g.

rename -vn -- 's/\.(pdb)\.(\d+)/_$2.$1/' *.pdb.*

to match a literal period \. followed by (literal) string pdb, followed by a second period \. and then a sequence of one or more digits \d+, copying the string and digit sequence into numbered capture groups $1 and $2 respectively and then re-substituting them in reverse order with an underscore in place of the first period.

Options -v and -n are for verbose output (listing any changes made) and no-operation, allowing you to test the correctness before committing to making any actual substitutions: you will need to remove the n option to actually apply the changes.

The -- marks the end of command options - this just makes the command more robust in the rare case that you have filenames that start with a hyphen.

Testing it in a directory containing files file.pdb.1 file.pdb.2 file.pdb.3 file.pdb.4 file.pdb.5 (among others):

$ rename -vn -- 's/\.(pdb)\.(\d+)/_$2.$1/' *.pdb.*
file.pdb.1 renamed as file_1.pdb
file.pdb.2 renamed as file_2.pdb
file.pdb.3 renamed as file_3.pdb
file.pdb.4 renamed as file_4.pdb
file.pdb.5 renamed as file_5.pdb


Open the terminal and type:

sudo /.'/usr/bin/truecrypt-uninstall.sh'

which returns the output:

TrueCrypt uninstalled.

This is the normal way to uninstall TrueCrypt, but you said you extracted the TrueCrypt files to /usr/share/truecrypt which isn't the normal way of installing TrueCrypt, so if the above commands don't work, open the terminal and run the following commands:

cd /usr/share/  # change directories to the directory that contains truecrypt
sudo rm -r truecrypt  # remove the truecrypt directory and all of its contents


How can I install "gdb-arm-none-eabi" on Ubuntu 18.04 (Bionic Beaver)?

As far as I can see, there are two options:

Install an old version (as pointed out by Chaos)
Install
gdb-multiarch, which actually worked for me.


Ubuntu 16.04 - Computer has no battery but indicates a false battery is present and ac adaptor is offline

I don't know if you already found the solution but I'm replying here because I had the same exact problem on my new computer, an ACEPC T11, and I could only find your post at first.
After hours of investigation, I eventually found the solution here.

Basically, you need to change the configuration of UPower to prevent it from polling the battery status and wait for the battery itself to send updates.
Since there's no battery, its charge value will remain constant and the system won't shut down.

Update /etc/UPower/UPower.conf and set

NoPollBatteries=true

I understand that this is not a "real" solution but it gets the job done, at least for me (no more power issues)


I see there might be two problems with what you're doing.

1. Check your scrip has permission to run

Just chmod-it like

    chmod +x /path/to/my/script.sh
    chmod +x /path/to/ROC-smi/rocm-smi

Otherwise it won't run.

2. Fix wrong paths

When you have ./ROC-smi/rocm-smi you're telling bash to run ROC-smi/rocm-smi from the path you're calling the script, not from where the script is located. This means that if you call the script from /root, bash will look for /root/ROC-smi/rocm-smi and not for /path/to/my/script/ROC-smi/rocm-smi.

The most straightforward solution is

    #!/bin/bash
    /absolute/path/to/ROC-smi/rocm-smi -d 1 --setfan 90
    /absolute/path/to/ROC-smi/rocm-smi -d 0 --setfan 90
    /absolute/path/to/ROC-smi/rocm-smi -d 2 --setfan 110
    /absolute/path/to/ROC-smi/rocm-smi -d 3 --setfan 110
    /absolute/path/to/ROC-smi/rocm-smi -d 4 --setfan 110
    cd /absolute/path/to/teamredminer-v0.4.1-linux
    /usr/bin/screen -dm ./teamredminer --algo=cnr --url=*** --user=*** --pass=*** --watchdog_script

However, if that script can run from anywhere, this quick patch will do as pointed out in this answer

    #!/bin/bash
    scriptdir="$(dirname "$0")"
    cd $scriptdir"
    ROC-smi/rocm-smi -d 1 --setfan 90
    ...

Now, $0 is unreliable (see here) so perhaps you want to try cd "${BASH_SOURCE%/*}" instead. I would try

    #!/bin/bash
    cd ${BASH_SOURCE%/*}
    ROC-smi/rocm-smi -d 1 --setfan 90
    ROC-smi/rocm-smi -d 0 --setfan 90
    ROC-smi/rocm-smi -d 2 --setfan 110
    ROC-smi/rocm-smi -d 3 --setfan 110
    ROC-smi/rocm-smi -d 4 --setfan 110
    cd /absolute/path/to/teamredminer-v0.4.1-linux
    /usr/bin/screen -dm ./teamredminer --algo=cnr --url=*** --user=*** --pass=*** --watchdog_script


dpkg (as well as apt-get and aptitude) work with Ubuntu's package system while gem uses the ruby gem system.

Both can be considered "package managers", but they are not the same, they're distinct. Things installed via gem can't be found in the dpkg database and vice versa.


I found out that for nodejs there is nvm https://github.com/creationix/nvm -- it works in a very similar way to rvm for ruby.

So, once nvm is installed, it is just matter to do a nvm install v0.4.7 followed by a nvm use v0.4.7 and you're done!
(by the way, this works for installing any version of node.js you need -- and you can also have multiple versions installed aside)


what does "sudo dpkg --configure -a" do exactly?

If apt is interrupted for some reason, packages that have been downloaded and unpacked may not have been fully configured, or installed.

From man dpkg
   --configure package...|-a|--pending
          Configure a package which has been unpacked but  not  yet  configured.
          If  -a  or  --pending  is  given  instead of package, all unpacked but
          unconfigured packages are configured.

          To reconfigure a package which has already been  configured,  try  the
          dpkg-reconfigure(8) command instead.

          Configuring consists of the following steps:

          1.  Unpack  the  conffiles,  and  at  the  same  time  back up the old
          conffiles, so that they can be restored if something goes wrong.

          2. Run postinst script, if provided by the package.

The --configure option causes dpkg to finish configuration of partially installed packages, and the -a indicates that rather than a specific package, all unpacked, but unconfigured packages should be processed.


Get previous commands in Terminal that match the currently typed command

Yes, there is a very simple way to search through your command history. When at the terminal, press Ctrl-R to begin a search, then you can type nmap and it will search back to the last command using nmap.

If you don't want the last command that contained the 'nmap' word but some other further to the past, then you can hit Ctrl-R again as many times as you'd like.


How to prevent automatic change of the audio device?

In /etc/pulse/default.pa comment out module-switch-on-port-available:

# load-module module-switch-on-port-available

Then restart.


Can Ubuntu Core be installed and does it run very well on the nexus 10?

Your original question that's posted in the title "can it run very well on the nexus 10?" is relative because I don't know what kind of user you are.

I've used "Complete Linux Installer" before and it ran well on my Galaxy S3 with very basic uses. It did run well for the browser, Libre Office, etc.

To finalize my answer, it shouldn't be a problem. I think it's a good, feasible idea. If I can do it with little annoyance on my Galaxy S3, you can surely do it on the Nexus 10 with even less annoyance. I personally prefer Android, but that's relative. It will work on Nexus 10 with little modification.

That's pretty much all I have to say, other than once you respond. You can take a look at the Android thread articles on my site. On the main page (gymforgeeks.com) I'm actually writing a tutorial on this soon.


Server side filtering - Courier, Postfix, Roundcube

If you can find something that does the Sieve protocol, I think you will have found just what you want. Sieve is a protocol that lets you upload filters to the server and have them applied as the mail is delivered to the users. I have set up Sieve on my server setup (about 2 years ago), but I was using Postfix, Dovecot, and the Sieve plugin for Dovecot. So I'm probably not much direct help, but hopefully it will give you an idea of a direction you could go. I would not be at all surprised if Courier has a Sieve plugin you can set up. Then I guess if you could find a webmail client that lets you set Sieve filters, then you would be all set.

Maybe one of these would be something that would work:

http://squirrelmail.org/plugin_view.php?id=73
http://plugins.roundcube.net/packages/johndoh/sieverules
http://trac.roundcube.net/browser/github/plugins/managesieve/managesieve.php

The one thing that concerns me is that I haven't found anything saying how to set up Courier to do Sieve. When I set up my mail server, it was using Dovecot. I did find something on a mailing list about it not supporting Sieve at the time of that message, but couldn't find anything that said either way if current version of Courier can do Sieve.


Is there and software to split and rearrange an audio file easily?

Certainly for simple splitting Audacity is the easiest gui tool to use. Using an example on my own setup:

First import your audio into Audacity
Drag your cursor along and select a segment of the audio
Press Ctrl+B and label the segment
Repeat for other segments and also label appropriately, my example is labelled simply 'Part 1' and 'Part 2":

You mentioned changing pitches and other effects, have a look now at the 'Effects' menu and you will see a truly amazing set of effects that can be applied to the output audio. First press Ctrl+A to select all segments (or select the segments individually with mouse click) and then apply any of these effects:

The 'Reverse' effect is my personal favourite!

Press Shift+Ctrl+L to simply export the 2 segments as separate files in the format of your choice with the meta tagging of your choice
If you wish however to rearrange the splits before exporting this can be done as a simple cut and paste. See here, using the same audio file, I have reversed the audio and you can see that the waveforms are now chopped in half and replaced out of order:

And now export the whole 'reversed-segment' file with Shift+Ctrl+E.

Hopefully I have addressed all of your points? Endless fun to be had with Audacity :)

References:

Splitting a recording for export as separate tracks


how to save the current playlist in Cantata as mu3?

mark all pieces in your current playlist, press ctrl & S keys (saving, eh! Who would have thought that!) and in the little pop up give your list a name.
To play this list go to the playlist menue and under "saved playlists" you click on the list you just saved and choos play and replace current list"
And - voilá - there you are!


Ubuntu SDK fails to SSH to BQ Ubuntu Phone

I had a similar problem and fixed it by modifying
/home/[user]/.config/QtProject/qtcreator/devices.xml.

original:

<value type="QString" key="Host">[10.0.1.9]:24</value>
<value type="int" key="SshPort">10000</value>

modified:

<value type="QString" key="Host">[10.0.1.9]</value>
<value type="int" key="SshPort">22</value>

At first I fixed this problem by modifying sshd_config on the device and adding port 10000, but that stopped working.  I'd like to know the correct way to fix this issue...


Top software to install on Live USB drive, for Windows recovery purposes

testdisk/photorec. Great tools for recovering deleted files and repairing disk partitions.


Quickly Project System-Notifications dont work ("import pynotify" fails)

I just ran into exactly the same problem.

Here's my solution.

from gi.repository import Notify

Notify.init ('Application')
notification = Notify.Notification.new ('Title', 'Message', 'dialog-information')
notification.show ()


Can one change the output path of cups pdf printer dynamically

cups-pdf is not an extension to cups. All it does is provide a virtual printer which prints PDF files instead of physical sheets of paper. Since every printer has a single output tray where you collect your printed sheets, cups-pdf has the default output directory, hence there is no way to mention command line options to lpr to print to a different location.

For all the configurations in cups-pdf, refer official documentation.


Having two types of authentication methods

In the file /etc/ssh/sshd_config, change the line

#PasswordAuthentication yes

to

PasswordAuthentication yes

and resart sshd:

service sshd restart


Juju deploy of Charm (Mysql) in MAAS provider failing after successful bootstrap. Juju status stuck in "Pending" state

In order to add more informations on this issue : I'm also encoutering the same behaviour when deploying "juju-gui" charm on a Saucy Salamander based MAAS node.

I also got this charm through bzr (with charm get juju-gui).

I'm noting that we have the same problem with different charms, Ubuntu serie and even Juju version.

My juju status :

services:
  juju-gui:
    charm: local:saucy/juju-gui-99
    exposed: false
    units:
      juju-gui/0:
        agent-state: pending
        machine: "1"
        public-address: node2.opc-ss.com

Logs on the node :

2013-11-19 08:51:08 INFO juju.worker.deployer deployer.go:146 deploying unit "juju-gui/0"
2013-11-19 08:51:08 INFO juju.worker.upgrader upgrader.go:134 desired tool version: 1.16.3
2013-11-19 08:51:08 INFO juju.worker.machiner machiner.go:52 "machine-1" started
2013-11-19 08:51:09 WARNING juju.worker.deployer simple.go:244 installer: cannot remove "/var/lib/juju/agents/unit-juju-gui-0": remove /var/lib/juju/agents/unit-juju-gui-0: directory not empty
2013-11-19 08:51:09 ERROR juju runner.go:211 worker: exited "deployer": exec ["start" "--system" "jujud-unit-juju-gui-0"]: exit status 1 (start: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)
2013-11-19 08:51:09 INFO juju runner.go:245 worker: restarting "deployer" in 3s
2013-11-19 08:51:09 INFO juju.provisioner provisioner_task.go:102 Starting up provisioner task machine-1
2013-11-19 08:51:12 INFO juju runner.go:253 worker: start "deployer"
2013-11-19 08:51:12 INFO juju.worker.deployer deployer.go:106 checking unit "juju-gui/0"
2013-11-19 08:51:12 INFO juju.worker.deployer deployer.go:106 checking unit "juju-gui/0"


migrating from Windows: will mozyhome and itunes be accessible?

Welcome to AskUbuntu and StackExchange!

From a glance at the Mozy download page, they don't offer a Linux client, so you may have difficulties there. A good alternative is DropBox, who give you 2GB space for free and supports Mac, Linux and Windows.

iTunes is also Windows/Mac only, but the good news is that (unprotected) iTunes music files are compatible with any number of Ubuntu's media players; though if you have any tracks with DRM, you may not be able to play them.

My advice would be to create MP3 copies of all your tracks before moving to Ubuntu - see this Apple KB article.


If you install an app called "pavucontrol", (direct link apt://pavucontrol ) you can look at which applications are playing audio, and which device they are sending audio to on a per-application basis.

Because (as far as I know) firefox does not have any way to select an audio output device, if you change the output device for an application it will retain that information.... my guess is that at some point you, or someone else (or some application) has selected HDMI audio for firefox, and that has been stored.... you just need to change it back to the default device.


Ubuntu 10.04 LTS 64bit only showing 2.9GB of memory

The problem is due to the Mobile Intel 945GM Express chipset in your laptop.

This site, suggests your computer uses the 945GM Express,and the top answer on Why is more than 3GB of RAM not recognised when using amd64? gives a more complete explanation.


Gnome 3: How do I get the same mouse cursors in Chrome?

Edit the text file /usr/share/icons/default/index.theme.

Replace its contents with the .theme of the cursor you want.

In this case, your cursor of choice is /usr/share/icons/Adwaita/cursor.theme.

Therefore, replace the contents of /usr/share/icons/default/index.theme with those of /usr/share/icons/Adwaita/cursor.theme.

Restart Chrome.


Ubuntu detects ACPI batteries on my desktop computer - thinks it is a laptop

you are a bit terse with your question. Do you have any adverse effects with your computer thinking it is a laptop?

As a quick and dirty solution, you could probably just deinstall the package:

sudo apt-get purge laptop-detect

If you need it later again:

sudo apt-get install laptop-detect


AWS EC2 set up key and non key authentication at same time

Yes, it is possible.

To set up password based authentication (non key), you can achieve this by following the below setup,

Step 1: Create password for the root user

  sudo passwd root

Step 2: To allow root password, edit sshd_config file and set the "PasswordAuthentication" value as "yes"

vi /etc/ssh/sshd_config
PasswordAuthentication yes
RSAAuthentication yes
PermitRootLogin  yes

Step 3: For key based authentication,

  sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/

Step 5: After that make sure the "/root/.ssh/authorized_keys" file should start with ssh-rsa content

  no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".';echo;sleep 10"

Step 6: Finally, to reflect your configuration changes, you need to restart ssh services, so use the below command.

sudo service ssh restart


You have a usual problem with Nvidia Optimus technology. Search Internet for solutions that would fit you, for there are many. If you are not gaming, just disable nvidia card.


How to convert a lot of videos at once in Ubuntu 16.04?

You can use shell scripting to apply Transmageddon to each file. Something like:

for i in Videos/* ; do
    Transmageddon ${i}   # parameters incomplete You get to fix this
done


From the official documentation:

snap is both the command line interface and the application package format
snapd is the background service that manages and maintains your snaps (if you want to check service status run: systemctl status snapd.service, if you want to install/remove snap, you need to install/remove the package snapd)
snapcraft is the command and the framework used to build your own snaps
Snap Store provides a place to upload your snaps, and for users to browse and install


Removing the beep sound when moving between elements in a folder

you can put into your ~/.inputrc file following line:

set bell-style none

this will turn off bell sounds.


Which one is better: using ; or && to execute multiple commands in one line?

Cheatsheet:

A; B    # Run A and then B, regardless of success of A
A && B  # Run B if and only if A succeeded
A || B  # Run B if and only if A failed
A &     # Run A in background.


Ifupdown static not working 18.04.2 LTS Server

Unfortunately, the steps above do not completely enable the things required by ifupdown and also do not completely remove Netplan. To fix this, I followed the following instructions from https://askubuntu.com/a/1052023/946893 running the following commands as root:

systemctl unmask networking
systemctl enable networking
systemctl restart networking

systemctl stop systemd-networkd.socket systemd-networkd \
networkd-dispatcher systemd-networkd-wait-online

systemctl disable systemd-networkd.socket systemd-networkd \
networkd-dispatcher systemd-networkd-wait-online

systemctl mask systemd-networkd.socket systemd-networkd \
networkd-dispatcher systemd-networkd-wait-online

apt-get --assume-yes purge nplan netplan.io

shutdown -r now

At this point the static configuration worked on boot.

NOTE: The config was also missing dns-nameservers 1.1.1.1 1.0.0.1 under the static configuration, and as stated in the linked answer these servers must also be specified in /etc/systemd/resolved.conf then the systemd-resolved service must be restarted


Try clicking top right of the screen and going to settings > sound. Then open the "input" tab. Sometimes the mic volume is on zero there.


Will my data be safe if my laptop is stolen when there is FDE and auto-login?

It's easy to bypass the BIOS password, all one has to do is remove the CMOS battery and put it back in, so I guess it's rather pointless having one. One can enter recovery mode and reset Ubuntu passwords as well, so if the encryption is tied to a user that's a rather useless "protective" measure as well. Read the answers to this question to set up a secure encrypted disk.


If your provider gave you a cable, a username and a password, it means that the way to connect is with probably using PPPoE (Point-to-Point Protocol over Ethernet). The easiest way to do that is using the included network manager applet.

Right click on the network icon in the right-top margin of the screen, and click in edit connections
Click in add
In connection type, select DSL
Fill the fields using the information that your provider gave to you and click save

Now, you can see your connection clicking in the network icon and your created connection.


How to undo the changes made through nano?

It depends on how you enabled hibernation on your Ubuntu. For example, If you followed this instruction https://askubuntu.com/a/487282/61218, All you need to do is to delete the file /etc/polkit-1/localauthority.conf.d/52-enable-hibernation.conf.

The command to delete that file will be

sudo rm /etc/polkit-1/localauthority.conf.d/52-enable-hibernation.conf


The combos  ctrl+alt+numpad will move the window in focus to the corresponding locations:

ctrl+alt+7numPad moves the window to the upper left.
ctrl+alt+8numPad moves the window to the upper right.
ctrl+alt+1numPad moves the window to the lower left.
ctrl+alt+3numPad moves the window to the lower right.


Thinkpad - Trackpoint configuration on 18.10+?

I had the same problem in Ubuntu 19.10 on my T480. I was able to find the files in /sys/devices/rmi4-00/rmi4-00.fn03/serio2.


Ubuntu 12.04 software installation of partimage

Even if PartImage isn't in the Dash it can still be run. Open a Terminal and run PartImage from there:

partimage

The program should run.


connect desktop to laptop using modem ubuntu

Ensure both your desktop and the laptop are on the same subnet.
  Right-click on a folder and add sharing option. (It may prompt you to install Samba and restart the computer if necessary.)
   Next, open Nautilus and type smb://192.168.x.x (replace x.x. with actual IP address of whichever computer you want to access. (The directories you have shared will then be displayed.)

It is similar to sharing folders using a lan cable.


Press Ctrl + Alt + F1 and login.

Try

sudo mount -o remount,rw /dev/sd? /

To get the sd? you have to run df and the one that mounted at / is the proper one.

That should work.

When done, Ctrl + Alt + F7.

This may not be persistent through reboot. This is most likely temporary.


TP LINK WN722n not working on ubuntu 14.02

I suggest you blacklist the quirky Realtek 3290:

sudo -i
echo "blacklist rt2800pci"  >>  /etc/modprobe.d/blacklist.conf
modprobe -r rt2800pci
exit

Your TP Link uses the driver ath9k_htc. Let's load it and see if there are any errors:

sudo modprobe ath9k_htc
dmesg | grep ath
iwconfig

In order to get ath9k_htc to work correctly, let's remove backports. Please do:

cd ~
ls | grep back

The ls command will verify that we are in the correct directory. If the command returns: backports-3.16-1, then let's remove it:

cd backports-3.16-1
sudo make uninstall
sudo depmod -a

Reboot and show us:

dmesg | grep ath

The driver ath9k_htc should load without any complaint.


lsusb - where device description comes from

The device identifies itself only with the ID value. This is made up with a 2-byte code (4 hex digits) identifying the manufacturer (eg, 0a5c for Broadcom), followed by a 2-byte product identity (217f).

Ubuntu uses the database maintained here. If you have a piece of hardware not identified by the current version of this file, you could tell them about it. The manufacturer ID 2773 currently has no entry.


HP EliteBook 745 G5 install Ubuntu 18 fail (restart usually fail, sometimes ok)

I know I'm late, but if you add the kernel boot parameter

iommu=soft

to the kernel command line under grub, you might have more success. I seem to recall I needed to do that to my Thinkpad A485 before I returned it for other reasons.


Can't connect to WIFI Access Point in 14.04

Do this: sudo rm /etc/modprobe.d/rtl8723be.conf

And then this:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware

Viola! Reboot and done!


Here is the list of Hardware supported by Multitouch .


Improve battery life when watching video

General tips apply primarily: turn off wifi and bluetooth adaptors, unmount and disconnect any external drives and media cards where possible, turn screen brightness down, close any other apps that may be running in the background, and if you haven't already, install tlp which automatically changes settings in the background to optimise battery life. I believe performance is better with the NVidia proprietary driver but I don't know if that carries to battery life. My guess is that it would since it may be making better use of hardware acceleration. You may be able to tweak Nvidia settings for optimising battery life. Experiment.

You will also probably get much better life using mpv video player too. You may want to use a GUI though to make it easier to use though I'm quite happy with the command line and its minimal GUI. See what works best for you. The advantage of the command line mpv is the logs. You'll have to try out a few different drivers to see what works for you (I would guess VDPAU would give the best performance). Using mpv with the verbose switch (mpv -v) gives helpful information with regards to your driver's capabilities. Let us know what configuration works well for you.

NB As an aside, mpv is the only Linux player I've found that handles colour management. When configured properly, deliveres by far the most superior quality.