SSSD Ubuntu 16.04 Joining WIndows 2012 Domain

i built a script for it. here you go! https://github.com/PierreGoude/Linux-Active-Directory-join-script


Can I add “open in terminal” to the right-click mouse menu in Lubuntu?

Well, given that Lubuntu is thought of as a "lighter" distro, we'll find quite a few favorite features totally missing or not where we'd expect them to be. In this specific case, if you navigate to a particular folder in PCManFM, please press F4 to open a terminal in the current folder.  (You can see the F4 option and others such as "Open Current Folder as Root" in the Menu, Tools dropdown of PCManFM.)

This doesn't mean that there isn't a way to add the "open terminal here" to PCManFM's right-click menu. But I don't know of one. Instead, I've installed Thunar, the file manager by default in Xubuntu, and that does have the option you want along with useful things like Custom actions.


Rsync copy files that I don't have already using a list

Sync a directory from one computer to another using an external drive, without copying the whole directory:

In the destination (computer A, in your case):

Generate the list of files you already have and save it to the external drive:

cd /PATH/TO/MEDIA
find -type f | cut -c2- > /PATH/TO/EXTERNAL/DRIVE/my_files

You have to cd to the folder you want to sync, so find will generate a list of files using relative paths.
In the origin (computer B, in your case):

Copy only the files you don't have to the external drive:

rsync -a --exclude-from=/PATH/TO/my_files /PATH/TO/MEDIA /PATH/TO/EXTERNAL/DRIVE

Make sure you don't include a trailing slash (/) in /PATH/TO/MEDIA.
Back to destination (computer A, in your case):

Copy the files from the external drive to your directory:

rsync -a /PATH/TO/EXTERNAL/DRIVE/MEDIA/ /PATH/TO/MEDIA

Now, make sure you do include a trailing slash in /PATH/TO/EXTERNAL/DRIVE/MEDIA/.

More info: Rsync manual page.


What happens when a package is duplicate in sources?

So what happens, after I added the source and I do sudo apt-get install owncloud?
Which package will be installed?

The package with greater version number will be installed and if they have the same version number, then it will select the one has their entry first in the sources.list. You can check the Candidate version using apt-cache:
apt-cache policy owncloud
owncloud:
  Installed: (none)
  Candidate: 5.0.13+dfsg-2
  Version table:
     5.0.13+dfsg-2 0
        500 http://ftp.us.debian.org/debian/ testing/main i386 Packages

(I'm using Debian, but it get you an idea).

And how does apt-get know which package it should install?

Looking at the package lists cache that gets downloaded and updated each time you do update.


nVidia prime: external monitor only recognizes 4:3 aspect ratios

Okay, I connected the monitor via HDMI instead of my good old VGA cable. Everything works now. No idea how this happened, but a good workaround.


Ubuntu 10.04 not seeing SCSI scanner (Scanpartner 15c)

Recent releases of the sane (Scanner Access Now Easy) packages apparently removed support for the Fujitsu scanpartner.

So while the sane-fujitsu system of backends no longer

Apparently the sane-sp15c backends do.

Will test and report results here.

Details: http://www.sane-project.org/man/sane-sp15c.5.html

See also:

http://www.sane-project.org/man/sane-fujitsu.5.html


Had the same problem... and CTRL+M also solved it for me. I never actively hide my menus, so arriving at this solution was not intuitive. No idea what (bug?) caused the sudden disappearance of the menu.


It happens, because Windows 8 is not turning off computer completely, but it is more like hibernation - it saves the disk state and computer can boot faster. Hibernation "locks" the disk so we have to disable fastboot, which is reason why Windows 8 doesn't turn off properly.

In Windows, go to Control Panel, Hardware and Sound, Power Options and select "Choose what the power buttons do"

Then click on "Change settings that are currently unavalible"

and uncheck "Turn on fast startup"

Don't just turn Windows off, turn it off and back on. And then turn it off (Helped in my case).

Also, you could try disabling hibernation mode by typing powercfg /h off in cmd.exe with administrator permissions.


How to disable upgrade/update of selective packages permanently?

Finding package names

One way is to use apt-get dist-upgrade instead of the software updater GUI. It will generate almost the same list of packages, however, it will use their package names instead of their "human friendly" titles. This will allow you to run apt-mark on them.

That will at least make it easier.

Doing it in bulk

If you want to do them all at once, you can save the packages to a text file called package_list, one package per line; then run

$ sudo :; cat package_list | xargs sudo apt-mark hold

xargs will take each line in turn and append it to the apt-mark command line. The first command, sudo :, simply caches your credentials so that you don't have to type your password when running sudo apt-mark several times; If you're running as root anyway, you won't need this, but it allows you to do as much as possible without elevated privileges.

Warning

I have not tested the xargs line. Besides, it's good practice to read and understand any command before running it; especially when using sudo/root. ;-)

What can go wrong, and why

I know you said you wanted to allow 2-3 packages to upgrade normally; but if you're not really careful, you can prevent a package from upgrading even without putting a hold on it directly, because if the newer version of your package depends on a newer version of another package which has a hold, neither can be upgraded without first removing the hold.

So, if you want to allow a specific package to update, ensure that all of its dependents have no holds, either. The list generated by an updater can be misleading, because it's usually a flat list of packages, without the dependency tree used to generate the list in the first place.

History

The "Software Updater GUI" used to be a lot less polished — and a lot more useful, back in the bad ol' days when Ubuntu was still young. In fact, it used to show the package names along with the titles.


How to get connection to both wifi as well as LAN in ubuntu 14.04 LTS?

Step by Step Procedure:

Ubuntu allows multiple connections by default, but sometimes, we need to specify which one to use. In your comments, you have mentioned that you use LAN for the Intranet and WiFi for the Internet.

So, firstly search for Network Connections in the unity dash. Then, under the Ethernet section, click 'Add' button.

Then,  we need to create a new Ethernet connection which we are going to enable manually. Uncheck the option of connecting automatically since this is your Intranet connection.

Then go to the IPv4/IPv6 settings (depending on your network) and then click on the Routes button. Check the 'Use this connection only for resources on its network' option. Click Save.

Now you can use both the LAN and WiFi simultaneously.
Source


How to decide on the right Nvidia driver based on the Linux Kernel version?

I think there is already automatic updating for lasted nvidia drivers directly in update menu (look for additional drivers  menu)


DNS not working after upgrade 17.04 to 17.10

I was updating Ubuntu today form version 16.10 through 17.04 to 17.10. For me too DNS stopped working. The resolv.conf symlink was

/etc/resolv.conf -> /run/NetworkManager/resolv.conf

This is apparently wrong for 17.10.
The error message the previous poster got is from the output of resolvconf -service:

$ systemctl status resolvconf

It gave the following output.

resolvconf[623]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf

By removing the original symlink, linking to /run/resolvconf/resolv.conf to /etc/resolv.conf and restarting the resolvconf -service DNS began working again:

$ sudo rm /etc/resolv.conf
$ sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
$ systemctl restart resolvconf

Interestingly the exit code of the resolvconf-service was success even before the symlink was pointing towards the correct file.


Java iced tea isnt working with runescape, ubuntu 14.04

Are you sur you have install correctly openjdk ?

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install openjdk-7-jdk icedtea-7-plugin openjdk-7-jre


Simple messaging queue for inter-app communication over internet

Support for desktopcouch was dropped, but couchdb itself still has built-in support for syncing over the internet and is heavily used by Novacut for exactly that purpose.


how long should it take to install when writing over the harddrive?

This is a bad sign.  Abort the installation and boot with the Ubuntu Live-DVD, choose Try Ubuntu, go to a terminal by pressing Ctrl+Alt+T and type the following command:

sudo apt-get install smartmontools
sudo smartctl --scan

and for each line of output do a:

sudo smartctl --all /dev/XdY

where X and Y are the letters of the drives that came up with the smartctl --scan command.


Ubuntu 14.014 not detecting my ASUS Zenfone 5

Try to plug it into on of your USB 3.0 ports (xhci_hcd) if you have one.

I have the same issue when I plug my zenfone into any of my USB 2.0 ports (ehci-pci), it just detects the phone but doesn't mount it.


Scaling with a 4k monitor and 2k monitor

Assume you are using x-window, ubuntu 18.04/18.10, gnome. An approach to your problem is: keep resolution of 4k monitor, raise your 2k monitors resolution to 4k and scale up all windows 200 %. Detail step as follows:

Connect all monitors
Go to setting > displays > set scale to 200% (global scaling)
Type xrandr to check for id of all monitors. Here I assume you have monitor 'HDMI-0' of 3840x2160, monitor 'HDMI-1' and 'HDMI-2' of 1920x1080. Now assume you want to place (left) 'HDMI-0'-'HDMI-1'-'HDMI-2' (right).
Run the following

  xrandr --dpi 276 --fb 11520x2160
  --output HDMI-0 --mode 3840x2160 --pos 0x0
  --output HDMI-1 --scale 2x2 --pos 3840x0 --panning 3840x2160+0+0
  --output HDMI-2 --scale 2x2 --pos 7680x0 --panning 3840x2160+0+0

(Note: 11520=3840+1920x2+1920x2)


What files get edited when the system time changes?

The time is not kept in a file, because obviously it would not change.  It is kept by the system's real time clock, which counts time even when the system is off via a small battery.


What is the difference between Windows UEFI bootmgfw.efi and Windows UEFI bkpbootx64.efi?

Usually nothing.

The bkpbootx64.efi is a backup regularly created by Boot-Repair. With Windows the bootx64.efi is just really a copy of Windows bootmgfw.efi. And bootx64.efi is a fallback or hard drive boot entry in UEFI.

But Boot-Repair with its 'Use the standard EFI file` in advanced options creates the bkpbootx64.efi and makes bootx64.efi a copy of shimx64.efi so fallback or hard drive boot entry in UEFI really boots grub not Windows.

About the only way to tell which is which is by checking file size or what actually boots. If Boot-Repair created 25_custom for all the HP entries you probably can delete most or all of them.

Edit 25_custom entries created by Boot-Repair:

sudo cp -a /etc/grub.d/25_custom /etc/grub.d/bkp25_custom

turn off execute bit or it will run backup also

sudo chmod a-x /etc/grub.d/bkp25_custom
sudo nano /etc/grub.d/25_custom

Then do:

sudo update-grub


Query regarding new installation of Ubuntu 18.04

Check the results of grep -r proxyhost /etc/apt/ --include="*.conf" and remove any Acquire::XXX::proxy where XXX is http/ https / ftp.

Check the /etc/environment file for proxy information.

Renew your DHCP information.
sudo dhclient -r


Is possible to back up files to two different hard disks at the same time?

unfortunately there is no (direct*) way to use 2 different destination folders within the same task.
Each task will first calculate differences between one source & one destination and then proceed to data transfers accordingly.

* If your goal is to increase the backup disk redundancy, consider using some kind of disk raid.


How to install wkhtmltopdf 0.12.1 on Ubuntu server?

In Ubuntu 16.04 and later wkhtmltopdf 0.12.2+ can be installed from the default Ubuntu repositories.

In Ubuntu 14.04, open the terminal and type:

sudo add-apt-repository ppa:ecometrica/servers
sudo apt-get update
sudo apt-get install wkhtmltopdf

In Ubuntu 12.04, open the terminal and type:

sudo add-apt-repository ppa:pov/wkhtmltopdf
sudo apt-get update
sudo apt-get install wkhtmltopdf

and one step after this is to reboot the server or else you will get the error: wkhtmltopdf: cannot connect to X server .


Qemu vs. Xen(Qemu): virsh can't find qemu

there is no need to install the qhole qemu package. only qemu-util is needed. It contains beside some other stuff qemu-img which is needed for virsh. Size after installation is 17,3 MB.

I still don't know if this small package influences the Xen system, but time will show. I'll keep this up to date, if there are upcomming problems.


loadable library and perl binaries are mismatched

I was able to get some help on #perl-help

I have installed Slic3r slightly incorrectly by not using perlbrew, so an Ubuntu update broke the libraries for it.

by deleting the local-lib folder, I was able to run the Build.PL script to rebuild everything and now it works.

I will try to update this answer if I manage to install Slic3r properly to ensure a true 'fix'.


I was able to fix this myself by removing the file ~/.Xauthority. For the record, you can find startup logs for LightDM under /var/log/lightdm - from there I was able to see that LightDM was getting stuck on something in that file, so I renamed it and was able to successfully log in.


Repositories not enabled on fresh boot - is this a problem?

No, this is not an issue to be overly concerned about.

Your system will operate fine and you will only run into problems trying to install and update via the package manager.

The repositories are only used for updating and installing the packages on your machine via the internet. While your apt-get install commands will fail saying something about the packages not existing or found, you can still install and update via a USB storage device or Ethernet cable to another machine.

If you re-enable them permanently you are back to a normal system or you can script it to re-enable only when you want to update if you want to only update during specific times.

Or just disable automatic updates.

I was recently working on a project where this was actually part of the system design: all the base system repos were commented out and some custom update repositories were added in to update only the packages we wanted (not my design, just how it was set up before I got there).


How to search for a string inside of multiple files (in nested folder structure)?


Where is the documentation for the .desktop unity launcher file format?

The file format is specified in the Freedesktop.org Desktop Entry Specification


Scripting Problems - Unexpected End of File using IF/THEN

Change this line:

if [ $origin == unmount ]; then

to this:

elif [ $origin == unmount ]; then

You're getting this error because bash is interpreting the second if as nested, instead of as a second condition. Here's a visualization with indents.

if [ $origin == mount ]; then
  # Do some things.
  if [ $origin == unmount ]; then
    # Do some things.
  fi
#fi

By the way, you should also quote your variables to protect against word-splitting and globbing:

if [ "$origin" == mount ]; then
    ...
    mount -t ntfs /dev/"$device" "$location"
elif [ "$origin" == unmount ]; then
    ...
    umount "$ulocation"


I am just guessing here since Flash Player is a buggy binary blob – but high CPU load could mean that Flash Player is not using hardware acceleration. So, go to any YouTube video, open it in fullscreen (this is important due to weird bug in Flash Player in case you're using Unity 3D / Compiz), right click on video, select Settings… and make sure that Enable hardware acceleration is checked.

You could also try to delete Flash player's settings, you may however lose some "important" data like checkpoints in Flash games (data exclusively stored by Flash Player). Quit browser and delete/move away ~/.macromedia/Flash_Player directory with Nautilus or using this command:

rm -r ~/.macromedia/Flash_Player

Also take a look if you have libvdpau1 package installed, this allows video players to use hardware video decoding. Flash Player uses this to some extent too, but it's buggy (under some conditions, videos on YouTube may have swapped blue and red colour channels). See this answer for more details.


Ubuntu 14.04 64bit - computer shuts down by itself

I don't think that's the likely cause, if your computer was incompatible with 64-bit linux (x86_64) it would not boot at all. I would check the fans, it may be overheating. You might also check the power settings.


It's pretty self-explanatory... (Apache Docs)
Your equivalent command syntax in Apache would basically be, I believe, something like this:
ProxyPass "/static" "http://127.0.0.1:8501/static/"

(You may also have to do `"/static/" possibly, but I would have to do further testing.)
Alternatively, this may be what you want instead:
<Location "/path/to/docroot/static">
    ProxyPass "http://127.0.0.1:8501/"
</Location>


Ubuntu does not need two kernels. It keeps one "backup" kernel in case you can't boot with the latest one.

You can safely remove the older kernel if you are sure you won't need it.

And you probably tried to remove the latest one if linux-image-generic was  to be removed. It depends on the latest kernel only.


How do I modify my PATH so that the changes are available in every Terminal session

The following command adds a path to your current path:

export PATH=$PATH:/my/custom/path

If you want your setup to execute this command every time, there are a number of places where you can put it. When you login, the following scripts will be executed in this order:

/etc/profile      (which starts by loading everything in /etc/profile.d)
~/.profile        (which starts by loading ~/.bashrc if you are running bash)

Notes

~/.profile  is only loaded if ~/.bash_profile and ~/.bash_login DO NOT EXIST. Otherwise, at least bash, will load them instead. It is advisable to use .profile and not the bash specific scripts. So, if in these attempts you created .bash_login, please delete it now.
~/.bashrc is only loaded if you are running an interactive session. (something with a prompt where you can actually type something).
~/.bashrc is loaded again and again, every time you open up a new terminal. So a new tab in gnome-terminal, a new virtual terminal, etc. So even if you don't login again, .bashrc is loaded (and thereby resets its environment) every time you open a new shell.
Things like byobu should really go into .profile, (otherwise it won't work ;-)
Things like paths should go into .profile if you want them to work outside of the interactive sessions. (say when you press Alt+F2 in GNOME)


It should not take this long at all.  Do not rule out that there is something wrong with the drive.  It is even possible, though lately rare, for older hard drive firmware to cause general performance issues.  Check with the manufacturer.  However, my first instinct would be to suspect something is up with the drive.

Also, and you did not indicate, but I have some experience with this.  Mostly on real hardware RAID there is a config pushed to the drive.  The drive knows it's a member of a raid array.  The only way I currently know to reset it is to put the drive back onto a raid controller and let it clear the config.  And no doubt, there are probably many more ways to accomplish this.

Going back to my instinct, I would grab an Ubuntu 11.04 or 10.10 live disk.  One that you know is good.  Boot the box live, go to a terminal, and run a tool called:

palimpset

This will show you the SMART data currently on the drive.  If there are high amounts of sector errors, it will be fairly quick to let you know.  It's pretty neat because you can get the total time the drive has ran, its current temperature, etc.  I hope this helps.


Everything is crashing on first boot 14.04

Try:

sudo apt-get install nvidia-352-updates

This will install the official Nvidia drivers (and probably fix all of your issues).


I managed to figure this out. If anyone is wanting to do the same, here is how to get it working.

First install SSH pass. This allows you to pass a password to a remote SSH session

In the terminal type the following:

apt-get install sshpass

This guide will walk you through setting up PPTP connections via the terminal.

Once you have setup your VPN client connection, you will need to create a Remmina pre-command script. This script will establish a VPN connection prior to RDP'ing or SSH'ing onto your remote server.

Create the script in /usr/local/bin to make it accessible to all users. Make the script executable.

Script name example: VPNConnect.sh

> #! /bin/bash
>
> echo 'Connecting to VPN...'
>
> sshpass -p "Password" ssh -o StrictHostKeyChecking=no user@server
> 'sudo killall pppd; sudo pppd call vpn; sleep 5 && exit'

This script is essentially SSH'ing into a remote shell and starting the VPN connection. I couldn't get it to work any other way. The last part of the script is telling it to sleep, or wait for 5 seconds. This part is important, if you don't put it there Remmina will run the pre-command script too quickly before the VPN is established and you won't be able to RDP in.

The Post-Command script is just disconnecting from VPN connection.

Script name example: VPNDisconnect.sh

> #! /bin/bash
>
> echo 'Disconnecting from VPN...'
>
> sshpass -p "Password" ssh -o StrictHostKeyChecking=no user@server
> "sudo killall pppd && exit"

It's awesome that Remmina allows you to run pre and post command scripts. Just was difficult finding any documentation on any examples online.


Black screen after install custom kernel

you can use uuku for updating to latest kernal. Run the following commands :

sudo add-apt-repository ppa:teejee2008/ppa

sudo apt-get update

sudo apt-get install ukuu

after installing open uuku app and select latest kernal ( 4.19 is latest stable kernal use it and also you can unistall the kernal using same app)


formatting window 10 dual boot with ubuntu 18.04

If the corruption is because any file missing you can mount the windows partions through Nautilus file Manager in Ubuntu.
You can access the NTFS, FAT and many Other partions in Ubuntu.
If the Partions are Not listed in Nautilus Open Disks.

Choose Your HDD from Left Side Box.
Click on your Volume
Click on Play ICON which will mount the Partition
Now the volume Will Appear On your File manager.
Do what you have to do to solve the issue.

Removing Windows

For Removing Windows Format the Windows System Partition
and run the below Command on your Terminal (To OpenCtl+Alt+t)

  sudo update-grub


Ubuntu HDD unlock password not working anymore. What can I do?

You tried all the keys? On start-up right? When the computer lets an f-command stop the boot. And then it goes to the menu.


How can I create a GTK theme from a list of parameters?

Locate the proper lines in the gtkrc file, such as bg_color,etc.

Then just change the hex values (use gedit's search so you find it) to the ones you used, save and reload the Theme.

Same goes for GTK 3, edit the hex values in the file gtk.css


Automatically mark emails as read in Evolution 3.2.2?

For evolution 3.4 onwards this is now in dconf in a different location and in ms:

dconf write /org/gnome/evolution/mail/mark-seen-timeout 0


Problems booting because the HDD is full. How can I get stuff off my hard drive?

Dont worry the stuff on your hard drive should be safe.

You have a few options. Sounds like you are not happy with the command line so we'll try something else.

If you have your installation CD you can use this as a boot disk, its slower to boot, but it will allow you to boot fully into ubuntu, and your hard disk will be mounted as a separate drive.

Probably the easiest thing to do is to go into this drive and delete some stuff from it that you dont need - make a bit of space.

Another alternative is to move some stuff to a thumb drive to create space on your drive. Remember that when booted from the CD your hard drive will temporarily have a different path. Something like /media/discname/home/yourusername perhaps.

After you have done this, remove the CD and you should then be able to boot as normal.

This assumes that you are correct in thinking that lack of disc space id the reason for your boot problems.


I tested it now on 12.04. If I remove every indicator I get the same problem what you get, stuck in an endless loop.

I tested some variations and it looks like you can't remove the ug-keyboard and of course the session indicator. All the other I can remove without problem.  So just keep those 2. Then you will have only the keyboard and the power on the login screen.

To get out-of the endless loop press ALT+PrtSc+E, this will terminate lightdm (and all processes) after this you can switch to the virtual console CTRL+ALT+F1 and repair what you need to.


Error while installing skype in ubuntu 16.04 LTS

Download the Skype .deb file at https://www.skype.com/en/download-skype/skype-for-computer/ and just reinstall it.

Be forewarned that you may end up with duplicate repository files in /etc/apt/sources.list.d named:

skype-stable.list
skypeforlinux.list

and you'll probably need to delete the second one, or future software updates may error out...

In terminal...

Confirm that the first file exists...

ls -al /etc/apt/sources.list.d/skype-stable.list

if the first file exists, then delete the second file...

sudo rm -i /etc/apt/sources.list.d/skypeforlinux.list


Nautilus not generating thumbnails in 13.10

I solved the problem by deleting whole folder thumbnails in ~/.cache and remaking it.

Disable preview in nautilus by opening home folder, Edit-> Preferences-> Preview.
sudo rm ~/.cache/thumbnails
Empty trash can
mkdir ~/.cache/thumbnails
Reboot
Enable preview, again home folder, Edit-> Preferences-> Preview.

Done.


Regarding your test script -- crontab jobs are not connected to a physical console, so don't expect any output. Try

* * * * * /bin/touch /tmp/foo

... and see whether the /tmp/foo file gets updated. It should.

To get a script running every five minutes, there is a shortcut:

*/5 * * * * /bin/sh /whatever/script/blah.sh

Furthermore, I would edit your script such that it logs its activity. For example,

LOGFILE=/var/log/leoncleaner.log
# ...
echo `date '+%Y-%m-%d %H:%M:%S'` Starting server >> $LOGFILE

Alternatively, you can redirect the output from the crontab file directly:

*/5 * * * * /bin/sh /whatever/script/blah.sh >> /var/log/leoncleaner.log


Why can't I poweroff my computer if it isn't connected to a power supply?

That is a hardware bug: your system does not recognize the software telling the system to stop, it then returns a non supported error/action and the operating system will just reboot.

Possible fix: set ACPI to not route IRQs.

 gksudo gedit /etc/default/grub

Find and edit the option that is:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=noirq"

and update grub ...

sudo update-grub

Now do a reboot and then a shutdown and see if this fixes it.


This was fixed by the user by setting the following file permissions using Webmin:

New Unix file mode: 664
New Unix directory mode: 775
Force Unix user: www-data
Force Unix group: www-data
Allow symlinks outside share?: Yes [questionable]
Can delete readonly files?: No
Force Unix file mode: 000
Force Unix directory mode: 000

See:


How to mount partition like KDEConnect does?

The error happens because that command tries to connect to port 22 of your phone and uses your SSH keys. In order to mount the filesystem exposed by KDE Connect, you should use its port and SSH keys.

On my phone, that port is 1740 (you can check if yours is the same running netstat on your computer). And KDE Connect key is at ~/.config/kdeconnect/privateKey.pem in my system.

So you should be able to perform the mount with a command such as:

sshfs -o rw,nosuid,nodev,identityfile=$HOME/.config/kdeconnect/privateKey.pem,port=1740 kdeconnect@PHONE_IP:/ MOUNT_POINT

Remember to replace PHONE_IP and MOUNT_POINT accordingly. Also notice that I'm using sshfs instead of mount because it allows easier mounting for a non-privileged user.

More info here.


What do you use to wipe an SSD short of a hammer?

Honestly, I'm not buying into either premise.

First, I'm not sure what is meant by regularly but I can't imagine wiping an SSD often enough to wear it out. I have several systems with SSD drives that I use daily and some of them I have wiped occasionally.

Second I see no problem with using dd or dc3dd to wipe an SSD. If there is concern over the wear levelling algorithm leaving data behind in "spare" sectors, several runs should do the trick. How many runs are "secure" will certainly be a matter of opinion.

Recommended:

dc3dd wipe=/dev/sdX where sdX is the drive (ex. sda, sdb, sdc,). You can also specify pattern=HEX (write HEXadecimal value to every byte of the output)
textpattern=TEXT    (write the string TEXT repeatedly to the output)

Alternately:

You can blast a drive full of zeros (fast) or random or semi-random data (more secure)with dd as follows:

sudo dd if=/dev/zero of=/dev/sdX where sdX is the drive (ex. sda, sdb, sdc,) changing /dev/zero to /dev/random or /dev/urandom will change to filling the with random data instead of zeros

Note: I read some test results that indicate that The dc3dd tool can be used for a variety of forensic tasks (e.g., disk imaging or wiping
media for reuse).

In all the test cases run against dc3dd version 7.0.0, all visible sectors were successfully
overwritten. Sectors hidden by an HPA (FMP-03-HPA and FMP-03-DCO-HPA) were
also overwritten; however, sectors hidden by a DCO were not removed (FMP-03-DCO
and FMP-03-DCO-HPA). By design, the tool does not remove either Host Protected
Areas (HPAs) or DCOs. However, the Linux test environment used (Ubuntu 10.04 LTS) automatically
removed the HPA on test drives, allowing sectors hidden by an HPA to be overwritten by the tool.

Test case source: conducted for the U.S. National Institute of Justice by the Office of Law Enforcement Standards of the National Institute of Standards and Technology.

The version I use is 7.1.164


You may be interested in installing the gpointing-device-settings package, which will provide more configuration options for your touchpad. BTW, in Ubuntu 10.04LTS+ this replaces gsynaptics

sudo apt-get install gpointing-device-settings

Once installed you find it under System -> Preferences -> Pointing Devices


iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 7000:7010 -j ACCEPT

This is using a stateful firewall technique. With this, iptables track the state of every connection such as NEW, ESTABLISHED, RELATED to name a few.

NEW is the state of the connection when it is first sourced whether from the local interface or other machines trying to connect to your box, as described in the man page.

ESTABLISHED is when the packet is acknowledge by the destination host. Therefore the packet is seen in both directions.

With Stateful firewall technique, you'll have more control but fewer line of codes when you need to add more firewall rules.

iptables -A INPUT  -p tcp --dport 7000:7010  -j ACCEPT

This rule simply allows NEW inbound connection in the INPUT chain of iptables to port 7000:7010 but not tracking the state of the packet for later use.

More about stateful firewall: http://en.wikipedia.org/wiki/Stateful_firewall


What's the best way to set the touchpad properties and behaviour?

Different desktops use different methods. Unfortunately, it depends wholly on where the touchpad driver looks in your session. For example, Puppy Linux with JWM uses flsynclient, KDE uses (what at least used to be) Synaptiks. Really, it depends on which desktop you use. Generally speaking, it is best to leave it to whatever environment you use. If you use something like KDE and GNOME side-by-side, you may need to modify the X11 config files directly, because their individual settings don't interact. However, if you use GNOME or Xfce etc. almost exclusively, use the settings from that desktop.

The reason is simply convenience. If you edit X's configuration or use a third-party tool, when GNOME tries to shut off the touchpad, say for typing, it may be overridden by the environment. Extensions that manage touchpad will probably not work. Even if they do work, their settings are likely to be unreliable because when they do some automatic change, they will take over. On next reboot the system will have control because that's the way you have it set up.

The only case where another client is necessary is if you really need more settings than the environment you use offers.

Note that LightDM has its own user, and so you can log in using Su to change the settings. I believe that the lightdm user has a gnome control center as well and can set settings for touchpad that way, but I have no way of telling for sure.


I successfully solved this issue with technastic_tc and user.dz.
I had accidentally disabled bionic-updates, I then re-enabled bionic-updates repository from software-properties-gtk.
Voila ! I again tried sudo aptitude install winehq-stable. It worked !!!
Thanks a lot.


The program 'rails' is currently not installed

gem install rails needs to be run as root since /var/lib/gems should be 0644 or something. Therefore, use:

sudo gem install rails


Mounting Sharepoint on Ubuntu as a Remote Network Location

I asked the same question on the sharepoint stackexchange site. It was answered there.
The link to this answer is here.

So it turns out any remote location and version system that can be mounted on the windows has to have WebDAV enabled.

This is where you can further read about it.


How to see files in Windows Server from Ubuntu using VPN

Once you are connected to the server network through VPN you can access the file by clicking "connect to server"  then use " smb://ip/file/shared file location".


Why won't KWin config BorderlessMaximizedWindows persist?

(This answer is based on info found in the question and comments...  writing this in case link stops working someday...)
My KWin setting for BorderlessMaximizedWindows started resetting after I installed Latte Dock on a few computers.  Only one computer was affected.  It is related to a feature that allows different dock layouts to have different border settings for maximized windows.  (See Can I have different BorderlessMaximized windows option between different layouts?)
The following commands will return KWin to its previous behavior:
kwriteconfig5 --file ~/.config/lattedockrc --group UniversalSettings --key canDisableBorders false
latte-dock -r &

kwriteconfig5 --file ~/.config/kwinrc --group Windows --key BorderlessMaximizedWindows true
qdbus org.kde.KWin /KWin reconfigure

They correspond with unchecking "Support borderless maximized windows in different layouts" in the Preferences tab of the Latte Dock settings dialog.

Alternatively, you can enable the setting and check the "Borderless" option for the desired layouts in the Layout tab.


Ubuntu One Sync specific folders to a special machine

I think it will sync everything that is in the Ubuntu One folder as default but the other folders you have added from your home folder (E.G. Photo's, Music etc) have to be subscribed to. So you could put only what you want on that machine in the "Ubuntu One" folder and keep everything else in another folder in home that has to be subscribed to!

Haven't tried it but it is a thought,

.: Cezz :.


The problem still occured on Arch, turns out the Radeon driver was the issue. I switched to AMDGPU and everything works fine


Fresh installation of Ubuntu 12.04 LTS 64 bits

Just FYI, you cannot upgrade from a 32bit to a 64bit, the only way is to do a complete reinstall. (I know that's what you wanted anyway, but I just wanted to clarify for any other potential readers).

You install the 64bit just like you installed the 32bit.

Be warned, all your files will be overwritten so make sure you back up anything you want to keep (unless you set up /home on a separate partition during the install of 12.04 32bit, in that case /home will not be touched during the install(you would have had to set this up manually it is not the default) Any programs that you installed will need to be reinstalled but see the lower part of my answer to see how to preserve any saved data(game saves and config customizations, etc)  As well as an easy way to save your documents(but save any important files in a regular backup just in case)

To install simply;

Boot from the LiveDvd/USB containing the 64bit version of 12.04(download it from here if you haven't already(note the 64bit is selected by default))
Select "Install Ubuntu"
Select "Replace Ubuntu 12.04 with 12.04)
Allow the installer to run and then reboot.

Your new install of 12.04 64bit will be completed but if you have any proprietary video drivers you will have to reinstall then via the "Additional Drivers" program again.

You will also need to install ia32-libs and ia32-libs-multiarch:i386 so that you can run 32bit programs on the 64bot system.

The following step is not necessary of you have your /home on a separate partition and is optional in any case. For this to work, you MUST use the same profile(account) name in the new install that you used in the old or it will cause permission problems that may prevent you form accessing any of the files in your /home folder

Since you are "upgrading" from 32bit to 64bit and not to a newer version, you should be able to just save you home folder to another drive and then move it back over without worrying about any conflicts with your program configs(as sometimes happens with regular upgrade). When pasting back to the new home just let the old files overwrite the new ones(a window will pop up asking you if you want to do that, just select the box to apply to all files and then click yes)  This will save all your saved programs states from you old system so that when you reinstall all the programs, the settings and any game saved will be restored. As well as any other files you have saved in you profile.


Resize multiple files and rename them properly

You missed do after for ... string. Here is a slightly modified script, but your version will work also if you add do missing in there.
for f in *.png
  do
  echo "Converting $f."
  convert "$f" -resize 80% "${f/.png/-80%.png}"
done

A name changing here works as follows: for every $f as a text string find its .png part and change it for -80%.png


Accessing 1D Touch music-streaming platform with Rhythmbox

Yes it is possible to listen to music from 1D Touch ... there is a big but though.

Rhythmbox has the ability to add extra software to it called "plugins".  These can be written in Python or C/C++.

Plugins give extra capabilities that Rhythmbox lacks natively.

You'll need to create a plugin yourself - or encourage some kindly soul to create one for you.

There is API documentation for 1D here to help.

Given the nature of the plugin, I would suggest looking at the SoundCloud plugin available in Rhythmbox 3.2 and later.  You can take that as a basis and substitute the SoundCloud API calls with that of 1D.

Having had a quick scout around, there are no Linux based media players that have 1D support built in.

Happy writing!


use output from alias command as filename to open in vi

It's simple. If latest produces a filename on stdout, $() is the answer:

vim $( latest )

See man bash.


Dual boot and mounting windows partition problems

I'm left guessing at some critical details you haven't provided. As I understand it, your Windows is installed in EFI mode, and presumably you've installed Ubuntu in BIOS mode. If so, this was a mistake; it's almost always best to install all your OSes in the same boot mode. In the case of an EFI-based computer with the first OS installed in EFI mode, it's almost always best to leave the Compatibility Support Module (CSM; aka "legacy boot support") disabled. See this page of mine for more on why this is the case.

Given your situation, re-installing Ubuntu is one reasonable course of action. Re-installing is overkill, but since you presumably haven't yet customized it much or created many files in Ubuntu, it's a fairly simple way to do it. Be sure to disable the CSM first, which should get the installer to boot in EFI mode. (If you have problems booting the installer with the CSM disabled, chances are you prepared the boot medium incorrectly. The page I just referenced covers this in more detail.)

Another option is to install an EFI-mode boot loader for Linux. There are many ways to do this, but the two that are likely to be easiest are:

GRUB/Boot Repair -- The Boot Repair program can automatically install and updated version of GRUB 2. In your case, you'd need to boot from an Ubuntu emergency disk (like your installer), but it must be booted in EFI mode to install the EFI version of the program. Also, although this tool usually works, there are occasions when it doesn't, so it's a bit of a "leap of faith" to use this approach.
rEFInd -- My rEFInd boot manager can be installed in Windows; or you can try it by using the USB flash drive or CD-R image to be sure it works, then boot to Ubuntu and install the PPA or Debian package. You may need to disable Secure Boot, though, at least at first. (You can re-enable it later.) If you install rEFInd in Windows, be sure to also install the EFI driver for the filesystem on which your kernel resides (probably ext4fs).


I know it has been a few months since you have posted this, but have you gotten it to work yet? I saw in two other places that you have to have tuxguitar-alsa, tuxguitar-oss, and tuxguitar-jsa installed as well as timidity. Here and here Hope that helps if you have not gotten it to work yet. Good luck! And happy jam'n!


16.04: How to both write and run bash shell-script from cloud-init?

I'm guessing that /home/ubuntu/bin/ isn't in the PATH.
Try specifying the absolute path /home/ubuntu/bin/test in the runcmd


Yes, it's fairly safe.

First of all, what you list there is the autoremove-packages. apt-get lists two things, when removing:

Packages that were installed due to depencies by the package you're uninstalling
Packages that depends on the one you want to uninstall, that will also be uninstalled.

The first category is listed under The following packages were automatically installed and are no longer required: and the second category as The following packages will be REMOVED:

Packages listed under autoremove section is packages that were installed due to the package you are trying to remove (or a previously installed package that was removed).

Packages listed under the will be removed is packages that depends on the package you are uninstalling. If nothing depends on it, it's generally safe to uninstall.


Unusual power management following fresh reinstall of 16.10

I'm not sure what's causing the first problem but for your second one you can type:

gksu gedit /etc/systemd/logind.conf

Look for these two lines and change them to look like this:

HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

These should be the defaults anyway but remove the # in front of them if it's there. Save the file and reboot.

From now on when you close the lid hopefully it doesn't suspend as you desire. If not we have to look elsewhere....


Where is Update Manager in Xubuntu 13.04?

Go to: Applications Menu -> Settings Manager -> Software Updater


Installation of 64bit Ubuntu 14.4.2 on an 32 bit operating system

When users try to download Ubuntu ISO image, they see a notification message informing them that Ubuntu 64-bit is recommended and thus tend to think that a 4 Gb RAM is the only hardware condition they must have.

To run Ubuntu b4-bit release you must have both a compatible CPU and enough RAM for it.

If your processor is a 32-bit one then the Ubuntu 14.04 64-bits installer won't not even starts.

As you said, having 4 Gb is enough to run a 64-bits Ubuntu release. Even with a 2 Gb RAM you can run a 64-bits Ubuntu 12.04 or 12.10 (Note that Ubuntu 12.10 has reached its end of life)

  32bit and 64bit are types of architecture, 32 works in 4 sets of 8
  (the 8 being a byte), and 64 in 8 sets of 8. More bits mean that data
  is processed in larger chunks, resulting in greater speed and
  accuracy.

To be sure of the nature of your processor, please run this command: lscpu which, in my case, outputs this:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             AuthenticAMD
CPU family:            17
Model:                 3
Stepping:              1
CPU MHz:               2100.000
BogoMIPS:              4200.56
Virtualization:        AMD-V
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K
NUMA node0 CPU(s):     0,1

The important line our case is:   CPU op-mode(s):        32-bit, 64-bit which thing means I both can install Ubuntu 64-bit and 32-bit.

For better understanding this documentation can be helpful.


Install Additional Drivers

Install the proprietary video drivers by doing the following:

Open the Ubuntu Software Center (Centre if you're not American)
Navigate to the universal menu towards the top of the screen and select Edit->Software Sources.
Wait for the window to come up.
Select the tab Additional Drivers.
Select a proprietary driver if it's available and install it.

Intel Card AccelMethod

WRITE DOWN THIS ANSWER SO IF YOUR VIDEO BREAKS YOU CAN TRY THE REVERT SECTION.

Change

Try this in a terminal (Ctrl-Alt-T to open):

sudo su
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bkup
nano /etc/X11/xorg.conf

Navigate to the section Device and add this line:

Option "AccelMethod" "XAA"

Do Ctrl-X and Y to save. Then run reboot.

Revert

If things go wrong or don't change, and they may, do this:

sudo su
rm /etc/X11/xorg.conf
mv /etc/X11/xorg.conf.bkup /etc/X11/xorg.conf
reboot

If you're in only a terminal (no graphics), then these commands will work if you log in. Note you will need to type in your password for the sudo command.

Let us know how it works.


To open an interactive php shell, just type in a terminal:

php -a

As for opening a file, just:

php filename.php


How to install Nvidia 610M graphic card in Thinkpad Edge E430 w/ Ubuntu 18.04?

Download your NVIDIA 610M drivers from https://www.nvidia.com/download/driverResults.aspx/104284/ which also includes your installation instructions.

Once you have downloaded the driver, change to the directory containing the driver package, make it executable with sudo chmod +x NVIDIA-Linux-x86_64-367.27.run ,  and install the driver by running sudo sh ./NVIDIA-Linux-x86_64-367.27.run

One of the last installation steps will offer to update your X configuration file. Either accept that offer, edit your X configuration file manually so that the NVIDIA X driver will be used, or run sudo nvidia-xconfig  .


What's the difference between `ifconfig`, `interfaces`, `ifup` and `ifdown`?

In all the desktop editions of Ubuntu, networking is managed not by manual methods; that is, /etc/network/interfaces, but by Network Manager. Any interface, eth0 or wlan0 for example, that provides networking is, by default, managed by Network Manager.

The mostly deprecated commands ifup and ifdown control interfaces that are listed in /etc/network/interfaces. In the case you describe, the usual default configuration, only lo the loopback interface is listed and may be started and stopped with ifup/ifdown, although I consider this inadvisable. Usually, the system does this automatically so that no user intervention is required or expected.

In a server, with no graphical desktop, Network Manager isn't installed and so all interfaces are controlled in /etc/network/interfaces. In such cases, the configuration of the file, auto eth0, for example, means that the interface starts on boot. Again, typically no user intervention is required or expected. Here is a sample server configuration: How to connect to the internet


Can not install MySQL on my Ubuntu 12.04

Restart your system, if the problem persists then run, in a console:

sudo rm /etc/group.lock /etc/gshadow.lock


Not owner and too little free space problem

If you only deleted and did not format your hdd before you installed ubuntu or if you chose to install Ubuntu alongside windows OS..Your old files will still be there . Try boot Ubuntu from live CD or usb and format the hdd with Gparted, then install Ubuntu


Does Ubuntu satisfy OS requirements for Android dev by default?

The short answer is yes. Ubuntu 12.04 is sufficient for Android dev. The package name for glibc in Ubuntu is libc6. You can check libc6 version by apt-cache show libc6.

  Package: libc6
  Priority: required
  Section: libs
  Installed-Size: 9125
  Maintainer: Ubuntu Developers
  Original-Maintainer: GNU Libc Maintainers
  Architecture: i386
  Source: eglibc
  Version: 2.15-0ubuntu10.3
  Replaces: belocs-locales-bin, libc6-i386
  Provides: glibc-2.13-1, libc6-i686

I'm running this on Precise. It shows that libc6 provides glibc-2.13 which is greater than 2.7. You don't really need to install an outdated glibc 2.7.


19.10: Does gvfsd-admin require authentication?

Press Alt+F2, then in the resulting box type r and press the Enter key. This will temporarily resolve the issue by restarting the GUI desktop manager.
The underlying cause or bug is not clear yet.


Audio output not working on Thinkpad pro dock with X270

It has been fixed upstream in kernel 4.15.8.

I'm also running LTS 16.04 on my x270, after installing linux-image-generic-hwe-16.04-edge, this dock (40A20170US) audio-out started working \o/:

$ uname -a
Linux jjo-x270 4.15.0-23-generic #25~16.04.1-Ubuntu SMP Fri May 25 04:50:20 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

FFR alsa-info.sh uploaded to http://www.alsa-project.org/db/?f=764e566e30923ca8b67ad7e11be4a9ae734759c7


Sets all pcs in the same IP range, by ip aliases:

sudo su
nano /etc/network/interfaces

Add these lines

    auto eth0:1
    iface eth0:1 inet static
    address 10.0.0.1
    netmask 255.255.255.0
    network 10.0.0.0
    broadcast 10.0.0.255

Ips for each successive computer: 10.0.0.1 -- 10.0.0.2 -- 10.0.0.3 -- etc.

Install the required packages:

sudo su
apt-get update
apt-get install samba samba-common samba-common-bin smbclient system-config-samba nautilus-data

Set a password for each user in Samba on each computer:

sudo su
useradd -s /sbin/nologin <user_01>
smbpasswd -a <user_01>
useradd -s /sbin/nologin <user_02>
smbpasswd -a <user_02>
useradd -s /sbin/nologin <user_03>
smbpasswd -a <user_03>
etc. etc.

Create a directory to be shared and give permissions on each computer:

sudo su
mkdir /media/<user_name>/share
chmod -Rf 777 /media/<user_name>/share

Edit the file /etc/samba/smb.conf on each computer:

sudo su
nano /etc/samba/smb.conf

Once "smb.conf" has loaded, add this to the very end of the file on each computer:

[Share]
path = /media/<user_name>/share
available = yes
valid users = <user_01>, <user_02>, <user_03>, etc. etc.
read only = no
browseable = yes
public = yes
writable = yes

Save a file: Control + O

Close nano: Control + X

Reboot


Sudden slowdown in performance despite very little CPU usage

In addition to checking your system monitor, you can also check your logs to see if there are errors that didn't necessarily cause high CPU usage but still slow things down. One familiar one is irqpoll issues which don't necessarily increase CPU usage but may make things run slower.
I find the easiest way to do this is with a GUI application. You can always read your logs from the terminal, but I prefer a graphical user interface for this. The one that I prefer is called KSystemLog and it's in your default repositories. With KSystemLog you can see your System, Kernel, Authentication, X.Org, and Journald logs in one central application.
To install, just open your terminal and run:
sudo apt install ksystemlog

Follow the prompts, by entering your password, and it'll install itself. Once installed, it will appear in your 'System Tools' folder. Once opened, it will look a bit like this:

(Unfortunately, I don't have any images saved with a bunch of errors.)
Open it and look for errors. If you find any errors, you can copy the entire error message line, paste it into your favorite search engine, and potentially find solutions. If you can't find the solutions by searching, you can ask at appropriate forums and have specific information to pass on to those trying to help you.
Note: The log viewer is meant for those using KDE, but doesn't pull in a bunch of other files and is remarkably light. You can read more about KSystemLog here.


Applications not loading in Launcher, Desktop, or /usr/share/applications

I noticed steam launcher icons were silently missing. After I debugged a issue a bit I noticed /usr/bin/steam had been removed during upgrade. It appears than steam-launcher package was automatically removed.
Fix for me was installing steam package from Ubuntu repository. The package provides /usr/games/steam which works if steam launcher files use plain steam like my steam had created.
My theory is that gnome-shell started checking if application can be found from path. If executable files isn't found then gnome-shell hides the launcher icon. I don't know if there is some log where gnome-shell reports hidden .desktop files.


part_msdos is the module used to access DOS partition tables. From the GRUB documentation:

(hd0,msdos1)

Here, ‘hd’ means it is a hard disk drive. The first integer ‘0’ indicates the drive number, that is, the first hard disk, the string ‘msdos’ indicates the partition scheme, while the second integer, ‘1’, indicates the partition number (or the PC slice number in the BSD terminology). The partition numbers are counted from one, not from zero (as was the case in previous versions of GRUB). This expression means the second partition of the first hard disk drive. In this case, GRUB uses one partition of the disk, instead of the whole disk.

Is it natural for the word msdos to be appearing here?

Yes.


Latest Ubuntu Update Affects Networking in VirtualBox

Please try to:
Launch VirtualBox Manager -> select the correct Operating-System -> Settings -> Network -> Attached to: Bridged Adapter


Cantgive access to my webcam on websites

The fix for this is simple I have found. Open the window on ustream, youtube or whatever site you are using. when the flash settings dialog appears, right click on it. This will take you to settings manager. Next, click on the privacy settings icon. You will see a list of sites you have been to. Find the site you want to use to access tyour cam & click "always allow". Restart your browser & try again.


How many users can be on my website (home ubuntu-server) at same time

Your internet upload speed, and download speed, and system ram all play a role in figuring out your answer. Take a look at this link it may give you some insight: http://canihostaminecraftserver.com/


How to make sshd create non-existing user when using kerberos?

From openssh source, sshd cannot deal with non-exist user at all.


When you see the contact list, click "edit > preferences". You should uncheck "Enable bubble notifications". The balloon will not pop up anymore. You can also customize which balloons you want to see and which not.


How do I force Chrome to open in secondary display?

After boot, open Chrome.
If it asks for password, give it.
Move Chrome to desired position.
Close Chrome.
Open Chrome

Now it does not ask for password and opens in desired position.
If you have more profiles, open all, move them and close them. Next time they will open in the same position.


Does the new "privacy" button have a log?

The is no "log" in the sense of a human readable text file, as this information is stored by Zeitgeist. What you can do however, is install Gnome-Activity-Journal, which will give you a read out of everything it has stored in the database.


What is KDE ? how to implement application for cloud

KDE stands for the K Desktop Environment. It is a GUI,
meaning a layer that provides a sustainable look and feel at the
linux desktop.
If you would like to work with Servers, I recommend picking an LTS
(Long Term Support) version of Ubuntu. As is now, Version 10.04 and
Version 12.04 seem to be a fine choice. If you would like to write
an application, you need to learn how to program, something which is
out of the scope of this question.
Yes it is, and you could be able to see it if you connect via
ssh to your server with the following flag: ssh -X user@domain <port>

NOTE: Wikipedia in particular notes about the name:

  The K was originally suggested to stand for "Kool", but it was quickly
  decided that the K should stand for nothing in particular. The KDE
  initialism is therefore expanded to "K Desktop Environment".


Ubuntu 18.04 applications thumbnails not showing properly in "Activities" overview

You have the Native Window Placement extension enabled, which lets you

  "Arrange windows in overview in a more compact way".

The specific window arrangement in your screenshot is due to this extension.

If you want to disable this arrangement, then disable/remove the Native Window Placement extension using (GNOME) Tweaks or from extensions.gnome.org. Alternatively launch Terminal and run

gnome-shell-extension-prefs

and disable the extension.


Setting different keypress rate for individual keys?

I think the answer to your question is no, there is no way to achieve this short of modyfying the X.org sources.

Here is an explanation why xset won't work; I am creating an answer because it corresponds to comments found in both the OP and the answer above.

xset r has several alternative ways of being called. Mutually exclusive, that is:

xset r 22

..will turn the repeating for keycode 22 (backspace) on, while xset -r 22 will turn it off.

Alternatively, it is possible to specify keyboard rates, but only for all keys:

xset r rate [num1 [num2]]

You cannot combine the two.

As for the 08 / 22 confusion: 08 is the ASCII code for the ASCII character backspace, and 22 is the X windows keycode for the particular physical key.

Unfortunately, the two settings (rate / delay and per-key repeat on-off) are handled by two different X extensions:

"rate/delay" is handled by the XF86Misc extension. xset changes the rate / delay using function XF86MiscGetKbdSettings( display, values ). The values XF86MiscKbdSettings structure contains only fields for repeat rate and delay (and two others of no importance here), and there is no way of applying it but general.
the "per key on-off" is controlled by the XKB extension. The XKB extension allows to control selected keys, but the structure that holds information on these keys only contains a field that can take one of three values: default, no repeat, repeat.

In short, this seems to be impossible to achieve in the current X.org setup.


Graphics driver being reported as Gallium 0.4 on llvmpipe (LLVM 0x300) instead of intel

I had to edit xorg.conf in order to get this to work.  I had tried the instructions to create a xorg.conf file for 12.04 with no luck, giving me a "could not create lock file in /tmp/.tXO -lock" error. Running man xorg.conf it gave me several alternate locations to find it.  Hidden among the depths of the system in /etc/X11/ was xorg.conf. I had to change the  driver to "intel" and the description in my case "Intel 945gm". I then ran sudo -i gedit to edit the file to my needs. After a restart the correct driver is now in use.  Hope this can help someone else. :)


Google chrome wont launch (Out of date nss)

just try below commands on your ubuntu machine.

sudo apt-get install --reinstall libnss3

It will fix your issue with libnss3 package


If I were you I'd use a small program called Unetbootin, it allows you to install any OS from a pendrive. Go here (http://unetbootin.sourceforge.net/) and download the Linux version or instead you can use the terminal to install it:

sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin

Next, you need to plug your pendrive and download Ubuntu from the Ubuntu website then save the file on a folder or on the desktok.

Then you run Unetbootin (it might ask you to run it as sudo, just enter your password), select the second option and browse to your ISO file and press OK. If your pen drive has enough space this should work, I use an 8GB pen drive.

Finally you restart your computer and go to the BIOS and select external media boot as the first one and install Ubuntu.


Is it possible to use GNOME Maps in Ubuntu with Unity?

Thanks to user @blade19899 for the help with this answer.

The source for Gnome Maps 3.10 is available at:
http://ftp.gnome.org/pub/GNOME/sources/gnome-maps/3.10/

Download and extract the file.
Install missing packages to build gnome-maps:

sudo apt-get update && sudo apt-get install libglib2.0-dev intltool

Build:

./configure && make && sudo make install

The executable is located in:

.../gnome-maps-3.10.0/src/gnome-maps

Unfortunately, running gnome-maps returns an error ./gnome-maps: 18: exec: -I: not found. It's not working, but it isn't officially supported on 12.04 either.


Graphics Tablet - Cursor on wrong screen

It seems to be the nature of things that you can spend half a day working on a problem, then figure out how to fix it 15 minutes after you finally give up and post a question. The following page guided me to a fix:
https://forum.kde.org/viewtopic.php?f=139&t=125532
It's the post on the very bottom from "timotimo" back in 2016. He uses xinput to get input identifiers corresponding to the stylus and tablet. Then he uses xrandr to get output identifiers associated with his monitors. Then he uses "xinput map-to-output [input identifier] [output identifier" for the appropriate values. I had very different output from xinput and xrandr specific to my system, but was quickly able to make it work with a little trial and error.
Best thing about this solution is that it involved no installation of anything. Both tools are already installed in ubuntu.


Updating ubuntu requires changing the download server

Did you check the /etc/apt/sources.list file? Maybe you have to correct the source list.


Kubuntu File Upload Window Does Not Show Remote/Network Locations

Here is a fix for Firefox. Thanks to Rick on Kubuntu Support on Telegram.

sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get install xdg-desktop-portal
sudo apt-get install xdg-desktop-portal-kde

Also, thanks to Zren for posting how to enter the command:
https://www.reddit.com/r/kde/comments/a5cxwk/firefox_v64_can_now_use_the_kde_file_selection/

Right click the Firefox launcher in the app launcher > Edit Application
Application tab > Command GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u


You can remove Unity as answered on our forum by Dennis:

sudo apt-get autoremove --purge unity unity-common unity-services unity-lens-\* unity-scope-\* unity-webapps-\* gnome-control-center-unity hud libunity-core-6\* libunity-misc4 libunity-webapps\* appmenu-gtk appmenu-gtk3 appmenu-qt\* overlay-scrollbar\* activity-log-manager-control-center firefox-globalmenu thunderbird-globalmenu libufe-xidgetter0 xul-ext-unity xul-ext-webaccounts webaccounts-extension-common xul-ext-websites-integration gnome-control-center gnome-session


Linux overwriting RAM with zeroes on free()

When a process calls free() it does not return the memory immediately back to system, instead it returns it back to the heap owned by that process.  The heap either uses anonymous memory mapping for large chunks or sbrk() to shrink or grow the heap.   Memory from the heap is returned back to the system when it is unmap'd or the heap shrinks with sbrk().  At this point pages can be re-used by other processes and when they are re-used they are always zero'd before the process can access it. [1]

memory allocations such as malloc don't zero memory when it is free'd back to the heap because of performance issues. Normally, the best practice for sensitive data is to be zero'd before it free'ing it.  However, I guess you want to enforce this police for all memory being free'd during a processes' life time.  glibc 2.4 and upwards has a MALLOC_PERTURB_ environment option that when set to non-zero value will initialize the memory to the compliment of the value when the memory is allocated and when it is released with free().  The downside to this is that it may trigger bugs in code that erroneously rely on the memory to be normally initialized to zero on allocation.

To use MALLOC_PERTURB_, e.g. to set it to a random value..

export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))

and run your code.

[1] Well almost. mmap() using MAP_UNINITIALIZED and a kernel configured with CONFIG_MMAP_ALLOW_UNINITIALIZED allows non-zeroing of memory, but this is never allowed on Ubuntu.


Remove / purge repository spotify and opensuse

Remove the files from the /etc/apt/sources.list.d directory. Try this command:

sudo rm /etc/apt/sources.list.d/spotify.list

Then run sudo apt-get update and there should no longer be any references to http://repository.spotify.com


I fixed grub error after ubuntu install with cd fix, but

If you are able to (boot from cd) then you will have successfully booted Ubuntu.

However if you are trying to install Ubuntu if you could please include more information:

1) what the partitions look like on your HD in ubuntu terminal this is done by entering in the command (sudo fdisk -l) or in windows commandline by entering (diskpart)

2) describe more completely what you have done

3) Are you trying to install Ubuntu by itself, or are you trying to Dual Boot?

If you are trying to dual boot have you followed information similar to this?


why opening a port is so difficult in ubuntu?

You'll want to read up on UFW - Uncomplicated Firewall


Is there a way to avoid Skype and Pidgin windows to show up at startup

Skype has an option to start minimized, which can be reached by clicking on your options menu and activate the appropriate checkbox as shown here:

Pidgin is working in a different behaviour and no "start minimized" checkbox somewhere, insted you can define the opening behavior by closing pidgin in the desired way, it means: close pidgin while minimized to tray and it will open the same way it was when closed. The same when closing with the contacts list open as mentioned here: http://developer.pidgin.im/ticket/1888

Quoted for your convenience:

Change History

Changed 5 years ago by nosnilmot  pending changed from 0 to 1

  Pidgin will start minimized to tray if it was minimized to tray when
  it was last exited. Isn't this sufficient?

Anyway, if that's no sufficient for you, you can dive into coding and use tricks like this:

  Pidgin does not have an option that allows a user decide whether the
  Pidgin buddy list window starts minimized or not. It just remembers
  the state of the window when it quits, and restores the last window
  state.

  The last window status is stored in $HOME/.purple/prefs.xml:

...
<pref name='pidgin'>
  ...
  <pref name='blist'>
  ...
    <pref name='list_visible' type='bool' value='0'/> <!-- 0: invisible, 1: visible -->
    <pref name='list_maximized' type='bool' value='0'/> <!-- 0: normal, 1: maximized -->
  ,,,
  </pref>
</pref>
...

  When the list_visible property is set to 0, you will see Pidgin minimizes its
  buddy list window into the system tray (or the notification area). How
  can we make sure it’s always set to 0 when Pidgin updates it when it
  exits? Let’s write a shell script:

#!/bin/bash
perl -pi -e "s/pref name='(list_visible|list_maximized)' type='bool' value='[1-9]'/pref name='\$1' type='bool' value='0'/gi" ~/.purple/prefs.xml
/usr/bin/pidgin &

  The first perl command searches
  the list_visible and list_maximized properties and replaces their
  values with 0 before Pidgin starts. Problem solved!

  Not that I like this workaround. I still just can’t believe there is
  no option about this.

Source: http://planet.jboss.org/post/how_to_start_pidgin_minimized_or_always_start_pidgin_with_its_buddy_list_invisible

Using Plugins is also valid, like the "Buddy List Options 2.6.3" (normally installed in the plugin package), which features the "Hide the buddy list when it is created",

The same as "Extended preferences 0.7", featuring the "Hide buddy list at startup" among other useful options. Extended Preferences 0.7 can be easily installed via "sudo apt-get install pidgin-extprefs" in a terminal.

Fortunately this is about Linux, almost everything can be achieved :) so...

Good luck!


How to upgrade from 10.04 to higher version without CD and USB stick

go to System - Preferences - update manager
hit the check button
choose upgrade to 12.04. It should appear above the updates.


Installing Nvidia driver helped me. From command prompt:

sudo apt-get install nvidia-384

or you can use :

sudo ubuntu-drivers autoinstall


How to Entirely Remove Ubuntu and any Trace of it?

I think, you get the UEFI boot menu option with 'ubuntu' string. You have to go to the UEFI(BIOS) setting and look for 'Boot options' there you can delete the 'ubuntu' option.


Welcome to the joy of owning a laptop with Optimus. As a fellow sufferer, here's what I've had to do:

These instructions from Sagar Karandikar work on 12.04 and 12.10.

The trick is, that if you're running 12.10, you need to download a version of the intel display patch that is equivalent to the closest driver you can manage from here. I managed to find a driver matching versions for Raring.

Then, set up a script to run the display commands, change the flag from VIRTUAL to VIRTUAL1, and you're set.


Ubuntu wireless on lenovo 9s does not work with linksys driver or network


How can I remove window shadows in Unity?

I think you have to choose a theme other than Ambiance or Radiance, because those override compiz's shadow settings.

If you really want to use the Ambiance borders without shadows:

Create a copy of Ambiance: cp -R /usr/share/themes/Ambiance ~/.themes
open ~/.themes/Ambiance/metacity-1/metacity-theme-1.xml and remove all of the <shadow> tags.
Open up appearance preferences and select your new, duplicate "Ambiance" theme.
Disable shadows in CCSM

Update  2015-01-21 In recent versions of Ubuntu you'll need to use Ubuntu Tweak Tool in step 3, since recent versions of the control center don't support custom themes.


It is not recommended to skip immediate releases at upgrade to a higher version, If you really want this, I think you find some help here,

How to upgrade Ubuntu from an ISO image

You will find additional info here too.


If you tried the command startx, but the error command not found was returned, then to install a graphical desktop, in case it is not installed, you would type this:

sudo apt-get install ubuntu-desktop


Can I run gcm-calibrate on Xubuntu without installing all of Gnome?

Yes you can!

Basic prerequisites

First, since the newest firmware upgrade you need version 1.6.3 or later of Argyll. If you're on 15.04/Vivid, you already have 1.6.3, but if you're on Trusty you should add this ppa: https://launchpad.net/~pmjdebruijn/+archive/argyll-testing (otherwise you might just get dispread: Error - icoms - usb_is_usb_portno: port number 1 out of range 1 - 0).

sudo add-apt-repository ppa:pmjdebruijn/argyll-testing
sudo apt-get update

Then, whether you're on Vivid or Trusty, do:

sudo apt-get install xcalib argyll colorhug-client gnome-color-manager

Register with colord

In order for the calibration program to notice your monitor, you need it registered with colord. This is actually something XFCE settings should do, but since it's not implemented yet we need a workaround. There are two possibilities, either installing gnome-settings-daemon, or xiccd. (Your icc profile can also be registered with colord through one of these daemons, which is handy since colour-managed programs can pick up on that and then "use the system profile" automatically.)

You can install gnome-settings-daemon with apt-get, while xiccd requires a PPA. I recommend xiccd since you can use that under XFCE with no conflicts, but gnome-settings-daemon is easier to install. Read on for how to set up each of these options.

If you choose gnome-settings-daemon, beware that you shouldn't have that running all the time since it can change your keyboard layout and who knows what else – if you use this option, you should probably log in as Guest before calibrating. When you're logged in as Guest, go into the power management settings and ensure the screen doesn't blank or the screensaver turn on. Then, open a terminal and do

/usr/lib/gnome-settings-daemon/gnome-settings-daemon

Leave that terminal running throughout the calibration.

If you choose xiccd, then you can keep that running in your XFCE profile to register your calibration profile with colord, and let colour-managed programs automatically know about it. But you'll have to install it from a PPA. If you're on 14.04 Trusty, just do

sudo add-apt-repository ppa:pmjdebruijn/xiccd-testing
sudo apt-get update

If you're on 15.04 Vivid, there's no PPA yet, but you can download xiccd's deb and libcolord1's deb and install them with

sudo dpkg -i libcolord1_1.0.9-0pmjdebruijn1~trusty_amd64.deb
sudo dpkg -i xiccd_0.2.2-0pmjdebruijn2~trusty_amd64.deb

Then create the file /etc/xdg/autostart/xiccd.desktop with these contents:

[Desktop Entry]
Encoding=UTF-8
Name=xiccd
GenericName=X11 ICC Daemon
Comment=Applies color management profiles to your session
Exec=xiccd
Terminal=false
Type=Application
Categories=
OnlyShowIn=XFCE;

and log out and in again.

Profiling

Now, whether you chose xiccd or gnome-settings-daemon, you should be able to do

colormgr get-devices

and see a list of devices. Look for your monitor in there. It should have a line with "Device ID". If this is e.g. "xrandr-Lenovo Group Limited", you can start calibration with the command

gcm-calibrate --device "xrandr-Lenovo Group Limited"

After calibration is done, you will have a file in ~/.local/share/icc/ called GCM-something.icc. Do

cp ~/.local/share/icc/GCM* /tmp/

and switch to your regular user to grab that file from /tmp and put it somewhere more permanent.

Applying the profile

Profiles have two parts: a vcgt/LUT part that does white point correction, appplied by X11 itself, and a gamma/hue/saturation part that has to be applied by individual colour-managed programs.

To apply the vcgt-part, run xcalib /path/to/your/GCM-something.icc to test the profile (and xcalib -c to remove it again). You can put that in your list of startup programs to get it applied on login.

To apply the gamma+matrix part, you should enable colour management in GIMP (just give GIMP the path to the same file) and Firefox, and any other colour-managed programs. If you have xiccd running, most such programs should pick up on the path to the .icc file automatically.

More info

If you want a more thorough guide which shows command line colour profiling on Linux and talks about how to set up your display before you start, I highly recommend https://encrypted.pcode.nl/blog/2013/11/24/display-color-profiling-on-linux/ (this also shows how to load the profile for all users on startup).

If you got the too red display after calibration problem, you can either create a more minimal profile (without white-point correction) or you can try using one of the alternative CCMX files (start colorhug-ccmx to select alternative CCMX'es, e.g. Community Average, before running gcm-calibrate).

In 15.04 Vivid you may get an error new_disprd() failed with "Unknown calibration display type selection" – for me it worked again when I selected a different choice in the screen type selection (I tried White LED and RGB LED, this is a Lenovo A740 which I just know is LED at least). Also, if your Colorhug isn't recognized, try plugging it out and in again (for me it was picked up when I first started colorhug-flash and then plugged it in).


How do I keep a volume mounted when I boot up in Ubuntu 18.04

Add an entry to your systems filesystem table (/etc/fstab) is the easiest method in my opinion.

For ext4 you can add the following

UUID=xxxxxxxx    /mount-dir    ext4    defaults    0    0

where the xxxxxxxx is replaced by your UUID (unique ID for the device/partition) and /mount-dir is replaced by the directory you want it mounted to.  (space(s) or tabs can be used between parameters)

To find out the UUID, use sudo blkid


2048 game will not open (Ubuntu 14.04 in VMware Player)

The fact that it won't open after installing the program sounds like a bug with the program, you would have to report that to the developer.

The dpkg -L 2048 command will show what files are installed for the program. It shows that /usr/share/2048/index.html is installed, and this is the main file for the program. You can open this with the default browser using xdg-open:

xdg-open /usr/share/2048/index.html

You could create your own launcher for the game from one of the following guides:

How can I edit/create new launcher items in Unity by hand?

How can I create launchers on my desktop?

Short code snippets use backticks `, probably upper left corner of your keyboard. For more about formatting, see this page.


You can use Wine (Windows Emulator) to run windows stuff on ubuntu.
Play on linux can help automate the process to getting all dependencies for ya, there are many ways to do it...

Here is one of those ways ;)

http://www.bendangelo.me/install/2014/10/29/installing-photoshop-cs6-on-ubuntu.html

Lemme know how it works 4 ya ;)


debian.cnf file location in Ubuntu 14.04

Since we are a site dedicated to Ubuntu and you mention 14.04 I assume you are talking about Ubuntu 14.04.

You can find file locations with locate. So ...

$ locate debian.cnf
/etc/mysql/debian.cnf

edit:

This requires you to have mysql installed (as seen by Christophers' answer)


Tried Gnome 3.10 on Ubuntu 13.10. How can I get Unity back?

Since you have already used ppa purge you could now:

sudo apt-get install --reinstall ubuntu-desktop

or this with an added --reinstall:

sudo apt-get install --reinstall unity unity-common unity-services unity-lens-* unity-scope-* unity-webapps-* gnome-control-center-unity hud libunity-core-6* libunity-misc4 libunity-webapps* appmenu-gtk appmenu-gtk3 appmenu-qt* overlay-scrollbar* activity-log-manager-control-center firefox-globalmenu thunderbird-globalmenu libufe-xidgetter0 xul-ext-unity xul-ext-webaccounts webaccounts-extension-common xul-ext-websites-integration nautilus nautilus-sendto nautilus-sendto-empathy nautilus-share activity-log-manager-common python-zeitgeist rhythmbox-plugin-zeitgeist zeitgeist zeitgeist-core zeitgeist-datahub


I would not copy the actual program and system files. It is probably doable, but possibly quite a lot of trouble as well. Perhaps using something like dd if you want an exact clone. I would suggest that instead you just make a list of the extra software that you have installed and install that list once you have installed the fresh Ubuntu system.

You also need to copy the hidden '.' folders and .config folders under your home directory as all the user application specific configuration is stored here. You might want the /etc directory as well in case you have special config in Grub or ssh.

You might try to install a virtualbox installation to see if it works before committing to a full reconfiguration of your system.


Suspend with active NFS connection fails

Autofs is a system that automatically mounts and unmounts your shares, one type could be nfs, as you access them and dismounts them when not needed anymore. Afaik autofs can also handle suspend.
I could write a long howto here or simply link to someone who already did it.
https://gist.github.com/vegaasen/06d75cc19f108380a909d3b06a2aab7a


Metro 2033 and Last Light (Redux editions) not loading

Whether or not you have OpenGL 4 support depends on your hardware and drivers.  If you use the open-source graphics stack, which I suspect you are, you do not have OpenGL 4 support because mesa does not support it.  If you use Intel's integrated graphics, you have no choice but to use the open-source drivers and you cannot play these games.  If you have an nvidia or radeon card you will need to install the proprietary drivers in order to play.


Why I can't use update-alternatives to select Python 2 or 3?

The reason is, python versions aren't fully compatibile. If you set 3.3 version as your default, the applications made for 2.7 could not work.


Where can I find the IRC logs from the channels used during UDS-O?

You can find the UDS-O IRC logs at http://ubottu.com/uds-logs/. You'll also find archived UDS logs there.


How to compile and install custom mainline kernel

Get and compile the mainline kernel, git method:
see also: https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
I do things a little different (what else is new?).
Prerequisites (Must):
Step 1 is to apt-get update and apt-get dist-upgrade (i.e. make sure everything is up to date)
Step 2
sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge

Step 3
sudo apt-get build-dep linux

Step 4
sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev

Prerequisites as of kernel 4.3:
sudo apt-get install libssl-dev

Step 5 - based on not being able to compile on a new 20.04 server installation 2019.12.02
sudo apt install flex bison

Prerequisites (Optional):
sudo apt-get install git-email git-doc

The git part:
mkdir temp-k-git
cd temp-k-git
git clone   git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux

Never do stuff in the default master branch. Always make some work area.
git checkout -b k44rc8_stock v4.4-rc8

Steal the Ubuntu kernel configuration file (already installed):
ls -l /boot
cp /boot/config-4.4.0-040400rc8-generic .config

Ubuntu config file has full debugging. Makes an enormous kernel and takes twice as long to compile
scripts/config --disable DEBUG_INFO

Special note as of Kernel 4.4 and if compiling using Ubuntu 14.04 (I don't know about 15.10), with an older version of the c compiler: It can not compile with CONFIG_CC_STACKPROTECTOR_STRONG.
scripts/config --disable CC_STACKPROTECTOR_STRONG

If your version doesn't have LZ4 compression (i.e. 16.04) you need also:
scripts/config --disable KERNEL_LZ4
scripts/config --enable KERNEL_GZIP

Special note as of Kernel 5.12-rc1 one needs to override some newly added certificate stuff.
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""

Compile the kernel:
time make -j9 bindeb-pkg       <<< Suggest use number of CPUs + 1. Use less for some responsiveness to be left for other uses
                               <<< I always time the kernel build.

or
time make -j9 bindeb-pkg LOCALVERSION=-stock    <<< For a localized verion name append

or
time make -j9 olddefconfig bindeb-pkg LOCALVERSION=-stock   <<< To automatically use defaults for any new config stuff (particuarly useful when bisecting the kernel).

When the build has completed, install it:
sudo dpkg -i ../linux-headers-4.4.0-rc8-stock_4.4.0-rc8-stock-144_amd64.deb
sudo dpkg -i ../linux-image-4.4.0-rc8-stock_4.4.0-rc8-stock-144_amd64.deb

So, at this point we know the mainline kernel compiles O.K., so move onto the custom kernel. Create a new branch, apply the patches and compile:
$ git checkout -b k44rc8_custom v4.4-rc8
Switched to a new branch 'k44rc8_custom'

$ git am plv6_1_3.patch
Applying: cpufreq: intel_pstate: configurable algorithm to get target pstate
$ git am plv6_2_3.patch
Applying: cpufreq: intel_pstate: account for non C0 time
$ git am plv6_3_3.patch
Applying: cpufreq: intel_pstate: Account for IO wait time

$ time make -j9 olddefconfig bindeb-pkg LOCALVERSION=-custom

Note that it is on purpose that I do not do a make clean, as it is desirable to save a lot of time by doing an incremental build. The first compile took 21 minutes and 26 seconds, but the next custom compile took only 4 minutes and 43 seconds.


Super Key not working; Can't access Ubuntu dash/launcher via keyboard shortcut

I figured it out. I think it's a bug in ccsm.

I used dconf to watch the settings change while using ccsm:

$ dconf watch /
/org/compiz/profiles/unity/plugins/unityshell/show-launcher
   unset

unset??

$ dconf read /org/compiz/profiles/unity/plugins/unityshell/show-launcher
$

Yep... The key doesn't even exist.

$ dconf list /org/compiz/profiles/unity/plugins/unityshell/
[... show-launcher not in list...]

So then I manually set it also using dconf (NOTE you have to double- AND single-quote the value string):

$ dconf write /org/compiz/profiles/unity/plugins/unityshell/show-launcher "'<Super>'"

$ dconf read /org/compiz/profiles/unity/plugins/unityshell/show-launcher
'<Super>'

Now everything works. Yay!

EDIT: For DELL owners: @jooon figured out a different solution. Dell installs a package that intentionally breaks the super key called dell-super-key.


" after reboot: file not found, grub rescue promt" This means that grub's core.img, embedded in the post-mbr gap, is looking for /boot/grub/ on the wrong partition.

"After set prefix, set root, insmod comes: invalid arch independent ELF magic." This means that the /boot/grub/ that you pointed grub to is for a different version of grub than the version of grub that the embedded core.img came from.

Those two things together strongly suggest that the core.img embedded in the post-mbr gap is from a previous Ubuntu install, not from your most recent Ubuntu 12.04 installation. To fix this you need to run grub-install, which when run from a LiveCD either requires a chroot or the --boot-directory= argument, and make sure that you tell grub-install to install to the MBR (not to a partitition) of the drive which your BIOS is booting from (don't assume that you know which one this is, it's commonly not the one people think is being booted from when they have multiple hard drives). If you have multiple drives, it's probably best to install grub's boot sector to all of them.

To install grub from a LiveCD, follow this guide: https://help.ubuntu.com/community/Grub2#ChRoot


How to make an Avermedia AverTV Volar Green HD work?

Solution on Ubuntu 13.10 & 14.04

from this source, note that this solution is simpler than on 12.04

1. Download the firmware

$ cd /lib/firmware/
$ sudo wget http://xgazza.altervista.org/Linux/DVB/dvb-usb-af9035-01.fw
$ sudo wget http://xgazza.altervista.org/Linux/DVB/dvb-usb-af9035-02.fw

2. Install the needed application

$ sudo apt-get install git
$ sudo apt-get install  libproc-processtable-perl

3. Install the latest v4l-dvb

from the wiki How to Obtain, Build and Install V4L-DVB Device Drivers:

$ git clone --depth=1 git://linuxtv.org/media_build.git
$ cd media_build
$ ./build

4. Reboot

$ sudo reboot

5. Check if device is properly installed

see below


Change location of System partition to install Windows on top of Linux

The boot flag is the active partition. And Windows boots from, repairs, or installs the partition with the boot flag on the drive set to boot from in BIOS.
YOu should change BIOS to boot from sda and put a boot flag on sda1.
Every drive can have one and only one boot flag, but Windows installs boot files onto drive & partition with boot flag.
We have seen users install to sdb, but because BIOS was set to sda, the 100MB boot partition went on sda.
Window will install in one partition, but like to have the separate Boot partition, primarily so you can encrypt the main install. But Boot partition also has the repair console, so if installed in one partition be sure to make a repairCD or flash drive.


I found this article helpful for figuring out how to mount it. It walks you step by step through the process of manually making the directory. Also, I used Disk Utility to identify what the sony drive was called on by Ubuntu.

https://help.ubuntu.com/community/Mount/USB


Try to boot the Windows 7 installer and then go to "Repair your computer"
Then select the 1st option "Startup repair", this should automatically repair your boot partition and run Windows 7, the grub will not appear any more.


Package dependencies cannot be resolved for VLC

First a question:
Is there a reason you are trying to install VLC from it's daily PPA?

Why not simply remove or disable that PPA, use the Ubuntu Software Center and search for vlc then install? You will get the latest supported build.

If you must use the daily ppa, then you need to dig into the 2 unmet dependencies to understand where to get them from since they are not readily available to you for whatever reason.


Why does my computer say that there is an 11.10 upgrade?

-d means development release, and that would be Oneiric. Just run it without the flag, and you will get regular updates.

egil@morgenstern [~] $ update-manager --help
Usage: update-manager [options]

Options:
  -h, --help            show this help message and exit
  -V, --version         Show version and exit
  --data-dir=DATA_DIR   Directory that contains the data files
  -c, --check-dist-upgrades
                        Check if a new Ubuntu release is available
  -d, --devel-release   Check if upgrading to the latest devel release is
                        possible
  -p, --proposed        Upgrade using the latest proposed version of the
                        release upgrader
  --no-focus-on-map     Do not focus on map when starting
  --dist-upgrade        Try to run a dist-upgrade
  --no-update           Do not check for updates when starting
  -s, --sandbox         Test upgrade with a sandbox aufs overlay


The PPA you pointed to does not have a package available for Oneiric (11.10) or later.

This explains your 404 errors.

Looking at packages.ubuntu.com, thinkingrock has never been an official package in the repositories.  Thus you will not find it in Synaptic.

Looking on SourceForge, there appears to be a rather large sources.zip available.  Thus in theory you can download, compile and install as per the wiki instructions.

I note there is now a company that has taken the opensource version and up'd its version to v3 and requires a license key etc.

If you like a challenge - use the wiki instructions to compile and install.  If you want an easy life ... perhaps an alternative such as wunderlist might be easier.


Ubuntu GNOME 16.10 - unable to enable vertical scroll using side of touchpad

Libinput on X11 workaround.  This was taken directly from ask.fedoraproject.org.  This is what made it work for my Ubuntu GNOME.

There is a workaround for libinpunt on X11:

1) Determine ID of your touchpad, for me it was the SynPS/2 Synaptics TouchPad with id of 11:

xinput list

2) Create desktop file in ~/.local/share/applications named edge-scroll-workaround.desktop.  This creates the edge-scroll-workaround application.

vim ~/.local/share/applications/edge-scroll-workaround.desktop

3) Place here this code in the edge-scroll-workaround.desktop file:

[Desktop Entry]
Name=Edge scroll workaround
Exec=/usr/bin/xinput set-prop **ID OF TOUCHPAD** "libinput Scroll Method Enabled" 0, 1, 0
Type=Application

4) In Tweak Tool (available in gnome-tweak-tool package) go to Startup Applications, click on + and in list find Edge scroll workaround.

5) Run edge-scroll-workaround.desktop, I do this by clicking the Super key and typing edge- and the application should appear.  Logout/login or restart and that's it.


Ubuntu 19.04 Hotspot is not visible to android phones

Had the same problem on an upgraded machine which worked fine in 18.04...google found no answer, so decided to go back to basics. Looked in /etc/NetworkManager/system-connections/Hotspot ... lo and behold buried in the [Wifi] section was a line:

Hidden=true

Change it to Hidden=false and bingo the hotspot became visible to all android and iOS devices instantly.


Apptitude - Have I removed my entire system?

If apt-get works, you may be able to reinstall with sudo apt-get install xubuntu-desktop - leave it until it has finished, then when you are sure it has finished, reboot.

xubuntu-desktop installs all the things needed as dependencies, so it should reinstall the basics required for the Xubuntu system to run.


Your system will use Ubuntu's NTP server at ntp.ubuntu.com by default.

To find what NTP server is being used, run:

grep ^server /etc/ntp.conf

If you get an error, then NTP is not installed.  To install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install ntp


According to Ubuntu Manpage Repository, panel-test-applets  displays  installed applets in a dialog box and does nothing else.

  Q1. Why do I have man pages of commands that don't exist?

panel-test-applets is not a command but a program that is installed and run with gnome-panel which provides the panels for the the GNOME Desktop.

  Q2. Maybe the command is not very useful, but is its man page useful?

It's man page provides information about the program and so, YES it is useful.

  Q3. Does someone know how to install the command or what is its man page for?

I am not sure which command are you referring to here, besides commands are not installed, but programs are.

If you are asking about installing gnome-panel which also installs panel-test-applets, you can run:

sudo apt-get install gnome-panel


Lost Windows 10 option in GRUB after updating BIOS

If you read the output (it is long) at the bottom is suggests repairs and tells you the problem

I bolded the relevant information.

  =================== Suggested repair

  The default repair of the Boot-Repair utility would purge (in order to fix packages sign-grub
  fix customized files) and reinstall the grub-efi-amd64-signed of sda5,
  using the following options:        sda2/boot/efi, Additional repair
  would be performed: unhide-bootmenu-10s   fix-windows-boot
  use-standard-efi-file

  =================== Blockers in case of suggested repair

  The current session is in Legacy mode. Please reboot the computer, and use this
  software in an EFI session. This will enable this feature. For
  example, use a live-USB of Boot-Repair-Disk-64bit
  (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is
  set up to boot USB in EFI mode.

So boot to BIOS, enable EFI, and run boot-repair again.

I hope Ubuntu is installed with UEFI enabled ;)


Why hasn't Trusty received the updates for OpenSSL's CVE-2016-2108 and CVE-2016-2107?

The current version does indeed include the mitigations for these vulnerabilities. Rather than keeping up with the OpenSSL releases, the security team prefers to backport fixes.

You can confirm that the package contains the mitigation for the CVEs listed in the question by downloading the Debian packaging for the openssl package:

apt-get source openssl

You will find a file named openssl_1.0.1f-1ubuntu2.19.debian.tar.gz in the current directory. Extract the contents and list the contents of debian/patches:

$ ls debian/patches
...
CVE-2016-2107.patch
CVE-2016-2108-1.patch
CVE-2016-2108-2.patch
...


Tried this

run-parts --test /etc/cron.daily

Found that my file update.ubuntu did not come up. Also noticed that my file had an extension (has dot in it).

Steps to fix this.

Renamed my update.ubuntu to update-ubuntu
Now again run-parts --test /etc/cron.daily, this time my file came up!


How should I partition my Ubuntu 10.10 install?

Mostly partitioning will depend upon what you like to do with your system. However I am attempting to answer  assuming typical use.

Yes, keeping /home as a separate partition will help you to retain all personal data even when you do a wipe out re-install of OS with same version or higher version. (Such re-install  is recommended than upgrade). If you want further granular control you can create more partitions based on need.

Generally you will not have more than 2-4 GB of data (it can vary based on what you install, but if you use default logrotate to keep logs cleared and do not use system for ever growing data like databases)  in root if you are keeping only two partitions namely /home and /root.

This assumes all your personal files goes to /home. So probably keeping ~6 GB to root , at-least same size as of RAM as swap (only if you expect any possibility of 100% memory usage) and rest of space for /home will be ideal. Also note that all personal files goes to /home by default, /home likely to grow over time.


Domain name isn't assigned from DHCP when booting from Live CD

DHCP doesn't reliably give a domain name; but really a search domain for users to be able to quickly reach other systems by their short name rather than a full domain name.

It should be up to the DHCP server to hand off IP addresses (and hostname) that will match what's in DNS, or to take the hostname passed by the machine to update DNS information. Unfortunately, we're not quite there yet.

Note, there's a long-standing bug about the behavior of hostname -f in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/8980


Using file system passthrough with KVM guests

You syntax is mostly used for LXC guest, KVM is a bit different. Update your XML like bellow:

<filesystem type='mount' accessmode='passthrough'>
 <source dir='/mnt/gsystem/fs'/>
 <target dir='mymount'/>
</filesystem>

Start you guest and manually add modules to guest boot.

cat >>/etc/modules <<EOF
loop
virtio
9p
9pnet
9pnet_virtio
EOF

Manually insert all those modules with

service kmod start

And finally try to mount the shared folder

mount mymount /mnt/fs -t 9p -o trans=virtio

If it's working, umount and add the following line into your /etc/fstab to make the mount persistant.

 mymount /mnt/fs            9p             trans=virtio    0       0

Finally try to mount it again with

mount -a

Sources : http://rabexc.org/posts/p9-setup-in-libvirt