Failed application install seems to have corrupted apt-get, how do I force it to forget?

boxee : Depends: libxmlrpc-c3 but it is not installable means that boxee's dependencies are not fully installed, so it may not work properly (note: I'm not saying that it won't work, just that some functions may not work).

To fix the problem, the easiest thing to do is to follow apt-get's advice and uninstall it. Uninstallation won't make you lose your configuration nor your files. Once apt-get -f install has finished, you will be able to install boxee again using:

apt-get update && apt-get install boxee

If this last command shows errors, then it'd be better to get in touch with the administrator of the archive from which you got boxee. The output of apt-cache policy boxee may be helpful.


How do I connect to an Ubuntu server via SSH from OSX?

If they are on the same LAN, it should be possible to connect using IPs.

The syntax for ssh is pretty simple. The minimum you need to specify is the target IP or hostname. The following are effectively the same for me:

ssh github.com
ssh 192.30.252.130

If you don't specify a username, your client's user is applied. So, for me, the above commands are the same as:

ssh muru@192.30.252.130
ssh -l muru 192.30.252.130

If you don't specify a port, 22 is assumed. So the first two commands are the same as:

ssh 192.30.252.130 -p 22

Unlike other programs, the IP:port syntax is not applicable here.

For everything else, there's the manpage.

This is all assuming that your client is similar to the OpenSSH client. For anything else, consult its manpage.


How to stop reordering of the same kind multiple preview windows in task switching?

Rather than changing the unity codebase, you might consider using desktops to arrive at your desired result.

Example using Compiz Desktop Cube in CompizConfigSettingsManager

Open CompizConfigSettingsManager (ccsm) and change settings to match the following:

Open terminal 1

Use the keyboard shortcut CTRL-ALT--> (right arrow) to go to the next desktop to the right.

Open terminal 2

Use the keyboard shortcut CTRL-ALT--> (right arrow) to go to the next desktop to the right again.

Open terminal 3

Use the keyboard shortcut CTRL-ALT-<- (left arrow) to go to the previous desktop containing terminal 2 (or twice to get back to terminal 1)

Another Option

Use the Viewport manager in CompizConfig SettingManager and assign a key combination to go directly to the desktop of your choices

Note: Thus far I've only been able to get 10 to work although 12 should be possible with this method.

Update: based on concerns expressed in comments:

Simply Right Click on gedit title bar and choose always on visible workspace...

Another Option:

Rather than opening seperate terminals (or workspaces) for your numerous activities you can also use  tabs in gnome terminal. Shortcut keys for tab switching are available from terminal preferences. See below:


I wrote iconic to solve this problem by letting you place icons evenly within a grid via script. Additionally it will:

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

You can get the script on github.

Here's the main screen:

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


How can I get rid of a 'dead' icon in search?

Sublime likely copied a file to ~/.local/share/applications/. Should look at the text files there and see if any of them have Name=Sublime, then delete it.


The command id -u prints out your "numeric user ID" (short: UID); as you already noticed, it is the same as spelling out your username in full on the chown command line.  Indeed, the following command invocations should all have the same effect:

sudo chown `id -u` /data/db
sudo chown $USER /data/db

The reason why it did not work as expected has likely to do with the quotes: they have to be backquotes (ASCII char 0x60), whereas the chown error message suggests that you used single quotes (ASCII char 0x27).

You can find a very thorough explanation of UNIX shell quoting here.


Likely the old 16 GB m.2 SSD will not be faster than your new 256 GB SSD you now had installed. Therefore we may not experience any performance boosts from moving the OS, cache, or tmp directories to that drive.

Nevertheless you may find the additional fast storage space useful for many purposes. Just a few examples that just came into my mind:

format and use it as /swap space to replace Swap on the precious new drive. It will give you additional space on your main drive, it may not wear out much if you only use part of that drive, and if it dies of age you will still be able to boot your OS.
use it as a temporary backup directory to save your daily work.
install another OS for dual-booting from that drive.
hide it from the desktop to store your secrets there.

Even if there was no use case at present it may be good to know that there is an m.2 slot in this laptop where we could install a larger SSD later.


My dconf/gsettings installation is broken. How can I fix it without Ubuntu reinstall?

This can also happen if you have PATH conflicts with a Python enviroment manager like Anaconda.

Make sure to run which gsettings before getting too deep. If that doesn't print /usr/bin/gsettings and instead something like /home/{username}/anaconda3/bin/gsettings you probably have something .profile/.bashrc/.zshrc like:

export PATH=$HOME/anaconda3/bin:$PATH

Change it to:
export PATH=$PATH:$HOME/anaconda3/bin

Appending instead of preprending to the PATH variable will solve your issue, but be aware that anything in your system bin, or other PATH locations, will supersede your anaconda3/bin.

Another option would be to alias /usr/bin/gsettings:

alias sys-gsettings=/usr/bin/gsettings
sys-gsettings get org.gnome.todo view


Can't open file '/var/www/svn/repos/db/txn-current-lock': Permission denied on RapidSVN

I dont think you have this file /var/www/svn/repos/db/txn-current-lock on your machine. Have you checked whether it exists on your system or not. How can you give permission on files which does not belong to your system.

It might be issue which server admin should take care of.He should give proper permission to files.Ask them.

Check this http://www.jamison.org/2011/09/13/fixing-the-svn-txn-current-lock-permission-denied-error-in-subversion/


external 3TB USB disc will not stay powered off

I'm using Seagate external HDD drive and I remove my HDD from Ubuntu in two steps:

1. In file manager pressing the small **eject** icon.
2. Then right clicking and **safely remove** the external HDD.

I have not checked for others as I've only Seagate HDD so not sure whether it will work on others but you can give it a try


How do I change the size of the status bar?

This is a weakness in the current implementation of Unity. We will make the sizing of the panel more dynamic in 11.04. You may not be able to size it precisely but it will respond to general font size scaling preferences in a way that it doesn't today.


How do I limit a file/folder's name to a single line in Nautilus file manager?

This can be done via gsettings:

gsettings set org.gnome.nautilus.icon-view text-ellipsis-limit "['1']"

The key's description:

  A string specifying how parts of overlong file names should be
  replaced by ellipses, depending on the zoom level. Each of the list
  entries is of the form "Zoom Level:Integer". For each specified zoom
  level, if the given integer is larger than 0, the file name will not
  exceed the given number of lines. If the integer is 0 or smaller, no
  limit is imposed on the specified zoom level. A default entry of the
  form "Integer" without any specified zoom level is also allowed. It
  defines the maximum number of lines for all other zoom levels.
  Examples: 0 - always display overlong file names; 3 - shorten file
  names if they exceed three lines; smallest:5,smaller:4,0 - shorten
  file names if they exceed five lines for zoom level "smallest".
  Shorten file names if they exceed four lines for zoom level "smaller".
  Do not shorten file names for other zoom levels. Available zoom
  levels: smallest (33%), smaller (50%), small (66%), standard (100%),
  large (150%), larger (200%), largest (400%)

If you want to do this for the desktop as well, from Can we (easily) turn off the line wrapping of icons on the desktop?:

gsettings set org.gnome.nautilus.desktop text-ellipsis-limit 1


Wifi extremely slow on ubuntu 16.04, tried almost everything and still not working properly

I have the exact same setting (BCM4322 and 1510 Wireless-N WLAN Mini-Card) and I had the exact same problem.

I hunted a bit around and what seemed to help so far was to reinstall the related kernel modul:

sudo apt-get install --reinstall bcmwl-kernel-source

I hope this helps.


Gparted showing up as whole disk unallocated (Ubuntu 16.04)

The previous image of your drive shows an extended partition containing logical partitions.  This configuration is not possible with GPT which means that your previous partition was likely MSDOS (aka MBR).

At some point in time, GPT signatures must have been written to the drive.  Since you mention that your computer still boots and functions then that implies that the old MSDOS partition table is still intact.  This is good news.

Before attempting to correct this situation I highly recommend making a backup of all your data.  That way you won't lose your data if anything goes wrong such as a hardware failure, power outage, or software bug while you attempt a fix.

To keep the old MSDOS partition table and only remove the GPT signatures.  See the following tutorial on Wiping Out Old GPT Data.  The tutorial recommends using fixparts as the safest way to keep the MSDOS (aka MBR) partition table while wiping out the GPT signatures.


How to provide user permission to read, write on `/dev/sdax`? What is the syntax?

Changing the ownership allowed me to copy without doing sudo.
command used:

sudo chown chirag:chirag /media/hood/ -R

Where, chirag:chirag is user:group.


How do I bypass/ignore the gpg signature checks of apt?

Pass the --allow-unauthenticated option to apt-get as in:

sudo apt-get --allow-unauthenticated upgrade

From tha manual page of apt-get:

  --allow-unauthenticated
      Ignore if packages can't be authenticated and don't prompt about it. This is useful for tools like pbuilder. Configuration Item:
      APT::Get::AllowUnauthenticated.

You can make this setting permanent by using your own config file at /etc/apt/apt.conf.d/ dir. The filename can be 99myown and it may contain this line:

APT::Get::AllowUnauthenticated "true";

In this way, you don't need to use the option every time you want to install software. Note: I do not recommend setting this option by default, it bypasses signature checks that could allow an adversary to compromise your computer.


What happens when I click "Send" after Ubuntu experienced an internal error?

If I am right, the information lands here:
https://errors.ubuntu.com/

They do a lot of thinking work:
https://wiki.ubuntu.com/AutomatedProblemReports

It seems the best solution so far is Apport with whoopsie. But the Documentation says disabled by default.
https://wiki.ubuntu.com/Apport

I think this is more a concept, but looks like your Idea (tell the User an ID) is already covered:
https://wiki.ubuntu.com/ErrorTracker

All together the Error Reports are collected and one main issue to solve is to automatic group the entries. Beside the issue with sensitive data in the report, but this is less fun.


Ubuntu 13.04 64-bit installed but hangs during boot on dual-boot Win7 Pro 64-bit system

By the sound of things, you did well to uninstall the (broken) install.
If your computer is back to normal, ie. you have the Win 7 boot entry (which boots you into win 7 error-free) on boot and no spurious linux/ubuntu problems coming up then I suggest BEFORE installing ubuntu of ANY kind again, or any O/S for that matter, to PARTITION your harddrive.

You say you have 1TB, which is more than enough to divide into a decent set of neat partitions, so windows is allowed, say 200Gig, Ubuntu is allowed 200Gig, maybe another 100Gig partition for data (music / videos etc.) ,a temp partition for incoming (downloading) files, 200Gig for installed Windows programs and another 100 installation files - which would leave 100 GIg for a recycler partition - These O/S' / data partitions  would also need backup partitions if possible - the amounts are really up to you.

For  advice on partitioning your hard drive, there  will be many people who do things different ways, Then you'll need space for backups etc. and also you need to think ahead about what happens if a part of you harddrive fails or if you need to only partially delete a broken install but keep the installation files so try to keep the partitions not overly large and roughly the same kind of sizes yet also keep them more than large enough to accommodate any updates (it's a balancing trick). A couple of 500Meg (1/2 Gig) Linux-Swap partitions are nice as well.

Give your O/S es the amount of room they need corresponding to how much you expect to be using them and how big and what programs you will be running, but you can always change the size of them relatively easily as long as the partitions are kept defragmented regularly!

Ex. my Pc has only 80 Gigs so I have 37Gig for Win7 64-bit (I'm already running low on room), 30Gig for Ubuntu 32bit 12.04 (also a tight squeeze), 12 Gig for playing with (I'm currently using it for Android Virualbox project work but might stick ubuntu 64 bit 13.04 server on there) and two 500Meg swap partitions. Like I say, 80Gig is really too small these days, so with 1TB I would definitely look at giving at least 100Gigs to each of my partitions and then if needing to, merging them together at a later stage.

Bear in mind that mindows formats it's partitions as NTFS and ubuntu formats its ones as  ext4 filesystems which are not mutually compatible... ubuntu can "read" wndows, but not vice-versa. So - like I say - draw a plan up dividing up your 1TB (on paper) then take it from there, using "gparted" during a live CD boot of ubuntu. This will make sure your 1TB is just how you need it!

The reason I say all this is because I suspect this is why you are having problems with your dual-boot... Two operating systems can sit side-by-side but having everything on a single 1TB partition is a bit drastic.. what if something goes wrong with windows? Keeping everything "protected" keeps buffers in  your data so you can manipulate it and install / uninstall / backup a whole lot more easily.

So, boot your Ubuntu Live CD, run "gparted" and shrink your main 1TB partition to whatever you want for your main win 7 partition. Then "slice" up (still using gparted) the rest of your drive for your Ubuntu / data / backup / temp / swap etc. etc. files... make sure you have the main win 7 partition as master boot, and make sure you don't leave any "unallocated" (wasted) space knocking about! Read up on how others utilize their space for different O/S first!

Practice makes perfect, chances are you will have to play about with gparted a bit before you are happy with your setup.

Then to try installing Ubuntu - boot the Live CD and install it to one of your ext4-formatted partitions as the place to put it. You WILL most likely lose Grub, but this isn't a major problem. As long as you have a working Live CD of Ubuntu to boot into and an internet connection, just burn a CD of "Super Grub" beforehand (or Boot-repair CD). This is a boot-CD which will basically detect all the operating systems on your 1TB Drive and let you boot into any one of them (as long as they are working!).

Once you are into your Ubuntu O/S, then you can repair your grub(2) onto to your main Ubuntu partition (ie. put the menu list back to normal with win7 Ubuntu debug memtest options etc. etc.) via the Live CD by downloading grub2 - sudo apt-get install grub2 in terminal -

Then to put it back on to your main Ubuntu partition, mount your main Ubuntu partition and use "grub-install" to put grub there in your /root/boot folder. Once this is done, use "upgrade-grub" to make grub (or grub2) include an option for EVERY O/S residing on your PC - then you will be able to boot up without the LiveCD, the menu will have all your options back. Sounds hard but there's plenty of info online about how to go about this.

So Windows has it's own boot loader (the MBR on the windows partition) AND you will have ONE (up-to-date) grub2 - this will be containing details of every O/S on your 1TB, placed in your main Ubuntu partition at the /root/boot/grub folder. Sometimes it's confusing if you have lots of partitions / operating systems, but it goes like this...

win7 -- boots using it's own MBR (Master Boot Record)
Ubuntu -- boots using Grub2 --

So your main (first) boot will call up the Ubuntu partition's grub(2)
This grub2 will contain the boot information for your win7 MBR and any other O/S's - giving you EVERY option for booting off your hard-drive.

Sorry to ramble but that would help your computing life big-time, just getting used to playing around with these concepts until they work for you...


I am getting an internal error that prevents update manager from opening, pkg unidentified

Try the following, then post error messages. Open a terminal window, and type:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install package_name

where package_name is the name of the package you are trying to install.


Just right click on the panel, select Panel Options -> Add Widgets, search for Pager and just drag it to the panel or double click it.


Found the Answer. You only require one extra dependency for it to work on Ubuntu x64.

sudo apt-get install lib32gcc1

Tested this on the following distros:

Ubuntu 12.04 x64
Ubuntu 13.10 x64
Debian 6 "Squeeze" x64
Debian 7 "Wheezy" x64

Bonus info for CentOS 6 x64 users. Use the following to get SteamCMD working.

yum install glibc.i686 libstdc++.i686


Black screen after installing hardware support

Install the driver package using the command:

sudo apt-get install xserver-xorg-video-radeon

If it is already installed, then purge and reinstall:

sudo apt-get --purge autoremove xserver-xorg-video-radeon \
&& sudo apt-get install xserver-xorg-video-radeon

You might need to reboot your system for the changes to take effect. (You can reboot from the command line issuing sudo reboot.)


is it possible to access internal hosts from ssh terminal using ssh tunnel from windows directly?

I found out that I could set up another SSH tunnel to my dev server and access the web pages through my local machine that way.

The reason I couldn't SSH into the Windows Remote Server was because it doesn't have an SSH server available only remote desktop.


official nginx trusty ppa gives KEYEXPIRED gpg error

After adding a third party repository to a /etc/apt/sources.list.d/* file or /etc/apt/sources.list, you need to make sure the corresponding gpg key is inserted into the apt keystore.

To be more specific for this special case of nginx.org repository: you need to add the nginx.org gpg key file used for the signing of the repository.

This can be done by either downloading the file https://nginx.org/keys/nginx_signing.key manually and issue sudo apt-key add nginx_signing.key (as suggested by nginx.org and @ThomasWard) or you can do this in one single line:

wget https://nginx.org/keys/nginx_signing.key -O - | sudo apt-key add -


What I would do is to reinstall using /boot and / and leave the /home partition alone during the install. Once you have installed you can install cryptsetup, set up your partition in /etc/crypttab and /etc/fstab and you'll be away. I'll assume you have an encrypted swap For the details, once you have installed and rebooted, open a terminal and:

sudo apt-get install cryptsetup
cryptsetup luksOpen /dev/sda6 crypthome
cd /
mount -t ext4 /dev/mapper/crypthome /home

Edit the partition details and file system type as required. Now you can browse /home and ensure it is what you expect. Then you need to put the following in /etc/crypttab

crypthome /dev/sda6 none         luks
cryptswap /dev/sda7 /dev/urandom swap

And in /etc/fstab you need to add these lines to the end

/dev/mapper/crypthome  /home  ext4  defaults  0  2
/dev/mapper/cryptswap  none   swap  sw        0  0

Do a reboot to check it all works as expected and you're away :)


How to invert sorting arrows? Aka sorting arrows are wrong

Short answer
~/.config/gtk-3.0/settings.ini or /etc/gtk-3.0/settings.ini should contain:
[Settings]
gtk-alternative-sort-arrows = true

Long answer
Open:

~/.config/gtk-3.0/settings.ini (settings for one user only)
OR: /etc/gtk-3.0/settings.ini (settings for all users).

If the file does not exist, create it.
Make the file contain at least:
[Settings]
gtk-alternative-sort-arrows = true

(If the file is already existed, add gtk-alternative-sort-arrows = true below [Settings].)
Discussion references on the topic

https://hackernoon.com/sorting-arrow-confusion-in-data-tables-5a3117698fdf
https://gitlab.gnome.org/GNOME/nautilus/-/issues/1008
https://gitlab.gnome.org/GNOME/gtk/-/issues/1848


How do "apt-get clean" and "apt-get clean all" differ?

In

sudo apt-get clean all

all is just ignored, like anything else you append after clean.

It's the same with for example

sudo apt-get clean my room


How to create your own commands that can be used anywhere

Let's assume that you often place random scripts in ~/bin as one of the comments mentioned. Just open your ~/.bashrc (provided that BASH is your shell of choice) and as the last line add:

export PATH="${PATH}:~/bin"

and that's pretty much it. You can add any directory to your PATH environment variable this way and it will allow you to run any executable file from any location on this system. If you want to add more directories, just prepend each one with a colon, i.e.

export PATH="${PATH}:~/bin:otherdir:yetanother"

Just remember that this will only work once you open the terminal again or if you don't want to, just reload BASH configuration with:

source ~/.bashrc


How to make use of a new SCSI drive in a VPS hosting FTP server?

Forget what you know about Windows and drives.
Ubuntu has a file system that can accommodate an infinite amount of disks and still have them all under the same file system (the FHS Read this in its entirety after following below steps).
So what you want to do is:

Take a full system backup of your server

Take another full data backup just in case

Create a new partition table on /dev/sdb (it's now an LVM2 member: we don't want that)

Create a new partition on sdb using an EXT4 file system

Mount that file system somewhere temporarily:
  mount /dev/sdb1 /media/NewFTPFiles

Stop the FTP Server

Copy all files from the old directory to the new one, preserving all attributes:¹
  cp --preserve=all --recursive /srv/ftp /media/NewFTPFiles

Delete all old files to free up space: Dangerous and why you made 2 backups
  rm --recursive /srv/ftp

Unmount the new disk:
  umount  /media/NewFTPFiles

Mount the new disk in  the same exact location as the old server's files were originally
  mount /dev/sdb1 /srv/ftp

Start the FTP server

Ensure you now fix your fstab file with the new mount command so that next time you reboot the server the mount is done at boot time.

Voilà!
/dev/sdb1 is now overlayed on your file system in /srv/ftp and df and du will show all that new space allocated to the FTP service and / will be cleaned up!
Note ¹: I use vsftpd and that uses /srv/ftp.  Substitute that with whatever directory your FTP server uses...


This is expected behavior. If you are looking at the drive you're about to unmount, the window (or tab) will go away, as the drive is no longer there once you unmount it. Yes, it is a bit disconcerting at first.


Problem in installing YouTube unity lens

Ok i have tried and got as you got . But in my search i found that , that package was not available for Ubuntu 12.04 .

Click Here

as I have seen just installing scope-youtube will be enough .


How to prevent screen from going black (back light is shut down) at startup (laptop) Ubuntu 12.04?

Open a Terminal window (Ctrl+Alt+T) and run this command to open GRUB's main configuration file in nano (a non-graphical text editor):

sudo nano /etc/default/grub

In the text editor, find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add acpi_backlight=vendor to the end, so it looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save the file and quit the text editor, by pressing Ctrl+o followed by Ctrl+x. Then run:

sudo update-grub

Done.  Backlight will be at full strength by default.


file_content="`cat filename`"

will store the contents of filename into file_content.
You can append something to a file using >> instead of >.
echo 2 2 >> filename
echo 2 2 >> filename
echo 2 2 >> filename

would add it 3 more times to your echo 2 2 > filename


Crude way for Ubuntu 14.04 / 16.04

Boot ubuntu LiveCD, click "Try Ubuntu without installing"
Click logout (top right)
Switch to the console: CtrlAltF1
On 16.04 you need to login with user "ubuntu", empty password, then:

$ sudo loadkeys de              # if you need a different layout
$ sudo killall -u lightdm
$ export DISPLAY=:0.0
$ metacity &
$ gnome-terminal &

Back to graphical mode: CtrlAltF7 (or F2 on Ubuntu 16.04)

You should now have a very minimal environment with just a terminal and window manager.

Notes:

If you see "The system is running in low graphics mode" popup don't close it.
If you can't access display do:

$ sudo cp /var/run/lightdm/root/:0 ~root/.Xauthority
$ sudo xhost +


Looks like you are being affected by this bug: https://bugs.launchpad.net/ubuntu/+source/wicd/+bug/1132529. You should be able to work around it with the following:

rm /etc/resolv.conf
ln -s /run/resolvconf/resolv.conf
rm /var/lib/wicd/resolv.conf.orig
ln -s /run/resolvconf/resolv.conf /var/lib/wicd/resolv.conf.orig


How to Close Windows (And Applications) by Middle-Click

If you are using GNOME 3 then this extension will solve your problem. This applies to closing applications with middle click in the GNOME 3 'Activities' Overview.

https://extensions.gnome.org/extension/352/middle-click-to-close-in-overview/


I don't have an answer, but perhaps I can help us to solve this mystery. I'm running Xfce on top of Debian (sorry Ubuntu fans) and am having similar trouble. I have a .desktop file in ~/.config/autostart to invoke xmodmap and this works, but the effect only lasts about 23 seconds (timed it) after which point the custom key mappings are lost. I've suspected this is a problem with Xfce overriding the key mappings and am curious if you're using xubuntu. Even if I enter the xmodmap command in a terminal just after login, it will be forgotten after about 20 seconds. However, if I wait a little while and then enter the command it is permanent (mostly, see notes about suspend below). Adding a sleep to my autostart invocation has the same effect. My ~/.config/autostart/xmodmap.desktop file currently looks like this:

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=xmodmap
Comment=custom key mappings
Exec=bash -c "sleep 30;xmodmap ~/.Xmodmap"
StartupNotify=false
Terminal=true
Hidden=false

I've set the terminal to show so I can see what's happening. This is a terrible work-around since I have to wait 30 seconds before my key map will take effect and when it does, the pc basically freezes for about 6 seconds while xmodmap processes the input file. This is acceptable (I suppose) at startup but not when I'm already in the middle of things.

I can also confirm the suspend behavior. Using the above .desktop file I get my key mappings, but upon waking up from suspend they're forgotten. Bummer, but I don't use suspend often anyway so this is a limitation I could accept.


Ubuntu after upgrade - ssh exchange failed

This means the diffie-hellman-group1-sha1 is not present in the default set of key exchange algorithms.

To get the ssh option permanent, add the follwoing to your ~/.ssh/config (or globally in /etc/ssh/ssh_config):

KexAlgorithms=+diffie-hellman-group1-sha1

Be careful about the Host, Match etc selective declarations while adding the directive if you want it globally as values inside those snippets apply to the mentioned set only. Whenever unsure, put it at the top.


You do know that a user crontab file, and root's crontab have different formats, right? The latter has a userid field.

The environment that a cron jobs runs in is not the same as your GUI environment. Execute (echo "=== set ===";set;echo "===env ==="; env | sort;echo "=== alias ===";alias) in each environment to see.

Also, * * * * */home/magento_admin/AlertDisk.sh should be
.........* * * * * /home/magento_admin/AlertDisk.sh


Thunderbird 60 becomes unresponsive after clicking the "Write" button

I had the same problem today. In my case, it helped to deactivate my external html signature.


why autoremove is not called whenever I remove a package?

See the AptGet/Howto - Ubuntu Documentation page to clear your doubts.

It says:

apt-get autoremove

This command removes packages that were installed by other packages and are no longer needed.

apt-get autoremove <package_name>

This command removes an installed package and dependencies.

and

apt-get remove <package_name>

This command removes an installed package, leaving configuration files intact.

EDIT

It depends on how much you trust the dependancy tracker. While almost always correct, there are times when you would want a dependancy to remain, particularly when you are a developer or power user installing software that is not in the repository.

If you always install software through apt-get, without exception, and trust all the dependancies to be correct (which they usually are), then you can use apt-get autoremove and gain a small amount of drive space and a reduced exposure to potential security holes by having it remove packages that no longer have any packages that need them.

But if you install software manually, or develop software, or do not want to deal with a possible dependancy error, then not using autoremove to clear potentially unused packages is probably the safer choice. Regardless of whether you use apt-get autoremove every now and then or not, you will always remove software using apt-get remove Package

For example, if I install AwesomePackage, it may depend on AwesomeLibrary, and thus AwesomeLibrary will get automatically installed as a dependancy. When I remove AwesomePackage using autoremove, as long as no other package has AwesomeLibrary as a dependancy it will be uninstalled as well. But if SuperPackage also requires AwesomeLibrary, or if I had installed AwesomeLibrary explicitly myself rather than having it come in automatically as a dependancy (apt-get install AwesomeLibrary), then autoremove would not get rid of it.

The reason it is not the default is that having AwesomeLibrary on the system, unused, is a very minor issue. It will almost never cause problems, and most dependancies don't take up much space. There are exceptions, but the times when removing a dependancy will cause problems outnumber the times when it will solve or prevent a problem.

Source: SuperUser: When would you use apt-get remove over apt-get autoremove?


Attempted assignment to non-variable (error token is "= 0 ")

Inside (( ... )) arithmetic evaluation, = is an assignment operator not a logical comparison operator. So $(($w = 0)) is dereferencing variable w, and then attempting to assign the value 0 to its value.

Probably what you intended was if $(($w == 0)). However  - although syntactically correct - the parameter expansion syntax $w is not necessary in this context so you could simplify that to if ((w == 0)), and similarly for $(( $w != 0 )) and so on. From the ARITHMETIC EVALUATION section of man bash:

Shell  variables  are  allowed as operands; parameter expansion is per‐
formed before the expression is evaluated.  Within an expression, shell
variables  may  also  be referenced by name without using the parameter
expansion syntax.

Also note that -le, -gt operators are for arithmetical comparison within [ ... ] or [[ ... ]] test brackets; within (( ... )) brackets (which are for arithmetic evaluation only), you should use <=, > and so on.


You could just test it in a virtual box of Ubuntu. That way you would have full control of network seting and there is also minimal risk of corruption


Batch-convert and split .ape with .cue to .flac in various folders from terminal

I would do this in multiple steps, since you do this rarely. Transparency is more important than automation here. But a single line is also possible. I assume that if you use only one command for all the files each step, this is what you intended.

You need to have ffmpeg (or avconv), shntool and cuetools installed.

To convert all your .ape to .flac in place:

find . -name "*.ape" -exec sh -c 'exec ffmpeg -i "$1" "${1%.ape}.flac"' _ {} \;

If you install the patched MAC encoder and decoder for APE files from  http://www.etree.org/shnutils/shntool/, this first step is unnecessary. But you would need to compile it with g++ and yasm yourself. Same goes for .tta files, which are also often used instead of .ape.

Split and name .flac files:

find . -name "*.cue" -exec sh -c 'exec shnsplit -f "$1" -o flac -t "%n_%p-%t" "${1%.cue}.flac"' _ {} \;

If shnsplit is also used for the conversion, replace the .flac in "${1%.cue}.flac" with the extension of the format you are converting from.

%n – track number
%p – performer
%t – track name

is taken from the .cue file for the .flac file names. To tag the resulting, split .flac files:

find . -name "*.cue" -execdir sh -c 'exec cuetag "$1" *.flac' _ {} \;

Remove the remaining CDImage.ape.cue, CDImage.flac, and CDImage.ape files at your leisure. The names are unique, so a simple find . -name "CDImage*" -delete is sufficient, except if Mozart made a composition starting with CDImage which I am not aware of.

For shnsplit to work, all necessary encoders/decoders need to be installed so it can read and write files. Modules for APE (and for the TTA format) would need to be compiled from source, the others by installing the package (i. e. FLAC).

This works for all standard cases where .cue and .tta/.flac/.ape files have the same name, except for the extension.

Side remark for others: If you deal with this conversion, your source files might be of Japanese origin, where APE and TTA were more popular than elsewhere. If the .cue files were initially SHIFT-JIS coded and now opened as UTF-8, the shnsplit step will break. You need to rename the .cue files with

find . -name "*.cue" -exec rename 's/\.cue$/.cux/' -- {} +

and convert the intermediate files to UTF-8 with

find . -name "*.cux" -exec sh -c 'exec iconv -f SHIFT-JIS -t UTF-8 -o "${1%.cux}.cue" -- "$1"' _ {} \;

before you attempt to do the steps above. Don't forget to get rid of the .cux files when you are done with:

find . -name "*.cux" -delete


There is a really easy way to rip a cd on linux without any extra software.

Open the cd folder, right-click on the file you want to rip, and click copy.
Then open the folder you want to copy the track into, right-click and click paste.

Tip:To select more than one file, hold control while clicking.


Revoking all permissions from SMB shared folder for others

Add another option nounix to your list of options:

/xyz.xyz.xyz.xyz/folderName /media/data cifs uid=root,username=user,password=pass,file_mode=0770,dir_mode=0770,nounix 0 0

EDIT: Sorry, I always forget to mention the systemd reset commands for this. Once you edit and save fstab run these commands:

sudo umount /media/data
sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target
sudo systemctl restart /media/data


Share files with someone over the internet

Dropbox or another file sharing service would be one easy way.

You could try python simple HTTP server as well.

Open up a terminal and type:

$ cd /home/somedir
$ python -m SimpleHTTPServer

That's it! Now your http server will start in port 8000. You will get the message:

Serving HTTP on 0.0.0.0 port 8000 ...

Then they can point their browser to 24.Your.IP:8000

Crude, but simple.  (You may need to install Python though).


How to make Ubuntu update the kernel less frequently?

As you have written yourself, your issues are caused by two other problems and not by the updated kernel package itself. It should be easier to fix those issues and have a normal Ubuntu running than applying some kludges that may not work in the next Ubuntu release.

Finding the Nvidia driver version number

The version number of the driver is stored in meta data of the corresponding package.

$ aptitude show nvidia-current-updates
Package: nvidia-current-updates
State: not installed
Version: 295.49-0ubuntu0.2
...

This for instance shows that nvidia-current-updates contains version 295.49. Other Packages available in the repository are nvidia-96, nvidia-173 and nvidia-current as well as packages with the -updates suffix. The package names may change between releases. You can also get newer drivers from the X Updates PPA, if you need to. If you are more comfortable using a web interface instead of the command line that's also possible via Ubuntu's packet search web interface.

Choosing a Ubuntu supported WiFi card

Your DLink DWA-110 seems to be a WiFi G standard (54 MBit) USB dongle. Apart from being a bit dated and that a USB 3.0 port wouldn't improve its performance, the really bad thing is that it needs ndiswrapper to work. Getting WiFi to work on Linux did cost a lot of effort some years ago if you didn't get one of the few good cards, but Linux support for WiFi has improved and today it's even easier to get a card or dongle that works out of the box. Which is what everyone should be aiming for when buying hardware for Linux.

My advice: Go to your local computer store or electronics discounter, make a list of what's on the shelves or compare prices of online shops, then look up the exact model number (some vendors sold cards with minor model number changes with a completely different chipset) in the compatibility list. Avoid everything with ndiswrapper, cards using the ath9k driver should be a good choice. Also take care of the date in the last updated column, don't pick one that worked 3 years ago.


advanced permissions check boxes in nautilus missing

While still shown in gconf nautilus settings are now  handled thru dconf. Install dconf-tools, then open dconf-editor & browse to org > gnome > nautilus > preferences

Or use gsettings, fairly logical

gsettings set org.gnome.nautilus.preferences show-advanced-permissions true


Best way to cache apt downloads on a LAN?

I did some research into a bunch of solutions and some Ubuntu developers came up with a proxy configuration (based on Squid) for 10.04 and later. It's called squid-deb-proxy. It only requires a machine to act as the server. Large organizations usually run their own full mirrors but for most people the on demand mirroring is enough.
Why squid-deb-proxy?

No editing of files on the client side.
Use zeroconf so that clients were "zero config"
Use an existing, solid proxy solution instead of writing a new tool.
Easy to set up for a typical Linux administrator.

Server Config
On the machine you want to act as a server install the tool with:
sudo apt-get install squid-deb-proxy avahi-utils
Now start the service bits:
 sudo start squid-deb-proxy

And the avahi bits (You don't need this if you're on 12.04+):
 sudo start squid-deb-proxy-avahi

This will install the proxy server (which listens to port 8000 by default) and the avahi tools needed for the server to advertise itself on your network via zeroconf.
Client Config
On each of the computers that you want to use the cache (the clients, and the server itself so it can use the cache too), you need to install the client side tool that let's apt look for the server automatically, have them click here:

or via command line:
sudo apt-get install squid-deb-proxy-client

Optional: For maximum efficiency you should set one machine to automatically download updates, so that when your other machines need it it's already in the cache. You can do this by going to System->Administration->Update Manager, then click on the "Settings..." button, in the Update tab set it to automatically download all the updates.

Caching 3rd Party Sources
By default the cache is set up to only cache official Ubuntu repositories. To add more you need to add them to the list of sources at /etc/squid-deb-proxy/mirror-dstdomain.acl. This is where you can add ppa.launchpad.net, or other services you might use. After making changes to this file, you must run sudo restart squid-deb-proxy in order for the changes to be effective.
Manual Config
If for some reason you do not want to use zeroconf (for network reasons or whatever), you can manually set a client to use the proxy by editing /etc/apt/apt.conf and adding the following stanza, (replace the 0.0.0.0 with the IP address of the server):
 Acquire {
   Retries "0";
   HTTP { Proxy "http://0.0.0.0:8000"; };
 };

Firewall
In case you are using a firewall, avahi uses 5353 over addresses 224.0.0.0/4 and requires a rule that looks like this:
# Specifically port 5353 which avahi uses
-A INPUT -i eth2 -d 224.0.0.0/4 --dport 5353 -j ACCEPT

# OR

# Wide open so all local broadcasting works
-A INPUT -i eth2 -d 224.0.0.0/4 -j ACCEPT

Next, you need to open TCP port 8000 for the actual communication through the proxy. Something more or less like this:
-A INPUT -i eth2 -p tcp -m tcp --dport 8000 -d 192.168.0.1 -s 192.168.0.0/24 --syn -j ACCEPT

These rules are just to help you. They will probably not match your setup one to one. (i.e. wrong interface, wrong private network IP addresses, etc.)
Confirming it Works
First tail the log on the server so you can look at it: tail -F /var/log/squid-deb-proxy/access.log and then run an update on any machine that has the client installed; the log should start to scroll with entries like this:
1307310795.647     32 192.168.1.106 TCP_MISS/302 768 GET http://us.archive.ubuntu.com/ubuntu/dists/natty-proposed/universe/i18n/Translation-en.xz - DIRECT/141.210.26.10 text/html
1307310795.683     34 192.168.1.106 TCP_MISS/302 752 GET http://us.archive.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-en_US.lzma - DIRECT/141.210.26.10 text/html
1307310795.716     32 192.168.1.106 TCP_MISS/302 746 GET http://us.archive.ubuntu.com/ubuntu/dists/natty/main/i18n/Translation-en.lzma - DIRECT/141.210.26.10 text/html
1307310795.750     32 192.168.1.106 TCP_MISS/302 764 GET http://us.archive.ubuntu.com/ubuntu/dists/natty/multiverse/i18n/Translation-en_US.lzma - DIRECT/141.210.26.10 text/html
1307310795.784     32 192.168.1.106 TCP_MISS/302 758 GET http://us.archive.ubuntu.com/ubuntu/dists/natty/multiverse/i18n/Translation-en.lzma - DIRECT/141.210.26.10 text/html
1307310795.817     32 192.168.1.106 TCP_MISS/404 657 GET http://us.archive.ubuntu.com/dists/natty-proposed/multiverse/i18n/Translation-en_US.xz - DIRECT/141.210.26.10 text/html

Which means the clients see the cache but are missing it, which is expected since it hasn't cached anything yet. Each subsequent run should show up as TCP_HIT. You can find the squid cache files themselves in /var/cache/squid-deb-proxy.
Using it
From then on all the machines on your network will check the cache before hitting the outside network to fetch packages. If there are new packages available then the first machine will download it from the net, after that subsequent requests for that package will come from the server to the clients.
TODO
We still need to enable apt to just use an advertised cache on the network out of the box and by default so you don't need to install the client piece. We also need to fix the bug that 403's deb's not in the mirror list.


Alternatively, have you tried copying and removing card content from terminal?

To open terminal

ctrl + alt + t

To copy

$ sudo cp /media/user/file /destination

To remove

$ sudo rm /media/user/file


Is it possible to have two g++ executables with shared lib?

Try this:

cd ~
cp /usr/bin/g++ gx
touch x.cpp
strace ./gx -o x x.cpp 2>xlog

It fails with the same error message, and in xlog you can see that g++ expects to find cc1plus in a relative directory ../lib/etc. This is irrespective of apparmor.

Now, there is probably some configuration setting you can use to make g++ look elsewhere for cc1plus if you care to build it from source yourself, but forebearing that option I would say g++ must be run from its normal, installed directory. g++ will run from a copy of itself in its normal directory, renamed of course. I would think you could subject the copy to apparmor, if that fosters your chickens.


Laptop doesn't hibernate, when battery is low

answered here:

https://help.ubuntu.com/14.04/ubuntu-help/power-hibernate.html

Hibernate has not been set by default in this version due to some machines' limitations with hibernation, so first test if it works:

sudo pm-hibernate

if it does, then set it by default by setting:

/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes

the first block made my machine hibernate once, but when I restarted it stopped working, the second block makes sure it keeps working


We think we have found that this is a hardware problem. The following tips might be useful for other users with similar problems, in order to find out, if it is a hardware or software problem.

If you run the on-screen keyboard onboard, does the corresponding key work?

onboard

If not installed install with

sudo apt-get install onboard

If you boot the computer live, 'Try Ubuntu' from a USB drive or a DVD disk? Does that key work? Or try live with another linux distro.
If you dual boot with another operating system, for example Windows, does that key work in the other operating system?


Make sure the ubuntu-desktop package is installed.

sudo apt-get install ubuntu-desktop

Now logout.

At the login page there is an option to change the environment from LXDE to Unity.

Login and you should be in Unity.

It would be wise to stick with LXDE. A machine with 1GB of RAM and a Pentium series processor will have a hard time running Unity, if it will work at all.


You could use the --dry-run option of apt and/or apt-get to see all effect of a single apt / apt-get command

Quoting the apt-get man page

  -s, --simulate, --just-print, --dry-run, --recon, --no-act

       No action; perform a simulation of events that would occur based on the current system state but do not
       actually change the system. Locking will be disabled (Debug::NoLocking) so the system state could change
       while apt-get is running. Simulations can also be executed by non-root users which might not have read
       access to all apt configuration distorting the simulation. A notice expressing this warning is also
       shown by default for non-root users (APT::Get::Show-User-Simulation-Note). Configuration Item:
       APT::Get::Simulate.


Installing Ubuntu Server from USB installs to wrong location?

Solved. Everything was installing to the selected hard drive except for the Grub boot loader. During the installation process it can only install it to the system's first hard drive and if you have a wonky situation where you need to switch the USB to be the first drive in order to get the installation process going then you're in trouble in the case of Ubuntu Server. I tried command line to install Grub to the system with no luck and eventually created an install CD and that solved the problem.


How to Install Windows OS along side of Ubuntu 12.04?

If you install windows after installing ubuntu, windows will replace Grub bootload with its own bootloader, which will remove the boot menu when you turn on your PC, removing you the ability to boot ubuntu.

Although you can always restore grub, i'd always recomend installing ubuntu AFTER windows. Whay i'd recomend now, is to reinstall windows in the whole drive, then re-install ubuntu and select "install ubuntu alongside windows" when installing ubuntu and the ubuntu installer will let you choose how much space from windows you want to take for ubuntu and it will do all the dirty stuff needed to get the dual boot working correctly.


Easy way to quickly locate the mouse pointer?

It's not an obvious setting, but you can mimic the Windows behavior of showing the mouse when you press the control key.

In the terminal, do

gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer true

Now a little animation will indicate the location of the mouse anytime you tap the Control key:

(To turn it off, use false instead of true)

(Source)


How to install software & addons in the Ubuntu Software Store correctly?

Go to USC search for MonoDevelop, check all the add on that you want, and then click on the install button.  This will install the application with the add ons.


by pressing shift on starting, boot and from grub menu select recover mode and drop to root shell prompt.

open /etc/default/grub as and add text to the

nano /etc/default/grub

And in the file, change this line:

GRUB_CMDLINE_LINUX_DEFAULT="text"

Then update your Grub

update-grub

and

reboot

Your system will then boot to text mode.

If you once want to use GUI you can easly make light works

sudo service lightdm start

hope this will work for you

http://www.iasptk.com/ubuntu/20348-ubuntu-login-to-text-mode-without-removing-gui


Revert to open source graphics drivers - options greyed out 14.04

This solution worked for me :

sudo apt-get purge "fglrx.*"  #  remove proprietary drivers
sudo rm /etc/X11/xorg.conf    #  remove old Xserver config

reinstall open source drivers

sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64

sudo dpkg-reconfigure xserver-xorg   # reconfig Xserver

sudo reboot

this will give you working video drivers and your driver options will no longer be greyed out


Is there any chance to install the ubuntu touch preview on a generic tablet?

You will note the Supported tablets are limited to a small range (Nexus) as per this link https://wiki.ubuntu.com/Touch/Devices

Note that the other supported Tab lets are user supported and most support a limited set of features. It's early days so a lot of stuff will simply not work.


Did security change with MySQL 5.7 / Ubuntu 16.04?

I believe that was first included in MySQL 5.6.  I don't believe it imposes any additional security threat.  However, it should be noted, if your cron entry is exactly how it is above, that command would expose your password on your system to ps and log entries.

I would make the recommendation for cron entries to be put into an external file with proper permissions.

For user access instead of crontab you could create a file ~/.my.cnf with the following contents.

[client]
user=username
password=password
host=localhost


Does a working nomodeset means the gpu isn't defective?

By using the the nomodeset parameter during start up are instructing the kernel to not load video drivers and use BIOS modes instead until X is loaded.
Basically you are saying do not use my video driver use this generic one from the computer BIOS.
This does not mean that for sure the video card is bad but that you are most likely using the wrong drivers.
Make sure you are running the correct driver for the video card/chip set you are using.


How to change Ubuntu Budgie login screen background?

I have simple Ubuntu 18.04.1
In my opinion the best way to do this:

step1: make backup of the file  /usr/share/gnome-shell/theme/ubuntu.css - if you have another desktop for ubuntu you can find file ubuntu.css just using command locate ==> locate ubuntu.css
step2: vim /usr/share/gnome-shell/theme/ubuntu.css and find part below

   #lockDialogGroup {
   background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
   background-repeat: repeat; }

step3: change it to

   #lockDialogGroup {
   background: #2c001e url(file:///usr/share/backgrounds/warty-final-ubuntu.png);
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center;
    }

clarification: as you can see, we changed
"background: #2c001e url(resource://" part to the ==> "background: #2c001e url(file://"
and then set up path for the image.
I used /usr/share/backgrounds/ for the path with image. Also I added some css properties to center the image.
This is only the css file configuration. That's it)


How to change the text after username@ in Ubuntu

This is the 'hostname'. Check this question for how to change it: How do I change the hostname without a restart?

If you want to have a completely different prompt, not in the form of user@hostname, check out the answer here: change prompt of terminal, permanently | how


Self-hosted browser based IRC client alternatives

In case someone stops by years later, The Lounge (website / source code), in its private mode (see the configuration docs), will do what the OP wanted :)

It is an actively-developed, official fork of Shout (mentioned in another answer here) now inactive, and is recommended by the author of Subway (mentioned by the OP).


Lexmark X6675 Printer stopped working on 11.10

I actually haven't been able to resolve the question directly but I have been able to work around the problem.

The Printer X6675 has a wireless interface which allows connecting via network.  So I have deleted the printer that the driver had created with USB as an interface and used network printer configuration same as the laserjet to make it work with the PPD file that has been provided by the downloaded driver.

Here is the screenshot of the configuration.


Upgrade option is disabled while trying to upgrade to 14.04 using DVD

I found the problem myself. I should first run the Live version and then upgrade using Ubuntu Live.


This has been a problem for me too: with my i7 workstation with nvdia graphics and my i3 laptop. Many people reported this and the admins closed the question calling the 'too broad.' I find that response condescending from the admins. Now I have been able to solve the issue on both my laptop and desktop. Here's how:

Install the unity tweak tool:

sudo apt-get install unity-tweak-tool

Once installed, open the tool and open General under the Window Manager section. The first parameter you see there is zoom. Switch the Desktop Magnification to off.

For me this has been causing all the problem. The computer was generally slow in spite of the system monitor not showing any considerable load. Now the issue is resolved for me and a couple of my friends too.


Desktop environment delivery via remote virtual server

Well, working with a few people on the Ubuntu Forums, I was able to get a solution working, but it uses x2go instead of xrdp.

First install openssh-server:

sudo apt-get install openssh-server

You need to modify the sshd_config file, so make a backup

sudo cp /etc/shh/sshd_config /etc/ssh/sshd_config.back

open the file

sudoedit /etc/ssh/sshd_config

find these lines

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

and change that last no to yes

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication yes

Find these lines

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

And uncomment like so:

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes

Now restart the service

sudo service sshd restart

Now install x2go from ppa on the server

sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install -y lxde alsa pulseaudio paprefs x2goserver x2goserver-xsession
sudo apt-get autoremove -y
sudo apt-get clean

Add yourself to the x2gouser group

sudo adduser $USER x2gouser

On the client install the client package and paprefs

sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install paprefs x2goclient

In order to login to your remote server, start the x2go program and put in the IP address (or URL if you have one) and your username. Make any other configuration changes that need to be done, and then go back to the tab with your username. Instead of selecting LXDE as the session type, select custom desktop. In the field next to this selector, enter:

ck-launch-session startlxde


I understand that you want to create a VMware virtual machine which boots Ubuntu from an external USB drive, as opposed to creating a normal VM which lives in a folder on the external drive.

Note: Generally I would say that you should simply create a regular VM in a folder on the external drive. But, if you absolutely want to boot the VM from a USB drive instead of a virtual hard disk, you can.

Proceed as follows:

Prerequisites:

Get the Ubuntu ISO from releases.ubuuntu.com.
Get the PLOP Boot Manager to enable the virtual machine to boot from a USB drive.

Create a VM without a virtual hard disk. Make sure that the virtual machine has a (virtual) USB 2.0 controller, and that the virtual DVD uses the Ubuntu ISO. You probably want to edit the .vmx file and add bios.bootDelay="3000" in order to give you some time to go into the BIOS setup menu.
Plug the USB drive in an USB 2.0 port.
Boot the virtual machine, making sure that it boots from the Ubuntu ISO.
Choose "Try Ubuntu".
Connect the USB drive to the virtual machine. Check that it is /dev/sda.
Run the Ubuntu installer and install Ubuntu.
When the virtual machine reboots:

Connect the virtual DVD to the PLOP ISO.
Go into the BIOS setup and make sure that the machine boots in preference from the virtual DVD.

The USB drive should be still connected to the virtual machine. Use the PLOP menu to boot from it. (Note that without PLOP VMware VMs cannot boot from USB, and PLOP only boots from USB 2.0 drives.)


Is it valid to copy a line from /etc/mtab (the line was added automatically) to /etc/fstab

You could copy the line to fstab; the disk should then not be mounted by any automgic system. But especially for (removeable) external disks you should be aware that the drive's device may change (/dev/sdb, /dev/sdc, ...) depending on other storage devices being mounted before. So to be sure you'ld have to change e.g. /dev/sdb (in mtab) to the disk label (/dev/disk/by-label/LABEL) if this is unique, or the UID of the disk (UID=...).

You did not clarify what links are broken, so it is difficult to help. Maybe you could show where the link points to (ls -l) and give the output of df and/or mount.


Migrate owncloud data+db to Ubuntu Snappy?

I'm afraid this won't be terribly easy, not really because of Snappy but because ownCloud doesn't help you at all (I think it should have a method of doing this), so you need to do it yourself. There are three things you'll have to deal with: the config, the data, and the database.

The config

While you can do this via occ, I actually suggest you do it by hand so you don't overwrite some values upon which the snap is relying (e.g. the out-of-application apps folder, etc.). The config.php is located in /var/lib/snaps/owncloud.canonical/current/owncloud/config/. If you want to use occ anyway, note that the command on Snappy is sudo owncloud.occ.

The data

You were spot-on with this one-- rsync from original to new. The data directory is /var/lib/snaps/owncloud.canonical/current/owncloud/data/.

The database

Unfortunately, you're going to run into trouble here-- the snap itself doesn't expose a mysql client, though maybe it should, knowing this use-case. Feel free to log a bug on that.

Oh, the apps

If you have apps you want to transfer, put then in /var/lib/snaps/owncloud.canonical/current/owncloud/apps/


You don't have permission to access /wp-admin/install.php on this server

You need to temporaly disable blocking access to php install files, after install is complete - enable blocking again. Deny from all blocks access for everyone. Allow from your-ip will enable access only for you. Place "Allow" before Deny on separate line.
This section:

<files install.php>
      Order allow,deny
      Deny from all
</files>
<files wp-config.php>
      Order allow,deny
      Deny from all
</files>

Update: Instead of use order, allow, deny, there are a new option 'Require', so sections should looks like this:

<files install.php>
  Require host address
  # or Require ip ip.address
  # or Require local
</files>

Reference


The only way unity 2d will ever come back, is as part of petition, etc.

It is such a shame to see it go, maybe a community version might come about?


In order to do "quick start" Windows 8 saves driver settings in the hiberfil.sys file - the same file traditionally used by Windows to save a memory snapshot when you hibernate. That's why the mount command is complaining.

You have to disable hibernation in order to mount the partition successfully.

Try this link: http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html


How to mount a CD ROM from a USB CD ROM drive on Ubuntu 10.04.3 server

You can glean the device name with "list hardware" (lshw):

sudo lshw -short

Output something like this:

H/W path               Device      Class       Description
==========================================================
/0/100/1f.2/0          /dev/cdrom  disk        DVD+-RW GSA-H31L
/0/100/1f.2/1          /dev/sda    disk        750GB ST3750640AS

Or maybe pipe to less if there is too much output:

sudo lshw -short | less


Why does lame reduce mp3 size when scaled?

MP3 uses lossy compression. Just by recompressing it and doing nothing else, you lose data and introduce artefacts. That said, such a drop probably means it's changing bitrate or the sample rate so there's even less data being stored. Or maybe the old compression was rubbish.

Either way, I wouldn't recompress. Use something like ReplayGain. This is a variable set in the file's tags to say how much louder that track has to be to match its album. You can set it without recompression. The downside is it requires the player to use it.

See: Adding ReplayGain tags


I bought the cammera.
Let me give you an update. Everyone of thinking of buying this camera on Linux should do so. This is the best thing I've ever seen, full HD 1920x1080 works perfectly 30fps with guvcview. Picture quality is amazing, all working out of the box, just plug and play.

UPDATE:
Camera works fine on LTS 12.04.

UPDATE2:
Camera works fine on 12.10.


How to get past Grub prompt during boot?

Don't force shutdown Ubuntu. It's often not required as you can safely reboot using Alt+SysRq R-E-I-S-U-B. (Alt+PrntScr if you have no SysRq key, they're the same).

It's common to cause corruption when hard rebooting, especially on Wubi installs where there is a virtual disk that's stored on the NTFS file system, but it contains an ext4 file system.

So, since you just installed - I'd recommend reinstalling. Or doing a normal dual boot. To clean up the file system corruption you should first run chkdsk /f from Windows.

Also, if you had problems installing you might have some incompatible hardware or something that requires a closed-source driver (not included automatically). i.e. if you have a Radeon or Nvidia graphics card you should boot with nomodeset. You can find out how through this link: My computer boots to a black screen, what options do I have to fix it?


I was having this very same problem, and spent a lot of time struggling to figure it out.

The individual at http://linuxconfig.org/nvidia-mcp55-forcedeth-module-not-working-with-linux came up with a solution that worked for me

echo options forcedeth msi=0 msix=0 >>/etc/modprobe.d/options.conf
update-initramfs -u
reboot


Is there any way to remove space to the `/home` partition and assign to `/` partition?

Generally yes.
You can resize partitions using one of applications for manipulating disk partition tables. Most known such application is gparted.

There is plenty of text and video tutorials, how to use gparted. For example this or this.

However there are 2 important things you should be aware of.

Backup your data before resizing partitions.
It might be more complicated to resize partitions if you have them encrypted (using cryptsetup). In that case start with reading that page.


I use Intellij IDEA, a similar product on Ubuntu. Basically, you can put it wherever you want. I just made a folder "IDEA" in /home/username. Then I added it to .bashrc (seems silly to add it to path for just that one executable), something like this:

alias "idea"="cd /home/username/IDEA/bin; ./idea.sh"


How can I Join a Skype for Business Web Conference?

My suggestion is here:
https://askubuntu.com/a/1248342/1064531

Yes it is just using a VM which you already mention.  However I found that it works pretty damn well this way. My laptop has NVMe SSD, 8 cores and 16GB RAM so I can easily spare 2 cores and 4GB to boot a Win 10 VM in seconds, and copy/paste a skype4B link directly in, as well as drag and drop any Office files to share screen.

The shared clipboard and drag and drop support in VirtualBox allow it to work seamlessly. Audio, Mic, and webcam can be passed through to VM seemlessly too. I have used this method for a long time for work, never had an issue.  Give it a shot, you will be surprised.


The Linux Kernel Module Programming Guide is very informative about kernel modules.

If you are a 100% newbie on this topic like I am/was and want to understand something more, it's the case to query Google for further delvings. Otherwise LKMPG (!) is enough to get the result. Specifically, the section 2.2 Compiling Kernel Modules is the direct and detailed answer to my question.

HTH


An increase to 3 Gig of RAM slows down Ubuntu 10.04 LTS

try a newer kernel. Install linux-image-generic-lts-backport-oneiric. I use this line of kernels, and I have no problem.

Open synaptic and select the package. That is the easiest mode. The package installation system will do the rest.


Display problems with Google Chrome on Ubuntu

I did nothing of above, i just disabled hardware acceleration in chrome settings menu and my problems disappeared !


Yes, It's called Linelight.

Install the package sudo apt-get install xfce4-linelight-plugin

Then add the Linelight applet to the Panel


If you plan to stay with deb-packaged version - remove the umake version:

umake --remove ide visual-studio-code

And use deb-package instead.

But personally I would recommend to use Visual Studio Code from umake ide visual-studio-code and remove it from APT with sudo apt-get remove code .


Upgrade from 12.04 to 12.10 loops and fails with "Unable to get exclusive lock"

I would check around, because I believe at one time you could change the repository name from say precise to quantal to produce the same effect. The process was ensure that you updated everything in your current version with repo's and then switch them and run sudo apt-get dist-upgrade.


Installation of the MySQL server involves roughly three steps: 1) unpacking the software; 2) creating a default database; 3) creating a default user/password (and storing this in the database).

Should you accidentally lose the database files (usually located in /var/lib/mysql) then you can start again without completely reinstalling the server package. This is done with the command mysqld --initialize. If you run this command while a database is already in place, it will report an error ("File exists") and it won't attempt to overwrite the database. However, if you're unsure if the installation procedure has completed correctly, it's OK to delete the directory /var/lib/mysql and re-initialize the database.

The --initialize flag will cause MySQL to generate a root user and a random password, which is then written to the log file. For more information, see man mysqld.


How do I print an image over multiple pages?

You can use PosteRazor.

Start the Software Center.
Search for PosteRazor
Install it.

PosteRazor allows to import an image and then takes you through a wizard that allows to cut it in pieces, depending on the type of paper you will be printing on.


The "shell" in your sense, I think, is considered the interface by which you interact with your machine, whether it be a terminal, a graphical interface, or some direct brain-to-machine link. More accurately, one could say that the "shell" is the program (sh, bash, X11, Gnome, KDE, BrainLink 3.2, whatever) that interfaces with the hardware in order to allow you to interact with your machine.

Meanwhile, the CLI (or the Command Line Interface) is a type of shell that allows you to access the system's command line (hence the word interface).

As you've discovered, not all shells are built the same. Some offer graphics (like X11/Unity), while some are only terminal access, like your average TTY. Even within this, these shells can differ because of the program running them. For example, the /bin/sh shell is relatively simple and offers a basic CLI, while /bin/bash offers far more capability. Both are still technically shells, as is some very simple program that just calls exec() on whatever you pass it.

Even without a CLI, your system can still be 100% useful. Take Windows or macOS for example. Neither of these really demand a CLI (and I'm sure they would remove it completely if they could), but the system is still very much usable.

Keeping this in mind, though, every system has a command line available, but not every system has a command line interface open for you to use. On the flip side, a shell (graphical or console) is necessary for you to be able to interface with your machine in order to run arbitrary programs. For example, your Linux-based smart TV is technically a "shell" as it can launch arbitrary apps, but your parking meter also running embedded Linux has no such need for a publicly-facing (or even private-facing) shell.


it's likely the space in the name.

from the command line you should use:
cd /media/New\ Volume
or
cd "/media/New Volume"


We just released a new version of Viber for Linux. Please update your Viber version at http://www.viber.com/en/products/linux and this should resolve your launch issue.


Program in rc.local started not with standard localization

If you want to have your command use a given locale's time format, just set the LC_TIME variable for it. For example, if your command in rc.local is:

/path/to/foo arg1 arg2 ...

Use:

/usr/bin/env LC_TIME=de_AT.UTF-8 /path/to/foo arg1 arg2 ...

You can also set additional locale variables this way, but for the time format, LC_TIME should be enough.


How to install ImageMagick on Ubuntu 12.04?

It might be that your sources are out of date, so are asking for old URLs instead of the current ones - try running sudo apt-get update before installing stuff.

If you want to see what it does, read this.


Rename on move with placeholder / wildcard

for file in /home/usr/* ; do mv "$file" "${file//.orig/}" ; done

Should do the trick for you, it loops through all of the files (and directories) in /home/user by using glob expansion, and replaces any instance of the string .orig with nothing, so deletes it.

It should be fine so long as you don't have any subdirectories with .orig in their name. This will give you some error messages which aren't critical, but may be annoying. To only work on the files which have a .orig extension you can insert a conditional check whether the file has the unwanted extension:

for file in /home/user/* ; do [[ $file = *.orig ]] && mv "$file" "${file//.orig/}" ; done


I guess /media/cdrom is just another mounting point used to mount CD/DVD as the old /mnt/cdrom for some old versions.

Starting from that I could say there would be no effect on your system once you remove this directory, since it doesn't really affect the fileSystem.

Once you remove that directory you can edit the /etc/fstab and remove the associated line.

Now mostly the one problem you may face is Unable to stat the mount point /media/cdrom/ If you try to mount a CD "which is not your case as you said" but even that you can solve it easily.

Create again the mount point for cdrom device:

sudo mkdir /media/cdrom

Edit the fstab to make some change.

sudo gedit /etc/fstab

Paste the following line at the end of the file

/dev/sr0 /media/cdrom iso9660,udf user,exec,utf8 0 0

Save and close the file.

Then restart the system.

In case sources list has the "include cdrom" option active , you can try to mount the CD/DVD as above then after restarting the system run the command:

sudo apt-cdrom add

Enter the name of the CD then you can do apt-get update


Can't Mount External Drive After Reformatting

Don't worry; your drive is just fine.

When you unmount a drive in Linux (which you had to do in order to format it,) sometimes it won't be re-recognized until you reboot your computer.

Try rebooting, and see if that fixes the problem.

There's nothing that GParted can do anyway that would prevent sudo fdisk -l from noticing the drive. (you did remember sudo, right? ;)

If, for whatever reason, the drive isn't recognized after you reboot, it (likely) wasn't your fault.

After rebooting, if the drive doesn't appear in the launcher, try running GParted again and see if it recognizes the drive. Then check the filesystem on the Ext4 partition (from within GParted.) It'll detect and repair any errors to the filesystem itself. After that, reboot again.

Your partition table is screwed up.

Looking at the output of sudo fdisk -l, I'd have to deduce that your partition table got corrupted. Try opening GParted and going to Device > Create Partition Table, then create a new msdos partition table (the default.) After that finishes, create a new EXT4 partition, but this time tell it to align to Cylinder instead of MiB. (You might lose a tiny bit of space, like .01 GiB tops.)
APPLY the partition creation, then expand the partition to the right, if there's any unused space an that side. (DO NOT move/expand to the left, this will defeat the point of aligning it to Cylinder.)

It seems that the drive shipped with a faulty partition table, which worked with the default formatting (somehow,) but failed when you tried to repartition it.


The startup disk has a bug confirmed here when making a bootable USB for Ubuntu 15.10.

There is a workaround for this bug.

In Terminal:

sudo dd if=ubuntu-15.10-desktop-amd64.iso of=/dev/sdX bs=16M ; sync

replace "X" with your usb key letter.


I would like to replicate my Ubuntu 12.04 SSD install onto an identical SSD

I've had success cloning system installed on USB sticks using dd command.

dd if=/dev/sda of=/dev/sdb

Where I'm assuming /dev/sda is your source and /dev/sdb is your destination.  It's important not to mess these up or you're overwriting your good disk with 0s.

You'll probably want to run dd from a bootable utility disk.  Don't dd a live system, because you may get a corrupt filesystem on the destination disk.

You can identify disks attached using fdisk -l.  But this won't tell you which one's source and destination.  You'll have to mount them and see which one contains your system files and then proceed to dd it.

Also, when you're cloning whole device, it will likely work when both your device is by same manufacturer and same type.  Even though disks say they're 16 GB, some are a few bytes longer, some are shorter.  fdisk -l will report size and make sure these are the same.  If your source is larger than destination you can try:

gparted to resize source partition
gparted to create partition on destination drive of the same size
dd /dev/sda1 /dev/sdb1 to copy partitions
grub to make /dev/sdb bootable.  You'll have to search how to install grub.


Quad monitors work as mirror displays but not as extended

It looks like a bug (perhaps related to CRTC sharing). AMD's open source GPU driver team are, from what I've heard, responsive to bug reports. You can find the bug tracker and mailing lists at http://wiki.x.org/wiki/radeon/ - they also have an IRC channel #radeon on irc.freenode.net for radeon users and developers. I just saw a comment today about one of their open source developers fixing a bug in 15 minutes after it was reported on the IRC channel, so I'd recommend trying that or the mailing lists.


You could create an symlink in the /home directory of your 20.04 installation.
sudo ln -s /media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy /home/andy_1804

Then simply access your 18.04 "home" folder by using the shorter path "/home/andy_1804".


Welcome to AskUbuntu. Do you mind telling us where exactly do you want to see that time's format? If you wish to use it in a terminal you can drop date +%r which will return the time in the next format:

More information in the date's man page at: http://manpages.ubuntu.com/manpages/lucid/man1/date.1.html

If you wish to change panel's time format, take a look at this LUbuntu's install/tweak guide, specially on "Step #09" which reads the next:

Step #09: Customize The Clock (Show Date and Time AM/PM)

  By default, Lubuntu does not show the date in the panel and only shows
  24-hour time. This is annoying especially since you take the time to
  choose your timezone during the installation. If you're in the USA
  like me, you can have the Lubuntu panel display the proper time format
  with a little tweak.

  Right click on the clock and select "Digital Clock Settings" and
  change the Clock Format and Tooltip Format's to the following:

Clock Format: %m/%d/%y %I:%M
Tooltip Format: %A %x

But if you wish to set the time format in a different place please let us know by editing your question, after which this answer can be edited or deleted.

Thank you and Good luck!


Sir I do not know much about Ubuntu and I want to suggest that try to install different graphic managers like lightgm or gdm. Ff it works then it will be fine.
My ubuntu was stuck on the login screen, so I install them and by opening the virtual terminal Ctrl+Alt+F1 I have got the Ubuntu in the working position.


I changed the audio type in bios from HD to AC97 (even though the front panel is configured for HDAudio on the MB) and the issue went away.


Although I find Rinzwinds solution pretty neat I can suggest something that fits to your description.

You can make your python scripts create their logs by adding a function inheriting this:

def log(logname = "name_of_file.txt", data = "some_data"):
    f.open(logname, "a")
    f.write("The Text you want as log for " + data + "..\n")
    f.close()

And calling it in the neccessary places by

log("name_of_file.txt", "Data_to_be_logged")

The log file that you create like that will be stored in the working directory of your script.

If your script is in

/path/to/your/python_script/your_script.py

the self made log file will be there:

/path/to/your/python_script/name_of_file.txt

And then you can open another terminal besides your terminal from which you run the scripts and enter:

tail -f /path/to/your/python_script/name_of_file.txt

The tail command outputs the last lines of a text file and the parameter -f makes it follow your logfile in realtime. To stop 'live monitoring' with tail you can simply ctrl+c.


Missing numerals in Noto Color Emoji font

The problem here is that we are making the Noto Color Emoji the default font for serif and sans-serif fonts, and Noto Color Emoji font doesn't have glyph for numerals. We have to remove those lines from the fonts.conf file, and add the lines which makes the mentioned font as "preferred" font, which can be overridden when it can't render other text properly:

<alias>
        <family>sans-serif</family>
        <prefer>
            <family>Noto Color Emoji</family>
        </prefer>
</alias>

This will let you see Color Emojis everywhere without removing the numerals or spaces.


Do clustered PCs act as one computer? or still as separate systems?

Clustered systems act as a single server for most applications. Whether the application is available on a single server with failover to another in the cluster depends heavily on the remaining setup of the application and storage, and is a complex set of questions. If the application is compatible with a cluster environment, the storage is shared by the cluster and the application processed do not require specific server identification, generally the cluster acts as a single system.


Can't do apt-get upgrade due to "files list file for package 'linux-headers-5.3.0-51' contains empty filename"

You have to manually remove the problematic file list by
sudo rm  /var/lib/dpkg/info/linux-headers-5.3.0-51.list

and then reinstall package as usual
sudo apt install linux-headers-5.3.0-51 --reinstall


Dual Screen Monitor not working after 11.04 upgrade

Actually I had it wrong. I was using the closed source drivers. I found out when I greped for nvidia in dmesg. I apt-get removed that package (think it was nvidia-current), and rebooted and everything works now.


Why am I having overheating problems on HP Pavilion g6-1058er?

Well i have a pavilion g6 (not the same model as yours) and i had the same problem!mostly with debian hut also with ubuntu if i remember correctly...anyway..
I solved my problem!just update your bios..If i remember correctly it was a bios bug..
Good luck;)


I have 2 Different versions of nautilus installed somehow, How can I put the 3.6.3 version in the menu in GNOME Fallback?

I don't recommend that you remove the old version of nautilus, because it will remove ubuntu-desktop too. While ubuntu-desktop is a meta package, and nothing will explode immediately, there is a very good chance it will cause dependency issues later on.

Instead I suggest you upgrade to a newer version of Ubuntu, either 13.10 or wait a couple of months for 14.04. In 13.10 I'm using Nautilus 3.8.


As per the output of grep -iR "Postman" /usr/share/applications/ ~/.local/share/applications/, Postman seems to be installed as a Chrome/Chromium app. To uninstall that app, either go to chrome://apps or just delete the file you got after greping.


Your no-proxy setting has incorrect format. It should be a comma-delimited list of IP addresses, not a CIDR range. Take a look at this related question: https://unix.stackexchange.com/questions/23452/set-a-network-range-in-the-no-proxy-environment-variable

I'd recommend you set no-proxy: 127.0.0.1,172.19.202.71 instead and try again.
If it does not work, please update the question and maybe file a bug against juju-core: https://bugs.launchpad.net/juju-core


I have slow video acceleration, is there any way to fix this?

According to AMD your chip is no longer supported by their Catalyst driver. There is a legacy driver available but it intended for distributions predating February 2009 and may not work with newer distributions.

If you are experiencing slow framerates with games I suggest you disable some of the effects.


QtCreator doesn't let me create Ubuntu Touch apps!

I had the same problem. This question and the accepted answer fixed it for me:
https://askubuntu.com/questions/338387/when-i-create-a-new-project-i-can-only-choose-other-projects-non-qt-project/354525#=

To sum it up:
1. Open Qt Creator
2. Go To Tools > Options >Build & Run > Qt Versions
3. Press Add
4. Navigate to and select /usr/bin/qmake
5. Go to the "Kits" Tab and select Desktop (default)
6. Under "Qt Version" select Qt 5.0.2 (System)
7. Restart Qt creator and create a new project, the options you want should be there.


The update information is outdated (notification icon)

Click on the Unity dash (or other menu system) and open "Software Sources" sometimes also called "Software & Updates". Then what you need to do is go to the "Other Software" tab, and uncheck the option listing a cdrom. Then click apply, and update again and that should fix it


14.04 - Old Firefox Version won't install, can't use profile manager

Simply download the Firefox Linux binary, unzip somewhere of your choice, give execute permissions to the binary file and launch it in a terminal.

You may create a .desktop file pointing to the chosen Firefox version giving it a different name (ex. Firefox 29) and save the file in ~/.local/share/applications/

Thus you can run both versions of Firefox.

Be aware that they will share the profile folder unless you tweak the defaults.


Visualizing linux GPT partition (EFI) from Windows Host

Reinstalled Virtualbox and Disabled Fastboot in Windows 8.1 and it worked.


Go to system settings -> keyboard -> shortcuts, and add a shortcut with the following command gnome-screensaver-command -a


Running crysis 2 on ubuntu gives me an error message

It sounds like you are using nVidia's so-called "optimus" technology, their solution to hybrid graphics.

If that's indeed the case, you should notice Linux has no native way to deal with these hybrid graphics. Your system will leave both adapters powered on while using one (generally your Intel integrated graphics), which is most probably the reason why you see such a message when trying to run an intensive 3D application.

In order to be able to correctly "switch" to the right adapter, you will need a special application like Bumblebee. In a nutshell, installation is as simple as the following 3 lines (after which a reboot will be needed):

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia

However, before proceeding, I recommend you to take a look at the Bumblebee site for more information: http://bumblebee-project.org/install.html.

Once bumblebee is installed, your system will keep using your intel graphics by default, but you'll be able to run an application using your dedicated nvidia card with the following command:

optirun <yourapplication>

In your case, you want to run Crysis, which is loaded through wine. The command will look like this (assuming you're in the Crysis2 directory):

optirun wine crysis2.exe


Use a proxy which connects to the school proxy

Sorry, this can be locked. School uses a global certificate, and i am not having it on ubuntu.


12.04.x HWE Hardware Enablement Update broke Nvidia proprietary drivers

NB: This does not answer your question but rather tells you how to fix your problem while still using the new HWE.

Open a terminal (hold in CTRL and ALT while pressing T)
Add xorg-edgers PPA and update

sudo add-apt-repository ppa:xorg-edgers/ppa

You'll have to supply your password when prompted. You'll get all sorts of info about this repo but to continue just press ENTER

Now in the same terminal:

sudo add-get update
sudo apt-get install nvidia-304

You need to press Y + ENTER for it to be installed.

When it's finifshed you restart your system. To confirm that you are indeed using Nvidia drivers you may open System settings in the menu on top right and choose Additional Drivers from the Hardware section. It takes some time for it to start up but when it's there it will tell you if you are using Nvidia driver. It might be that you could in fact activate your driver from this view after sudo add-get update but I didn't do that so I'm not 100% sure. Before the HWE update I had several choices here but now I only have the one I have installed.

There is a bug report on this issue and it can happen this problem will be solved upstream. To stop using the PPA:

sudo rm /etc/apt/sources.list.d/xorg-edgers-ppa-precise.list
sudo apt-get update
sudo apt-get install --reinstall nvidia-304


You have a GUI method to do this:

Type "network" in your dash and click on "Network Connection".  Click on "edit" after clicking on the present network connection in "wired connection".

In the IPv4 settings, set your method as "manual" and set the IP address, gateway and netmask address as required.

This will set the IP address manually.

To know your IP address, netmask and gateway address, type this on a terminal:

nmcli dev list iface eth1 | grep IP4


Have you tried the command (in terminal window, Ctrl-Alt-T )

synclient TouchpadOff=0

It will not solve the problem, but maybe unfreeze he touchpad for the moment.

Another fix that has been reported is to uncheck the "Disable touchpad while typing" in the system settings, mouse and touchpad.

Hopefully all the filed bug reports will lead to a permanent solution, but for now you can try the above suggestions.


How to find out which DNS server my wlan0 is using Kubuntu 15.04

With nmcli you can check which dns servers dnsmasq is configured with:

nmcli dev show wlan0 | grep -i dns

An example would be:

$ nmcli dev show wlan0 | grep -i dns
IP4.DNS[1]:                             10.11.12.1
IP4.DNS[2]:                             10.11.13.1


Create new User with Completely different workspace from the others

Use the steps to achieve this:

Stop user_two from appearing in login screen: Create a file in /var/lib/AccountsService/users called user_two and add the following lines (sudo nano /var/lib/AccountsService/users/user_two):

[User]
SystemAccount=true

Prevent each from accessing each others home directory: Then modify the folder permissions on user_one so user_two can access the former's home directory and vice versa:

sudo chmod 750 /home/user_one
sudo chmod 750 /home/user_two

Note: This is a manual method for the home directory permissions configuration, you can modify the /etc/login.defs to always create this permission whenever a new user is created by the admin(s). In that file change the line:

UMASK     022

to

UMASK      027

From hence forth a new user's home directory will have the permission of 750 at creation.


apt-cache shows wrong package version available

Why is the candidate different?
Because the priorities of the repositories are different in each system, which result in different candidate packages from different repositories. In the first system the Ubuntu repository has 1000 priority, and the PPA has 500 priority. In the second system both repositories have 500 priority.
If you want to achieve consistency between both systems you will need to change the repository priorities in one of the systems. This is done by what is called "Repository Pinning".


Installation error while installing from CD-ROM

Is you CD-ROM connected trough a USB by any chance?
If it is make sure it is not connected to a USB 3


Terminal engaged while using gedit or firefox

As per http://www.linuxandlife.com/2012/07/how-to-run-multiple-commands-in-terminal.html follow the command to launch the app with an ampersand, e.g.:

firefox &

gedit &

Following the command with the ampersand launches the app then returns cursor control to the terminal window immediately so you are free to run another command within that window.


Copy + paste MS Word doc into Libre office doc?

Open docx file in one window and blank in other then try if nothing try without shortcuts in edit - copy and paste


How to install Xampp in Ubuntu LTS 14.04

Better than xampp use LAMP open a terminal an execute the following:

sudo apt-get update
sudo apt-get install lamp-server^


You cant 'open' a .tar file, you need to unzip them like you would at windows, to do this do the following

make a folder using mkdir foldername
move the tar into the folder mv filename.tar.extension foldername
move inside the folder using cd foldername
unzip it (I call it untar :P) using tar xf filename.tar
now you see a lot of files or not as much depending on what is in it


How to Re Generate All Gnome Schemas for Ubuntu 12.04

I'm not sure what you're asking, but most everything in GNOME doesn't use gconf any more. They use dconf. Also, yes, you can't edit pairs or schemas in gconf-editor. It will likely never be fixed though, as GNOME has moved away from gconf and over to dconf.

I'm not sure what you mena bout the schemas being unreadable. If you can see the schema in gconf-editor, then it's clearly readable.

If you simply directly force installed packages from 14.10 onto 12.04 though, you likely have a deeper problem than schemas. A whole lot has changed in the last 2.5 years, in both GNOME and Ubuntu.

You broke the system, so really you get to keep both pieces. I have no idea from your question, what is actually broken though, so I can't tell you how to fix it. Upgrading to 14.04 might help.

Looking at ~/.xsession-errors should tell you why the session fails to load after you log in, though.


How to redirect output of jobs in background?

You need to redirect to the null device:

ping google.com >/dev/null


Bash script reading text file - No such file Error


What components are needed for MySQL Workbench?

You have to add one tunnel. Check this link
Reinstall the following packages:

python (2.7.3-0ubuntu2)
python-all (2.7.3-0ubuntu2)
python-appindicator (0.4.92-0ubuntu1)
python-apport (2.0.1-0ubuntu10)
python-apt (0.8.3ubuntu7)
python-apt-common (0.8.3ubuntu7)
python-aptdaemon (0.43+bzr805-0ubuntu2)
python-aptdaemon-gtk (0.43+bzr805-0ubuntu2)
python-aptdaemon.gtk3widgets (0.43+bzr805-0ubuntu2)
python-aptdaemon.gtkwidgets (0.43+bzr805-0ubuntu2)
python-aptdaemon.pkcompat (0.43+bzr805-0ubuntu2)
python-avahi (0.6.30-5ubuntu2)
python-beautifulsoup (3.2.0-2build1)
python-cairo (1.8.8-1ubuntu3)
python-crypto (2.4.1-1ubuntu0.1)
python-gnomekeyring (2.32.0+dfsg-1)
python-gnupginterface (0.3.2-9.1ubuntu3)
python-mysql.connector (0.3.2-1)
python-oauth (1.0.1-3build1)
python-openssl (0.12-1ubuntu2)
python-paramiko (1.7.7.1-2)
python-pycryptopp (0.5.29-1build1)


Is it possible to import all audio date at once into rythmbox?

You can create symlinks from all folders into one and set it as a root of your collection.
But Rhythmbox and Juk are very basic players. Take something more advanced, like Clementine, where GUI options support multiple collections.


Where to read theme colors used by gnome-terminal?

In Ubuntu 18.04 you need to look for gtk themes..

for example if you are using Ambiance as a Applications Theme..

this is the file..
/usr/share/themes/Ambiance/gtk-3.20/apps/gnome-terminal.css

and some of the contents in it are

/* gnome-terminal */
@define-color terminal_bg #300a24;

    vte-terminal.terminal-screen {
        -TerminalScreen-background-darkness: 0.95;
        background-color: @terminal_bg;
        color: #fff;

this means the background color of the terminal is defined as terminal_bg #300a24


How to be anonymous on IPV6 protocol by not using MAC address in EUI-64?

Omitting the MAC address improves your privacy, but it doesn't "make you anonymous".  Every (IPv4 or IPv6) network still has a unique prefix, otherwise you wouldn't be able to receive any packets.

In any case, this site shows how to enable the randomized suffix:
http://otrs.menandmice.com/otrs/public.pl?Action=PublicFAQ&ItemID=91


I'm hoping that you're enjoying your day. There is a simple application to do this called "GWSL". It's on the MS store, and you can get it from here. I hope this helps!


Will Ubuntu for Android also run when the phone is not docked?

From the Ubuntu for Android Features page:

Ubuntu and Android share the same kernel. When docked, the Ubuntu OS boots and runs concurrently with Android. This allows both mobile and desktop functionality to co-exist in different runtimes.
Shared services and applications are delivered using a Convergence API module which ensures the tight integration between desktop and mobile environments. Work is balanced across the cores of the phone. When the handset is not docked, both CPU cores transfer their full power to Android.

So the desktop session stops running when you undock the handset.


How can I configure my Ubuntu so that my web page in Apache Server can be displayed on the internet?

You would need to forward port 80 from your router to your server. further instruction vary depending on your router's model and firmware (or OS, but I doubt you would ask this question if you had a desktop or server running a router service)

Some ISPs will block port 80, usually in this case you can use port 443 (https) or pick a different port number like 81


I figured out my own question, but since I had trouble finding an answer, I thought I should post my fix.

So it seems that when adjusting your Zoom and Icon size, you need to make sure that your Icon size has a lower value than the Zoom percentage. (Icon size needs to be at least 50% or lower than your current Zoom percentage).

I had to play with this a little bit, and you may as well. But hopefully this will save someone the agony I've been having.


qt-opensource-linux-x64-5.12.1.run - gives segmentation fault

I have solved this issue by installing another version qt offline installer. In my case it is qt-opensource-linux-x64-5.9.7.run

If anyone has such problem I would suggest running any other possible version


For sometime now, sudoers has not been the only way to control user privileges on Ubuntu and other Linux distros. Polkit allows more fine-grained control of privileges. When you use GParted or Synaptic on a recent version of Ubuntu, authentication is usually done using polkit.

To set an user (say Y) as an administrator for polkit, create a file in /etc/polkit-1/localauthority.conf.d/ (say 99-custom.conf), containing:

[Configuration]
AdminIdentities=unix-user:Y

You can test whether this was applied correctly by using pkexec as Y:

$ pkexec bash -l
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/bash' as the super user
Authenticating as: muru,,, (muru)
Password:
==== AUTHENTICATION COMPLETE ===

Since you already have an admin user, you will be offered a choice by pkexec:

$ pkexec bash
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/bash' as the super user
Multiple identities can be used for authentication:
 1.  X,,, (Y)
 2.  Y,,, (X)
Choose identity to authenticate as (1-2):

The GUI should offer a drop-down list.