Using Remmina to connect to a remote host

Usually host will continue to operate normally.

But it depends on host logon settings / scripts.

From my practice - Windows applications keep running and I find them in their places on next RDP login.


No, it's not installed by default, but you can install it from the universe repository (like in the previous releases)


You shouldn't install primus:i386 but primus-libs:i386 and primus-libs-ia32:i386

Also installing primus alone should install those packages by default!

sudo apt-get install primus

works for me with both 32-bit (Steam, TF2 etc.)

and 64-bit apps (Blender, War Thunder etc.)!


10.04 (Lucid) was the last Ubuntu release that supported ia64: https://lists.ubuntu.com/archives/technical-board/2010-August/000441.html


Here is the answer, I finnaly was able to do it:

http://translate.google.com/translate?sl=es&tl=en&js=n&prev=_t&hl=es-419&ie=UTF-8&eotf=1&u=http%3A%2F%2Ftecnoubuntu.wordpress.com%2F2012%2F12%2F09%2Finstalar-ubuntu-12-10-junto-a-windows-8%2F&act=url

It's my blog


How to run a custom command for any X session

This will run the command on session starting (after login), I think this is the simplest way.

Create a .desktop file in /etc/xdg/autostart/:

sudo gedit /etc/xdg/autostart/mygamma.desktop

[Desktop Entry]
Type=Application
Name=My Gamma
Exec=/usr/bin/xgamma -gamma 1.2
NoDisplay=true
StartupNotify=false
Terminal=false


Seems like a network problem to me. Are your VBox networks configured correctly?
If your are installing a clean ubuntu on one of your node vms, is it reachable from the cluster controller?
How are your network settings for maas? Is it a maas controlled network using dhcp or did your configured your preseed to use a static ip network with predefined ips? If you are using dhcp you should check the /var/log/syslog if you can find some dhcp requests from the bootstrapped server (cat /var/log/syslog | grep 'mac_of_bootstrapped_node' on cluster controller)


You can set the action to other values, such as shutdown, blank or interactive, by using gconf-editor.

First, install dconf-tools, then launch gconf-editor from the Dash.

Navigate to org.gnome.settings-daemon.plugins.power.

The two items of interest are lid-close-as-action and lid-close-battery-action. Click the existing value to change it.

To quickly change the action to shutdown when the lid is closed, open a terminal window and run

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

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


Using a live CD/DVD/USB seems like a workaround that may not be always applicable.
I believe that the correct answer how to have e2fsck updated is to compile latest version from the sources.

Download the latest version (1.44.3) from http://e2fsprogs.sourceforge.net/ and unpack in a directory and cd into it.

According to the INSTALL document:
 mkdir build; cd build
 ../configure
 make
 sudo make install

Check that you have new version now:
 $ e2fsck -V
 e2fsck 1.44.3 (10-July-2018)
 Using EXT2FS Library version 1.44.3, 10-July-2018

Note: you may need to install compiler and tools with apt get install gcc.
UPDATE 09/2020: Above link is official ext2fs informational microsite (non https protected), lastest sources are securely hosted on https://sourceforge.net/projects/e2fsprogs/. BTW author announced: "All users of e2fsprogs are urged to upgrade to the 1.45.6 version as soon as possible".


Install gnome-control-center-unity and you will get APPEARANCE  Menu in System Settings

To install gnome-control-center-unity open terminal and type :

sudo apt-get install gnome-control-center-unity


Why forwarding-only local caching bind9 instance queries 'root' zone servers?

I think you missunderstand the way that dig's trace mode actually works. Looking at dig's man page you get the following information:

+[no]trace
  Toggle tracing of the delegation path from the root name servers
  for the name being looked up. Tracing is disabled by default. When
  tracing is enabled, dig makes iterative queries to resolve the name
  being looked up. It will follow referrals from the root servers,
  showing the answer from each server that was used to resolve the
  lookup.

  If @server is also specified, it affects only the initial query for
  the root zone name servers.

Especially the last part makes it clear, that dig +trace @server will ask server about the root name servers, and will then take over and iterate the next level's nameservers itself.

However, I understand your wondering - I had to look it up myself ;)


Copy paste zip file between Host (windows 7) and Oracle virtual box (Ubuntu 14.04.3 LTS)

You can use WinSCP. It's a free SFTP, SCP and FTP GUI-based client for Windows, which lets you drag and drop files via an SSH-connection. Therefore you just need the tool on your Windows computer and a running SSH-Server on your Ubuntu VM.


How to speed up search for locally installed applications in Ubuntu 13.10's Unity Dash?

You can disable individual scopes in the Dash Plugins section of Applications Lens. Ubuntu 13.10 brought the Smart Scopes feature with lots of feature packed scopes. This may make Unity slow and resource hungry. But it brought a good thing too: you can now selectively disable individual Scopes from the Dash itself.

Previously, scopes could be disabled only by unchecking the corresponding schema entries using dconf or gsettings. This is not needed now as it can be done from Dash itself. As a more aggressive measure, you can uninstall the unwanted Scopes and Lens. These are packages named like unity-scope- or unity-lens-. For example, I usually remove unity-scope-musicstores and **unity-scope-video-remote* scopes and unity-lens-music and unity-lens-video. You may remove scopes and lens which use online search or the ones you don't need.

As suggested by Sushantp606 in this Answer you may disable Online Searches in Unity Dash. To do so, goto System Settings ▸ Privacy ▸ Search Results ▸ When searching in the Dash: Include online search results and turn it off.

Turning off Record Activity will affect all searches, both online and offline. Don't turn it off, unless you don't mind Dash not displaying recently used Apps, Files, Music, etc.

If you're experiencing slowness during the first search on Dash after startup, it's the startup delay of Dash. It'll speed up after a while. The second or subsequent searches will be fast. You may use preload or similar daemons to decrease startup delay.

Disabling Blur or changing to Static Blur can increase Dash performance,but won't do anything in particular to increase Search efficiency. For suggestions to improve Unity Dash performance on the whole,and not just with respect to Online Searches refer to How to speed up the Dash response? and How can I speed up the dash?


Surprisingly, that file /etc/default/grub/ doesn't seem to be provided by any package. I used dpkg -S /etc/default/grub, but it failed. However, you can copy the content of the default file from below. This file is same for Ubuntu 12.04 and 12.10.

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


When in the matlab bin folder did you run it with ./ ie ./matlab?

Also depending on how you copied it the file permissions and flags might be incorrect. Use ls -alto check if the executable flag is set. If it isn't you can set it with chmod +x matlab


Laptop with Ubuntu 12.04, connected to television with hdmi-cable wont show any content from pc on televison. Nothing happens

Do you have a proprietary video card?  I have an nvidia card.  I can't use the standard ubuntu display settings.  I have to have the proprietary drivers installed and use the nvidia X Server Settings dialog to choose the correct output.  I assume it may be the same with AMD video card.

It doesn't explicitly say HDMI output but when I have it hooked up, it gives me the option to choose a secondary display.


Why are windows going to top left of the screen?

Yeah by-default Ubuntu opens it in the top-left corner of the desktop. You can open it in the centre by doing the following:

Install CompizConfig Settings Manager from the Ubuntu Software center if the   application is not in your system. You could also install it from the terminal by typing:

sudo apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-plugins

Press Alt+F2 and type ccsm into the box, press Enter to run this program. (You may receive a warning to use this advanced tool with care.)
Select "Windows Management" from the left panel.
Click "Place Windows".
Change Placement Mode from "Smart" to "Centered", click "Back" and "Close".

Ideally, the window manager in Ubuntu should restore the last known position of an application window, but it does not do that unless an application remembers its own window position. (See reported bugs)


Ubuntu 12.04 LTS runs very much slower than 9.04

The joy of Unity (Gnome3). You may find it runs better with a lighter desktop environment like XFCE which can be installed by typing: sudo apt-get install xubuntu-desktop


Transfer files between Ubuntu 15.04 and Windows 7 via Ethernet

Try NitroShare ! Which will support Ubuntu as well as Windows

To Install:

sudo add-apt-repository ppa:george-edison55/nitroshare-dev
sudo apt-get update
sudo apt-get install nitroshare

For details click here


Boot menu (F12) options will not update/refresh its options, regardless of unplugged/newly plugged in bootable USB's

Finally found answers and a fix, all though I have not tried the recommended fix just yet, as I was lucky enough to have one of my BIOS options catered to a specific Parrot OS USB I had not formatted since using it as a bootable USB in said options menu, and after playing around with the boot options and reconfiguring the BIOS about +100 times I was able to finally boot up Parrot OS and got lucky the whole install procedure went fine.

However, if anyone else should not be so lucky, heres some quick info/the answer of my question Hopefully I save someone the headache as it was tragic experience coming across the explanation when it describes the bug not having been sorted out yet. I didnt find the fix until after I was able to luckily boot up Parrot.

Explanation as told by www.betanews.com:

"Ubuntu 17.10 corrupts the BIOS on some Lenovo, Toshiba and Acer laptops. ... The bug, which is labeled "critical" by the team behind Ubuntu, can cripple the BIOS on over 20 devices."

Solution proposed by dailylinuxuser.com:

http://dailylinuxuser.com/2018/01/how-to-fix-your-bios-after-installing-ubuntu-17-10-on-a-lenovo-laptop.html

May the force be w anyone else who becomes a temporary victim to this bug, as I thought I was stuck with Winblows 10 forever. You could have just shot me instead, Ubuntu 17.


Not exactly a question: whoopsie problems during dist-upgrade in saucy

I'm running Ubuntu 13.10 (i.e. Saucy) and have Whoopsie installed but don't have /etc/init.d/whoopsie OR /lib/init/upstart-job.

I'm also trying to create a custom Ubuntu 13.10 LiveCD and can confirm the above fix works when I run it in the chroot.


Try to insert a Ubuntu or any Linux install disk, select recovery, and try to partition the disk as NTFS from there. Afterwards, the disk should be read by a windows installer as a viable install HDD. use the below for help using the gparted formatting utility.

Format USB drive to NTFS so it is usable under Windows


Cannot clone git repository setup using filesystem permissions but can ssh

Ubuntu seems to support 3 different types of HostKey values.  On the server, I see:

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key

If I change this to:

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key

Then remove the entry (in ~/.ssh/known_hosts) on the client for the host, it will now use the dsa key.  Trying to ssh:

ssh i-git

Will revalidate the server, then the git commands will all work like a charm.  For some reason, git doesn't seem to recognize the ecdsa_key

Hope this helps someone...


How to fix missing panel in Ubuntu Studio 19.10?

try running xfce4-panel once on the terminal. Works for me. I don't even know why that happened to me at one time. Probably needs to be launched again because it suddenly crashed, and it didn't have a way on restarting the program.


How can I mount my iPhone 6s on Ubuntu 16.04?

Evidently I was wrong about being able to mount an iPhone on Ubuntu. You can perform this using the following steps on yakkety. Note, you would need the device to be jailbroken in order to load apps onto the device this way, but this method will suffice for getting media from the device.

Option 1: Using a script

If you want to save yourself some time, you can download a script here to do most of the work of the process for you.

Once downloaded, you will need to change the permisions so you can execute the script. Assuming you downloaded it with the default name, iphone_setup.sh, cd to the directory in which you downloaded the file and do

chmod u+x iphone_setup.sh

Convert the Windows line endings by doing

ex -bsc '%!awk "{sub(/\r/,\"\")}1"' -cx iphone_setup.sh

Then run the script with root privileges using

sudo ./iphone_setup.sh

This will complete all of Step 1 of the manual setup for you, as well as Step 3 and Step 4. You will then need to do Step 2 and Step 5 of the manual setup after the script finishes running.

Option 2: Doing it manually

Step 1: Installing the tools

Before plugging in the iPhone, you will need to install the several programs to make it possible to mount the iPhone.

Step 1.1: Installing several important tools with apt-get

Do the following in the terminal to install a few packages that will be needed for any version of iOS.

sudo apt-get install ideviceinstaller python-imobiledevice libimobiledevice-utils python-plist usbmuxd

If you are connecting an iPhone with an iOS version before iOS 9, you can skip the remaining substeps of step 1 and instead just do the following:

sudo apt-get install libimobiledevice6 libplist3 ifuse

Step 1.2: Installing tools for building

Use apt-get to install a few programs needed to build the programs in the following steps

sudo apt-get install libtool autoconf automake

Step 1.3: Installing libplist

First, install the required dependencies for building libplist. In order to do this, do the following:

sudo apt-get install libxml2-dev python-dev

Then download the latest version of libplist from GitHub, and extract the contents of the zip file to some directory.  For instance, if you are in the directory where you downloaded the libplist zip file, do unzip libplist-master.zip.

You should now have a directory called "libplist-master" in the directory to which you extracted the libplist zip file. cd into this directory from the terminal, and the run

./autogen.sh

When the ./autogen.sh script is done running, run

make

And, finally, run

sudo make install

Step 1.4: Installing libusbmuxd

This step is similar to the previous step, except we are installing libusbmuxd instead of libplist.

First, download the latest version of libusbmuxd from GitHub. Again, extract the contents to a directory, and cd to the directory libusbmuxd-master. Then run the following:

./autogen.sh

When this is finished, run

make

followed by

sudo make install

Step 1.5: Installing libimobiledevice

First, install the build dependencies by doing the following:

sudo apt-get install libssl-dev

Then download the latest version of libimobiledevice from GitHub. Extract as in the previous two steps; you should get a directory inside the directory to which you extracted called libimobiledevice-master. cd into this directory, and, again, run

./autogen.sh

When this is finished, run

make

followed by

sudo make install

Step 1.6: Installing a better version of usbmuxd

First, uninstall the old version of usbmuxd by doing

sudo apt-get remove usbmuxd

Then, install the build dependencies by doing

sudo apt-get install libimobiledevice-dev libplist-dev libusb-dev libusb-1.0.0-dev libtool-bin libtool

Then, download the latest version of usbmuxd from GitHub. Extract and cd to the usbmuxd-master directory. Again, run

./autogen.sh

When this is finished, run

make

followed by

sudo make install

Step 1.7: Installing ifuse

This is the last thing you will need to install!

First install, the build dependencies by doing

sudo apt-get install libfuse-dev

Download the latest version of ifuse from GitHub. Extract it to some directory, and cd into the directory ifuse-master, and cd into that directory.

This time there is an extra step in building the program. Do

./autogen.sh

as usual, but then do

./configure

as well. Then, continue on to the normal

make

and

sudo make install

Step 2: Running usbmuxd and attaching iPhone

This step is simple. Run usbmuxd in the terminal, and then plug in the iPhone.

Now check to see if the device was recognized correctly by doing

dmesg | grep ipheth

If nothing shows up, try disconnecting the iPhone, running usbmuxd again, and then plugging back in. Then check again.

Step 3: Creating a mount point for the iPhone

You can manually create a mount point for the iPhone by doing

sudo mkdir /media/iPhone

You will then likely want to change the permissions for the mount point. Do

sudo chmod 777 /media/iPhone

Step 4: Editing the ifuse configuration file

The ifuse  configuration file /etc/fuse.conf requires editing if you want to access the iPhone without being root.

Edit the configuration file using your favorite editor, for example gedit

sudo gedit /etc/fuse.conf

In the file ensure that the following two lines are under the line that says # Allow non-root users to specify the allow_other or allow_root mount options:

op$
user_allow_other

Save the file and quit the editor.

Step 5: Pairing the iPhone

Run the following line in order to pair your iPhone using idevicepair:

idevicepair pair

Step 6: Mounting with ifuse

Run the following line to mount the device at the mount point specified earlier:

ifuse /media/iPhone

NOTE: At this point you may mount the root filesystem if you have your phone jailbroken by doing the following line instead

ifuse /media/iPhone/ --root

The iPhone should now be accessible at /media/iPhone through your file browser.

When you want to unmount, do the following two lines

fusermount -u /media/iPhone/
idevicepair unpair

These steps were adapted for xenial from this tutorial at dedoimedo, then further modified to suit devices with iOS 9+.


Is there a FileVault alternative for Ubuntu

Encryption of your home folder is supported by Ubuntu out of the box. This is an option in the Ubuntu installer. See: EncryptedHome community wiki for more details.


execute shell script without entering password

Change the line in the sudoers file to:

kf   ALL=(ALL) NOPASSWD: /sbin/fstrim

I don't recommend, adding the script in /etc/sudoers, because the script can be altered and every command (the whole script) would then be executed with root privileges.


Why does ubuntu need reboot after upgrade but centos doesn't?

That is not true.

Ubuntu does not need a reboot after an upgrade/update of a kernel. It is adviced to do so so the new kernel become active but there is no "need" for it.

  And is it possible to safely run a ubuntu-server for a long time without reboot?

Our record for Ubuntu is an uptime of more than 7 years (yes, it ran far longer than the support from Ubuntu lasted).

===

Oh and CentOS also tells you to reboot when there is a change in kernel. See for instance: https://www.redhat.com/archives/rhl-list/2009-July/msg00195.html

  The kernel case is obvious; installing a kernel is useless without a reboot.
  But in other cases the new stuff will be used together with the old one.
  For example, replaced libs will be used by programs freshly started, and old
  libs will be used for programs already running.
  So, the reboot is not strictly required. maybe you may want to restart
  some services or applications.


laptop fails to suspend or hibernate (wakes up after 2-5 seconds without user interaction)

The following worked for me:

cat /proc/acpi/wakeup

Look for any items with status enabled that look like they don't belong there (for me, anything except LID0). Then disable them by saying, for example:

sudo sh -c "echo XHC0 > /proc/acpi/wakeup"

Check that the corresponding entries have indeed been disabled, send the laptop into suspend and hope for the best :)


Google Chrome update itself (without permission) on Ubuntu 12.04

When you install Google Chrome, it automatically adds its software source to your list of software sources.

This causes Ubuntu's package manager to automatically upgrade Google Chrome when a new version comes out.

If you want to stop this from happening, you can disable that software source.

The Graphical Way

Open the Software Sources window. One way to do this is to start typing Software Sources in the the Unity dash search box, then click on the Software Sources icon when it appears; another is to open the Update Manager (called the Software Updater in later versions of Ubuntu) and click Settings...

Click the Other Software tab. In the list, find the entry that says:

http://dl.google.com/linux/chrome/deb/ stable main

Uncheck the box to the left of it, to disable that entry. Now Google Chrome will not be automatically updated.

Alternatively, you may remove the entry (by selecting it and clicking Remove). Disabling it by unchecking the box is just as effective at preventing Google Chrome from being automatically updated, however.

The Manual / Command-Line Way

When you installed the google-chrome-stable package (after downloading it from Google), it enabled its software source for updates on your machine by creating a file called google-chrome.list in the directory /etc/apt/sources.list.d.

If you rename that file to google-chrome.list.save, the software source will be disabled (like unchecking it in Software Sources, as described above).

If you delete the file, it will be removed entirely (though disabling it is sufficient for preventing Google Chrome from being automatically updated.

You can rename or delete it in the Terminal or with the GUI (Nautilus, the file browser). To rename it in the Terminal, run:

cd /etc/apt/sources.list.d
mv google-chrome.list google-chrome.list.save

To delete it in the Terminal, run:

cd /etc/apt/sources.list.d
rm google-chrome.list

However you remove it, you may have to remove it again later.

If you install a newer version of Google Chrome, it will probably re-add its software source, and enable it. So no matter what method you used to disable it, Google Chrome will typically be automatically upgraded if you then subsequently manually upgrade it by manually installing the .deb package for a newer version.

Why does Google Chrome add its software source?

Because many updates to web browsers including Google Chrome include fixes for security vulnerabilities. Running a web browser with known vulnerabilities is unsafe. Many security exploits these days, like cross-site scripting exploits, don't depend on what operating system you run. Running Ubuntu instead of Windows does not protect you very much from many browser security bugs.

Since it is usually dangerous to run an old version of Google Chrome, installing Google Chrome also enables its software source so that it is automatically updated.

Therefore, you may wish to reconsider if you really want to prevent Google Chrome from being automatically upgraded when a new version comes out.


Where does sshd default configuration come from?

Even with an empty sshd configuration file, sshd has a default set of options that it will use out-of-the-box. To see learn more about these options, run man sshd_config. The page has the options (keywords) available, and often, what the default values are.

The /etc/ssh/sshd_config is provided with these default options commented out to make the job of the system admin easier.


There is an app called Soundwire for Android.  I have never used it and I am not endorsing it.  However, it claims to be able to do what you want.

"SoundWire lets you send any music or audio ("what you hear now") from your Windows or Linux PC to your Android mobile devices."

https://play.google.com/store/apps/details?id=com.georgie.SoundWireFree&hl=en


ATI Radeon Mobility X1600 drivers installation

The Unofficial AMD Linux Driver Wiki says:

  ATI Radeon 9500-9800, Xpress200-1250, 690G, 740G, X300-X2500, Mobility RadeonHD 2300 If your card is on that list, you are limited to open-source drivers on Ubuntu Lucid/10.04 (and later). If you really need the proprietary Catalyst/fglrx driver, you will have to use an older Linux distribution, such as Debian Lenny/5.0.x or Ubuntu Hardy/8.04.x. NOTE: If you enter your card information on AMD/ATI's driver page, it will offer you the Catalyst 9-3 driver to download. However, the Catalyst 9-3 driver doesn't support X servers past 1.5, and it will not work with Precise (or anything later than Lucid/10,04)! !!!SO BE CAREFUL!!! If you tried to install Catalyst on a system with one of these cards, see the 'Removing the Driver' section to restore the default/pre-installed drivers.

This maybe include the ATI Radeon Mobility X1600 graphic card. It means that your card isn't supported anymore by the proprietary Fglrx driver. But you card is supported by the open source Radeon driver:

  RV530/RV560                 Radeon X1600/X1650/X1700

so your card should work.

If the output from this command: lspci -nnk | grep -i vga -A3 | grep 'in use' is: Kernel driver in use: radeon, your Radeon graphic driver is loaded.

See:

Which features the Radeon driver provides for your card. I think your card belongs to the R500 family.
How to perform a detailed and quick 3D performance test


Turns out this is a bug that's been around for years, if this issue is anything to go by. Several users in the comments of that bug claim that installing the gamin package solves this issue.
I haven't done any extensive testing, but it seems to be a solution. Running sudo apt install --reinstall lighttpd normally shows that it fails to start lighttpd. However, after installing gamin, the output looks like it normally would for any successful package installation. systemctl status also shows lighttpd as active and running now.
Note that the package libfam0 gets removed when installing gamin. I don't know what it's for, or what packages may depend on it, so keep that in mind, unless someone else can comment as to its usefulness and necessity.


How to make Ubuntu use both graphic cards

Solved! Using intel microcode and installing all the updates did the trick for me.


Boot the install to an older kernel (it should be "previous linux versions")

Remove and re-install the new kernel.

You could try:

sudo apt-get -f


I would use Clonezilla
Get a Clonezilla iso file, make a USB boot drive, and boot from it.
See the documentation on clonezilla.org.
Use Clonezilla to clone the whole drive. This will work if

the target drive is at least as big as the source drive. You can check that (if the sizes are nominally the same) with
  sudo parted /dev/sdx u B p

where x can be for example a (/dev/sda) and b (/dev/sdb) for the two drives. The target drive must not be one single byte smaller than the source drive.

the physical sector sizes of the two drives are the same. You can check that with
  sudo parted -ls

if the drive sizes are different, and the partition table is GPT, you must also repair the backup table at the end of the drive. You can do that manuall with gdisk or with the shellscript gpt-fix

Clonezilla is smart enough to copy/clone only the used data blocks on the drive and skip unused blocks, so it is faster than cloning with dd, particularly when there is a lot of unused drive space (as in your case).
Clonezilla is also safer than dd, because it has a user dialogue that helps you to check and double-check that you will clone to the correct target device. dd does what you tell it to do without questions. A minor typing error can make you overwrite the family pictures.

Please notice that Clonezilla can

clone a drive to another drive of at least the same size
create a compressed image (a directory with a number of files)
clone a partition and create an image of a partition
restore from a compressed Clonezilla image to a drive of at least the same size
work locally or via a network


Hash Sum Mismatch while updating libcairo2

I think this issue will be fixed soon, but for now you can go to Software & Updates, activate "Other Software" tab and deselect this one https://download.01.org/gfx/ubuntu/16.10/main

I just tried it, and it works. You can enable it later (day or two) and try to update again.


how to delete an app that says "books" in the software catalog via terminal?

It sounds like this may be the package you're describing.

The package name is gnome-documents, and you can check to see if it is installed on your system by running dpkg -l | grep 'gnome-documents' in a terminal.

Note that the screenshot is taken from the older Ubuntu Software Center which can be installed with sudo apt install software-center, not to be confused with the newer Ubuntu Software which is the ubuntu-software package. I like the older Ubuntu Software Center better for a number of reasons, one of them being that it shows the name of the package when you click the More Info button.


I used this for a while, it doesnt have to many feature but it does it job for managing modules and virtualhosts.

  Rapache is a simple tool for
  remotely managing and configuring an
  apache2 instance without having to
  hassle around through configuration
  files.


I accidentally deleted my home folder and Trash bin (Ubuntu 12.04)

Try this command:

echo '[Desktop Entry]
Name=Files
Comment=Access and organize files
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --new-window %U
Icon=system-file-manager
Terminal=false
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Utility;Core;
MimeType=inode/directory;application/x-gnome-saved-search;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.6.3
Actions=Window;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus

[Desktop Action Window]
Name=Open a New Window
Exec=nautilus --new-window
OnlyShowIn=Unity;' | sudo tee /usr/share/applications/nautilus.desktop

then

sudo chmod o+x /usr/share/applications/nautilus.desktop


Grub boot loader menu not showing in dual boot, but individual loader contains different OS

Enabling BIOS/CSM/legacy support was a mistake. For all the gory details, see my Web page on the subject.

Instead, you should have looked into overcoming your problems booting the installation medium. Chances are it was improperly prepared -- some tools don't copy the EFI-mode boot loader from the .iso file to the USB flash drive; and sometimes there are quirky incompatibilities between specific tools and specific computers. The page I just referenced includes a section on this subject, so read it for details. The short version is that Rufus and the standard Linux tool dd generally do the best job, in my experience.

Thus, one way to fix your problem is to disable the CSM in your firmware settings, re-create your installation medium, and re-install Ubuntu. This approach is overkill from a technical perspective, but is likely to be the easiest solution, given that you haven't yet used Ubuntu much. If you're averse to an "overkill" solution or if you've spent much time customizing your settings or creating Ubuntu-specific data, though, you may prefer to install an EFI boot loader for Linux to replace the BIOS-mode boot loader you've got now. The two ways to do this that are likely to be easiest are:

Boot Repair -- The Boot Repair tool can re-install GRUB to your computer. You'll have to run this tool from an EFI-mode emergency system, though; running it from your current BIOS-bootable installation will be completely pointless. Thus, you'll need to disable your CSM, or at least learn how to control your boot mode.
rEFInd -- You can install my rEFInd boot manager, which is an EFI-mode boot manager. You can install it manually from Windows, which is likely to be awkward; or you can download the USB flash drive version of rEFInd, use it to boot Ubuntu in EFI mode, and then install the Debian package or PPA to install it permanently on your hard disk. One caveat is that, if Secure Boot is active, you'll need to disable it, and if you want to re-enable it, you'll need to jump through some hoops.


How do I lowercase/uppercase strings with a shortcut in the terminal?

Bash (readline, actually) does have support for this. Check the list of readline commands for text:

  upcase-word (M-u)
  Uppercase the current (or following) word. With a negative argument,
  uppercase the previous word, but do not move the cursor.

  downcase-word (M-l)
  Lowercase the current (or following) word. With a negative argument,
  lowercase the previous word, but do not move the cursor.

  capitalize-word (M-c)
  Capitalize the current (or following) word. With a negative argument,
  capitalize the previous word, but do not move the cursor.

M here is the Meta key, which is usually Alt.


nm-applet missing after installing Ubuntu under virtualbox

It looks like the applet cannot comunicate with network-manager, the service that manages the network. The most likely cause is that it is not running or not installed.

If it is installed but not running, try:

sudo service network-manager start

If it is not installed, you can install it with:

sudo apt-get install network-manager network-manager-gnome

The gnome tools are likely already installed, but it never hurts.


run this command to remove broken packages in ubuntu.

sudo dpkg --remove --force-remove-reinstreq package_name

after removing package update your system with command

sudo apt-get update

restart system after successfully updation.


Do you have a graphics card install. Click the unity button, then go to additional hardware, make sure you have a graphics card, or a driver installed.

from your screenshot, can't tell if it is a font issue or a graphics issue.
If it is a font issue, try this:
all that means is you installed the fonts to ~/.fonts or somewhere in your local user folders and it is not accessible to all users.

https://wiki.ubuntu.com/Fonts

you have 3 main ways of installing fonts, the first one is the one that is causing you issues. the second way is to install them using ubuntu software center. and the 3rd way is to do it manually. I recommend you to do the following steps.

You will need to enable the Universe and Multiverse repositories
sudo apt-get install ubuntu-restricted-extras

this will install all the windows fonts and they should be accessible to all users.


Installing Eclipse (new) on Ubuntu 16.04 (Xenial Xerus)

I am assuming you extracted the Eclipse tar files in /opt. If yes, then try making the Eclipse file (the one which says 'open') executable with sudo chmod +x eclipse in the terminal.


Actual Refresh Rate is 40Hz when Refresh Rate set to 60Hz in System Settings and xrandr

Refresh Rate and Frames Per Second are two different things.

Refresh Rate refers to the frequency at which the pixels that make up the view on the screen are updated (i.e. Refreshed). On a static picture, the refresh is not noticeable because the newly displayed pixels are the same as previous pixels.

Frames Per Second is a measure of how often the screen picture is changed to create motion.  You can think of it as the pages of cartoon drawing on paper in which each piece of paper has the drawing change slightly, so that as you flip through the pages (frames on the computer screen) you perceive motion.  The faster the Frames Per Second the smoother the perceived motion.

There is another explanation here. FPS vs Hz


Trying to get split tunneling working with OpenVPN, using a tutorial, but I'm getting "route-up" exiting with error code 1

You've probably figured out the issue by now, but I had the same problem, so I'll just post what fixed things for me, in case anyone else comes across this.

  I changed the line dev tap to dev tap1, to force the virtual device to be tap1 instead of being assigned by OpenVPN, again because of running a separate OpenVPN server. Even if you're not running a VPN server, this change shouldn't matter. The firewall scripts have been written to use tap1, so if you would rather use another device then remember to change those scripts where appropriate.

I'd missed this bit in the instructions, so I hadn't replaced the occurrences of tap1 in each location. Also, I needed to switch from tap to tun, as I was getting warnings about config differences between the local and the remote (PIA). If you have any other issues, you should be able to get more detailed info in the logs for upstart (/var/log/upstart/).


I ended up finding another issue with a similar problem. Turns out I needed to activate the conda r-reticulate environment.
Take a look at a similar question here:
https://stackoverflow.com/questions/63220597/python-in-r-error-could-not-find-a-python-environment-for-usr-bin-python


My bash function runs only once per terminal opened

The getopts builtin keeps track of how far it's gone through the options through the OPTIND variable. The second time you run the function, $OPTIND has retained its value from the previous call, so the shell thinks it's already finished processing the options. See the description of getopts in the manual for more information.

Declare OPTIND and OPTARG as local to the function.

There's another mistake in your function, which is that ~ isn't expanded between double quotes. Make that local cdir=~/mydirectory or local cdir="$HOME/mydirectory"


Shell looks for executables and scripts that reside in the folders specified in PATH. bin is an abbreviation of binaries and it should contain executables (which can be scripts as well), not folders containing executables. Consider moving executables out of the screenfetch folder. In short, currently in your system, the screenfetch script is in /usr/local/bin/screenfetch/ but it should be in /usr/local/bin.
Alternatively, you can add /usr/local/bin/screenfetch/ in PATH which would be make shell to look inside that folder too.


com.canonical.indicator.sound visible key is gone

It turns out that the indicator-sound package was missing. This probably occurred as a result of purging pulseaudio to fix its issues. Reinstalling it immediately made it available.


If you don't specify a subdirectory the file chooser defaults to your user's home directory, which is where your file manager defaults to.

Click on the file manager (the folder icon on your launcher) and you should find out.ogv sitting in that directory.


How to render 3D models as SVG vector graphics? (planar projection)

You have two options:

Option 1

The first requires a recent builds of Blender (available from Graphicall), which can now use the Freestyle rendering engine

  Freestyle is a software for Non-Photorealistic Line Drawing rendering
  from 3D scenes.

Within Freestyle there exists a plugin, SVGWriter, that can write Blender scenes to SVGs. Instructions for usage are available on that page. Below is an example of its output:

Original Blender render:

Freestyle SVG output:

Freestyle is still in development and you can follow its progress on their blog.

The still image SVG writer in SVGWriter currently only renders one image i.e. you can't render each frame to an SVG. I've rewritten the script to do this, and the author has informed me that my modification will be integrated into the main download in a future update. Here is the modification

Option 2

The second option only allows you to render bezier curves. First, you must install svgwrite for Python 3. You can do this by going into the folder and running

sudo python3 setup.py install

You may need to copy the svgwrite folder into .blender/version_number/python/lib/python3.2/

You then need to download SVGwriter for Blender. Install Git and then run

git clone git://gitorious.org/blender-2-6-svg-export/blender-2-6-svg-export.git

Inside the downloaded folder you will need to copy the Python scripts (those ending in .py) and overwrite the ones located either in ./blender/[version_number]/scripts/addons/io_curve_svg/ or in /usr/lib/blender/scripts/addons/io_curve_svg/ .

Finally, in Blender, draw your bezier curve and then go to File > Export > SVG. Here's an example of the output

Original Blender curve

SVG output. The line thickness was increased for clarity


Yeah, you need a .desktop launcher. This will run on double click (but needs to be made executable first).

[Desktop Entry]
Version=1.0
Name=Scripttorun
Comment=My Script
Exec=command-goes-here #or /path/to/script.sh
Icon=/path/to/icon/if/you/want
Terminal=false # change to true to see the output
Type=Application

Kudos Javier Rivera, with this answer

Or alternatively:

Your script possibly is running. Just not in a terminal (I'm not sure about this, I may be wrong. Have a look in system-monitor, to see if the script name is there. It is for me.)

Suppose this is your script:

#/bin/bash

command-to-execute-which-has-output

try this instead:

#/bin/bash

gnome-terminal -e "command-to-execute-which-has-output"

that will open it in a terminal when you double click.


The first couple of times you experience bug 862003 (which means the install was actually successful). The last time you had the extraction error. Not sure about that.

My advice:

Download the desktop CD ISO from here
Save it in the same directory as wubi.exe from here
Run wubi.exe. It will find the ISO and use it.

That avoids bug 862003 as well as the extraction error (and you only have to download the ISO once - plus you can use it to create an Ubuntu CD/USB).


How to configure Remmina for VNC desktop sharing?

To use VNC, you must have a VNC server installed and running on the machine.

sudo aptitude install vnc4server

Follow the instructions

You will require a password to access your desktops.

Password:
Verify:
Password too long - only the first 8 characters will be used
xauth:  creating new authority file /home/server/.Xauthority

New 'server:1 (root)' desktop is server:1

Creating default startup script /home/server/.vnc/xstartup
Starting applications specified in /home/server/.vnc/xstartup
Log file is /home/media/.vnc/media:1.log

Now you can connect to this machine using Remmina on the other machine.

Reference: Install VNC Server and VNC Client on Ubuntu


Deactivate the «disable touchpad when typing» feature.

In Ubuntu 18.04, at the command line (e.g. in an xterm):

Find id m of touchpad device, called e.g. «Elantech Touchpad»:

xinput --list

Find property id n, probably called «Disable While Typing Enabled»:

xinput --list-props <m>

Deactivate it:

xinput --set-prop <m> <n> 0


This is pretty unusual, and you are most likely correct that the problems are all related, and are not caused by any of the individual symptoms.  From what you've described, I'd certainly be looking at a hardware problem, such as a bad memory chip.

I would start with the Memtest86 bootable program, and let it run all the tests for a while.  You should have a copy at the Grub startup menu, I think.

If that doesn't show any problems, you should look at your Hard Disk drive.  Make sure SMART is enabled, then take a look at the statistics in the disk utility, under SMART Data.

There may be something in the logfiles that can give a clue if all else fails.


Nautilus and nemo wont display directories in Home directory since new update for 16.04 for Spectre, Meltdown vulnerability

Thanks to JoKeR I installed Kernel 4.8.xx using Ukuu and it's working normally again here's a link in-case someone runs into something similar. http://www.omgubuntu.co.uk/2017/02/ukuu-easy-way-to-install-mainline-kernel-ubuntu


Gnome shell extenstions have to be turned back on after reboot

GNOME 3.12 isn't available by default in Ubuntu repositories for 14.04. You must have installed GNOME 3.12 from the Staging PPA of the GNOME Team. They warn that:

  The packages here have been deemed not ready for general use, they have known bugs and/or regressions, sometimes of a critical nature. Mostly things should run smoothly but be prepared to use ppa-purge, when you encounter issues!

So you should report a bug about it as mentioned on their Launchpad page.

However, the workaround that you may try is as follows:

Enable all the extensions you wish to be enabled at boot.
Then, run the following command:

$ gsettings get org.gnome.shell enabled-extensions

This would list all the extensions that are enabled currently. For example, the output for me is:

['apps-menu@gnome-shell-extensions.gcampax.github.com', 'places-menu@gnome-shell-extensions.gcampax.github.com', 'window-list@gnome-shell-extensions.gcampax.github.com']

Now, create a file called enable_gnome_extensions.sh inside ~/bin folder with the following text in it:

gsettings set org.gnome.shell enabled-extensions "<output_of_earlier_command_listing_enabled_extensions>"

For example, I would put the following line for my enabled extensions:

gsettings set org.gnome.shell enabled-extensions "['apps-menu@gnome-shell-extensions.gcampax.github.com', 'places-menu@gnome-shell-extensions.gcampax.github.com', 'window-list@gnome-shell-extensions.gcampax.github.com']"

Make this file executable with the following command:

$ chmod +x ~/bin/enable_gnome_extensions.sh

Add this file to your Startup Applications for it to be executed at login. Follow this answer for how to do it. The "command" would be the path to that file.

Reboot to test if it works.


Right mouse click not working on Kubuntu 17.10

I have the same issue on my lenovo ideapad 320e. Previously, editing /usr/share/X11/xorg.conf.d/50-synaptic.conf worked but the file is missing here altogether in ubuntu 17.10.

Alternate solution:

Simulate a right mouse click.

Go to Universal Access in Settings > Go to Click assist > Switch on Simulated Secondary Click > Adjust the primary click duration to trigger right click and you're set.

Hope, it helps for the time being.

EDIT:
BTW Did you try double finger right click?
Just tap on trackpad using two fingers.


Why is libjs-jquery required by ruby2.3?

Oh, I found it.  It is used by rdoc, as can be seen by searching the ruby sources

e.g. the first search result is:

lib/rdoc/generator/template/json_index/js/searcher.js

Showing the top two matches Last indexed on 26 Jun

JavaScript

    return jQuery.grep(query.split(/(\s+|::?|\(\)?)/), function(string) {
      return string.match(/\S/);
    });
  }

  function buildRegexps(queries) {
    return jQuery.map(queries, function(query) {


If you want everyone in the group 'xyz' to have write permissions to that directory, you need to change the permissions to 775 instead of 755. 755 will allow users within group 'xyz' to read and execute the directory but not write to it.

Run the following command to fix this:

chmod 775 /path/to/folder

More reference on file and directory permissions:
linux.com - Understanding Linux File Permissions

...also:
Ubuntu Community Help Wiki - FilePermissions


I contacted the ISP and they sent a new router, everything is fine now.


Troubleshooting a wireless connection that drops out regularly

I use IwScanner to figure out channel usage in my neighbors, and my access point power in different location in my apartement.

Anyway usual check could be :

Bad wireless phone can disrupt wireless connection.
Reinforced concrete wall / wiring configuration could block the signal.

Other than that you seem to point to a driver bug, then we could get more informations with the chipset of your usb adapter, and then dig deeper into the issue.


Why is Nautilus drag and drop file copy from optic media so slow?

Rsync is generally faster than cp or SCP because of how it operates even on non optical drives. Checkout this question.


How is the [OK] or [FAIL] column created?

What are those ?

Those fancy OK/FAIL messages that you see are actually boot messages that are output to TTY1 during the boot process. Typically, while the boot process is ongoing you can see those messages instead of the pretty boot logo by pressing the Esc key. Same thing can be done during shutdown process. The screen is typically supposed to be cleared once the boot process is complete, but that doesn't always happen ( for variety of reasons, one of which could be that the messages appear at one speed or baud rate and the TTY1 is then set to be at different baud  rate)

To answer your question, that technically is not a shell, but a separate program, namely the systemd init system that puts out those messages ( in pre-15.04 that would be upstart init system ). If you're just starting to learn Linux, don't worry about systemd, but this is a very good topic to know because systemd is what supposed to start all the important services on the system.

How can I do this by myself ?

Technical aspects of writing these types of messages are simple: you can use "\r" control character and special escape sequences to make output of certain color. These control characters can be used in any programming language, whether it is C or shell script. In fact, I've answered a related question before, and have written a simple script to demonstrate  how one can print status message. As for color, see The Linux Documentation Project's article about colorizing the scripts


Interrupted installation of Ubuntu leads to endless restarting

Just restart the installation from the start. Probably the installation got half finished and didn't complete. Also, remember to leave your portable devices connected to AC always that you are installing something big, like an OS.


Unity Crashes :: Top and Side bars missing

The easiest thing to try first is to reset Unity and compiz.
 Enter enter the terminal the following commands:

sudo apt-get update
sudo apt-get install dconf-tools

Followed by:

dconf reset -f /org/compiz/


Lenovo IdeaPad U410 - multitouch support

To determine what your trackpad is supporting you can use the following:
xinput -list
xinput list-props "SynPS/2 Synaptics TouchPad" | grep Capabilities

Replace the string with the model of your trackpad. Compare the output with the following:

From left to right, this shows:

(1) device has a physical left button
(0) device does not have a physical middle button
(1) device has a physical right button
(0) device does not support two-finger detection
(0) device does not support three-finger detection
(1) device can configure vertical resolution
(1) device can configure horizontal resolution

Taken from Archlinux Wiki


You can bookmark the page first via 'Bookmarks'->'Add bookmark' menu before doing your search. After the search, just select it from the bookmarks menu and it will take you back to that page.

NOTE

As of now, there is no interface to delete them once added. See this.
However, this question has already addressed the issue and provided a way out.


Bash: changing file extentions of all files in a directory and copying odd lines

#!/bin/sh
cd "$1" || { echo "Couldn't cd to directory $1.  Quitting." ; exit 1 ; }
for fname in *.txt
do
    awk 'NR % 2 == 1 { print; }' "$fname" >"${fname%.txt}.bat"
done

Put the above in a file and make the file executable (chmod +x yourfilename).  Now, run this command with the directory that you want to operate on as the first argument.

The script changes to the directory you request (cd "$1").  If that fails (the directory doesn't exist), then the script exits with an error message.  If cd "$1" succeeds, then the script goes through each .txt file in the directory, selects the odd lines (NR % 2 == 1) and writes them to a file with same name except with extension ".bat".


Crossover connection between two Ubuntu PCs using samba very slow

Reading your question I first thought : why samba ? it's a very inefficient way for transferring files.

Bit of explations :

the CIFS protocol "eats" a lot of your bandwidth. It's worst case senario is a lot of small files. If it's the case then it's a normal speed. (small is something under 10MB)

if it's the case here is why :

It all depends on your transport layer. You compared Ethernet+CIFS protocol to USB2+NTFS(OR FAT32) protocol.

First of all we have two distinct kind of way of managing your files here.
The first one (CIFS) is at file level and the second one (NTFS) is a block level.

At a performance point of view it means that CIFS has less performance because it has to use some block level manager to work correctly (if your Ubuntu is installed with defaults, it goes via EXT4).

Conclusion : At system level, CIFS has to go through via more layers than a USB2 Hard Drive (and that is why, with the same available bandwidth, you'll never have the same speed)

Then, about the "lot of small files effect" :
As I've said at the beginning, CIFS is poorly designed.
For each file or folder, CIFS has to do more than 10 communications (it varies depending on circumpstances) between the two PCs.
Let's imagine that you have 5000 files of 1KB each and the latency between the two PC is of 1ms.
That means that your transfer rate will last : 5000 files * 1ms * 10 = 50000 ms or 50 seconds witch means that your speed is : 5000 KB / 50seconds = 500KB/sec

Now in real case the latency is less than 1ms and you uses files over 1KB. A more realistic way would be (for files of 1MB) :

5000 files * 0.1ms * (10 + (2*1048576/1500)) = 704051 ms or 705 seconds so 7MB/sec

1500 is the default maximal data that you can send (the MTU). So your files are cutted by multiples of 1500.

Of course those are theory and are to be considered as ideal and does not take in consideration the available bandwidth (1Gbps, 100Mbps, etc)

In your specific case :

you have extremely slow result. I hope you can explain it via the explanations given at the beginning.

If not you need to check for some troubles at the network layer of one of your ubuntu.

First of all check the ifconfig result for both (open a terminal and type ifconfig). Here is mine :

eth0      Link encap:Ethernet  HWaddr 00:15:c5:5f:9e:be
          inet addr:192.168.0.14  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4392375 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3493073 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4910280244 (4.9 GB)  TX bytes:757387998 (757.3 MB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:629 errors:0 dropped:0 overruns:0 frame:0
          TX packets:629 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:39732 (39.7 KB)  TX bytes:39732 (39.7 KB)

My default interface is eth0. You have to take care of "errors,dropped,overrun and collisions" that stay at 0.

If not the case and you haven't touched the MTU of the interface (1500 is the default) then you can have

a trouble with either the cable or one or both machine's interface.
(mostly if error or dropped is different of 0)
a trouble with your interface configuration in both machines

For the first one try to change your cable
For the second one, considering that it's eth0 and no more than eth0 is connected, type this :

Machine A : sudo ifconfig eth0 172.16.10.1
Machine B : sudo ifconfig eth0 172.16.10.2

then access your shares by using the IP of each machine instead of names (eg 172.16.10.2 when you are on machine A)

You can also put steroids on your samba (tweaking your smb.conf or enabling jumbo frames). But I advise you not to do so because it will hide and not fix your performance trouble. (you may go faster but still going slower than you must)

There can be a lot of other things. Those are the regular. please update me in need of more information.


Danger of running infected .pif file with Mono

As @bodhi.zazen mentioned, if you executed the file as a normal user, it is very unlikely to infect your system. It may affect the files you store in your home folder (such as deleting them or uploading them to a remote server), but apart from that, no other impact is likely.

What you could do is to upload your .pif file to an online virus scanner such as VirusTotal to determine if it actually is a virus and its mode of operation.

But again, it is unlikely to have affected your system. If it was a virus that targeted something specific in your Linux home folder (for example, your ssh keys), it would not have been distributed as a Windows-based .pif file.

EDIT:

Regarding your added question: Yes, it is possible that that mono will execute such a delete command. However, from the description in the VirusTotal link, it seems it is more an adware trojan than something that destroys your data. If you didn't notice any missing files, I think you are quite safe.


There's a lot of .pcb tools in Ubuntu that you can use to see that file:
Leon
Leon Heller
G1HSM
Kicad - looks pretty good, info here

sudo apt-get install kicad

gEDA
EAGLE from CADSOFT
Altium
Instalation for Altium (Wine is required)

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5

wine1.5 is beta version, if you want stable choose wine1.4
After Wine is installed, download Altium and install it normally, like you woould on windows.
Altium Designer 10 is reported working in WineHq.
Circad demo


Ubuntu 13.04 installer hangs on "Configuring bcmwl-kernel-source"

Don't use No Substitute's example! Modprobe wl may not have a pid of 29798 on your system. It did on mine.

Run this to find the pid of modprobe wl:

ps -eaf | grep modprobe

That should give you an output of something similar to this:

root     29798 29126  0 08:59 ?        00:00:00 modprobe

Take the first number after root, in my case 29798, but it will be different for you, and then run:

sudo kill -9 29798

That will kill the modprobe wl process and move on to the next step in installation.


Using grep with PCRE (-P):

grep -Po '.*/\K[^.]+' file.txt

The desired portion is extracted by [^.]+, .*/ matches the portion before abc and \K discards the match.

Example:

$ cat file.txt
https://git.centos.org/git/rpms/abc.git
https://git.centos.org/git/rpms/abc.git/
https://git.centos.org/git/rpms/abc

$ grep -Po '.*/\K[^.]+' file.txt
abc
abc
abc

Similar logic using sed, using pattern grouping:

$ sed -r 's#.*/([^.]+).*#\1#' file.txt
abc
abc
abc


is the package of gir1.2-webkit-3.0 gonna be inUbuntu 20.04

The package has been deprecated in favor of gir1.2-webkit2-4.0. Are you using an old plugin? You can check with its developers if they can update the plugin.
You can try installing the package by downloading it from the Ubuntu 18.04 repositories. https://packages.ubuntu.com/bionic/gir1.2-webkit-3.0
(scroll down and download the amd64 version)


How to hide side panel in Nautilus by default?

There is a setting for it in 14.04, but I am not sure about 16.10. Nautilus has changed a lot in recent years.

Try

gsettings get org.gnome.nautilus.window-state start-with-sidebar

the output should be true, when the sidebar is visible, or false, when not.

To hide the sidebar, run

gsettings set org.gnome.nautilus.window-state start-with-sidebar false

Needless to say, it should now be trivial to unhide it:

gsettings set org.gnome.nautilus.window-state start-with-sidebar true


I don't know the [sudo] user password to install software

The sudo command is used to temporarily give members of the sudo group privileges similar to the one root users have. When setting up Ubuntu you are asked to provide a password to proceed with installation. That is the password needed here.

Note it won't be seen on the terminal when typing as this prevents any one around from looking over your shoulder and seeing it.

That is the password that will be asked of you whenever you want to carry out any tasks that required elevated user privileges, like in this particular case.


Look into /etc/NetworkManager/NetworkManager.conf and change the line managed=false to managed=true then restart network-manager:

sudo service network-manager restart


Unable to install LangugeTools extension for LibreOffice

The issue here is outdated java runtime, this plug in requires JRE8.

To install JRE8 run this commands in terminal

sudo apt-get install openjdk-8-jre

You may also need this package

sudo apt-get install libreoffice-java-common

Source and other troubleshooting tips.


The first part of your problem is that you have disabled unstable PPAs or repos. Please take a look at this post for additional information. This would be the first step in solving your issue.

After you cleared up that, please enter the following into a Terminal window.

 sudo apt-get remove --purge vlc-nox
 sudo apt-get autoclean
 sudo dpkg --configure -a
 sudo apt-get -f install
 sudo apt-get autoremove
 sudo apt-get update
 sudo apt-get dist-upgrade
 sudo apt-get install vlc

Another recommendation would be using the official VLC repo than the Ubuntu one. These are kept up to date and are a lot more efficient in my opinion. If you want to do that, please enter the following below:

 sudo add-apt-repository ppa:videolan/stable-daily
 sudo apt-get update && sudo apt-get upgrade
 sudo apt-get install vlc


Error after installing Ubuntu 12.04 using Wubi

Try uninstalling Ubuntu from within Windows. Then, re-download the Wubi installer and reinstall Ubuntu.


USB Live Pen Persistent Boot disk- in UEFI

Make persistent live systems boot in UEFI and BIOS mode

mkusb can create persistent live systems with Ubuntu and Debian (including Ubuntu community flavours and several (but not all) distros based on Ubuntu and Debian.

It is possible to make these persistent live systems boot both in BIOS and UEFI mode, both from 64-bit and 32-bit iso files.

Links

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent

Demo example

I made an Ubuntu 16.04.1 LTS persistent live drive in a USB 3 128 GB pendrive. This pendrive has been used a lot, and is getting slow, but it is still working. (I think I will soon 'wipe the whole device' to make it faster again.)

Here is the 'console output',

$ dus ubuntu-16.04.1-desktop-amd64.iso
 dus 12.3.0
live system or temporary superuser permissions
Drive that contains source file: /dev/sdc
Live drive, that is booted from: /dev/sda
Drive with a partition in fstab: /dev/sdb
cands=1
sdd
SanDisk_ExtremePro
119,2G
usb
USB or memory card
p_target: target=/dev/sdd
settings=
percent=90
Prepare  persistent live  system from
'ubuntu-16.04.1-desktop-amd64.iso'
to the target device (drive) '/dev/sdd'
MODEL            NAME   FSTYPE  LABEL      SIZE
ExtremePro       sdd    iso9660 TinyCore 119,2G
                 └─sdd1 iso9660 TinyCore    14M
ubuntu-16.04.1-desktop-amd64.iso
/dev/sdd
90
settings=
-----
live system or temporary superuser permissions
ubuntu-16.04.1-desktop-amd64.iso
/dev/sdd
90
settings=
source=ubuntu-16.04.1-desktop-amd64.iso
target=/dev/sdd
percent=90
msdos=false
upefi=false
dni=false
source=ubuntu-16.04.1-desktop-amd64.iso
ls -l  ubuntu-16.04.1-desktop-amd64.iso
-rw-r--r-- 1 olle olle 1513308160 aug 30  2016 ubuntu-16.04.1-desktop-amd64.iso
---------------------------------------------------------------------------
start [dus-persistent 12.3.0] @ 2018-04-17 20:14:09
---------------------------------------------------------------------------
Making a USB boot drive or memory card ..........................
running operating system:  ubuntu
grub_n_iso "$source" "$target" "$result"
grub_n_iso ubuntu-16.04.1-desktop-amd64.iso /dev/sdd
***** tu=/dev/sdd ****************************************************
selected target partition table: 'gpt'
dus-persistent wants the program 'usb-pack-efi': wanted in order to install 'persistent live'.
 dus-persistent 12.3.0 wants usb-pack-efi but it is not installed.
wanted in order to install 'persistent live'.
mount: /dev/loop0 is write-protected, mounting read-only
 Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64
mount: /dev/loop0 is write-protected, mounting read-only
select_boot_system: usb-pack_efi is available
select_boot_system: usb-pack_efi: using variable 'upefi=false'
item 00
'ubuntu-16.04.1-desktop-amd64.iso' is identified as the source ISO file

MODEL            NAME   FSTYPE  LABEL    MOUNTPOINT   SIZE
ExtremePro       sdd    iso9660 TinyCore            119,2G
                 `-sdd1 iso9660 TinyCore               14M

Using the file '/usr/share/mkusb/grub.cfg'
item 10
Clean for a GUID partition table
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************

Warning! Main partition table overlaps the first partition by 34 blocks!
You will need to delete this partition or resize it in another utility.

Command (? for help): This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N):
Command (? for help):
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdd.
The operation has completed successfully.
Wipe the first megabyte (mibibyte) to get a clean boot area
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,150058 s, 7,0 MB/s
Wait 5 seconds and a little more ...
item 20
---------------------------------------------------------------------------
 Selected percentage of remaining space for persistence = 90
---------------------------------------------------------------------------

partition 1 - ntfs 'usbdata'
Warning: The resulting partition is not properly aligned for best performance.
partition 2 - bios_grub
partition 3 - fat32 boot,efi
partition 4 - iso9660 - cloned system
partition 5 - ext4 - 'casper-rw'
item 30
preparing /dev/sdd3  ------------------------------------------------
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,135527 s, 7,7 MB/s
umount: /dev/sdd3: not mounted
mkfs.fat 3.0.28 (2015-05-16)
/dev/sdd3 has 255 heads and 63 sectors per track,
hidden sectors 0x1000;
logical sector size is 512,
using 0xf8 media descriptor, with 499712 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 1 sector per cluster.
FAT size is 3844 sectors, and provides 491992 clusters.
There are 32 reserved sectors.
Volume ID is 98e64270, no volume label.

item 40
preparing /dev/sdd1  ------------------------------------------------
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,0425365 s, 24,7 MB/s
umount: /dev/sdd1: not mounted
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
Creating root directory (mft record 5)
Creating $MFT (mft record 0)
Creating $MFTMirr (mft record 1)
Creating $LogFile (mft record 2)
Creating $AttrDef (mft record 4)
Creating $Bitmap (mft record 6)
Creating $Boot (mft record 7)
Creating backup boot sector.
Creating $Volume (mft record 3)
Creating $BadClus (mft record 8)
Creating $Secure (mft record 9)
Creating $UpCase (mft record 0xa)
Creating $Extend (mft record 11)
Creating system file (mft record 0xc)
Creating system file (mft record 0xd)
Creating system file (mft record 0xe)
Creating system file (mft record 0xf)
Creating $Quota (mft record 24)
Creating $ObjId (mft record 25)
Creating $Reparse (mft record 26)
Syncing root directory index record.
Syncing $Bitmap.
Syncing $MFT.
Updating $MFTMirr.
Syncing device.
mkntfs completed successfully. Have a nice day.
preparing /dev/sdd5  ------------------------------------------------
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,306058 s, 3,4 MB/s
umount: /dev/sdd5: not mounted
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 27739265 4k blocks and 6938624 inodes
Filesystem UUID: 8ab3dcb4-ef4e-4fce-a7a0-c30ff55e3556
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

item 50
mount: /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-amd64.iso is already mounted
fatlabel: warning - lowercase labels might not work properly with DOS or Windows
tune2fs 1.42.13 (17-May-2015)
---------------------------------------------------------------------------
source=ubuntu-16.04.1-desktop-amd64.iso
---------------------------------------------------------------------------
item 60
umount: /dev/sdd3: not mounted
mount /dev/sdd3 /tmp/dus.9PLDBnyz6K
/dev/sdd3       241M   512  241M   1% /tmp/dus.9PLDBnyz6K
item 65
umount: /dev/sdd1: not mounted
/dev/sdd1        12G   62M   12G   1% /tmp/dus.S1WqEpXLsT
item 70
 UEFI Bootloader:  Installing for i386-pc platform.
Installation finished. No error reported.
item 80
 64-bit bootloader: copy the boot files from the iso file
looper=/tmp/dus.9TDw3CrMfL
targ1=/tmp/dus.9PLDBnyz6K
rsync: symlink "/tmp/dus.9PLDBnyz6K/ubuntu" -> "." failed: Operation not permitted (1)
rsync: symlink "/tmp/dus.9PLDBnyz6K/dists/stable" -> "xenial" failed: Operation not permitted (1)
rsync: symlink "/tmp/dus.9PLDBnyz6K/dists/unstable" -> "xenial" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync:  don't worry,  symlink errors are *expected*
because of the target file system.
Using the file '/tmp/dus.9PLDBnyz6K/boot/grub/grub.cfg'
 set security upgrade action to 'Display immediately'
umount: /dev/sdd4: not mounted
---------------------------------------------------------------------------
do_n_show:
&lt; "ubuntu-16.04.1-desktop-amd64.iso" pv -ni2 | dd of=/dev/sdd4 bs=4096

( < "ubuntu-16.04.1-desktop-amd64.iso" pv -ni2 | dd of=/dev/sdd4 bs=4096 && echo 'Done' > /dev/stderr ) 2>&1 || ( echo '# failed';sleep 1 )
Please wait for sync (flushing file system buffers to the device)
until 'Done' is written ...
'pv %'; 'dd final output'
7
12
13
13
13
13
14
15
15
16
17
18
19
20
24
26
26
27
27
27
29
31
34
35
36
37
41
45
49
53
58
62
66
69
71
73
77
81
85
89
94
98
100
369460+0 poster in
369460+0 poster ut
1513308160 byte (1,5 GB, 1,4 GiB) kopierade, 88,7954 s, 17,0 MB/s
Done
do_n_show: Work done
---------------------------------------------------------------------------
Syncing the target device ...
item 90
Wait 5 seconds and a little more ...

parted -s "/dev/sdd" print
Model: SanDisk ExtremePro (scsi)
Disk /dev/sdd: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 2      1049kB  2097kB  1049kB               primary  bios_grub
 3      2097kB  258MB   256MB   fat32        primary  boot, esp
 4      258MB   1791MB  1533MB               primary
 5      1791MB  115GB   114GB   ext2         primary
 1      115GB   128GB   12,6GB  ntfs         primary  msftdata

lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdd"
MODEL            NAME   FSTYPE  LABEL                    MOUNTPOINT   SIZE
ExtremePro       sdd                                                119,2G
                 |-sdd1 ntfs    usbdata                              11,8G
                 |-sdd2                                                 1M
                 |-sdd3 vfat    usbboot                               244M
                 |-sdd4 iso9660 Ubuntu 16.04.1 LTS amd64              1,4G
                 `-sdd5 ext4    casper-rw                           105,8G

 Done :-)
The target device is ready to use.
'ubuntu-16.04.1-desktop-amd64.iso'
was installed
item 100
Cleanup after dus-persistent finished :-)
Cleanup after dus-persistent finished :-)
---------------------------------------------------------------------------
Total time used [by dus-persistent] = 204 s; 00:03:24
p_clean:
live system or temporary superuser permissions
clean if necessary and return
$

ubuntu-persistent-live-in-bios-mode.png:

ubuntu-persistent-live-in-uefi-mode.png:


OpenVPN will not connect from GUI on Ubuntu 18.04

I had something similar, it seems the Ubuntu settings app does not show all config options. This solved it for me, an alternative GUI which allows more settings. Although this is on newer versions of Ubuntu, I don't know 100% if this is installed with 18.04 or available to be installed but try it:

Run nm-connection-editor
Highlight your connection
Click the cog icon
Go to General tab
Check Automatically connect to VPN
Choose the VPN connection you want from the list.
Click Save

Now disconnect/re-connect to your connection. Now each time you connect to that connection it should attempt to connect to the chosen VPN.
Only issue I have is that the network connection/vpn is not automatically restored when I resume from suspend. I have to manually connect to my network. I don't know if that can be solved, I have not looked into it yet.


Windows partition UNKNOWN after Ubuntu installation attempt at dual boot - How to fix?

The output above means, that you have 5 partitions.

dev/sda1 is Windows partition.
dev/sda2 possibly Ubuntu.
dev/sda3 is EFS, unsure why you have this.
dev/sda5 is swap partition used by Linux to swap between memory and hard disk (done by Windows with page/swap file)
dev/sda6 possibly Ubuntu.

I am unsure where you installed Ubuntu, but at this moment you have 2 ext4 (a file system used by Ubuntu, often) partitions. You also have ext (Extended File System). Ubuntu by default does not create partitions which you do not tell it to. You use a program within the install called Gparted to partition your drive. You may have messed up a bit there, and I am unsure where you installed Ubuntu.

Try going into Ubuntu open the terminal, and type:

sudo update-grub

Otherwise you may want to do boot-repair. You can follow the directions on how to use this here.

This may bring Windows back into your boot menu.

To uninstall:

How to remove Ubuntu and put Windows back on?

If you accidentally remove GRUB and want it back:

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


No space left on device even though there is

If you run into this problem, where you get errors that seem to indicate that the disk is full when it's not, make sure to also check the inode utilization.

You can use df -i to get a quick report on the used/available inodes for each mount point.

If you see that you are running very low, or out of, inodes then the next step is to identify which folder is holding up most inodes. Since each file and directory uses an inode, you could have a folder with hundreds of thousands of tiny, or empty files that are using up all the inodes. Usual suspects include: temp directory, website cache directories, package cache directories etc.

Use this command to get an ordered list of the subdirectories with the most inodes used:

sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n

Run this in your root folder, then drill down until you find your culprit.


UbuntuOne contact syncing for Thunderbird with new phone plans?

A member of our web team is working on something on his free time (which is not much, because he is a member of our web team), https://launchpad.net/hedera. Quoting the description over there:

  Hedera is an extension for Thunderbird
  (currently Thunderbird 3 only, but
  Thunderbird 2 will be supported when
  the extension is stable) that
  synchronises contacts with
  DesktopCouch, thus allowing Evolution
  users to seamlessly switch to
  Thunderbird and retain their contacts,
  and Thunderbird users to benefit from
  the synchronisation with Ubuntu One
  and other computers they have paired
  with.

  It's still in the early phases of
  development - to quote Phil
  Newborough, "It may go crunch-bang!"
  so back up your contacts prior to use,
  or use a dedicated Thunderbird
  profile.

As an aside, note that funambol-dependent contact sync (such as what currently gets your contacts onto your phones, and what can be used for Thunderbird 2 and Outlook integration) has always been exclusive to paid plans; there was a beta of the service during which we waived the costs, and I understand we didn't communicate effectively enough that this was a free beta of a paid service.


Can't browse to some folders with 'open file' dialog of certain applications

You are most likely using Snap versions of the software you mention. Snapo is an alternative software packaging system to the traditional APT system that Debian and its derivatives use for a long time.

One of the features of the Snap format is that applications run in a sandbox. This means they have a limited and strictly controlled access to the system. Snap software has default permissions, and that may include that the software can access your home folder, but not to system directories.

To make data available to such Snap applications, the data should be accessible  from within your home folder. You can achieve such accessibility by creating symbolic links in your home folder to data on other partitions/volumes or drives, or use "mount bind" to mount external data to a folder under your home.

More recent versions of "Software" include a "Permissions" button, that currently contains two options: "Access files in your home folder" and "Read/write files on removable storage devices".

Alternatively, you may opt for the "traditional" APT version of the software. In that case, remove the Snap version and instead install the APT version using "Software".

With respect to the future, you should realize that Ubuntu increasingly is moving to Snap as the primary format to install applications. In 19.10, Chromium is only available as a Snap. Even at the level of the command line, the distinction between the two packaging formats is being blurred. For example, a sudo apt install chromium-browser will now automatically install the snap.


not able to use xrandr after booting ubuntu tablet with nomodeset

I was having the same problem on my laptop. It has Intel i5-7300hq and an Nvidia 1050Ti. I have been running the open source drivers which had the nomodeset option. The fix was to remove the nomodeset option but add acpi_osi=! acpi_osi="Windows 2009".

Note that when I was running the Nvidia proprietary drivers on a previous installation, I still had to add the acpi_osi=! acpi_osi="Windows 2009" despite the nomodeset parameter not being there. Otherwise the laptop had problems if I elected to switch to the Intel iGPU from the driver/PRIME settings, like the laptop not shuting down.

There are some more information on this post. For example here's a command to suggest what Windows acpi setting you may need to use for your device to work:

$ sudo strings /sys/firmware/acpi/tables/DSDT | grep -i 'windows ' | sort | tail -1
Windows 2015

As you see actually I am being suggested another value from the one that fixes the problem, so feel free to experiment if you can (removing tail from that command will show other available options).


Having two interfaces and configured through netplan, VM not connecting to internet

The default route metric, when none is otherwise specified, is 0; which means that in your config, when you specify gateway: 169.254.0.38 on eth1, you are creating a route with the lowest metric - and therefore the highest priority.
Since you mention that this is a private network and you don't want your Internet traffic to go via this interface, you should really not be specifying a gateway here at all, because a gateway is shorthand for a default route.
According to your routing table, you are also not getting this default route via DHCP, only via your gateway declaration.
The following configuration is likely sufficient:
network:
  renderer: networkd
  ethernets:
    eth0:
     dhcp4: yes
     addresses: [192.168.1.209/24]
     nameservers:
       addresses: [1.1.1.1, 8.8.8.8]
    eth1:
      addresses: [169.254.0.39/24]
  version: 2

Differences:

don't specify a gateway or routes anywhere; your ip route output shows that you are getting the route you want via dhcp already
don't run dhcp on eth1, there's no indication that it's doing anything for you (but showing the output of ip a would confirm)
don't bother with dhcp overrides; now that you're only getting routes on one interface, you don't need to change the metrics

This does retain your manually specified address of 192.168.1.209/24 on eth0, which is a different address than the one you are being given by dhcp (192.168.1.11).  I am assuming it is intentional on your part to have two IPs assigned to this interface.


I'll assume that you unpacked app archive to your Downloads directory.

Simply copy content of unpacked data.tar.gz to root directory (/):

cd /
sudo tar -xvf $HOME/Downloads/data.tar.gz

Note that it may be hard to uninstall that application. If you want to do so, you must remove every file from the file tree.

Also, it may be required to run postint script from control.tar.gz:

cd ~
tar -xvf $HOME/Downloads/control.tar.gz
bash $HOME/Downloads/postinst


This step is wrong:

sudo make src

Instead you should go into src and run make:

cd src
make

To get correct dependencies, run these commands:

sudo apt install libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libxml2-dev

It looks like it's configured to compile as 32-bit application, so to compile on modern systems edit Makefile and remove -march=i486 -mcpu=i686 from CFLAGS and CXXFLAGS.

There is also some code that does not compile without modifications. Open defs.h and find these lines:

rectangle defines::UpperBound();
rectangle defines::LowerBound();
rectangle defines::RightBound();
rectangle defines::LeftBound();

Remove defines:: so it looks like this:

rectangle UpperBound();
rectangle LowerBound();
rectangle RightBound();
rectangle LeftBound();


KDE connect indicator not opening for Ubuntu 16.04

Try unpair and start over, but make sure you request pair from the desktop app to the phone and not the other way around.

Also, verify that the phone is:

On
Connected to same WiFi as your Ubuntu device.

Otherwise, there could be something wrong. In this case you can consider reinstalling kde-connect as suggested by @ThisIsNotAnId:

sudo apt purge indicator-kdeconnect kdeconnect
sudo apt install indicator-kdeconnect kdeconnect


Apparently my dist upgrade did not fully finish. I had run apt-get update and apt-get upgrade, neither of which fixed the issue. What ended up doing so is apt full-upgrade.


Download iso for Ubuntu 11.10 (either 64 bit or 32 bit) from http://www.ubuntu.com/download/ubuntu/download OR download 10.04 from http://www.ubuntu.com/download/ubuntu/alternative-download
Open a program called Startup Disk Creator (It should be installed by default it not then open synaptic package manager search for it and install)
Create bootable USB from downloaded iso and ur flash drive.

Boot any computer with ur live USB disk.

Enjoy :D


Go to Keyboard options.
Select your layout then keyboard layouts options -> Caps Lock behavior -> then select Caps Lock Toggles ShiftLock instead of default.


The problem was with the keyboard language settings. I was connecting via remote desktop to XFCE, I just had to change the keyboard to Spanish and xdotool started working correctly.


I get a black screen trying to boot Live CD on MacBook Pro

It's a fairly common problem with dual card gfx card Macbooks on Linux.

It's usually caused by the fact that the computer has a discrete and integrated gfx card. And improperly uses the card that is not currently connected to the display panel.

The problem and a solution is mentioned here


My text editor has the display problem, How to fix it?

It can be some mess (bug) with the custom configuration of the editor.
Please try to remove ./.config/gedit from your home folder:

rm -rf ./.config/gedit

And start gedit again.
You may backup "./.config/gedit" before deleting it!


You could try a cvt with reduced blanking mode:
cvt -r 1920 1080
I can see your windows custom resolution seems to have a pixel clock of 148.5MHz (148500 kHz) but CVT modeline pixel clock is 173Mhz. It may be the monitor can handle the lower pixel clock mode you added in windows but not the higher pixel clock mode you added in Ubuntu.
The reduced blanking mode should generate a modeline with a lower pixel clock value.
What's the reason you want to run the monitor above its native resolution?


In theory it should work when you set a system proxy.

You can try running from the command line

chromium  --proxy-server=host:port

change "host:port" to your proxy server.

If that works you can update the launcher or create a custom menu entry.

You may need to file a bug report.
And for the keyboard shortcut route, you could edit ~/.config/openbox/lubuntu-rc.xml (after ensuring you have a back-up). The example below refers to google-chrome because that's what I use with Privoxy; I use Super+P to launch the "proxied" version from the keyboard:

<!-- Launch PrivoxyChrome -->
<keybind key="W-P">
  <action name="Execute">
    <command>/opt/google/chrome/google-chrome --proxy-server=127.0.0.1:8118 %U</command>
  </action>
</keybind>

If you want the edit to lubuntu-rc.xml to take effect ASAP, run openbox --reconfigure in a terminal to refresh lubuntu-rc.xml.


Multi-seat support for LightDM was discussed during development and a fix has been released for Oneiric:

  Support multi-seat setup. This is (I think) when you run two sessions
  on a single X server (with two displays/keyboards/mice).

The basic configuration of lightdm.conf is

[LightDM]
displays=display0 display1

[display0]
xserver=xserver0

[display1]
xserver=xserver1

[xserver0]
layout=layout0

[xserver1]
layout=layout1

The lead developer also gives this example in the report:

[LightDM]
xserver=default-xserver

[default-xserver]
command=/usr/bin/X -foo
config-file=/etc/X-foo.conf
layout=layout0

Thus for each video card you need to define an X-session (through xnest & xephir)

In the report a specific example of a xorg.conf file should support for multiple nvidia displays.

In terms with running multiple X sessions from one video card this is currently unsupported.

I hope this answer gives you some ideas to work through.


I was in need to find the answer to this question myself today. Google search landed me to this question. Thought to add answer to this question for other askubuntu users who may land here again in future.
Understood from this notepadqq issue that the default directory is ~/.config/Notepadqq/tabCache on linux. However snap installed version maintain their own config. With snap version of notepaddqq, the files are located in ~/snap/notepadqq/current/.config/Notepadqq/tabCache folder.


How to get original Ubuntu surround control

On my Ubuntu 18.04 LTS with GNOME sHell this menu is callable with

gnome-control-center sound

and then by clicking on Test Speakers button:

Also you can access this menu from top right corner, then selecting Settings

and choose Sound tab.


I'm assuming that you can't get to the GUI on your normal boot disk, either by logging into root or another admin account. You may have to tweak the following steps to fit your particular results.

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt:

sudo mount -o rw,remount / # to remount your disk in r/w mode

sudo blkid # show UUID of new /home partition

copy the UUID of the new /home partition to the clipboard

sudo pico /etc/fstab # edit fstab using any editor you like

replace the UUID in the line containing /home with a paste from the clipboard

reboot

Now try and log into your normal account. If you've properly created the /home/your_username directory, you should be able to:

Start Deja-Dup (Backups)
Click Overview in the left column. Move to the right and click the
Restore... button
Browse to the location where you stored the backup. Click Forward.
After the "checking for backups" process finishes, choose the backup
you want from the drop-down box. Click Forward.
Choose to restore to original locations or a folder of your choice. Click Forward.
Click that everything is as desired on the Summary screen, then
click Restore to begin the process.
Note: above borrowed from Restore with deja-dup

If you're not able to get to a GUI, you'll have to restore from the command line. Get back to the root # prompt, and make the disk r/w, as per above, and...

deja-dup --restore-missing DIRECTORY

See man deja-dup or man duplicity for more info.


I dont understad nmcli connection modify --temporary 802-11-wireless.cloned-mac-address 00:60:1B:EB:F8:73

Yes, "nmcli" is a command.  It's a shortened version of NetworkManager command-line interface.  You can find it by using the "which" command, like this (but it should already be in your PATH)

[jcall@laptop ~]$ which nmcli
/usr/bin/nmcli

The 'connection name' will be something you created previously.  Your connections could be created from the command-line, but I usually just use the GUI to create them (especially wireless connections.)  You can list your connections with the command "nmcli connection show" or the abbreviated way "nmcli c s"  Here is an example of my connections...

[jcall@laptop ~]$ nmcli connection show
NAME              UUID                                  TYPE             DEVICE
Home_WiFi         c1c95bd9-78f3-4764-9922-971339702735  802-11-wireless  --
Hotel_WiFi        921ad0bf-e18e-4d90-87d9-0f1c852c3dc7  802-11-wireless  --
Google Starbucks  d5242485-ebd6-4152-a839-eaedacc49b4a  802-11-wireless  --
enp0s25           6c6036d5-4739-3540-ac21-bf7a04669ed6  802-3-ethernet   --

Finally, you need to execute the commands in order, one after the other.  You could use && to do that, if you want to create a long single-line command.  I usually just create a small script file to make things easier.  Here is my example.

[jcall@laptop ~]$ cat ~/bin/mac-changer.sh
#!/bin/bash

DEV=wlp3s0
NEWMAC=9c:d9:17:2e:ae:5f

if [ $# -lt 1 ]
then
  echo "You forgot to tell me which network to connect to..."
  echo "Please run \`nmcli con show\` for ideas..."
  exit 1
fi

if $(nmcli -t -f NAME con show | grep -q $1)
then
  nmcli connection modify --temporary $1 802-11-wireless.cloned-mac-address $NEWMAC
  nmcli connection up $1
else
  echo "Error: $1 is not a known network.  Please run \`nmcli con show\` for ideas..."
fi


Power-Consumption, switching off Graphiccard?

From what I see on google Geforce 210 is external graphic card. You dont need this in your server so just take it out of your server box.
Also change your bios settings, there must be something for Power Mangament.
There is pretty much nothing on the OS side that can reduce power consumption.
Good luck.


Try to use "dpkg --purge package-name". After you removed a package to free up space, you can continue to use apt-get command again.


Installation of Gimp failed in Ubuntu 16.04

Apparently the version which snap tried to update to (or managed to update to) has some bugs which prevents it from being executed.

The revision that failed in my case is 245 (I think the version is 2.10.14). As I mentioned I tried to reinstall it but to no avail, so, I tried the candidate (rev 246) channel which does not seem to suffer from the same bug:

$sudo snap install --channel=candidate gimp

I hope that the developers will fix the bug and I can use the stable channel once again or alternatively that the candidate is stable enough to not cause me a lot of trouble.

P.S.
For some reason I could not manage to install Gimp 2.10 via PPA in Ubuntu 16.04


How to set windows (8.1) boot manager as defualt

Install the boot-repair program, See this link on how to install boot-repair and follow the following steps.

Select the "Advanced options" in the bottom

Now select on the "GRUB Location" tab

Now change the "OS to boot by default" field to Windows.

Hope this will fix the problem on a restart. Kudos :)


There is a very good tool called testdisk.

With testdisk you can see bad sectors, repair them, repair whole hard disk drives and you can restore whole file systems (data restore).

I have tested the tool and can say that it is very good.


How to change the Ubuntu Touch calendar to Hijri?

You can install islamic calendar in Ubuntu

PPA for Hijra:

sudo add-apt-repository ppa:sabily.team/ppa && sudo apt-get -q update
sudo apt-get install hijra-applet

official
website


You'll need to make a change in your /boot to resolve this. Here's how:

Open Terminal (if it's not already open)
Switch to the super user:
$ sudo su -

Go to the Ubuntu EFI directory:
$ cd /boot/efi/EFI/ubuntu

Copy grubx64.efi to shimx64.efi:
$ cp grubx64.efi shimx64.efi

Reboot the machine

This should resolve the message


how to obtain same original workspace-switcher when using XFCE? using ubuntu 11.10

That screenshot is of Unity, not Gnome Shell and the functionality you want is provided by compiz, the compositing window manager that Unity uses, it is possible to use compiz in xfce, i refer you to this very similar question:

Is Compiz compatible with Xfce ?

Hope this helps. ;)


Ubuntu 16.04 on Surface Pro 4, cant enter disk encryption password on typecover

It could because the way the typecover operates or that the developers haven't been implemented it yet, etc. Type covers tend to operate differently than regular PS2 or USB keyboards. If I were you I'd just use a standard USB Keyboard. :)


How to locate the directory that uses all disk space

Top 10 largest directories:

du -a / | sort -n -r | head -n 10

In more human readable format:

du -hsx / | sort -rh | head -10

Largest 10 files:

find / -printf '%s %p\n'| sort -nr | head -10

  There is 4GB of space that is not accounted for.

Lots of small files also add up to 4Gb...

I would suggest to look at the most obvious culprit:

/var/log/

If your system has errors it will log them there. And errors for 3 weeks can quickly add up to 4Gb. Besides that: using a databases on that system? If so... check the directory where the database stores it files;/var/lib/mysql for instance.


We believe it might be due to he missing of nvidia drive. So you can use the below command and install,

sudo apt-get install nvidia-current

After doing this please check whether the issue goes off.


Why does the optirun command shut down my computer?

See the Bumblebee trouble shooting guide:

https://github.com/Bumblebee-Project/Bumblebee/wiki/Troubleshooting

If you still have problems, you will need to file a bug report:

https://github.com/Bumblebee-Project/Bumblebee/issues/new


The 8.8.8.8, 8.8.4.4 are the nameservers that your Ubuntu installation in the VPS will use to resolve domains. These are not related to your domain name.

Your DNS registrar (like gandi.net) offers for free a DNS server that serves your domains and subdomains. You do not need to set that server in your VPS.


Converting directory full of h264 to images

Typical H.264 frames are interdependent, so most frames can't be decoded individually.
Use cat to combine them all and pipe to ffmpeg:
cat *.h264 | ffmpeg -i - frame-%04d.png


Full Disk Encryption with LUKS: auto mount second volume

You can use the decrypt_keyctl keyscript to securely cache the passphrase when mounting multiple encrypted volumes. The README describes how to do this on boot; there are some caveats with workarounds described in bug 1022815.

This should allow auto mounting of multiple encrypted volumes at boot with only one passphrase prompt. The same keyctl mechanism could be used to arrange the automounting of other volumes after boot time, but I'm not aware of a full solution.


I have Ubuntu 11.10 and for no apparent reason my sidebar suddenly will not hide, how can I reverse this?

The Behaviour tab is only in 12.04.  The auto-hide was buggy that is why it was dropped in 12.04. The auto-hide sometimes got stuck If you have logged out and back in or rebooted your computer and it still doesn't work, you may have to download "My Unity"       Instructions found here

I never had any problem in 11.10 getting the launcher to reset by logging out and back in or rebooting but, if for some reason your dconf setting got corrupted, you should be able to fix it using My Unity. Just select the behavior drop-down on the launcher tab.

There are other programs out there to adjust the dconf settings but My Unity is probably the safest and easiest to use.


I want to switch to Lubuntu, how can I take all of my programs/files with me?

Rather re installing  LUbuntu install LXDE in your current ubuntu

to install type following commands in terminal:-

sudo apt-get install lxde

After installing reboot your system

source :- http://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-install-the-lxde-desktop


How to find details like whether the mounted filesystem is read only or read-write with details of status related to the disk health?

Command mount will list all mounted partitions and will indicate whether they are mounted read only (ro) or read-write (rw).

There is no way to tell whether a filesystem is "healty" while mounted in a normal read-write mode. To determine whether a filesystem is healthy you need to use fsck (or a similar tool) and these require either unmounted filesystems or filesystems mounter read-only.

I guess you could look in the kernel log using command dmesg and look for messages like "journal replayed" - they will indicate that the filesystem has been mounted dirty.