Need help to do data recovery on my external hard disk

When you have your computer running off the usb drive you should be able to see your disk in the file manager. From there you should be able to copy paste the files to say a usb harddrive.

When a disk supports SMART you can see how many hours it has been used in its life, how many powercycles it has had, the current temperature and how many bad sectors there are (if any) and more. If your disk doesn't support it, thats ok. If it supports it but its not working because the disk is failing.. that wouldn't be good.

You could manually mount the partition:
Do sudo fdisk -l to list partitions.
Identify which partition is the one you need to access.
You will need a folder to mount it to.
Lets make one: sudo mkdir /media/mountfolder Then mount your partition to the folder you just made: sudo mount /dev/sdXX /media/mountfolder
where /dev/sdXX is the partition you wish to mount.
If all went well you should be able to access it. If you're not sure how to get to /media/mountfolder you can get nautilus to open it for you with: nautilus /media/mountfolder


Why is wine installed automatically with i386 AND amd64 versions in 12.04?

When I am running a 64bit system there should be no need for wine i386, should there?

Wine i386 is necessary to run 32-bit Windows programs -- which is MOST of them, unless you have an explicit 64-bit version, and even then, the installers for those are often 32-bit.


Personal postfix mail server works, but i can't connect it with thunderbird

Go to account configuration on thunderbird and click on Edit server SMTP and there you have auth method. My problem was that my server was non-auth but on my thunderbird auth method was different.


Try the hidden folder .cache  or .local/share/totem in the home directory. Archive Manager does usually place temporary files in beginning with .fr or fr (fr for file-roller probably). File roller also leaves these temporary folders in other places (usually when it is interrupted).

Also, for clearing disk space in general you can use baobab to scan for what files and folders are taking up space, or bleachbit to clear the cache, temporary files etc made by other programs.

This seems to be a common issue, so I would suggest filing a bug against the file-roller package here or 'upstream' here (there is a existing similar bug here - however it may be a issue related to Totem and/or using File Roller with Totem).


Why is my wireless network no longer listed in NetworkManager

Arnold,

There are 2 files that may benefit you to become familiar with:

/etc/interfaces
/etc/NetworkManager.conf

I mention these because I have resolved a networking issue by using the "turn if off and on again" method with them.  You could modify your /etc/NetworkManager.conf file to read managed=false, save, and back to managed=true.  Here's what mine looks like:

[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=true

You could modify the file using the command: gksudo gedit /etc/NetworkManager/NetworkManager.conf

The more-likely answer to your question may be found in the Official Documentation here: Why does my wireless network keep disconnecting?

The troubleshooter can be very helpful, which starts by clicking Next in the top-right corner of the page.


Run a command within an existing shell window from a second shell window

the answer i was looking for was

  xdotool

you can use to search a window (xdotool search), run a command (xdotool key)


Can I host two sites, one domain based and on ip based, on the same apache server?

Sorry my mistake, turns out I missed the part of disabling the 000-default.conf

sudo a2dissite 000-default.conf

And when I made the conf files I had to make two.  One for example.com and the other for the IP address website (a different website).  I simply replaced all instances of

  example.com

with the actual IP address for the website

For anyone coming across this same problem I found this link: How To Configure Apache Virtual Hosts In Ubuntu 18.04 LTS


This worked for me to change the time zone:

sudo timedatectl set-timezone America/Mexico_City --adjust-system-clock

(Change 'America/Mexico_City' to the appropriate entry from the tz database)


Ubuntu 19.10/qemu4.0 Not able to set "kernel_irqchip=on" in libvirt

You don't have to (in fact you shouldn't) force that in via qemu-commandline (and if you do it is kernel-irqchip instead of kernel_irqchip).

This is controlled via the ioapic feature.
You should use the feature that is like:

 <features>
   <ioapic driver='kvm'/>
 </features>

Hereby driver kvm maps to "kernel_irqchip=on" and driver qemu maps to "kernel_irqchip=split".

Also could you check if your issue might be the same as this bug and if so chime in there. Especially if kernel-irqchip really helps state so


Changing the name of an application in Dash

You can use this old application to also edit the entries in your Dash:

https://apps.ubuntu.com/cat/applications/saucy/alacarte/

You can also get it by running this command in a terminal sudo apt-get install alacarte

I use this program even though it was meant for older releases of Ubuntu, and you had the old "Main Menu" with different categories. However, i thinks it's the easiest way to edit and add programs to your Ubuntu Dash! Just find your application, select it, press properties and then you can change the name, description and icon.

Please note that this program doesn't add an oldschool menu, but only includes the entries from the main menu into the Ubuntu Dash also, so don't get fooled by how it looks. Also, categories aren't used in the Ubuntu Dash either, so setting these has no effect.

Hope this is helpful!


Synaptics forgets Min/MaxSpeed on startup

I finally found a way to work out this issue, by creating a simple shell containing the required command and putting it into /usr/local/bin after having made it executable via chmod. Then I added the name of this shell to the Startup Applications, and everything was ok.


Have a look at this forum post. It may be able to help you assuming you're using Unity. You'll have to install compizconfig-settings-manager first though.


Can you disable notifications on ubuntu one sync?

You can disable the notifications from the Ubuntu One control panel. Depending on your version, that is either in the Devices tab or the Settings tab.

If using the old, GTK-based control panel, it's in the Devices tab:

If you’re using the new, QT-based control panel, then it’s in the Settings tab:


I found an alternative solution for these problem.
Option One
Try replacing the default screensaver with another one, like xscreensaver.
Option Two
When you manually lock your screen, just hold the buttons a second longer and the screen won't turn off.
Source Link: https://stackoverflow.com/a/52110833/10711557


Copy your favorite theme from /usr/share/theme to ~/.theme. Name the theme folder something different from what it was named in the /usr/share/theme. This way when you select your chosen them you'll find it by the name you called the folder.

Example:

cp -R /usr/share/themes/Radiance/ ~/.themes/MyRadiance

Edit the gtk-3 folder of that new directory to make your borders any way you want them. You can also customize other components of the theme. It can be done by editing the UnityDecoration features of the unity.css file located in the apps folder:

~/.themes/MyRadiance/gtk-3.0/apps/unity.css

To change the borders change the 0's to a different number of the parameter:

-UnityDecoration-extents: 28px 0 0 0;

You can see all the possible editings here. Also, to use the new theme you have to install the Unity Tweak Tool.

sudo apt-get install unity-tweak-tool

To apply this for terminal add the following to gnome-terminal.css: UnityDecoration { -UnityDecoration-extents: 28px 1px 1px 1px; }


What is the default whois server for the whois command?

You may use strace which is a debugging tool to find what was really used:
strace --trace=sendmmsg --verbose=all -s 64 -o whois.strace.log whois google.com

whois.strace.log
sendmmsg(3, [{msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\305\300\1\0\0\1\0\0\0\0\0\1\5whois\fverisign-grs\3com\0\0\1\0\1\0\0)\4\260\0\0\0\0\0\0", iov_len=51}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=51}, {msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\375\304\1\0\0\1\0\0\0\0\0\1\5whois\fverisign-grs\3com\0\0\34\0\1\0\0)\4\260\0\0\0\0\0\0", iov_len=51}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=51}], 2, MSG_NOSIGNAL) = 2
sendmmsg(3, [{msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="8\333\1\0\0\1\0\0\0\0\0\1\5whois\vmarkmonitor\3com\0\0\1\0\1\0\0)\4\260\0\0\0\0\0\0", iov_len=50}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=50}, {msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\f\336\1\0\0\1\0\0\0\0\0\1\5whois\vmarkmonitor\3com\0\0\34\0\1\0\0)\4\260\0\0\0\0\0\0", iov_len=50}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=50}], 2, MSG_NOSIGNAL) = 2
+++ exited with 0 +++


Unable to mount filesystem as read-write in recovery mode

If I am not wrong, the filesystem is mounted read-only by default in Recovery mode. To mount it as read-write, go the recovery mode and choose root. Now type the following command:

mount -o rw,remount /

Note the spaces, you'll get an error if you ignore the spaces, or add extra ones too. And then you can copy as you tried earlier.


The maximum available MTU setting is determined by the Comcast modem.  You should check in the administration pages of the modem to see the MTU that is used.

If you are unable to do so, you can determine the maximum MTU that can be utilized with ping. For example, on my machine:

ping -s 1472 -c3 google.com
PING google.com (74.125.138.113) 1472(1500) bytes of data.
72 bytes from yi-in-f113.1e100.net (74.125.138.113): icmp_seq=1 ttl=43 (truncated)
72 bytes from yi-in-f113.1e100.net (74.125.138.113): icmp_seq=2 ttl=43 (truncated)
72 bytes from yi-in-f113.1e100.net (74.125.138.113): icmp_seq=3 ttl=43 (truncated)

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 10.703/11.242/11.907/0.506 ms

If I increase the size to, for example, 1600, then I get:

ping -s 1600 -c3 google.com
PING google.com (74.125.138.101) 1600(1628) bytes of data.

--- google.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2038ms

As you can see, I then get 100% packet loss.

You should always add 28 to the packet size in order to get the real MTU because 20 bytes are reserved for the IP header and 8 bytes must be allocated for the ICMP Echo Request header.

In my case, the result is 1500 which is, remarkably, the default setting in both my AT&T gigabit modem and my router.

Please reset your MTU to 1500 and tell us if connectivity is improved.


You are most likely interested in Ubuntu Studio which is set up specifically for creative work:

http://ubuntustudio.org/

http://ubuntustudio.org/tour/graphics/

Both Inkscape and Gimp work with pressure sensitive input devices.

It looks like the Asus B121 pressure sensitivity has been supported since ubuntu quantal. Not sure about the HP Slate or others, but anything using Wacom hardware/drivers should be well supported.


User credentials not recognised in virtual terminal

Normally /var/log/auth* has(have) some clues regarding failure.  Please check there for starters.


How do I remove manually installed libpcap0.8?

Thanks @Serg for answer my questions! Well,, I have resolved this, and this is easy to resolved. I post here for anyone has the same propblem! Here:

$ sudo apt-get purge libpcap0.8-dev libpcap0.8:i386 libpcap-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libpcap-dev* libpcap0.8:i386* libpcap0.8-dev*
0 upgraded, 0 newly installed, 3 to remove and 75 not upgraded.
2 not fully installed or removed.
After this operation, 1.034 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 204350 files and directories currently installed.)
Removing libpcap0.8:i386 (1.5.3-2) ...
Purging configuration files for libpcap0.8:i386 (1.5.3-2) ...
Removing libpcap-dev (1.5.3-2) ...
Removing libpcap0.8-dev (1.5.3-2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.5) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libpcap0.8:amd64 (1.4.0-2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.5) ...

It's so simple.
Just sudo apt-get purge libpcap0.8-dev libpcap0.8:i386 libpcap-dev.


Probably because you're in a unity-2d session. Open a terminal, copy & paste this command in, press enter. Unity (3d) will return ubuntu, unity-2d will mean just that

echo $DESKTOP_SESSION

unity-2d doesn't support launcher resize yet, it's possible but that's another question.


I'm forced to start the computer in safe mode. Apparently, the new
  desktop features are unable to load.

For some features like Unity 3D you need better hardware,
otherwise it will fallback to Unity 2D, but you can also run classic gnome desktop, which is not so cpu and gpu power hungry.

If that happened just after install maybe you will need to add or enable some drivers for your hardware, many times I saw that same hardware under different drivers act differently, under one driver same hardware not work under unity3D but when i find better driver it works!

Under safe mode it is normal that some functions are reduced, or not loaded.
For example in real recovery mode there is not desktop,just text mode so:

Investigate and activate graphical card perhaps proprietary ,for your laptop.*depends what u have inside as Graphic Card,or integrated card...

that is mostly normal,not to all,but to newer hardware ,yes.

Under Ubuntu you can find variety of different drivers for same hardware, not like under Windows.


19.04 MATE and QT : oversized display, low resolution

I fixed this by adding the following to my .bashrc

QT_SCALE_FACTOR=1


VirtualBox USB device error NS_ERROR_FAILURE (0x80004005) on Ubuntu 14.04 x64 VirtualBox 4.3

USB devices can either be used on your host OS or guest OS, but not shared between both. Whatever captures the USB device first, will block communication for the other system.
You should have the VirtualBox extensions pack installed, which enables USB 2.
Then you need to install the VirtualBox guest additions in your virtual machine.
Next you need to start the VM, go into the machine settings and choose Ports/USB. Then select the + icon and add the USB device.


script to parse a directory and rename with the same name and change only extension (after converting using sphinx)

#!/usr/bin/env bash

dir=$1

for path in "$dir"/*.mp3; do
  name=$(basename "$path")
  ffmpeg -i "$path" -ar 16000 -ac 1 "$dir/$name.wav"
  pocketsphinx_continuous -infile "$dir/$name.wav" 2> "$dir/pocketsphinx.log" > "$dir/$name.txt"
done

Save the script somewhere like convert_all.sh and chmod +x it as well. Then use it like this:

./convert_all.sh path/to/some/dir

It will get all the .mp3s in that directory, convert them to .wav then run sphinx on them.


Dell Precision upgraded to xubuntu 20.04 and now shuts down

I checked the graphics card and the fan was not working and the card was hot. Switching graphics cards appears to fix the issue.


I suggest rabbitvcs, which supports nautilus integration for SVN and GIT:

rabbitvcs website


Keyboard layout not working, dead keys come alive at random times

Check if you have more than one keyboard layout in your "Text entry" configurations and check if you have some shortcut to switch between these layouts. It seems you are swithing between English (US international with dead keys) and English (US).

Remove the unused layout and remove the shortcuts.


redownload the iso and try using a disk imager instead of unetbootin, I've just found that using an imager/partitioner many times has better results, just like how the normally burned windows recovery disks never work right, but you download an iso and it works perfectly :)


Exiting `ifup` when waiting for master bond0 to be ready

Suspend the process with Ctrl+Z. You'll return to the shell prompt.
Kill the suspended process in the background. To send SIGKILL to the first shell job (%1), run:

kill -s KILL %1

If the stalled process is not the first job, run jobs to find it and replace 1 with the appropriate job ID.


I use TigerVNC server on Ubuntu and TigerVNC clinet on windows with 4 monitors of different sizes. I don't have any issues.


I was facing the same issue, just found the solution. You will need to use unlinkat as the system call tracing:

-a exit,always -F arch=b64 -S unlink -S rmdir -S unlinkat

because rm isn't using unlink. Thanks theillien for the answer posted here on SuperUser:


To uninstall something you installed from source, you would use cd back into the directory you built it from and then run sudo make uninstall but I don't think this will work with PHP since it doesn't have an uninstall.

So what you can do is to make a  package from the existing compiled version you have and then you could install the new created package over the old one, and if this works you can remove it. First install checkinstall if you dont have it:

sudo apt-get install checkinstall

Then run:

cd php-5.3.29
sudo checkinstall

Accept all the defaults.The result will be a phpXX.deb package, so try to install it, this will replace the old files from the compiled package:

sudo dpkg -i phpXX.deb

If this goes smooth then you are near to have it. Now purge the package:

sudo apt-get purge phpXX.deb

What to do if this doesn't work

you should remove all files manually

locate php5

Then remove the files and install a new version with apt-get again


You should install CompizConfig Settings Manager with the command:
    sudo apt-get install compizconfig-settings-manager
Then, in Compiz, there is a Unity Plugin (look for the purple logo below). Under this section, it says "Key to show the luncher." Change it or disable it. Go nuts.


Can't Log In As User After Using A Restore Script

When you backup and restore, the permissions need to be identical, otherwise, you will not be able to log in. You could probably boot into recovery mode and do a recursive chown on your home directory. This should probably fix it.


If I understand you, you wish to receive mail on server, then hold mail in queue, do something and send after that to smarthost. Ok

Delay can not be applied in communication client <-> mta because you will got time_out.
My suggestion is to use queue_domains or queue_smtp_domains and hold_domains.

SMTP communication aka telnet on server on port 25 will go normally, server will get mail, store them in queue, hold xyz sec, send them to smarthost.

More information about Exim main configuratin you can find here


OS keyboard shortcuts conflict with apps keyboard shortcuts in GNOME 3

It is known bug 1245473.
Nobody cares about it even on modern Ubuntu Community.
I'm citing my other answer here:

Myself I found only one resolution - I'll stay on Ubuntu 16.04 LTS MATE until 2021 year (really 2019 because it's Ubuntu flavor).

In Ubuntu 16.04 LTS MATE I use Ctrl+Shift without issues.

I have created PPA with patched packages for:

Ubuntu 16.04 LTS (xenial) with xserver-xorg-hwe-16.04
Ubuntu 18.04 LTS (bionic)
Ubuntu 18.04 LTS (bionic) with xserver-xorg-hwe-18.04
Ubuntu 18.10 (cosmic)
Ubuntu 19.04 (disco)
Ubuntu 19.10 (eoan)
Ubuntu 20.04 LTS (focal)
Ubuntu 20.10 (groovy)
Ubuntu 21.04 (hirsute)

You can test them by the following commands:
sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys
sudo apt-get update
sudo apt-get dist-upgrade

Warranty disclaimer: packages were tested in

16.04 LTS with HWE (Unity, MATE, Xfce)
18.04 LTS (Cinnamon, KDE, MATE, Xfce)
18.10 (Cinnamon, KDE, MATE, Xfce)
19.04 (Cinnamon, KDE, MATE, Unity, Xfce)
19.10 (Cinnamon, KDE, MATE, Unity, Xfce)
20.04 LTS (Cinnamon, KDE, MATE, Unity, Xfce)
20.10 (Cinnamon, KDE, MATE, Unity, Xfce)
21.04 (Cinnamon, KDE, MATE, Xfce)

However other desktops may have issues even after applying the patch.
These packages do not fix problems for GNOME Shell (18.04 LTS, 18.10, 19.04, 19.10, 20.04 LTS, 20.10 and 21.04) and Unity (in 18.04 LTS and 18.10). To remove GNOME Shell and install other desktop follow my other answers - for 18.04 LTS and for 20.04 LTS.


How to test transfer speed between a machine and a server

Here's a quick and dirty solution that will work as long as you have RW access to the server file-system and it isn't mounted until you access it via Nautilus.

Regardless of whether you are accessing the file system on the server via nautilus or by some other method, the file system must be mounted in order to use it. Considering that this is the case. It should be relatively simple to test throughput in both directions via time and simple mathematics.

1) open a terminal and issue the mount command.

2) connect to the server filesystem

3) issue the mount command again and compare the output to determine where the server filesystem is mounted. (You can redirect the outputs to files and diff them if you are having trouble finding the newly mounted mount point.)

4) choose or create a file (target.file) on your local system of sufficient size to test the throughput (you may be limited by quota as to how big that can be).

5) issue the command sync && time cp target.file /server/mountpoint/target.file

6) divide the size of the file by the number real # of seconds the command took to obtain the throughput speed. Example 409MB/5.317 = 76.923076923 MBps (note that this is the speed of a copy from one local drive to another local drive on my system. Your mileage will vary. The units you use when determining the file size will be the units you get per second in the resulting calculation. This gives you the throughput from your machine to the server. Since even if the drop caches trick works on your local system it doesn't appear that you have that level of access to the server (which will be caching all manner of things for all the users on it) it would be prudent to delay following a similar process to copy the file back and determine the speed from the server to your machine with cp /server/mountpoint/target.file ./


Sd card formating process failled as had been mistakly unplugged

insert the sd card and then open disks application from here:

 then

select your sdcard and press ctrl+f :

by pressing ctrl+f your sd card gets formatted.

after formatting then go to edit partition option and create a new partition for your sd card. then you are done.


Given that's normally considered a bad idea to allow root login via ssh, the alternative is to have the destination user, say foo, be sudoer on destination host, name it remote. Also, passwordless login is a plus.

Then, the following command will suffice

$ sudo zfs send <dataset1> | ssh foo@remote "sudo zfs recv <dataset2>"


GNOME Shell issue with application icons using themes

I had the same problem. I found a fix in this link:

http://gnome-shell.deviantart.com/journal/GNOME-3-4-And-Theme-Changes-290145428

Just edit the .css file of the theme you are using so it matches this values:

.icon-grid {
    spacing: 36px; /* 36px */
    -shell-grid-horizontal-item-size: 118px; /* 118px */
    -shell-grid-vertical-item-size: 118px; /* 118px */
}

The file is located inside the folder .themes, in your home folder. In my case it is /home/.themes/Nord/gnome-shell/apps.css
For other themes the name of the file you have to edit is gnome-shell.css

It worked for me, hope it helps.


you need to install the headers first:

sudo apt-get install linux-headers-$(uname -r)

you have to recompile the kernel module and install it by

sudo /etc/init.d/vboxdrv setup

If some error appears then try this solution:

sudo apt-get install virtualbox-ose

This will take care of dependencies like the kernel headers which is included in the package linux-headers-generic


OK, first of all, Cinelerra has 2 versions:

Comunity maintained version called cinelerra-cv which the last update was in November 13, 2011 and in the Git repositories 24 Sep 2012. Quite old.
Heroine Virtual LTD maintained, which from now I will call cinelerra-hw. Last updated July 9, 2012. Still old.

Ubuntu repositories includes cinelerra-cv package in the repositories while cinelerra-hw seems no were to be found. Or so it seems. In the launchpad page of cinelerra-cv there is a note that reads:

  Experimental builds of Cinelerra based on the upstream Heroine Warrior release (4.4) are available here:

  https://launchpad.net/~cinelerra-ppa/+archive/cinelerra-hw

So, we only need to sudo add-apt-repository ppa:cinelerra-ppa/cinelerra-hw and ready. Please note: This ppa provides EXPERIMENTAL and therefore untested builds for the upstream release of audio and video editor Cinelerra (v. 4.4). Any problems with the installation and use goes for your own accord. If you need stability use cinelerra-cv or use the fork lumiera.


How do I access my user account if another user forgot to sign out?

In the screen where you type the password (for the other user) there is, in the bottom right corner, a little icon which looks like a couple of people.
If you click on that icon, then you will be given the opportunity to login as another user (yourself).  The login screen under stock gnome is below

Here is the default lock screen for KDE-Plasma - note the 'switch user' icon below the text box for passwords


Really a Windows question.

Windows installs all boot loaders to the active partition or boot flagged partition. So the Windows 8 boot loader bootmgr replaced ntldr in the partition boot sector - PBR to boot. And it then uses the BCD to know what to boot not the boot.ini file.

You need to run chkdsk from the XP install disk and remove bootmgr & /BCD. You need ntldr and boot.ini which still should be in your XP partition.

If you only overwrote PBR,you may be able to use testdisk to restore backup PBR. You can use testdisk to compare PBR (dump command)
and see if in plain text the backup has ntldr not bootmgr.
Instructions
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
http://www.cgsecurity.org/wiki/Menu_Analyse
As described, it has an option to "Recover NTFS boot sector from its backup"
If Backup BS isn't available, choose RebuildBS.


Share first ssh connection to user@host opportunisitically  using ControlMaster

From the ssh_config man page:

ControlMaster
    ...
    Two additional options allow for opportunistic multiplexing: try
    to use a master connection but fall back to creating a new one if
    one does not already exist.  These options are: “auto” and
    “autoask”.  The latter requires confirmation like the “ask”
    option.

So if you configure ssh with ControlMaster auto, it will attempt to connect to use an existing SSH session, falling back to creating a new master connection if that fails.

So a configuration like the following is probably what you're after:

ControlMaster auto
ControlPath ~/.ssh/control/%r@%h:%p


what are the Nvidia video card compatible with ubuntu 12.04 64bit

You can see full list  here or can find Your device here


How to clear Java and Flash cache in Ubuntu 16.04?

You can simply make a clean install of Java.

sudo update-alternatives --remove "java" "<javaPath>"
sudo update-alternatives --remove "javac" "<javacPath>"
sudo update-alternatives --remove "javaws" "<javawsPath>"
sudo rm -r /usr/lib/jvm/jdk*
sudo apt-get remove --auto-remove openjdk*
sudo apt-get purge --auto-remove openjdk*
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install default-jdk


You have the option to build it from source. You may download the latest poppler version from the official website. At the time of writing, this is Poppler 0.22.3.

Then you would build and install it:

./configure --prefix=/usr \
    --sysconfdir=/etc \
    --disable-static  \
    --enable-xpdf-header
make
sudo make install

I have successfully tested this with Ubuntu 13.04. From there on, you can also upgrade zathura if you want to, by building the latest zathura and zathura-pdf-poppler-plugin. The latest zathura version in the repositories is over a year old so that might be of interest for you.


There is no Nvidia proprietary driver in Additional Drivers

All nvidia-xxx are proprietary Nvidia drivers.

They are shown as "open source" because you added an unofficial PPA, probably graphics-drivers/ppa and the system can't detect what driver is there.

You can check the nvidia-375. It should support your GT 640.


My laptop's speaker is popping after updating ubuntu 11.10

Your problem description matches mine, I found the solution in:
How do I fix laptop speakers popping when no sound is playing?

Turns out that the reason was how power save affected my laptops sound card

Adding the link here as this thread was one of the first that turned up when I googled the problem :)

/r


There is no way in tcsh to redirect the output of the whole foreach loop.
Workaround is to use addition '>>' on every turn of the loop, like this:

foreach i (`ls`)
echo $i >> ~/test
end


plenty free inodes yet cannot write to disk

There is no guarantee that tune2fs -l will show up to date information on your filesystem while it is mounted. tune2fs reads the filesystem directly from the disk, while the filesystem state is kept in memory while it is mounted. The superblock may not be written back to the disk at any point in time except when the filesystem is unmounted.

To get accurate block and inode usage counts on mounted filesystems, it is better to always use df and df -i.


Have you tried:

  log into recovery from boot (hold shift at boot)

  select 'Advanced Options'

  Then select 'Recovery' option

Make sure you are connected to a network via cable, then select:

  Enable networking

Once the process completes select

  root

then type:

login

enter your username and password

then try:

sudo apt-get install linux-source && sudo apt-get install linux-headers-generic

sudo apt-get purge nvidia-*

sudo apt-get install nvidia-current-updates nvidia-settings-updates

sudo shutdown -r now

Additional info: here and here

Ubuntu Forums: here


apt install froze when uninstalling virtualbox

I ran:

sudo dpkg --purge --force-all virtualbox
sudo dpkg --purge --force-all dkms

and it worked


It looks like everything is OK with your device.

Kernel developers added code to look for some files that don't exist yet for the future.

ath10k doesn't work without firmware. In your case it is loaded.

Nothing has to be done.


I had the same problem https://askubuntu.com/q/471995/285006, to fix it, i did the steps described on this post: http://ubuntuforums.org/showthread.php?t=2219222

  CompizConfig option Ubuntu Unity Plugin > Switcher > Show live previews of windows in the Switcher. When the option is checked the mouse mismatch doesn't occur


I had the same problem until I found out that "Search online sources" was not enabled in Unity Tweak Tool (Unity => Launcher => Search). After enabling it, it worked immediately.


How to enable the eclipse internal browser (Ubuntu 12.10)?

I've solved the problem by installing libwebkitgtk in Ubuntu 13.10 and Eclipse Kepler.

sudo apt-get install libwebkitgtk-1.0-0

If proper webkit libraries are not installed on your system Eclipse defaults to XULRunner. That is why installing this lib solves the error. You may have to install the latest version of libwebkitgtk if this one doesn't work.


how to run package manager as i am not able to run it and an error is shown

The error shown in the above screenshot would be caused mainly because of incomplete installation of packages. So fix all the incomplete package installations by running the below command on terminal,

sudo apt-get install -f


How to get Wireless working on Acer Aspire 5742?

My suggestion is checking the "Additional Drives" and look to see if you can enable your networking from a driver that needs to be enabled.

How do I install additional drivers?


Why does sudo not add root's PATH with Ubuntu 12.04?

Have you looked into the man page for sudo?  In the section SECURITY NOTES they talk about how sudo uses the PATH variable.

You also want to look into /etc/sudoers as the PATH can be changed there with secure_path. Settings can also be done by files in the directory /etc/sudoers.d/.

It is suggested to make changes to your sudo configuration by creating files in /etc/sudoers.d/ because then your changes will remain independent of changes to /etc/sudoers that might occur when upgrading sudo to a new version. You should still use the visudo command to create and edit files in /etc/sudoers.d/.


nohup can't save the pid of the process into file with xargs command

The double quotes around your sh -c "..." command allow $! to be expanded by the interactive shell.
Try
echo "dirA" | xargs -L 1 -I {}  sh -c '
   cd "$1"; echo "Changed directory to $1";
   nohup mvn spring-boot:run > $HOME/logs/app.log 2>&1 & echo $! > $HOME/pids/app.pid;
' sh {}

There's no need to quote {} in most shells.


How to get Terminal in trusty to show screen dimensions while being resized as per precise

Install CompizConfig Settings Manager.

The extra plugins (sudo apt-get install compiz-plugins-extra) has a "resize window" plugin under "Utility". Choose the option to "Show resize info for all windows"  and all windows will show the dimensions.


Nexus 4 - Failed to install Ubuntu Touch

To recover:

Put the device in 'Recovery Mode', and then run:

phablet-flash -d mako -b

IF that fails, revert to factory / Android setup.

https://wiki.ubuntu.com/Touch/Install

Look for: 'Restoring Android'

( You may also need to put phone into 'Recovery Mode' for this to work. )


Ethernet does not work with Ubuntu Server 20.04

Netplan is the tool for configuring networks now.

It's very easy to use, and here's whole page full of examples.

Step 1. Use ip addr to locate your interface name

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state DOWN group default qlen 1000

Here, you can see that my ethernet interface is named enp3s0.

Step 2. Modify the netplan YAML file. Here's an easy example:

This requires a text editor and sudo, of course.
Tip: Proper indentation is critical, Use spaces, NOT tabs.

# This is a comment line - lines starting with # are ignored.
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:           # Here is where that interface name goes!
      dhcp4: true

Step 3: Run sudo netplan apply. Netplan will parse and apply the new config, including requesting a new dhcp address.

After this, your network should be up.

This config is for a server without GUI (networkd) using a wired ethernet (enp3s0) and dhcp. If you need a different configuration, check that page full of examples. What you want is probably in there.


Remote desktop can't connect to the remote computer for one of these reasons

By default, you cannot RDP into a Linux VM, you need to SSH.  Either use the built-in option in GCP or a terminal application like putty, WinSCP, etc....


Low Graphics and laggy screen after update to 13.10 from 13.04

I have the same issue.  Using lshw

  *-display:0
       description: VGA compatible controller
       product: RV350 [Radeon 9550]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 32 bits
       clock: 66MHz
       capabilities: agp agp-2.0 pm vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=32 mingnt=8
       resources: irq:16 memory:e0000000-efffffff ioport:c800(size=256) memory:ff8f0000-ff8fffff memory:ff8c0000-ff8dffff
  *-display:1 UNCLAIMED
       description: Display controller
       product: RV350 [Radeon 9550] (Secondary)
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0.1
       bus info: pci@0000:01:00.1
       version: 00
       width: 32 bits
       clock: 66MHz
       capabilities: pm bus_master cap_list
       configuration: latency=32 mingnt=8
       resources: memory:d0000000-dfffffff memory:ff8e0000-ff8effff

I tried using mesa 10.0 with no impact.


Can I restrict file names to be valid on Windows?

I don't know about special characters but there is a FUSE filesystem overlay that can mount one directory as case insensitive to another ciopfs - Case Insensitive On Purpose File System.

sudo apt-get install ciopfs
mkdir ~/.ciopfs-source
mkdir ~/sync-files
ciopfs ~/.ciopfs-source ~/sync-files

You should read the documentation from the link above and test thourly before using this to sync any important data.

  To avoid any conflicts you should not manipulate the data directory
  directly, any change should be done over the mount point. Any
  filenames in the data directory which aren't all lower case are
  ignored.


How can I extend the desktop onto an external monitor/projector?

You can try hit win+P this shortcut configures the monitors switching between mirroring and extending the new output.


Can't run systemd based script after wake from suspend. Why?

As you know any terminal emulators have been closed after doing their jobs.

But if you want to gnome-terminal not to be closed using this script in /etc/pm/sleep.d path (this script cause to keep terminal opened until you hit enter) :

sudo nano /etc/pm/sleep.d/myscript

Then paste these content to you script :

#!/bin/bash
case $1 in
     thaw|resume) gnome-terminal --command 'bash -c "compiz --replace &; read line"'
     ;;
esac

Then make it executble by this command:

sudo chmod a+x /etc/pm/sleep.d/myscript

I hope that's work for you.

UPDATE:

  Thanks for sharing. I was curious why my systemd based script did not work. My command works on an opened gnome-terminal but somehow won't work with systemd-suspend.service solution. Could you try on your system to see it has any effect? You can replace the compriz command with command "sleep 20" to try. Appreciate your feedback
  The suspend way is different on many machines some of them use sudo pm-suspend and some of them use systemctl suspend command.

We can use systemd based script if we use systemctl suspend for OS sleep (not to use sudo pm-suspend. but in some systems, when you click on suspend boton, the operating system use pm-suspend command).
But the systemd based scripts and powermanagement based scripts have a little difference with each other:

In systemd based script we can't run GUI applications because in that condition there is no X server for it to connect to.

So you can't use gnome-terminal in such commands like gnome-terminal --command 'compiz --replace &' . if you want to show gnome-terminal you must use powermanagement based scripts.

But in your case it's enough to use this script (without gnome-terminal):

#!/bin/sh
if [ $1 = post ] ; then
compiz --replace &
fi

And you can test your script by replacing something like touch /home/YOURUSERNAME/Desktop/test.txt instead of compiz --replace &:

#!/bin/sh
if [ $1 = post ] ; then
touch /home/YOURUSERNAME/Desktop/test.txt
fi

(Be aware that because in systemd based scripts the root user run commands so do not use ~/Desktop instead of /home/YOURUSERNAME/Desktop because the the root user's ~ is not your home directory !)


Ubiquity crash after booting up installation drive

I finally found the answer. I was using an sd-card(plus an sd-card to USB converter) to install Ubuntu, and that was the problem. Once I used a USB drive, it worked perfectly without any problems.


Maybe you need a proprietary driver for your Wi-Fi device. Its usage is disabled by default.

You can enable proprietary drivers in Software Center, Software Center -> Settings -> Configure software sources -> checkbox Proprietary drivers for devices.

Then check for priprietary drivers available for your machine:

Open Additional Drivers either through Systems Settings or by clicking the Unity dash icon and entering "additional drivers".

You can find additional information about Wi-Fi networking in WifiDocs.


By default Ubuntu uses UTF-8 for filenames.  Most modern linux distros and many other operating systems do so (Windows/NTFS is the best known exception with UTF-16).

To fix files that have names in the wrong encoding like the one you show, you can try to use nautilus-filename-repairer

sudo apt-get install nautilus-filename-repairer

You can use the PHP iconv functions to convert strings (filenames) from one encoding to the other.  Of course that requires that you know what encoding they are in to begin with.

To get correctly encoded filenames from the client, you can try the technique explained by eswald.


Maybe you have a different keyboard layout? This is the only thing I can think of. Try typing some of the special characters from your password as the user name to test whether what you type is actually what you want.

Also, run

dmesg

from the terminal; the login failure should be seen in the system logs and maybe there is some additional explanation.


Shotwell slideshow without the need of copying all photos

Shotwell has an option to "import in place" which only copies links, not the photos themselves.  Use of this option can prevent having to use storage space to actually copy the photos.


How To Install The Adobe Flash Plugin In Firefox (Snap Package)?

Pretty simple, Mark Johnson had it correct but he deleted. The way I always install flash is to go here - https://get.adobe.com/flashplayer/otherversions/

In the drop downs choose linux & the .tar.gz for for NPAPI. Extract  the download, copy libflashplayer.so to ~/snap/firefox/common/.mozilla/plugins folder, creating that plugins folder as it won't exist.

That's it. One can go to the about:plugins URL to see if it is up-to-date. If it complains that it's out-of-date (or a website you visit complains that it's out-of-date), just follow the same procedure to update it


One way would be to set the umask value to 0022 for jay. What is "umask" and how does it work? You can also set the umask in Samba's configuration. See How to force group ownership on samba share? for an example.
It does indeed stand for setgid. In a setgid folder, files and folders created inherit the group ownership, and folders inherit the setgid bit.
Settings of newly created files are set using the umask of the user.
To reset the ACL, the best way would be to use the original ACL as given by getfacl, since setfacl has  --restore option. Failing that, you could try to remove all extended ACLs using setfacl -b.

Regarding sudo and umask:
According to the Arch Wiki:

Sudo will union the user's umask value with its own umask (which defaults to 0022).

This should be fine (since the user's umask is 0022 as well).


Using for loop to create a flexible radio list in a dialog box from a shell script

To make it working, you have to add the list entries to a variable inside your for loop. Something like:

#!/bin/bash

COUNTER=1
RADIOLIST=""  # variable where we will keep the list entries for radiolist dialog
for i in /mnt/home/$USER/shell_logs/*.log; do
    RADIOLIST="$RADIOLIST $COUNTER $i off "
    let COUNTER=COUNTER+1
done

dialog --backtitle "Radiolist" \
--radiolist "test" 0 0 $COUNTER \
$RADIOLIST


Launch specific Chromium profile in Lubuntu 20.04 (LXQt)

Well I found the answer and it was pretty simple:
snap run chromium --profile-directory="Profile 2"


LightDM and GDM login loop. Ubuntu 15.04 Gnome 3

I'm not sure exactly what I did to get lightdm to successfully start a session for me except maybe allowing anyone (not just consoles) to connect to the xserver. The gnome-shell desktop still doesn't appear when I login through lightdm while it does when using startx.


Why I can't uncompress a .bz2 file using tar?

You can't use the tar command because the archive isn't a .tar.* file. To uncompress a bzip2 file, use the following command (this won't preserve the original .bz2 file):

bzip2 -d enwiki-latest-pages-articles.xml.bz2

If you want to extract it and keep the original, run this command:

bzip2 -dk enwiki-latest-pages-articles.xml.bz2

Source: https://superuser.com/questions/480950/how-to-decompress-a-bz2-file


Is there any way to install Ubuntu12.04 on HP Gen9 server?

Ubuntu 12.04.5 has same kernel 3.13 as Ubuntu 14.04.

I see no reason why 12.04.5 can not be installed, if 14.04 can.

But I see no reason why not install 14.04 as well.


Git remote repository & folder structure

You can create a symbolic link to the project1 folder:

sudo ln -s /var/git/project1 /project1


Adding users to groups with gpasswd and useremod

No difference. They're just doing it from different perspectives:

usermod is operating on a user. Its main argument is the username.
gpasswd is operating on a group. Its main argument is the group name.

Aside from that, IMO usermod has greater potential for damage. If you forgot the -a option, it will remove the user from all other groups and make it a member of only the docker group. With gpasswd, at worst you add or remove the user from one group.


How do I install the Ubuntu One control panel?

We don't currently build up to date stable version packages for 10.04 or 10.10.  If you want a later version, you'll either have to upgrade to a newer Ubuntu release, or use our nightly releases PPA (which may lead to occasional breakage that you wouldn't see using the versions from the main Ubuntu archives).


How to Uninstall Ubuntu that's triple-boot with Win8 and another Ubuntu version

Create a Ubuntu X86 live usb, boot from live usb, delete the ubuntu x64 partition and use grub-repair. To grub-repair use the graphical method in the following link http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/


I started to see exactly the same problem two weeks ago, on my VirtualBox VM running Ubuntu 14.04. It could finally solve it by disabling the Mouse Integration feature of VirtualBox. So, if you are running Ubuntu in a VM, the hypervisor could be the problem.


Ubuntu updating stopped while processing apt-get update

It is not a bug. Just do Control+Z followed by fg.


In another forum, forum.developer.nvidia.com, "nekokeitai" wrote something which worked for me. These commands can be used via ssh on the remote Ubuntu 18.04 PC:

Install vino:

sudo apt install vino

Find the UUIDs of your connections and use them as a comma separated list inside the square brackets of the last configuration line. I have only tried one UUID inside the single quotes, though:

nmcli connection show

Configure vino:

gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
dconf write /org/gnome/settings-daemon/plugins/sharing/vino-server/enabled-connections "['']"

Start vino:

export DISPLAY=:0 && /usr/lib/vino/vino-server

Now, on the local PC use remmina with VNC protocol to connect to the remote PC.


if I reinstall the same system, it remains the same?

Have a look here https://help.ubuntu.com/community/UbuntuReinstallation

Conclusion: It is safe, but you ALWAYS should back up anyway.


man (the command, not the user) is a help application. Applications provide man pages in their packages but man needs to know where they are and also what help they provide. To speed things up — so man isn't search the whole filesystem when you type man <command> — these man pages are indexed into a database by a command called mandb.

In Ubuntu mandb stores indexes in a GNU gdbm database at /var/cache/man/index.db (and a few language specific versions in the same directory). This is a key-value hashing database not dissimilar to memcache, or a hundred other implementations on similar ideas. It's binary, light and fast. I'll throw in an example of how to play with it at the end.

This indexing is scheduled to run daily in Ubuntu by /etc/cron.daily/man-db. The whole script runs as root and does some cleaning up first but right at the end we see mandb being run as the man user:

# --pidfile /dev/null so it always starts; mandb isn't really a daemon,
# but we want to start it like one.
start-stop-daemon --start --pidfile /dev/null \
                  --startas /usr/bin/mandb --oknodo --chuid man \
                  $iosched_idle \
                  -- --no-purge --quiet

It's not changing group, which is why all the group ownerships in /var/cache/man are still root.

But why does mandb run as a different user at all? It could (probably) run just as well as root but it's processing input from a variety of sources (look at manpath). Running as its own user insulates the system from the process blowing up —or worse— being exploited by malformed, corrupted or malicious man pages.

The worst that could happen would only affect the man pages index. Boo hoo. You can confirm that with something like:

sudo -u man find / -writable 2>/dev/null

And you can use that approach to see how much damage any user could wreak on a system. It's a good idea to audit your file permissions (I just found out that any user could delete my entire music collection, for example).

You can peek at the database with accessdb. Here are a few random records:

$ accessdb | shuf -n3
fpurge -> "- 3 3 1380819168 A - - gz purge a stream"
fcgetlangs -> "FcGetLangs 3 3 1402007131 A - - gz Get list of languages"
ipython -> "- 1 1 1393443907 A - - gz Tools for Interactive Computing in Python."

Though not entirely clear from the above, there are actually tab-separated fields in there:

<name> -> <ext> <sec> <mtime> <ID> <ref> <comp> <whatis>

You can read more about the actual field contents in the technical manual.


Crash of Ubuntu 15.04 working in Libre office

I solved the problem.(but just until Ubuntu has a better update on drivers or something else). There it goes:

I just verified it on nvidia video cards.

Select the driver options. Then, select: [nvidia legacy binary driver - version 304.125 of nvidia-304-updates (proprietary)]

I don't know why this is the option which works, but it does.


It is not a good idea to install Nvidia drivers from .run files, downloaded from Nvidia site. This way they will not be registered properly by dkms and you will get black screen after first kernel update.

Good way to install the driver is to run:

sudo apt-get install nvidia-current

Or go to System Settings -> Software & Updates -> Additional Drivers and install driver from there.

But if you are sure, that you need to do it this way, then here is the command:

sudo stop lightdm


What happens if I choose "Install Ubuntu alongside archlinux" during installation guide?

Ubuntu will create it's own partitions. Normally, Archlinux is safe; however, backing up data is always recommended. Weird things can happen.

I would recommend resizing the partitions yourself then tell the ubuntu installer to use free space to install.


Is it possible to run virtualbox if my CPU doesn't support hardware virtualization?

Well I've seen some contradicting information, some say yes, most say no however. This is especially true with newer machines, operating systems and versions of VirtualBox.

Below post has a little bit more information, but it basically says the same thing.

How to run virtual machine when my processor does not support virtualization? | Super User

You might want to include a little bit more about your CPU in general in case some genius out there has come up with a way to do it that will work with your specific system.


can I turn off window grouping with dockbarx?

In case anyone else is interested in ungrouping Prism windows (this is ONLY for Prism), the DockbarX developer responded to another question of mine and indicated that he's hoping to include this functionality in the next release. Again, this is ONLY for Prism windows; he's not planning on allowing ungrouping of "normal" apps.


I think this technique will not work. Because you don't know in which position you installer crashed. Check your disk first.

If you want to install grub manually then:
Login using livecd. Open terminal, login as root:

sudo -i

find out your linux disk :

fdisk -l

mount it:

mount /dev/sdaX /mnt

Recover:

grub-install --root-directory=/mnt /dev/sda

For more information
http://shantanucse.blogspot.com/2011/10/how-to-recover-ubuntu-904-or-higher.html


Connecting to a server via the command line

While ssh is not the same as Samba, and therefore it was likely that you failed, you can do a cifs-mount for a Samba-shared directory:

create a folder in your (Johnny's) home dir e.g. mkdir univerity_space
then connect via

sudo /bin/mount -t cifs -o user=UNIVERSITY_USERNAME,uid=1000,gid=1000 //foo.bar.com/user /home/johnny_johnson/university_space

check that your local (Ubuntu) user ID and group ID is 1000 via echo $UID (that is under which username and group the folder permissions are to be set on your Ubunut machine, i.e. it should be Johnny's in the end). It might be another number, just take that then.
you will be prompted for the password
disconnect via sudo /bin/umount /home/johnny_johnson/university_space

Note that the permissions you are setting now are permissions in terms of your local Ubuntu machine. See for @madneon's answer on the differences of ssh and Samba.


Make custom app available on 'Activities' of Ubuntu

You can do it by creating a .desktop launcher for Eclipse in your ~/.local/share/applications/ directory.

Create a new file, say eclipse.desktop in your ~/.local/share/applications/ directory. You can do that by running the following in Terminal

touch ~/.local/share/applications/eclipse.desktop

Open this file with a text-editor, for example by running

gedit ~/.local/share/applications/eclipse.desktop

Add the following lines to this file and save the file

[Desktop Entry]
Comment=A comment to describe the application
Terminal=false
Name=Eclipse
Exec=/home/YOUR-USERNAME/.local/share/umake/ide/eclipse/eclipse
Type=Application
Icon=eclipse
NoDisplay=false

In place of YOUR-USERNAME put your actual username.


Did it exist? You can choose a setting on bootup which lets you boot into save mode or terminal mode or just text mode and stuff...

if it didn't exist just type sudo rm -r /usr/share/X11/xorg.conf.d/20-intel.conf

(not sure about the -r option, but guess without)

if it did, type sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf and edit the file to its root.

exit and reboot or use a live dvd to edit your system.


Is there any way to extract content of .vdi file?

P7Zip will open VDI files

Install P7Zip-Desktop from Ubuntu Software.

Open folder containing VDI file in Nautilus, (Files).

Right click VDI file and select Open with Other Application.

Select P7Zip Desktop.

Double click the VDI file in the P7Zip window.

View or extract files as you like.


Change Folder Permissions and All Sub-Folders

Try chmod -R xxx <files> where xxx stands for your desired permissions for owner, group, and the rest of users.

The -R flag makes the result of the command to be recursive into the subfolders.

The chown command changes the owner of the files, the chmod fits better if you only want to change permissions.


Ubuntu 14.04 - Lenovo Ultrabook Touchpad Drag not working

I found the answer here,
Disable Mouse Movement in Tap Zones on Synaptics Trackpad

and I used:

synclient AreaBottomEdge=4200

It worked perfectly fine with my laptop.


You do not have flash installed. It does not come pre-installed in Ubuntu. To install it open a teminal window (ctrl + alt + t) and type:

sudo apt-get install flashplugin-installer

If you are not familiar with using the terminal you can follow the instructions here.


Use Ubuntu network share for Apple TimeMachine backups?

NOTE: this is now out of date. See linked question re: TimeMachine in High Sierra

This is actually really straightforward. My solution below works for a single user, but can likely be easily adapted for multiple users.

On the Ubuntu machine:

Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at /mnt/backups in /etc/fstab, and you've created a subdirectory called myMac in this backup folder). Because this is a network share it actually doesn't matter what format the disk uses - it could be ext4, btrfs, etc.
Install netatalk (open source AFP):

sudo apt-get install netatalk

Configure the Apple share by editing location at the bottom of the /etc/netatalk/AppleVolumes.default file (comment out the line with the home directory and add the actual mount location; add your username):

#~/                "Home Directory"
/mnt/backups/myMac "TimeMachine"    allow:username options:tm,usedots,upriv

(I'm not sure that options:usedots,upriv needs to be explicitly set but it works for me.)
Restart the netatalk service:

sudo service netatalk restart

Make sure ports 548/tcp and 5353/udp are open in your firewall.

On the Mac machine:

Open the terminal and enter:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Reboot the computer.
Mount the network share location by selecting the network share from the leftmost pane in a Finder window, or by selecting "Connect to server" from the Finder app's "Go" menu (or press ⌘+K) and enter the machine name or IP address of your Ubuntu machine:

afp://123.456.789.123

Use your Ubuntu user credentials to authenticate when prompted.
Go to Time Machine preferences (accessible from "System preferences") and select "Change location", selecting to encrypt backups, and begin the backup setup process.

This will automatically create the sparsebundle file necessary for backups.

After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺


How to change the color of the 'Incorrect Password' text

You need to recompile unity-greeter for that. Here is how to do it.
Download the source
Download the unity-greeter package source for Xenial from (the one with .tar.xz extension) here https://launchpad.net/ubuntu/xenial/+source/unity-greeter and extract it into your home directory.
Change the source
Now open the file src/prompt-box.vala and go to the line no. 438 The relevant area of the source will be like this
...
        Gdk.RGBA color = { 1.0f, 1.0f, 1.0f, 1.0f };
        if (is_error)
            color.parse ("#df382c");
        label.override_color (Gtk.StateFlags.NORMAL, color);
...

Now change the hex value of the color to your desired value. I used #33A0FF to test it.
Recompile
Now you need to recompile it. You may need development packages to do so. I needed these package to install libindicator-dev libido3-0.1-dev liblightdm-gobject-1-dev libindicator3-dev libunity-settings-daemon-dev unity-settings-daemon-dev
All dependency requirements can be fulfilled by installing these packages
sudo apt install autoconf-archive gir1.2-gdesktopenums-3.0 gir1.2-gnomedesktop-3.0 gir1.2-gtk-2.0 gir1.2-ido3-0.1 gir1.2-xkl-1.0 gnome-common gnome-desktop3-data gsettings-desktop-schemas-dev libcanberra-dev libcanberra0 libdbus-glib-1-dev libgnome-desktop-3-12 libgnome-desktop-3-dev libgtk2.0-dev libido3-0.1-dev libindicator-dev libindicator3-dev libindicator7 liblightdm-gobject-1-dev libtdb1 libunity-gtk3-parser0 libvorbisfile3 libxkbfile-dev libxklavier-dev sound-theme-freedesktop unity-gtk-module-common unity-gtk3-module unity-settings-daemon-dev xvfb

Now, go to the root of the extracted folder and use these commands sequentically to build
./autogen.sh
make

If first command complains about some missing packages or header files, you need to research which package may contain that header file. Usually the package name would be something starting with the lib prefix and ending with -dev suffix and contain the name of the file that was missing.
Once you successfully make the build, install it using
sudo make install

Now just login and see the effect!
Here is a screenshot after I modified the text color (taken using dm-tool)


I first got confused because a fat client is usually not what LTSP calls it.
A Fat client is a traditional PC, with local HDD containing the OS and applications etc.

LTSP's "fat clients" are actually "Fit Clients" : no local HDD but everything still runs locally. Your Fit client mounts its partitions from the remote server and runs it from there.

Your ex-thin client tries to PXE boot. I guess your Fit/Fat client must also PXE boot. So it must get an IP configuration from a DHCP/PXE server. This configuration must have an IP adress, netmask etc. as well as a "network boot file name" (dhcp option 66, sometimes named "filename" in dhcpd.conf or bootpd.conf) and, optionally, a TFTP server IP address (named "next-server" in dhcpd.conf or bootpd.conf) to download the boot file name from. If no TFTP server is given, the client usually assumes that the DHCP/PXE Server is also the TFTP server.

All this is done with your DHCP or PXE Server configuration. And if there is another DHCP/PXE server on the network (for instance the one in your cable/DSL gateway), this DHCP server will not send the needed details to your clients. But a PXE server can. PXE Servers are also named proxy DHCP servers.

The PC running LTSP server can then act as a DHCP server or PXE Server and provide the correct details.
If you installed ltsp-server-standalone (and not ltsp-server), there should be a dhcp server with the package.
You must then make sure that you restarted the networking and dhcpd services :

sudo service networking restart
sudo service ltsp-server restart
sudo service isc-dhcp-server restart
sudo service dnsmasq restart

(I don't know how ltsp-server-standalone package manages DHCP and/or if you installed.configured a particular dhcp server. It could use isc-dhcp-server, dnsmasq or something else. You may have to run or update your config using ltps-config as mentionned here: http://wiki.ltsp.org/wiki/Ltsp-config ).

It seems that the dhcp server conf could be here (if you use isc-dhcp-server) :

/etc/ltsp/dhcpd.conf

and if you use dsnmasq, try to locate dnsmasq.conf (can be in /etc/ltsp/dnsmasq.conf or /etc/dnsmasq.conf)

What's sure is that you must make sure that the Fit client gets its network boot file name right.

So you must find out what dhcp server is supposed to provide IP addresses. If another dhcp server runs on your network, you should run dnsmasq as your PXE Server (AKA DHCP Proxy). Check this page for more insights for instance :
https://help.ubuntu.com/community/UbuntuLTSP/ProxyDHCP


Is it possible to have to MYSQL servers running on one physical server?

MYSQL scales up to use many cores and many GB of ram.
Adding a separate instance won't make any difference to performance.
If you are wanting to get more performance, there are numerous configuration parameters to try.

The Percona wizard is a great starting place : https://tools.percona.com/wizard

Also the documentation for tuning: http://dev.mysql.com/doc/refman/5.1/en/optimization.html


Registered User correctly suggested that this problem was related to the kernel.

He was right. The Linux version 3.13.0-63-lowlatency (buildd@lgw01-18) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #103-Ubuntu SMP PREEMPT Fri Aug 14 22:23:32 UTC 2015 kernel is the one giving problems. I guess it's not fully compatible with Acer Aspire E 15 computers.

The best working kernel seems to be this one: Linux version 3.13.0-61-generic (buildd@lgw01-50) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015.


Creating Two NFS Shares: One Read/Write and One Read Only

You cannot have two identical targets in a mount, full stop. Neither in NFS nor in the system.

But what you can do is to create a dummy directory structure, for example /export/rw and /export/rw/ro. Your data is in the latter; the former only contains the directory ro. Then you export /export/rw over NFS as read/write, and /export/rw/ro over NFS with read only permissions. I did not test it, but it should work. However, I'm not sure it is such a good idea.

Alternatively, consider tuning Samba performance -- actually, this would be my first choice. It should actually be faster than NFS (or at least not that much slower), at least according to documentation (and my anecdotal evidence; but then, I'm not reliable, since after years administrating an NFS-based solution I really hate this protocol). Read more here.


Where can I find ready to use Ubuntu 16.04

When you install Ubuntu, it's installed to fit your hardware. The preinstalled raspi images work because they are tailored for very specific hardware.  They exist because raspi devices use a completely different instruction set (ARM) than most consumer devices (AMD64).
There is not a preinstalled image for each of the billions of possible combinations of desktop and laptop hardware using AMD64 instructions.  This would be an impossible feat, and fruitless, since there's nothing particularly difficult about installing Ubuntu on AMD64 systems.
You're already aware of the "Try Ubuntu" option.  If you want Ubuntu to be installed you will have to install it.
Do you have something preventing you from installing Ubuntu?  If so, you should ask about that problem.


Broken textures(?) after resuming from sleep

Had the same issue - "fixed" by rolling back to NVIDIA-367:

Steps:

remove/disable driver PPA Purge all previous drivers check 367 is
newest available install 367 & restart
goto software/sources, find the NVIDIA drivers and disable, exit and this -should force package update, then open up a terminal:
sudo apt-get purge nvidia-*
sudo ubuntu-drivers devices    #check that 367 is available
sudo apt-get install nvidia-367
restart the computer


try with this in your console

LD_PRELOAD='/usr/$LIB/libstdc++.so.6' steam

In kubuntu 16.04 works for me


Brightness doesn't work after sleep with Ubuntu 13.04

I am currently using an earlier trick to control brightness but it is not very practical.

echo 300 | sudo tee /sys/class/backlight/intel_backlight/brightness

Change the 300 to whatever you want.

Waiting for a better solution.


Are there any alternative time and date applets for Gnome Panel?

Is gworldclock from the softwarecenter something worth installing ?

It has a plugin for different time-zones.

I found some other packages in the softwarecenter, but they're mostly used for system administration (maybe good enough for you, this I don't know)

Searching in the get-deb site didn't give me something valuable.

I know there are some beautifull widgets (e.g. Webup8 and OMG ubuntu (sites)) in HTC-style, but I'm not shure that is something you were looking for.

I hope this leads you a bit further.


How can I view internet/network usage for a single session?

You can try a workaround using vnstat

man vnstat

-l, --live mode
              Display current transfer rate for the selected interface in real
              time until interrupted. Statistics will be shown after interrup‐
              tion if the runtime was more than 10 seconds. An  optional  mode
              parameter  can be used to select between the displaying of pack‐
              ets per second (mode 0) and transfer counters  (mode  1)  during
              execution.  --style can also be used to affect the layout of the
              output.

So you can use the live mode, this require manual starting and closing so start monitoring when start your session by running the command vnstat -l and close it by (ctrl+c) when  you end your session.

$ vnstat -l

Monitoring eth0...    (press CTRL-C to stop)

   rx:        0 kbit/s     1 p/s          tx:        0 kbit/s     0 p/s^C

 eth0  /  traffic statistics

                           rx         |       tx
--------------------------------------+------------------
  bytes                      246 KiB  |         232 KiB
--------------------------------------+------------------
          max             624 kbit/s  |      620 kbit/s
      average           59.64 kbit/s  |    56.24 kbit/s
          min               0 kbit/s  |        0 kbit/s
--------------------------------------+------------------
  packets                        745  |             595
--------------------------------------+------------------
          max                121 p/s  |          86 p/s
      average                 22 p/s  |          18 p/s
          min                  1 p/s  |           0 p/s
--------------------------------------+------------------
  time                    33 seconds

If you want to see the result in live mode use the mode 1

$ vnstat -l 1

Monitoring eth0...    (press CTRL-C to stop)

   rx:      4 kbit/s   48 KiB             tx:     28 kbit/s   270 KiB

AS seen above received from starting the command is 48K running 4K/s while the transmitting is 270K running 28K/s

I think this is what do you want exactly

Another possible solution

Bitmeter OS

  BitMeter OS is a free, open-source, bandwidth monitor that works on
  Windows, Linux and Mac OSX. BitMeter OS keeps track of how much you
  use your internet/network connection, and allows you to view this
  information either via a web browser, or by using the command line
  tools.

Download your version from here.

Now you can easily install it using

sudo dpkg -i bitmeter*.deb

Once it's installed locate your browser to  http://localhost:2605/

Now to do the trick for your needs  Go to Alert tab.

create a new Alert specifying the amount of data for Internet and time for your sessions. take a look for.


dual booting problem with ubuntu and windows

Go to your Ubuntu, open the terminal and run the following command :

sudo grub-mkconfig -o /boot/grub/grub.cfg

Reboot. Windows should now appear in the boot list.


Accidently deleted header files in /usr/include/c++

You can get a comma separated list of packages that have installed files to /usr/include/c++ with

dpkg --search /usr/include/c++

and then run for each listed package

sudo apt-get install --reinstall


Unable to make a wired connect to internet after using Windows®

The problem may come from your router that your computer is connected to, some people had issue while dual booting Windows and Ubuntu. Their workaround was to disable DHCP and manually assign the same IP address to Windows and Ubuntu.


For FFmpeg with Constant Bitrate Encoding (CBR):

ffmpeg -i video.mp4 -vn \
       -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \
        audio.mp3

or if you want to use Variable Bitrate Encoding (VBR):

ffmpeg -i video.mp4 -vn \
       -acodec libmp3lame -ac 2 -qscale:a 4 -ar 48000 \
        audio.mp3

The VBR example has a target bitrate of 165 Kbit/s with a bitrate range of 140...185.


easy backup solution from windows to ubuntu server 11.10

BackupPC is pretty simple to set up. If you know how to share the folder you want backed up as a network share, setting up BackupPC is trivial.

You can also use rsync or ssh to back up remote machines, and tar to back up the server but if they are Windows PCs using network shares is easiest.

The only thing I found hard to understand is that BackupPC is intelligent about backing up machines.
At first it appears that it backs them up more or less when it wants to, you set targets like you want daily backups and do them after 6pm, but it allows for machines being turned off, so if it attempts a backup which it fails as the PC is off, it will try again later. Once you get it, it is actually pretty handy thing to have though.

You get emails letting you know if a machine has been off for a while and backups are old.

And it uses hardlinks on the server which means it doesn't have to store the same file more than once.


Has the Appindicator or GtkMenu API changed in Saucy?

TL;dr: It is a bug. Below are the reasons why it's a bug.
The bug was marked as Triaged, meaning: Yeah, we acknowledge there is a problem. We will try to fix it when we have time. The bug is filled against libappindicator source.
As can seen in comment 8 the bug is reproducible. So, yeah, everyone is able to see the problem, and will be looking for a solution, or a workaround (adhoc solution).
Here is a briefing of what status means:

Triaged:

A member of UbuntuBugControl believes that the report describes a genuine bug in enough detail that a developer could start working on a fix. (also see tip below)
Use this when you are confident that it should be looked at by a developer and has enough information


How do I Dual Boot Windows 8 UEFI and Ubuntu 12.10?

Boot on your Ubuntu-Secure disk
Choose "Try Ubuntu"
Connect internet
Open a terminal and type the following command (this will update Boot-Repair):

sudo apt-get update; sudo apt-get install -y boot-repair boot-sav

Run Boot-Repair, click Recommended Repair. Write on a paper the new URL that will appear.
Reboot the pc, you should get a GRUB menu with access to both Ubuntu and Windows. If any problem, indicate the new URL.


AMD GPU fan not working and can't sense temperature

You dont need to get fan speed. fancontrol utility works very good without any current fanspeed info. You can install via

sudo apt-get install fancontrol

My fancontrol config in /etc/fancontrol :

INTERVAL=10
DEVPATH=hwmon2=devices/platform/it87.2608 hwmon3=devices/pci0000:00/0000:00:01.0/0000:01:00.0
DEVNAME=hwmon2=it8728 hwmon3=amdgpu
FCTEMPS=hwmon3/pwm1=hwmon3/temp1_input
FCFANS=hwmon3/pwm1=hwmon2/fan1_input
MINTEMP=hwmon3/pwm1=60
MAXTEMP=hwmon3/pwm1=100
MINSTART=hwmon3/pwm1=60
MINSTOP=hwmon3/pwm1=20
MINPWM=hwmon3/pwm1=0
MAXPWM=hwmon3/pwm1=255

My case resonates at some frequencies so I have written a python script to jump that frequencies (Fan RPMS). It works very well for me. I run it on top of fan control ... if it somehow fails fancontrol takes over ... Thats why time.sleep is 0.25 second if any longer fan control kicks in ...

My python script :

import os,time
from subprocess import Popen
from subprocess import PIPE

os.system('echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level')

keepcooling=False
while True:
    time.sleep(0.25)
    with Popen(["cat","/sys/class/drm/card0/device/hwmon/hwmon3/temp1_input"], stdout=PIPE) as proc:
        fantemp=int(proc.stdout.read().decode('ascii'))

    temp=fantemp/1000

    if temp <=45:
        fanpwm=0

    if temp >45 and temp <= 75:
        fanpwm=temp

    if (temp >75 ) and (temp <=95):
        fanpwm=temp+55

    if temp>95:
        fanpwm=200
        keepcooling=True; #cool until 80C reached

    if temp>=100:
        os.system('reboot')

    if temp<=80:
        keepcooling=False

    if keepcooling and temp > 80:
        fanpwm=200

    print('temp',temp,'fanpwm',int(fanpwm))
    os.system('echo '+str(int(fanpwm))+' > /sys/class/drm/card0/device/hwmon/hwmon3/pwm1')
   # print('echo '+str(int(fanpwm))+' > /sys/class/drm/card0/device/hwmon/hwmon3/pwm1')

Be careful adjust and test many times if you want to use it.
You can monitor things via lm-sensors and psensor ...
and fan speed via

cat /sys/class/drm/card0/device/hwmon/hwmon3/pwm1


cannot create monitors.xml which means display settings are lost

ALTERNATIVE: install arandr which allows you to set up your desired configuration with its GUI and then save the corresponding xrandr command in a shell script.

You can then either make a desktop shortcut or define an alias to run that script when your monitor connects (or even write another script that  runs on startup and that detects when your monitor connects to then automatically run the xrandr script).


Update core libraries ONLY from official repositories

Not easily, and not automatically: If you enable a source (in /etc/apt/sources.list*), you are telling apt that you trust all of those packages completely. Trust is binary (yes/no); there is not a spectrum of trust.

One easy solution is to use a snap-based version of the application instead a deb-based version.

Another easy solution to get newer software is to use a newer release of Ubuntu.


Kmail error: sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)")

This is not an error of KMail, but from the remote SMTP server it is talking to.

The server (MTA) is complaining about your request. Probably you are trying to send mail and using an SMTP server which does not allow relaying in your current configuration.

Some general solutions to this:

Configure SMTP authentication according to the manual of your hosting or freemail provider. Try to find some information like "mail client configuration settings". If it's about a corporate mail server: ask your system administrator for SMTP settings for use in your mail client. Use this information to configure your account in KMail.If authenticated to the SMTP server you may have the privileges to get mail relayed out.
Configure KMail to use your ISP's SMTP relay server. Most ISPs are running one, for example listening to the name smtp.ispname.tld.However, when using another ISPs connection you cannot use the same server, but you'll have to reconfigure it according to use the one of the other ISP. Therefore, the option above is recommended for mobile PCs and should work throughout all networks.
Try to use Thunderbird's initial configuration wizard. It's quite good at guessing the right configuration options. If that works out, read the configuration in Thunderbird and set the same options in KMail.


scripts in ~/bin don't work when connecting through ssh

This is happening because when you log in via SSH, the shell you get is a login shell. In contrast, to use the terminology from the bash documentation, when you open a Terminal window in an already-started graphical login session, the shell you get is still an interactive shell but it is not a login shell.

From man bash:

  When bash is invoked as an  interactive login shell, or as a
  non-interactive  shell with the --login option, it first reads and
  executes commands from the  file  /etc/profile, if that file exists.
  After reading that file, it looks for ~/.bash_profile,
  ~/.bash_login, and ~/.profile, in that order, and reads and
  executes commands from the first one that exists and is readable. The
  --noprofile option may be used when the shell is started to inhibit this behavior.

  When a login shell exits, bash reads and executes commands from the
  file ~/.bash_logout, if it exists.

  When  an  interactive  shell that is not a login shell is started,
  bash reads and executes commands from  /etc/bash.bashrc and
  ~/.bashrc, if these files exist. This may be inhibited by using the
  --norc option. The --rcfile file option will force bash to read and  execute  commands from file instead of /etc/bash.bashrc
  and ~/.bashrc.

So you should check if you have any of these files:

~/.bash_profile
~/.bash_login
~/.profile

If you do, then you should edit the first one you find and make it add $HOME/bin to your path. If you don't, create one of them for this purpose. (The best one to create is ~/.profile since other shells will use that too.)

You almost certainly have ~/.profile, since Ubuntu's default behavior is to create this with any new user account (including the first account, created when you install Ubuntu).

However, by default this file already contains the necessary lines to add your private bin directory to the $PATH:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

So it's a bit strange that this is not already working for you.

Depending on your needs, you might want to make ~/.profile (or ~/.bash_login or ~/.bash_profile) call ~/.bashrc:

source ~/.bashrc

But it would be even better to just include lines adding $HOME/bin to your $PATH in ~/.profile (or ~/.bash_login or ~/.bash_profile), but not ~/.bashrc. After all, if you do this for every login shell, it should also happen when you log in graphically, and be inherited by all your interactive shells that aren't login shells.


STC Alcatel X080S Modem not working in Ubuntu 13.10

Open the terminalctrl+Alt+T and type

sudo apt-get upgrade
sudo apt-get update

Then after upgrade, restart the system. Now it should work fine.


ldap client causes boot to be very slow on 13.10, causes hang on 14.04

Current workaround is changing the existing script /etc/init.d/libnss-ldap to include:

[...]

case "$1" in
    start)
            cp -f /etc/nsswitch.conf.ldap /etc/nsswitch.conf
            ;;
    stop)
            cp -f /etc/nsswitch.conf.local /etc/nsswitch.conf
            ;;

[...]

you may need to first create nsswitch.conf.ldap and nsswitch.conf.local

.ldap file HAS the ldap for users, groups, shadow

.local file does NOT have the ldap setting for users, groups, shadow


No need to answer this one, I figured out the problem, when I restarted the machine which has been running flawlessly for a few months now I forgot that I installed firestarter which blocked the ports to CUPS server.  Added the printer port and all is working fine now :)


Is rkhunter still required and appropriate? Nothing seems to have been written on it since 2015. Thanks

I'm skeptical of the value of "rootkit hunters" -- once upon a time, when rootkits were malicious versions of /bin/ps and /bin/ls they may have had value, but modern exploit kits modify the kernel internals directly. If secure boot is enabled on your system, you'll have some level of protection against persistent root kits.
You'd be better served by keeping up on security updates -- we publish new kernels roughly every three weeks, and almost every kernel update includes security fixes. We publish new browsers periodically and almost every browser update includes security fixes.

sudo apt install unattended-upgrades

If openssh-server is installed on your systems, you can get very good security and usability gains by switching from password authentication to public key authentication.

Generate ssh keys
Disable sshd password authentication

Of course the usual advice about being careful of emails and email attachments applies, too.


I was able to fix it. The problem was that I wasn't able to change the displaymanager because the root shell in recovery mode is by default read only.

Type in mount -o remount,rw / to mount the drive with write permissions.
then dpkg-reconfigure gdm3 (or lightm) and switch back to lightdm

I also found that there is a bug with Ubuntu GNOME with the nvidia graphics drivers, which may have caused the problem in the first place. In the bug report it is suggested to install xserver-xorg-legacy. Hope that will help others.


.desktop shortcut behaves differently when added to dock

Adding a completely new shortcut file ~/.local/share/applications/com.phydeaux.Tlx.desktop with identical contents to the original except for Name=Tlx, then adding that shortcut to the dock achieves close to the desired behaviour for me.

This successfully opens Tilix with my session, though it opens a window under a different icon in the dock, and appears under a different name (changing the name to Tilix causes a relapse to the unwanted behaviour).


Xubuntu - change default terminal to Terminator

If you run the command:

exo-preferred-applications

you will get a dialogue box that will allow you to configure your preferred Terminal application as default.

Below is a screenshot illustrating the dialogue box with my own preferred emulator sakura:

To manipulate the keyboard shortcuts for the now-preferred Terminal Emulator open the keyboard settings:

Applications --> Settings --> Keyboard --> Application Shortcuts

and either modify the existing shortcut or create a new one that uses this command:

exo-open --launch TerminalEmulator

You will then be prompted to type in your preferred key combination.

Below are my own settings with the appropriate keyboard setting of Ctrl+Alt+T in place for the default Terminal Emulator:


How to open a directory in PHPStorm from the terminal

From your terminal you can use the alias of phpstorm: .

pstorm PATH_TO_PROJECT_DIR


Is there a way to `tar` extract without clobbering

I have difficulty understanding what you want but if you made a tar file of your whole system I believe you made a very large tar file that has not a real purpose unless you completely restore the tar file. If you wanted to save your own documents you should have made a backup of those documents and nothing else.

After saying that tar has several nifty options ...

--keep-old-files

This will not overwrite existing files.

--keep-newer-files

This will keep all files that have a newer timestamp as is.

--no-overwrite-dir

This will leave the metadata of an existing directory as is.

A manual for tar can be found here.

But I would advice extracting the tar file on another medium and manually restore those files. It is the safest method.


From the manual:

1.2  Running the program

Run XPPAUT by typing xpp linear2d.ode. Replace xpp with whatever you have decided to call the executable with all the desired command line options. (
If you are using winpp, click on the winpp icon; then choose the file from the  file selection dialog box.) Six windows will appear on the screen or they may be iconified (depending on the command line options.) (If any of the windows appear “dead” or blank, iconify them manually and then uniconify them. Next time run XPPAUT without the -iconify command line option.

2 possible options I see ...

You are missing command line options; in this case a printer choice.
xpp could contain a command to open the printer dialog.


getting issue when booting system in Ubuntu 14 in laptop

We have a similar question here that was already solved. Take a look if the same solution works with your issue too. Click this link: Are these sata errors dangerous?


SQLite header and source version mismatch

After building from source, your v3.8.4.3 version is now installed in /usr/local/lib.

You need to replace /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 (or /usr/lib/i386-linux-gnu/libsqlite3.so.0.8.6 for i386 arch) with the one from /usr/local/lib:

sudo cp /usr/local/lib/libsqlite3.so.0.8.6 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6


After 13.04 Install: Unable to Enter Online Accounts

Online accounts — and particularly online contacts — don't work properly under 13.04.

Annoying details: Bug #1024606 “gnome-contacts stopped showing contacts from Googl...” : Bugs : “gnome-contacts” package : Ubuntu


run a command as user at boot time Ubuntu 12.04

You can use the @reboot cron target.

Edit your user account crontab by using the crontab command:

$ crontab -e

Then instead of minute hour day month day of week, simply put @reboot

@reboot python /home/me/.hidden/command.py

For more info on @reboot and other cron special strings, read the crontab 5 manpage.

$ man 5 crontab


Why do I have two of most default apps showing up in my app drawer?

It is pretty sure you have two versions of these apps installed, a "regular" version from the Ubuntu software archives, and a "snap" version.

In previous versions, these apps would be listed two times. In 19.04, only the snap version is listed in Software. This, it is not a simple matter of removing the one you do not want from Software. If you want to remove the "snap" version, you can just remove it using Ubuntu software. If, however, you want to remove the "regular" version, which in current installs is not anymore the default version, you will need to use the command line or Synaptic package manager.

For your information, the terminal commands to remove for instance Calculator are the following for the regular version and for the snap version:

sudo apt remove gnome-calculator
sudo snap remove gnome-calculator

With respect to "looks": snaps do not always integrate well with your desktop theme. It might be that the one that looks "best" is the "apt" version. Just remove one, and see how the other one looks. If you want the other, remove the one you still have also, and install the other. To install, use install rather than remove in the above commands.


If memtest freezes, you very likely have a hardware problem. It's probably your RAM, but there is no way to be sure.
If you did any overclocking, the first thing to try is to reset that to normal. Similar with RAM timings: If you changed those, reverting them to factory defaults in the BIOS would be worth a try.
If you are sure you did none of that, it's time to replace the RAM. According to the memtest output, you seem to have a single bank of RAM, right? If it's more than one, you could try to remove part of the RAM (make sure the lower RAM banks are filled) and re-check; you might get lucky and find out which of the RAM modules is affected.
But first check if you maybe have an thermal problem: Check the temperature inside the PC case. Open it to see if all fans are spinning. Clean out the dust puppies (very carefully with a vacuum cleaner and if you have it, with compressed air in a can; or with a photo "rocket blower" if you have one).
HTH


Ubuntu crash after each Windows 10 boot since update

ok, found!

As @davidbaumann said, it was the fake windows shut-down.

Seem the Fall update force-enable the Quick-boot feature, even if you've disable it, as said here: reddit/win_10_reenabled_fast_startup.

Disable it again solve the issue (but Windows "I'll do it no matter what you said" start to really p*ss-me off...)


Create a single pdf from multiple text, images or pdf files

If you're willing to use a terminal, you can use ImageMagick.  Install it with

sudo apt install imagemagick

then you can do:

convert image1.jpg image2.png text.txt PDFfile.pdf outputFileName.pdf

It worked for me, but the problem is it converts the text.txt file into an image, so you can't highlight the text in the resulting pdf.


How do I search a PDF file from command line?

Just to add to the above answer, in particular you can use a command line tool from xpdf-utils called pdftotext and then search the text document created by this tool with grep.

This might look something like this:

pdftotext document.pdf - | grep -C5 -n -i "search term"

There is more information in the manual. The only drawback to pdftotext is that you can't us globbing to transform multiple files at the same time. This problem can be overcome with a small bash script:

for f in pdf_directory; do echo $f; pdftotext $f - | grep -i "search_term"; done

If you are having problems creating a text document from a pdf due to, for example, an incompatible pdf file, then that is another problem.

I think in general, pdf editors don't include command lines because they are graphical. If you want to use bash, (or maybe zsh!) then you might have to use a terminal shell.

Good luck!


Can't open SD card files, card locked by Bitlocker in Windows

First, make sure the SD card is not physically locked with a lock switch, as shown below.

The most reliable way is to put it back on the Windows PC with Bitlocker which locked it, and unlock it there.

The Linux alternative is Dislocker, installed with

sudo apt update && sudo apt upgrade && sudo apt install dislocker

Dislocker needs two directories so make them with

sudo mkdir -p /media/bitlocker && sudo mkdir -p /media/bitlockermount

Run gparted and confirm the encrypted card is /dev/mmcblk0p1 (and if not, substitute its name for /dev/mmcblk0p1 below)

Then open the encrypted card and mount the unencrypted volume in /media/bitlockermount with

sudo dislocker /dev/mmcblk0p1 -u<password> -- /media/bitlocker

sudo mount -o loop /media/bitlocker/dislocker-file /media/bitlockermount

You can use the recovery password instead of the user password by replacing the first dislocker line above with

sudo dislocker /dev/mmcblk0p1 -p<password> -- /media/bitlocker

Lastly, open /media/bitlockermount with your GUI file manager, and there are your files.


How to install .Net framework for running Windows applications?

on ubuntu ? through WINE ? running a virtual machine ? we can't help you with out more details !


How to remap a key combination to a single key?

You can use xbindkeys to grab the keys and xvkbd to send keys.

Create a file .xbindkeysrc in your home directory and paste this text:

"xvkbd -xsendevent -text '\[Delete]'"
  Alt + BackSpace

"xvkbd -xsendevent -text '\[Home]'"
  Alt + Left

"xvkbd -xsendevent -text '\[Page_Down]'"
  Alt + Down

Then start xbindkeys and it should work. Probably you want to map more keys, then after you edited the .xbindkeysrc you can run pkill -HUP xbindkeys to send a HUP signal to xbindkeys (or kill xbindkeys and start it again).

To see the key names that xbindkeys sees, you can run xbindkeys -mk (man xbindkeys has more info).

To see the key names that xvkbd knows, have a look in /usr/include/X11/keysymdef.h (maybe someone else knows a better method?).

xbindkeys only runs until your X session ends, so you probably want to put it in your startup (auto-start) programs.


Is there a roadmap for https support for ppas?

There is no need in https because all packages in PPA are signed with GPG.

So it does not matter where do you download the packages from if you are sure that they are authentic.


This may be a solution: http://blog.olivier.coupelon.net/2008/10/apache2-webdav-userdir-based-file.html

It's not a good solution, but it does work.


The gnucash-common package appears to only have plain nl as a translation for Dutch. I am not sure why, but it appears that the loading of translations is not falling back to that as an option.

However, running LANGUAGE=nl_NL.UTF-8 ANG=nl_NL.UTF-8 gnucash in the terminal, does seem to work for me. Is one of these variables not set correctly in your environment? Are you missing a language-pack package that may be required for the translations to work in your language in gnucash? You may need language-pack-gnome-nl-base installed for it to work.


How to get my 3G ZTE MF XXX / Prolink PHS XXX dongle working in Linux

There are two approaches.

1) Sakis3g

Sakis3g is an open source program, which is capable of connecting a wide range of USB modems to the Internet. Sakis3g is easy to use. At the time of writing it does not offer SMS & USSD features.

Installation
Open the Terminal and execute each command in order:

  sudo apt-get install net-tools usb-modeswitch
   wget "http://raspberry-at-home.com/files/sakis3g.tar.gz"
   tar -xvzf sakis3g.tar.gz
   chmod +X sakis3g
   ./sakis3g --interactive

Alternatively you can copy the entire code below to Terminal and run:

  sudo apt-get install net-tools usb-modeswitch; eject sr1; wget "http://raspberry-at-home.com/files/sakis3g.tar.gz"; tar -xvzf sakis3g.tar.gz; chmod +X sakis3g; ./sakis3g --interactive

To start the program, execute:

  ./sakis3g --interactive

2) ZTE Mobile Connect

ZTE Mobile connect is a proprietary modem manager program for most of the ZTE & PROLiNK mobile broadband devices. There is a higher chance that you can find this software inside your mobile broad band device. (If not, here is my one)

This software requires 32bit versions of the following dependencies:

libaudio2
libqt3-mt
wvdial

To install, execute this command in your Terminal:

  sudo apt-get install libaudio2:i386 wvdial

  wget http://mirrors.kernel.org/ubuntu/pool/main/q/qt-x11-free/libqt3-mt_3.3.8-b-8ubuntu3_i386.deb

  sudo dpkg -i libqt3-mt_3.3.8-b-8ubuntu3_i386.deb

  sudo apt-get install -f

Once you have installed the dependencies, navigate to the directory of ZTE Mobile connect folder and execute the installation script:

  chmod +X install.sh
  sudo ./install.sh

(or simply type "sudo bash " without the quotes, then drag & drop install.sh file on your Terminal)

After the installation, execute the below command to start the program:

  Connect_Manager

You will get an application launcher as well.

Can't Mobile Connect detect your dongle?

The dongle must be flipped into the modem mode in order to use with this software. Therefore you might want to do it by the command below:

  eject sr1

(sr1 is chosen assuming that you have a single optical disc reader. If you have two, make it sr2. If you have none, make it sr0)
To automate the flipping process, install usbmode-switch package.

If that doesn't work, then Mobile Connect doesn't support your device. You may want to try sakis3g.


Piggy back ubuntu desktop on my windows laptop wifi so the desktop can access the internet?

Here are some possible options and alternatives I can suggest:

Download the driver on Windows machine, save on USB, transfer to Ubuntu, install that driver with sudo dpkg -i package-file.
Boot that Windows machine with an Ubuntu Live CD or USB that you used for installing Ubuntu (hopefully you still have it) and use that live desktop in as wifi to ethernet source as shown in this answer
Use usb tethering from a smartphone. If you don't have one, ask a friend, and find out who will help you in the time of need.
If everything fails with that Netgear dongle, buy usb dongle with RTL8192 chipset cheap and works out of the box. I've used it on two laptops with Ubuntu, one PC, and one Windows PC. No driver installation necessary (on the Linux side, but on Windows you will have to install it from a cd that comes with the package) and signal is strong even in the most bricked-up buildings on my college campus.


You have to go to Dash and select "Text Entry" as shown in the picture below

Then you have to press + button to add your preferred languages.


How can I remove incomplete installation of Ubuntu 13.04?

To dual boot your machine Ubuntu needs some unallocated disk space.

Open disk management, select any big disk and right click, then select option shrink volume, type 70000MB (that's enough to run smoothly) and hit enter. You will get a black area as unallocated. Now make a bootable pendrive of Ubuntu, shut down your system, boot your pendrive using boot key and select USB. Select Install Ubuntu

You will get an option Install Ubuntu alongside Windows, which you should select. This should install Ubuntu on your system (make sure both operating systems are in UEFI mode (or both in Legacy mode - check the BIOS or UEFI settings if unsure). If this option doesn't appear then choose the Something else option and you will have to manually partition unallocated space (sample images attached here)

Continue installation...reboot after completion.. hope this helps :)


ubuntu 13.10 video good but sound choppy on NHL Gamecenter Live at 1600 Kbps

I think I found a solution. I just went and scanned for updates on my entire system. Updated it all, restarted and I went Gamecenter to playback a game and the audio skipping had stopped. Give updating everything a try. Hope it helps!


Prefix for MySQL tables in Ubuntu Home Server

During the installation of mysql-server you should have added a root password for the mysql account. This is what you should be using to configure the initial development databases.

For exmaple, If I had a wordpress site that I wanted to develop on. Then I could do the following.

Log into mysql:

mysql -u root -p

Create a new Wordpress DB
create database wordpress;
Add a user for wordpress
grant all on wordpress.* to 'user' identified by 'password';

Now you can log in to mysql using this new user and password, and enter the same credentials for whatever application you are using.

You can repeat this process for any database and any applicaiton stack, wordpress was just a simple example.