Ubuntu 14.04: Sync Dropbox Folder to SD Card

I had the same problem, and solved it by placing the following script in /etc/rc.local on my machine:

#!/bin/sh -e
# If there is a device with the label "Storage" mount it to /media/harry/Storage
if [ $(blkid -L Storage) ]; then
        mkdir -p /media/harry/Storage && mount -L Storage /media/harry/Storage || rm -r /media/harry/Storage
fi

exit 0

A more general solution would probably be

# Get the label for the device, if any
label=$(blkid /dev/<device_name> -s LABEL -o value)

# If the label is equal to a value, mount it
if ($label = "<device_label>");then
    mkdir -p /media/<username>/$label && mount -L $label /media/<username>/$label || rm -r /media/<username>/$label
fi

But I haven't tested it

If you want to see a list of the devices use the blkid command

Good Luck.


Can't detect/use external monitor on HP Pavilion DV5

A couple of thoughts:

Have you tried detecting the app with the ATI settings application?
If you go into the system settings and click on Displays does it detect the other screen? I had to click detect displays to have the system see the other monitor.


I took the dive and installed anyway. I used the same user password, as with my previous install, instructed the installed to use the home partition (option called “Reinstall Ubuntu”) and everything worked flawlessly. I do seem to have a new passphrase now, but that is okay.


VirtualBox runs GRUB on startup.  GRUB is capable of dual-boot.  Therefore, VirtualBox would be more than capable of dual booting.


mysql error : Incorrect key file for table '/tmp/#sql_5115_0.MYI

At some point in time, your disk ran out of space, and some space was allocated by mounting a virtual disk called "overflow" at /tmp. Now MySQL tries to create a file in /tmp but it can't.
To remedy this, dosudo umount overflow
I got this idea from here.


formatting a drive to FAT32 with mkdosfs, need some info

I believe the command is:

sudo mkdosfs /dev/sdXX -s 128 -F 32

Since you want 64KB clusters, and the -s means sectors per cluster so, you need 128 sectors, because 128*512 byes = 64KB, making a cluster.

If you want the whole disk to contain a single partition, you would use -I option. So, the command becomes,

sudo mkdosfs /dev/sdX -s 128 -F 32 -I

 Credit goes to this Ubuntu forum thread


Is there any way to make dig work behind a proxy?

Have you tried providing a DNS server?

Something like:

dig @8.8.8.8 mydomain.org


Enigmail in Thunderbird works only with root

I had the same issue.

Apparently you need to give the right permissions to ~./.gnupg:

sudo chmod 777 .gnupg/ -R


How to change the timeout of directories mounted with ecryptfs-mount-private

There is no timeout. I had the same problem and according to David's comment above I commented out pam_ecryptfs from /etc/pam.d/common-auth, /etc/pam.d/common-password, /etc/pam.d/common-session and /etc/pam.d/common-session-noninteractive and it stopped unmounting.
Actually cron should only be running the last one, but if you don't actually have the same password for your account and the private data (I don't), it's better to remove it from all of them, because additional login, e.g. on console, would also unmount the share.


No internet access in certain apps randomly

I did some more testing when my connection dropped recently and no application had internet access other than chrome, and pinging google's DNS ping 8.8.8.8. Which lead me to seeing if changing the default DNS server to Google's might help. Bingo, internet connection restored after restarting wifi. Not sure why the issue happened, but I'm glad I have a solution.


Note that GNOME sushi is not pre-installed by default in any of the Ubuntu releases and it's available from the 'universe' repo.

To disable it, simply remove the gnome-sushi package by running the following command in Terminal:

sudo apt remove gnome-sushi


I got my issue solved after some tries.
To whomever this may concern I've solved by following the steps below:

Installed Windows on a part of my SSD (I'd separated half of my total memory to each system)
On Windows, I installed a programm called 'Universal USB Installer' (only works on Windows)
Downloaded a Linux ISO from the Ubuntu site
On Universal USB Installer I've created a bootable Pen Drive by setting the options:
image with the options setted
After created the bootable pen drive I've turned off the system and then restart my PC selecting the pen drive as boot.
Installed Linux normally on the second part of my SDD (creating a SWAP and A root directory in advanced options)
And then every thing works perfectly after doing this (with dual boot) hehe

Note: I've followed a tutorial to get this conclusion:
link to the tutorial

That's it!


You can try Airport Utility 5.4.2.
It worked for me with wine1.5 on 12.04 ubuntu.


How can I force an older version of g++ if I have a newer version?

Open the terminal in Ubuntu and type:

sudo apt install g++-4.8

This command installs g++ version 4.8.5 in Ubuntu, the same version that is installed on your server.

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 40
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 60
sudo update-alternatives --config g++

After running sudo update-alternatives --config g++ a menu of g++ versions will appear and you will be asked to select the default g++ version as follows:

Press <enter> to keep the current choice[*], or type selection number:

Input a selection number from the menu and press Enter.

To change the default version of gcc follow the same procedure except replace all instances of g++ with gcc and replace the versions of g++ with the versions of gcc.


In general, for Linux, ports 1-1024 can only be opened by root. Ports 1025-65535 can be opened by anyone.

If you wanted to, you can use all 65535 ports for some purpose.


The answer to your question is in the file permissions:

try:

$ ls -l /sys/kernel/debug/tracing
ls: cannot access '/sys/kernel/debug/tracing': Permission denied
$ ls -l /sys/kernel
total 0
...
drwx------  31 root root    0 2016-06-15 11:06:47 debug
...

So, normal users are not allowed to access /sys/kernel/debug/tracing and there seems to be no way to ask lsof to avoid accessing it.

We could then discuss whether this is a bug or not, but the answer to your question boils down to this.


Ok This problem might be happens for KUBUNTU

So if anybody has this problem there is solution for that.

This problem will happens if you sort your folders by Rating
to solve this issue just sort them by name or something else except rating


Disclaimer: I am the original author of this indicator.

The Launcher List Indicator has been developed specifically for the purpose of having more than one set of icons on the Unity launcher and allow easy switching between them.

How does it work

Suppose you want to have a launcher list for home use, another for work apps, another for something else.

Here's the steps:

Start by adding all the icons you want to have in Home profile.
Once you're satisfied with that list, click Save current in the indicator, and you will have a popup dialog appear asking you to name the profile. Click OK, and you will see that profile to be added to the list.
Clear the launcher and repeat the process to add another profile. Very simple, very minimalistic , very easy to use.

Obtaining the Indicator

The simplest method is to download zip archive from the project's github page :

 https://github.com/SergKolo/launcher-list-indicator/archive/master.zip

If you have git installed, you can obtain latest version via command

git clone https://github.com/SergKolo/launcher-list-indicator.git

It is intended to be started as part of Startup Applications upon user login.

It is recommended to keep the app and its icon in the same folder

Trivia:

The indicator has been featured on OMG!Ubuntu and WebUpd8


Installing ubuntu alongside windows 10 and freedos

You should choose the "something else" option (manual option) in the installation GUI.

Then you have to format ext4 the partition where you're going to install ubuntu and mount it as "/" (root). As for the bootloader I think that grub2 will automatically install if you have a BIOS/MBR machine..


Open blender player minimized and maximize it when needed

If you try blenderplayer --help you will find the following options

-w: display in a window
  --Optional parameters--
   w = window width
   h = window height
   l = window left coordinate
   t = window top coordinate

-f: start game in fullscreen mode
  --Optional parameters--
   fw = fullscreen mode pixel width    (use 0 to detect automatically)
   fh = fullscreen mode pixel height   (use 0 to detect automatically)
   fb = fullscreen mode bits per pixel (default unless set in the blend file: 32)
   ff = fullscreen mode frequency      (default unless set in the blend file: 60)

These options can be added as Popen(['blenderplayer', '-f'])

You can also switch fullscreen on/off from within the game by using bge.render.setFullScreen(enable) within your game scripts.


Open a gnome-terminal (Alt + F2 → gnome-terminal) and type the following:

To only reset the background:

sudo -u gdm gconftool-2 --unset /desktop/gnome/background/picture_filename

To reset all of GDM's configuration:

sudo -u gdm gconftool-2 --recursive-unset /

The second one will take a bit, both commands will ask you for your password.


The documentation is inconsistent here. man Xsession.option says first:

  Options are enabled by simply placing them in the file; they are disabled by
  prefixing the option name with ‘no-’.

But near the end:

  All of the above options are enabled by default.

So instead of commenting out use-ssh-agent replace it with no-use-ssh-agent.


Ubuntu 18.10 Hybrid Graphics Dual Monitor issue

Ok found the issue...
GDM3 is not compatible with nvidia-prime. After testing and testing and going to nvidia-dev forums, most people with this issue install lightdm and the problem is fixed.

Apperently, there is a bug in GDM3 and nvidia-prime or something like that. In either case, its fixed using lightdm

Thanks for the reply!
Joe


Run Python script with root privileges (not from terminal)

Take a look at
http://www.cyberciti.biz/open-source/command-line-hacks/linux-run-command-as-different-user/
then just write a sh script which you chmod +x so that you can execute it then just use the script to launch the other script.


How to get the full command line used to launch a process

cat /proc/{PID}/cmdline

Where {PID} is the process ID of the process in question.


#!/bin/bash

filename="password.txt"

#While loop to read line by line

while read -r line
do
    readLine=$line
    for file in *.pdf
    do
        pan="${line:0:10}"
        /usr/bin/qpdf --password=$line --decrypt $file ack/2017-$pan.pdf

    done
done < "$filename"


How to change the IP address on my Ubuntu virtual NIC

Configure the virtual machine's network adapter to be a bridged adapter instead of a NAT adapter. Then Ubuntu will obtain an IP address from the router and not from the Windows host.

One way or another you should see to it that the Ubuntu machine's network adapter has an unchanging IP address. Either configure the interface statically in Ubuntu or create a static address assignment in the DHCP server on the router.


Its unclear exactly what you are asking. If you want to know how to install NFS thats simply sudo apt install nfs-common

Are you asking how to MOUNT via nfs version 2? nfs-common has the ability to mount previous versions of NFS by specifying that during mount for example:

sudo mount -t nfs localhost:/storage/backups/git_home_dir /mnt -o nfsvers=2

# type the mount command to see what is mounted

mount

localhost:/storage/backups/git_home_dir on /mnt type nfs (rw,relatime,vers=2,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp6,timeo=600,retrans=2,sec=sys,mountaddr=::1,mountvers=1,mountport=50822,mountproto=udp6,local_lock=none,addr=::1)

EDIT: Now I understand (my servers that have been upgraded from 16.04 did not have this issue)

You need to edit /etc/default/nfs-kernel-server and add or edit the line

RPCNFSDOPTS="--nfs-version 2,3,4

Then restart the kernel-server


First things first, make certain it's not now listed in the blacklists found in /etc/modprobe.d/  If it shows in any of those blacklists then
sudo nano /etc/modprobe.d/blacklist-[file name it's blacklisted in] and add a # at the start of the line which lists it (It's extremely unlikely that it would now be blacklisted if it was not previously).
If not in one of the blacklists or adding the "#" in front of it did not bring it back online (a reboot is usually a good idea after such a hardware change) then try sudo iwconfig wlan0 power off
If that does not solve the problem then please provide the output of lspci-v
You might also make certain that the "linux-firmware" package is installed  as it includes many drivers.  If you still wish to download the driver then you can do so directly from ralink's driver webpage: http://www.mediatek.com/en/downloads1/downloads/

Hope this helps find your answer.

Respectfully,
David


Ubuntu 13.04 Stuck During Boot After Grub

When you change the default menu selection you're not changing the version of the OS you're just changing the version of the kernel you're loading.

If that works, that's fine: It sounds like something changed in the kernel version that ships with the updated version of Ubuntu. Keep using the old kernel until a new one is released.


read-only filesystem, no X11 when booting lubuntu 17.10 from battery

I had the same problem after upgrading from Kubuntu 17.04 to Kubuntu 17.10. laptop-mode-tools was installed. Uninstalling it (apt remove laptop-mode-tools --purge) solved the issue.


How to create a shortcut (but not on desktop!) in Ubuntu 19.04?

Open a terminal in the folder and run the command chmod +x name-of-the-program.desktop.

Alternatively, you can right click on the .desktop file, open properties, and mark the file as executable.


Since you search for hardlinks to an inode which represents a directory, I assume the number of hardlinks are the result of subdirectories, where their hardlinks represent subdirectory/... . and .. directory-entries are normally not searched by the find command.

Source: https://www.gnu.org/software/findutils/manual/html_mono/find.html#Hard-Links

Test: -inum n

File has inode number n. The ‘+’ and ‘-’ qualifiers also work, though these
are rarely useful. Much of the time it is easier to use ‘-samefile’ rather than
this option.

You can also search for files that have a certain number of links, with ‘-links’.
Directories normally have at least two hard links; their . entry is the second one.
If they have subdirectories, each of those also has a hard link called .. to its
parent directory. The . and .. directory entries are not normally searched unless
they are mentioned on the find command line.


setup local mail on ubuntu 12.04 not to the outside world just internally and use the mail command

I had to edit /etc/hosts and add my hostname:

127.0.0.1    ubuntu.dev.local


The "Install Ubuntu alongside Windows 10" option not available

Shrinking the C: drive

I want to install Ubuntu in C drive (which also has Windows 10) which has around 75GB free space out of 150GB.
I am only getting 4440 MB available to shrink but I have 75 GB free!
How can I increase the available shrink space of C drive?

Your disk usage seems to be fragmented. You can try two methods to solve it:
Defragment it in Windows, then shrink in Ubuntu installer
Boot Windows and run defragmentation tool (“Disk Defragmenter” or “Defragment and Optimize Drives”) on the partition where you want to reuse the space (C: in your case).
If this does not help, you can give SDelete (download it from Microsoft) a try to fill the unused space with zeros, so it gets actually free to reclaim.
sdelete.exe c: -z

More information: https://www.howtogeek.com/312883/how-to-shrink-a-virtualbox-virtual-machine-and-free-up-disk-space/
Shrink in Windows
You can also use the Disk Management app in Windows to shrink the disk. You might get better results when processing a Windows drive with a Windows tool.
Size of the Ubuntu partition

I want to have at least 20-25 GB for Ubuntu.

25 GB is the required minimum for Ubuntu Desktop. The installer may disable the “Install Ubuntu alongside Windows” option because the available space which it’s able to get is less than recommended.
Reusing the F: drive

Also, can I install Ubuntu in F drive which is of 180GB size. I can move the files from F drive to any other drive for that matter.

If the data can be fit into another partition, I would choose this option and get more space for Ubuntu while keeping some free space on the C: drive. In the installer choose “Something else”, then select the F: drive. Since Ubuntu does not use the Windows drive names like F:, it’s up to you to choose it correctly. (You can check your partitions order in Windows Disk Management before installation.) Make the partition your root partition (mount point /). Format it as ext4 which is default in Ubuntu. You don’t need to create any additional partitions for Ubuntu 18.04.
More information: How to use manual partitioning during installation?

Will I still get the option to load either Windows 10 or Ubuntu in the boot menu?

Yes, you should get the option in either way of dual-boot Ubuntu alongside Windows installation. However, there are cases when something goes wrong (like in Unable to boot into Windows after installing Ubuntu, how to fix? or if you select a wrong partition to overwrite), so you won’t lose anything if you make a backup of the complete drive before Ubuntu installation.


`Error: Required vim compiled with +python` with VIM on Ubuntu 18.04

Try running the following commands in a shell:

sudo apt-get purge vim && sudo apt-get install vim

This completely removes vim, including all configuration files, and installs it again.


unable to connect to the internet through my Ubuntu 13.10

Your Broadcom Corporation BCM4312 wireless uses proprietary drivers. Temporarily connect your system to the internet using an Ethernet cable. You should have the opportunity to install it by using the additional drivers application. Once installed your wireless connection should function normally.


I am a newbie please help me configure ubuntu?

Your error indicates that you tried to download VLC, and the download was interrupted before it finished. This would be a good way to install VLC in Windows, but it is not the best way to install VLC in Ubuntu. The best way to install VLC in Ubuntu is to open the Ubuntu Software Center, search for VLC, and install it by clicking the Install button. This will install the version of VLC from the Ubuntu repositories that is compatible with Ubuntu 12.04.

You should also install the media codecs you need by installing Ubuntu restricted extras from the default Ubuntu repositories.


Linux equivalent for «cmd /C start "Title" "C:\Folder\file.bat"»

The way to launch a script is to give its path:

/path/to/script.sh

To have it continue if the parent process exits, you can just launch it in the background by appending &:

/path/to/script.sh &

So, if you have, for example, one script calling another like so:

#!/bin/bash
script2.sh &

You could run script1.sh which will call script2.sh and, because it is sent to the background, exit immediately.


Machine check error when booting from USB

The problem is related to "secure boot" feature.  The fix is toggling the UEFI setting in BIOS.


Ubuntu 17.10 kernel panic not syncing: VFS: unable to mount root fs on unknown-block(0,0)

After checking the SMART status, lets check your file system...

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot

Update #1:

Rebuild initramfs...

In terminal...

sudo update-initramfs -c -k 4.13.0-43-generic # update initramfs
reboot # to version 4.13.0.43

Run memtest...

Go to http://www.memtest.org or https://www.memtest86.com/ and download/run memtest to test your memory. Get at least one complete pass of all the tests to confirm good memory.


mount windos partitions with same parameters as Files ( file browser ) ubuntu 16.04

If I get your request right you want to access the oder partition via the terminal right?
I have no system with the same requirement at the moment, but maybe i can help anyways.
So you probably have to mount the disk manually.
With:

fdisk -l

you can get an idea of what you can mount and expecially what type (ntfs, cifs...).
Then with:

mount -t ntfs /dev/what_you_want_to_mount  /folder_where_you_want_to_mount_to/

This is also described pretty good at this page: Mount windows partition onto ubuntu linux


Unable to play commercial DVD in Lenovo E555 with Ubuntu 16.04

I just install Ubuntu 16.04, the file /install-css.sh doesn't exist,I use a file in a usr/share/doc/libdvdread4 from linux mint partition and copy it to the same folder in Ubuntu and It's work.

Maybe you can look for file in internte and paste the file in the folder of Ubuntu.

usr/share/doc/libdvdread4

And run the: sudo /usr/share/doc/libdvdread4/install-css.sh


how can I install firefox 5 on Ubuntu 11.04?

According to our own Jorge Castro:

  If you're on Ubuntu 11.04 you'll get Firefox 5 as an update within the next 24 hours (no need for PPA or any of that business)

(via https://twitter.com/#!/castrojo/status/83188233969737728)

The alternative would be to add the Mozilla Security PPA:

sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa

And upgrade your system. But again, it looks like you should not have to do anything.


If I need to Erase GPT data after doing a fixpart, will it also erase all my files on that drive?

No; fixparts (note the s; it's not fixpart) doesn't touch anything within your partitions, just the data structures that define them. If fixparts tells you that you've got leftover GPT data, and if that's the only thing you change, then fixparts won't even adjust your "real" partition data -- it will only erase the leftover GPT data. Note that I'm the author of fixparts, so you can consider this answer authoritative.


1: Figure out of your computer is Legacy or UEFI. In the BIOS boot options, if there is no [UEFI] tag next to your harddrive/USB, then you are Legacy. If there is, and/or your PC shipped with >Windows 8, then you are UEFI.

2: Download the latest ChromeOS image here:

https://chromium.arnoldthebat.co.uk/index.php?dir=daily%2F

Be sure to select the correct image for your hardware (amd64=64-bit, x86=32-bit).

3: Extract the image with 7zip:

sudo apt-get install p7zip-full

and extract it from terminal

7z x chromiumimage.image.7z

4: Burn the image to a USB, preferably with Unetbootin.

5: Boot the USB.

6: When booted, press Ctrl+Alt+F2. Login as chronos. The password, I believe, for Arnold's builds, is password.

7: Then, you can install ChromeOS to your hard disk with the command

/usr/sbin/chromeos-install


How do you disable the window preview in Ubuntu dock (GNOME sidebar)?

On your Terminal run:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'skip'

Or you can try(This will allow you to cycle through the open windows by clicking on the icon):

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'cycle-windows'

To revert the action:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'


libatlas in Ubuntu 10.10 is at upstream version 3.8.3, the same as in Debian and Fedora. See:

http://packages.ubuntu.com/maverick/libatlas-base-dev

Your best bet is to upgrade to 10.10 (which will be released in two days at the time of this post). Backporting lib packages from Debian or Ubuntu development releases can be a tricky proposition as you would likely have to rebuild any of libatlas' reverse dependencies against the new version as well.


[Y/n] is a choice given to you. Y is for yes, n is for no. You're telling it to stop operation by typing n. So, It is perfectly rational behavior to stop the operation if you commanded it to do so.

That question is asked when you try to install packages from unauthentic repositories, giving you an option to install packages even if those aren't verified. You can continue by typing Y. So, your saying

  So if 'n' breaks the operations then there no need of asking for installation without verification.

is not right. There can be some users who want to install packages without verification.

See this question for details on installing packages with "unauthenticated source"

How do I deal with "unauthenticated sources" errors in the Software Center?


To clarify : you want to use your router as a WiFi card ?

The D-Link DSLRouter can not do that and it is not supported by dd-wrt, an alternate router firmware which could.


Map some keystroke combination to "|" (pipe) and "\" (backslash)

A rather simple way to be able to type these characters conveniently using a keyboard combination could be to use xdotool. Among other things, xdotool can simulate typing.

In principle, the command

xdotool type '|'

will type the | character. Bind that command to a hotkey using your window manager (in standard Ubuntu: "Settings - Keyboard Shortcuts").

In practice, when you hold down your hotkey, the system will not see the action of xdotool as a single keystroke. The most reliable way to cope with this side effect is to have xdotool simulate that you are releasing your shortcut keys before it types the character.

Supose we want to bind Alt_R+p. xev learns me that my right Alt key is identified as ISO_Level3_Shift. Thus, we can make xdotool release the keyboard combination before typing the character, as in:

xdotool keyup ISO_Level3_Shift+p type '|'


I don't think this flavor uses the daemon end part. I think your service name is ssh-service. I may be wrong on that though.
Your firewall may be filtering out port 22.

Do a port scan on your machine and check to see if 22 is open.

Edit

Okay - now - check your SSH config is listening on 22. I still think that it's not sshd, it's something else. Service ssh status or something of the sort. Haven't worked on that flavor in a long time.

Next - do you have a firewall in between? Try turning off iptables if you have it on. Fail2ban? These all can cause problems. Go into ash config and ensure password authentication is on if you are just trying to connect without any certificates or real security.

Edit again

I would say that there is some type of firewall rule or corrupt IPtable rule on your host box then if others can connect to the server. I have seen this more times than you can believe. Run a flush on iptables on the host. (Can you even ping the server machine?)

That's the old viable reason at this point since ssh localhost works.

Edit again again

Iptables isn't a service.

http://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html


No Subwoofer in Ubuntu 19.04 5.1 Surround Sound problem

UPDATE

I found out with PAVUCONTROL that my subwoofer was muted... I don't understand why. It wasn't muted the first time I went there. So for now this is over... but for now, my front and rear channel sound at the same time when I test front speakers... then when I test the rear channel it only sounds in my rear speakers.

Anyone has a clue on this one?

Thanks,


Reload bash's .profile without logging out and back in again

This should work for the current terminal:

. ~/.profile

. is a bash builtin and a synonym for source, see man bash:

  .  filename [arguments]
  source filename [arguments]
       Read  and  execute  commands  from filename in the current shell environment (…).


12.10 and newer
I had that same issue and what helped was to enable the 32-bit architecture by doing this:
sudo dpkg --add-architecture i386
sudo apt-get update

then I was able to install skype via the Canonical Partner Repository:
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update && sudo apt-get install skype


KDE Connect: Can't start media after pause

Well, I have uninstalled KDE Connect from my computer and installed GSconnect instead. The problem gone, also I get some more features like controlling computer's volume level.


How do I install Ubuntu allong side an existing Windows 7?

You can use a Live-CD of Ubuntu to install it. In the partition-menu you have to format your drive E to a linux Filesystem like ext4 (standard).

Ubuntu will install a boot-loader (GRUB) and add your windows installation to it. At startup you can choose which OS you want to boot.

Wubi is possible but not necessary in your setup.

This may help yout to install gnome3:
How do I install and use the latest version of GNOME?


Flash plugin in Chromium available in 16.04?

Add the Canonical Partners software source, and install adobe-flashplugin.See the webpage at https://wiki.ubuntu.com/Chromium/Getting-Partner-Flash


you can use this method :

open terminal :

sudo gedit /etc/network/interfaces

you can add the following

iface eth0 inet static (eth0 is the name of my interface )
address (your Ip)
netmask (your netmask)
gateway (gateway)
dns-nameservers (your dns )

save and quit


Need an image editor to add text with simple font selection


How can I find out how many files ending in .c or .cpp inside a directory contain the string: string?

If you know that your filenames cannot contain newlines, then

grep -rFl --include='*.c' --include='*.cpp' string . | wc -l

Otherwise

find . -type f \( -name '*.c' -o -name '*.cpp' \) -exec grep -Fq string {} \; -printf x | wc -c


What is the equivalent of reinstalling Windows 10 in upgrade mode (software+data remains with new OS) in Ubuntu?

so that the user data & softwares remains.

We all make backups so your question should be moot ;)
Ubuntu exists with a live session version that you can use to mount your disks and extract your personal files. It allows for internet connections so you can even put files into an external source, like google drive. This allows you to completely format anything where a restore of the backup gets you your files back.
The installer also allows you to mount partitions without formatting. So you can add /home without formatting, you can even add / without formatting. This will leave any personal configuration intact. Even apache and mysql configuration files are left alone if they already exist.  Nevertheless: a backup should always be made.

And even then. It is generally better to ask for a fix. Ubuntu aint Windowa. In Linux almost anything can be fixed either from grub rescue or from a live session. If the message is ...

  nitramfs unpacking failed.

That is NOT the whole message. It is missing the key parts (the actual error is on the next line). The generic method to regenerate the initramfs image is ...

Boot a live session
list the partitions with fdisk -l. Mount the one that is the boot (sda1 is likely the one)
mount these (assuming sda1):

sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

and create a chroot with  sudo chroot /mnt
sudo su (all the other commands up the the exit need to be done as root)
Build a new initramfs:

update-initramfs -c -k 3.11.0.12-generic
update-grub
exit

Activate the changes to grub and reset the chroot

grub-update
sudo umount /dev
sudo umount /proc
sudo umount /sys
sudo umount /mnt

Take the usb out of the system and reboot. You should have a working system.


This is what you are looking for. Keep in mind, you need to create a shutdown rule in /etc/sudoers for that specific user with the following content:

user_name ALL=(ALL) NOPASSWD: /sbin/poweroff

or for passwordless:

user_name ALL=(ALL) NOPASSWD: /sbin/poweroff

Also you need the change the homefolder permissions to read-only.


Yes. I've run vbeinfo from the grub command-prompt. In my case, I'm running Ubuntu Server within VMware Workstation AND I'm interested in 800x600 and vbeinfo shows that 800x600x32 is available. So, I edit /etc/default/grub thus

GRUB_GFXMODE=800x600

save it, run 'sudo update-grub' and 'sudo reboot'. The Grub portion of the loader changes to 800x600, but quickly reverts to 640x480 as Ubuntu Server starts up.


Yes. Ubuntu 9 is no longer supported, which means that the software repositories are no longer available. It is not even possible to use the Ubuntu 9 tools to upgrade to a supported version (you would need to reinstall).


unable to install ubuntu/ or linux distribution from usb

I think ubuntu not working with window 8,, but I install ubuntu with window 7 and work properly,, but fully formatted windows 7  T.T

i'm using pendrive to install ubuntu.

maybe your RAM is to low and make your system  freeze, minimum RAM requirement for window 8 is 2GB.. or maybe your system is 64bit but you installing 32bit..


Can wireless credential information be save with a guest user account

Unfortunately, no…  They will have to type the password every time for their home network.

I just tested this out in my guest account by trying to connect to my guest network (which I never have defined before, as it's for guests)

The problem is the key-ring: Ubuntu will want to store the password in a key-ring, and even if they create one, the key-ring will be deleted upon exit, so you cannot lock it down as tight as a guest session if you want the end-users to be able to connect to their home network and save their password.

On the other hand, depending on your use-case, this might be a "security feature": as long as it's documented it's not a bug, right?


the --location makes virt-install to do some assumptions on the path of the kernel/initrd under these URLs. Failing to find these is the error you hit.

The easiest way out that I'd like to re-iterate is that for VMs using cloud images is so much faster and easier than ISOs. I see that you use some kickstart files, that (and more) customization would in this scenario be done via cloud-init a great example can be found here at "using cloud-init with multipass". There also is uvtool-libvirt to achieve the same, but multipass is more in focus at the moment.

To stick to virt-install in general you can use the --cdrom parameter instead which will only need the path to the .iso and makes no assumptions on further paths. Unfortunately using --cdrom will boot it as done on the iso and ignore your custom commandline arguments which in your case you need to the kickstart file.

In the meantime the paths in the installer trees are still good (albeit hard to find) and you can run (works the same for bionic and others):

$ virt-install --location http://us.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/ --extra-args "ks=http://pastebin.com/raw/WxQygWpm"

Although do note that it will tell you the following and you should consider to adapt for the future:

  WARNING  Using legacy d-i based installer, that has been deprecated
  and will be removed in the future.

In any case - if the automatism of --cdrom or --location break for you again down the road (aside from the usually better use of cloud-images mentioned above) you can always use --kernel´ and--initrd` instead to point directly to them and it will work.

More discussions around the topic are at this bug


I think I found the answer to my question. I was messing around with more parameters, more or less, trying to combine the 2 scripts and came up with the following:

#!/bin/bash
exec >  >(tee ~/rsync.out);
exec 2> >(tee ~/rsync.err);

rsync -v -r -u --inplace -m --prune-empty-dirs --delete-delay /home/user/Music/ /media/user/0741-C987/Music/;

So far, it has done what I've been looking for successfully, it builds a list of specific changes of what needs to get pushed to the device and does so without doing a slow comparison on each file, then follows with a fast delete.

I won't mark this as complete yet, until I've tested it a few more times to verify that it is exactly what I'm looking for.

If anyone else does indeed know a better way to achieve this result than by doing what I came up with here, please let me know!

Thanks.


So I moved from Ubuntu to Kubuntu and I get the default login screen

By default, Ubuntu uses GDM3 (GNOME Display Manager) whereas Kubuntu uses SDDM (Simple Desktop Display Manager).

When you added kubuntu-desktop, you may have been offered the option to select either display manager and you may have chosen GDM3.

Now that you want SDDM, simply run

sudo dpkg-reconfigure sddm

See https://www.linuxuprising.com/2018/12/how-to-change-default-display-manager.html.


How to add unnalocated space to Linux partition?

All partitions MUST have contiguous space, no matter the filesystem type or the operating system. Your sda3 and the unallocated space are not adjacent, therefore they cannot be merged into a contiguous space.

In linux, you can't merge adjacent partitions directly. You have to delete one of the partitions and have to allocate the resulted unallocated space to the other partition (by expanding the remained partition).

You can 'move' the sda5 partition to the right, thus resulting an unallocated space adjacent to sda3, and then expand the sda3 to encompass the unallocated space.


How to properly get screen rotation programmatically?

I finally found the answer to this. I'm using Qt. Some of the calls are from Qt to get the Window and Screen of X11.

Display *dpy;
Window root = this->winId();
dpy = QX11Info::display();

XRRScreenResources *scrres = XRRGetScreenResources(dpy, root);
XRRCrtcInfo *crtcInfo = XRRGetCrtcInfo(dpy, scrres, *scrres->crtcs);

crtcInfo->rotation can be 1, 2, 4, or 8

Hope this helps someone in the future.


These packages appeared in Ubuntu repositories starting with Ubuntu 14.04 version.

You can't install them to 12.04 this way.

You can upgrade your system to 14.04 and install these packages.


ssh unable to connect with external ip (port 22 is open)

I don't know if it's a bug or a feature, but many soho routers don't let you access the forwarded ports from the LAN interface.
You can ask a friend to connect to your pc. At least from my machine, I can connect your ip at this moment.


You can use escape sequence, use the following,

send "unset vpn \"TEST\"\r"

or,

send {unset vpn "TEST"}


Cannot Boot Ubuntu 12.10 (No wubildr / Cannot find GRLDR)

It's the wubildr file it cannot find. It looks on all partitions until it finds one. So, maybe it has a problem finding it on C: (for whatever reason). Just copy it to the root of another drive. e.g. D:\wubildr. It doesn't matter which drive.


What happened to tortoisehg-nautilus in 12.04?

According to this bug on the tortoisehg tracker, there was an issue with nautilus integration. It appears to be fixed in the upstream version now. This is likely something worthy of getting an update for precise to fix the bug.

Try installing the package as a one-off installation from quantal.
Here's a direct link to the current deb package. This may get updated, so if it fails, use the ubuntu package search to find the current version and install it that way. If that doesn't work, you can apply the patch mentioned manually in the bug report.


The r-base package is just a metapackage that also installs r-base-core and r-base-recommended. You need to remove r-base-core to get rid of the executable and the makeconf.


Is xubuntu installation taking too long?

ok, I did it. Basically I had to partition the system manually, instead of let Xubuntu doing it.

I followed the partition scheme that I found here and now everything works fine.


First, you can simplify and isolate the issue. To simplify the issue, test as a close to "bare metal" as possible. In this case, you could test with "dig" instead of your browser.

To isolate if the issue is with customizations to your 17.04 system, you could boot the system from a Live USB that contains 17.04 (perhaps install media) and see if the issue still occurs in an unmodified environment.


13.10: Ubuntu One has no contextual menu item or icons on folders

Indeed, it has been removed.

Some people complain in this bug, which also gives a workaround by installing the version from Raring (13.04). If you are using amd64 (64bit):

wget http://launchpadlibrarian.net/135421143/ubuntuone-client-gnome_4.2.0-0ubuntu1_amd64.deb http://launchpadlibrarian.net/135422714/libsyncdaemon-1.0-1_4.2.0-0ubuntu1_amd64.deb
sudo dpkg -i libsyncdaemon-1.0-1_4.2.0-0ubuntu1_amd64.deb ubuntuone-client-gnome_4.2.0-0ubuntu1_amd64.deb
rm libsyncdaemon-1.0-1_4.2.0-0ubuntu1_amd64.deb ubuntuone-client-gnome_4.2.0-0ubuntu1_amd64.deb

For i386 (32bit):

wget http://launchpadlibrarian.net/135421153/ubuntuone-client-gnome_4.2.0-0ubuntu1_i386.deb http://launchpadlibrarian.net/135423443/libsyncdaemon-1.0-1_4.2.0-0ubuntu1_i386.deb
sudo dpkg -i ubuntuone-client-gnome_4.2.0-0ubuntu1_i386.deb libsyncdaemon-1.0-1_4.2.0-0ubuntu1_i386.de
rm ubuntuone-client-gnome_4.2.0-0ubuntu1_i386.deb libsyncdaemon-1.0-1_4.2.0-0ubuntu1_i386.de


How to display from line 10 to line 23 in from passwd using tail?

You can combine the commands "head" and "tail" like so:

head -n23 filename | tail -n14


How can I force 10.04 to automatically log me in (non-GUI soltion ideally)?

According to the fine manual, you need to edit /etc/gdm/custom.conf in 10.04. If you can live with a GUI solution, then:

Load the Gnome Administration utility by clicking on System -> Administration -> Login Screen Settings
Unlock the window by hitting the unlock button (you will be asked the administrator password)
Enable the checkbox for Log in as UserName automatically (Select your User Name from the drop-down list of users)


No thumbnails for GIF images in Ubuntu 17.10

I got gif thumbnails working again by installing the gif-thumbnailer package from the atareo/thumbnailers repository:

sudo add-apt-repository ppa:atareao/thumbnailers
sudo apt-get update
sudo apt install gif-thumbnailer

Then I cleared the thumbnail cache (rm -r ~/.cache/thumbnails) and everything's working.

The source code seems to be in this misnamed git-thumbnailer repository.  I haven't entirely figured out why this solution works and the others I've tried do not; it still depends on imagemagick, but passes different options, and copies images to a temporary directory before operating on them.  Anyway, that worked for me.


How to delete chat history in skype for only one contact in Linux

You may do it with sqliteman.

You can install sqliteman from the Ubuntu Software Centre.

First, not just close but really quit Skype (right click on the Skype icon in the Unity panel and select quit).

Now make a backup of the Skype sqlite database. With your favorite file manager go to $HOME/.skype/YOUR-SYKPE-NAME/ and duplicate the main.db file.

Start sqliteman and open the file $HOME/.skype/YOUR-SYKPE-NAME/main.db
You may need enable displaying of hidden files: Do a right click in the file chooser somewhere in the filelist and check "display hidden files".

When opened, on the right site at the top you see the SQL Editor. Run the following SQL-commands, one by one by clicking the single green arrow at the top. After each run clear the SQL-Editor and paste/edit the next one.

Replace SKYPE_NAME with the real Skype name of the Skype partner, not with an alias name!

DELETE FROM messages WHERE
 dialog_partner="SKYPE_NAME" OR
 chatname LIKE "%/$SKYPE_NAME;%" OR
 chatname LIKE "#SKYPE_NAME/$%"

DELETE FROM chats WHERE
 dialog_partner="SKYPE_NAME" OR
 name LIKE "%/$SKYPE_NAME;%" OR
 name LIKE "#SKYPE_NAME/$%"

DELETE FROM chatmembers WHERE
 identity = "SKYPE_NAME" OR
 chatname LIKE "%/$SKYPE_NAME;%" OR
 chatname LIKE "#SKYPE_NAME/$%"

DELETE FROM participants WHERE identity="SKYPE_NAME"

DELETE FROM conversations WHERE
 identity LIKE "%$SKYPE_NAME;%" OR
 identity = "SKYPE_NAME" OR
 identity LIKE "#SKYPE_NAME/$%"

DELETE FROM transfers WHERE partner_handle = "SKYPE_NAME"

DELETE FROM voicemails WHERE partner_handle = "SKYPE_NAME"

Close sqliteman (if asked, you don't need to save changes of the SQL editor) and start Skype. The history of SKYPE_NAME should be gone.


You can only resize partitions that have unallocated space next to what you want to resize.

So ...

make the whole of sda2 unallocated by removing swap.
make sda1 larger minus the size you want to use for swap + a few mbs overhead
recreate swap partition on sda2


Disable laptop monitor when there is an external monitor

Just open the Displays settings and turn off the laptop display (Built-in Display on the picture below).

If you unplug your external monitor it will come back again. And of course if the HDMI monitor is re-plugged, the laptop display will turn off as expected.


Can 100% root '/' usage affect on network speed? How to safely free space at root?

It seems plausible that your fifteen installed kernels are consuming too much space on your root (/) filesystem. You can remove these with the dpkg command, at least assuming you can boot up and log in. Use the -P option, as in:

sudo dpkg -P linux-image-3.5.0-17-generic

Remove the oldest of your kernels (unless you're having problems with newer ones, in which case you should remove the least reliable ones).

You may also want to track down where space is being used via the du command, as in:

du -sx /* | sort -n

Note that this will take a while to run, but it may generate some errors before it finishes. Ignore the errors. The command will generate a sorted list of directories according to how much space they consume, with the biggest ones at the bottom of the list. You can then move into the larger of those directories, as in:

du -sx /var/* | sort -n

This example will show subdirectories of /var according to disk space used. When you discover where you disk space is being consumed, research the directory or directories in question, or perhaps the individual files that are taking up so much space. Some might be legitimately consuming lots of space, such as a mail spool if the computer is functioning as a mail server. Others might be filled with temporary files (like most files in /tmp), or might have files that have grown too large (like bloated log files in /var/log). Each of these problems must be dealt with in its own way.

Beyond this, your partitions are mis-sized. Linux places most program files in /usr, but this directory/partition seldom needs more than about 10GB of space, and often half or less of that. On most systems, these files seldom change, aside from during package updates or installations. Some other subdirectories of the root (/) partition, though, contain temporary or dynamic files, such as /tmp (used for temporary files, which can often be big) and log files in /var/log. Thus, it's often wise to create significant extra space in the root (/) partition. In fact, it's common to leave /usr as a regular subdirectory of the root (/) partition and make the latter something between 10-30GB.

The /home directory holds user files. It seldom holds program files, with the possible exception of software the individual users write themselves. On most desktop systems, /home will be relatively large, since it will hold digital photos, MP3s, MPEGs or other audio/video files, disk image files, and so on. These can all be quite large. Details vary from one computer to another, though.


Lock down all programs besides web browser

Custom Install
I'd guess a relatively efficient way (depending on the number of machines, this is only useful if you're setting up 10+ I'd guess) would be to do the same custom-install on all of the machines with only Firefox or Chromium installed by default:

You need a sudo password to install software from the software centre so they won't be able to install anything else.
You can reuse the same customised live-CD/USB for each. Theres already a post on AskUbuntu here on customising live-CD's.

Start-up disabling on a guest account
You could set a script on system start-up that disables all applications without having the sudo password other than your internet browser, things to note:

You may need to disable Nautilus unless you plan to let them move files around or download and use files, up to you really.
As a precautionary measure you may want to disable the open terminal keybind (Ctrl+Alt+T) to make sure people can't mess around using the terminal while on the guest account, though if you've set up the guest account correctly, this is slight overkill.

In the custom install you won't need to worry about creating accounts as all accounts will need your sudo password to do things other than access the internet. However if you want to modify the install it will make things more of a pain as you'll have to re-enable everything using the terminal and your sudo password each time. Up to you to choose which suits your needs better.


On a BIOS-based computer (which your 10-year-old system almost certainly is), a boot loader installs to the Master Boot Record (MBR) of the hard disk -- that is, its first sector. Note the singular: boot loader. Whatever boot loader resides in the MBR controls the boot process.

This can become more complex if you've got multiple disks, since each disk has its own MBR. In theory, you can install one boot loader in one disk's MBR and another boot loader in the other one and then use the BIOS's built-in boot manager to switch between them. In practice, though, setting things up in this way requires either knowledge of how to do it or luck. My suspicion is that your Turnkey Linux version of GRUB has overwritten the Ubuntu version of GRUB on your first hard disk, leaving the second disk untouched.

There are at least two reasonably painless solutions to this problem:

Prepare a Super GRUB 2 Disk and boot from it. With luck, this will give you a menu enabling you to boot either Ubuntu or Turnkey. Boot to Ubuntu, open a Terminal Window, and type sudo grub-install /dev/sda followed by sudo update-grub.
Run the Boot Repair tool from any emergency disk you can get booted. (An Ubuntu installation utility should work.) This will re-install GRUB and set it up.

Ideally, either method will detect both your Ubuntu and your Turnkey installations and get them both booting. In practice, it's possible that one will work and the other won't; or maybe even neither will work. You'll just have to try one and, if it doesn't work, try the other. In a worst-case scenario you might need to dig into the "guts" of GRUB, which is not pretty; but try these easier fixes first. Try them in whatever order you like, and if one works, do not try the other one, on the "if it ain't broken, don't fix it" principle.


How can I identify what version of ubuntu is installed in a specific partition?

The contents of /etc/lsb-release should give you the information you need.


Can I disable remmina applet from startup applications

here you see what is Remmina applet.
It is used for remote desktop communication, So if you are a normal user you can remove it.


Why is desktop taking too long to come up?

Both GNOME SHell and Unity 3D Shell are highly resource intensive. even my laptop has an AMD graphics hardware and I experience the same lag as you do even in gnome-classic session(although that is just for about 3-5 seconds at max because gnome-classic is very light on resources).

Your problem might be because the drivers form the AMD website are not updated and fixed regularly. Using those drivers will help you to run the graphics hardware on your laptop, but they will cause some bugs and quirks on your system. Like the one you posted.

Why don't you try the open-source drivers developed by the community by removing your previous drivers(just do a google search and you get how to do that in Ubuntu) and then installing the fglrx-updates from the software center? They might work for you. (Although I am personally quite satisfied with the drivers form the AMD website. They do have a few quirks but work fine for me almost all the time.


Ubuntu screen flickering after laptop repair

Unfortunately this sounds a lot like a hardware issue to me.

One thing you might want to try is adjusting your OS's monitor/display settings, on the off-chance that it has selected a default resolution or refresh rate that is not compatible with the display.


The best answer is: download a Ubuntu .iso and burn it to DVD, then boot the DVD and install from there. Much more reliable than USB flash drive.

On a different note... if you're at all experienced with the terminal application, and you want to trying diagnosing the reason for your current crash situation, open terminal from the dash, and you can cd /var/log (to change directories) and more syslog or more syslog.1 (to display the error logs), looking for error information about the crash.

Cheers, Al


How do I search my command-line history for commands I used before?

Press Ctrl+R and type ssh. Ctrl+R will start search from most recent command to old one (reverse-search). If you have more than one command which starts with ssh, Press Ctrl+R again and again until you find the match.

Once you've found the match you can press Enter to execute the command or left / right cursor to just select the text of the command.

There is no default reverse option for Ctrl+R to invert the direction of the search but here you will find some suggestions about it.


The most straightforward way is to reset MATE Panel to defaults.
* Terminal way
If you have customized (added, moved, removed) panels and/or applets then backup your current settings with
dconf dump /org/mate/panel/ > dconf_panel

Then reset them to defaults:
dconf reset -f /org/mate/panel/

* GUI way
Open MATE Tweak with mate-tweak command, select tab Panel click Save As button, choose name for current layout (for example, Familiar-broken), click OK and then select default layout from drop-down menu again (for example, Familiar):


if you have DHCP running on your network and want your Vbox Guest to get its IP from that. on your VBox Seling your VM click Setting Bridge adapter this will emulate the VM like it has a separate Lancard.

Hope this helps


Take a look at the files in /sys/fs/ext4/<dev-name>/.
You would be interested in /sys/fs/ext4/<dev-name>/lifetime_write_kbytes.

  lifetime_write_kbytes

  This file is read-only and shows the number
  of kilobytes of data that have been written to this filesystem since
  it was created.

hth

EXT4 Kernel docs


Why is there a minus sign instead of a check mark in the software sources configuration window?

It means that not all repositories have a deb-src repository enabled. It's the equivilent of a half-tick.

You can find the repos without source with this command:

comm -3 \
    <(grep -Eo '^deb[^#]+' /etc/apt/sources.list{,.d/*.list} | sed 's/^[^ ]* //;s/#.*$//;s/ +$//' | sort -u) \
    <(grep -Eo '^deb-src[^#]+' /etc/apt/sources.list{,.d/*.list} | sed 's/^[^ ]* //;s/#.*$//;s/ +$//' | sort -u)


I am currently having the same problem. My solution was to kill gvfsd-smb-browse with the command kill n where n is an integer for its process id. You can see it by running the top command on a terminal.

I am not sure if this will work on all systems. In my case I have a dual boot setup (Win7 and Ubuntu 16.04.1) on my Laptop. The bug, started happening recently (maybe after upgrades moved me from 16.04 to 16.04.1, not really sure) and it happens when I try to access/mount NTFS volumes for the first time after logging in. (I have left them as NTFS so I can also access them from Windows).

After I kill the process nothing bad happens and I can still access the volumes normally. Depending on your problem you might also be ok with killing it and continuing using your computer.

Another potential solution is the one provided with this answer. You may want to try that as well to see if it solves your problem without creating other problems.

There are several bugs submitted around this, for example 1 and 2 but they appear to be unassigned for some reason. (Note: I am uncertain if they are the same as my case and if I should comment on them or start a new one or do something else to help developers with solving it.)

update: I have stopped getting this bug lately. This seems to be because I am connecting to a different wi-fi network for Internet.


A stop job is running for session c1 of user gdm after installing nVidia drivers

When searching about gdm, I came across the configure of gdm on my Ubuntu 18.04 LTS, which seems to fix my problem of the message
A stop job is running for session c1 of user gdm (0s/1m 30s)

The command is as following:
sudo dpkg-reconfigure gdm3


I would expect that sound device to be picked up automatically by the module snd-hda-intel My best guess is your missing the firmware loaders and possibly alsa-base as well.

The firmware is not automatically installed for some reason (legal?) You need to enable the multiverse repository in Software & Updates if it's not already enabled.

Issue this command sudo apt install alsa-firmware-loaders alsa-base

You probably already have alsa-base but it won't do any harm to attempt to install it if you do so to be on the safe side I've included it in the command above.  I don't think you'll have to reboot, but it can't hurt to do so. If this doesn't do the trick we will have to resort to some more in-depth troubleshooting


Ubuntu 12.04 iso image file too large to burn to DVD?

You must have been downloading from a different source, or something went terrible wrong during the download. Ubuntu 12.04 has a size of 695 MB. Small enough to fit on a CD. Ubuntu 12.10 however do require a DVD (~800 MB).

Please get the iso file from Ubuntu.com

http://www.ubuntu.com/download/desktop


something that i tried recently was formatting a 32GB flashdrive as exFAT. im still playing with it to get it to mount. as i understand its just a matter of a few packages i need.

linux can SEE the drive perfectly fine it just can not mount the drive.

in fact if you go into a terminal and type

sudo lsblk

then you may see your drive listed there.

if you want to find out more about your disk that isnt showing up then you can use commands like

sudo fdisk -l

if you want to try and mount your drive that isnt automatically mounting then try creating a temp folder in /media to mount it to.

sudo mkdir /media/tmp
sudo mount /dev/sdXX /media/tmp

where /dev/sdXX is your drive you are trying to mount like /dev/sdc1


how to install juju on Maas environment?

You can start simple, install juju in the same server where you have MaaS.

What you want now is to get the latest juju from the ppa:

apt-get install python-software-properties

sudo add-apt-repository ppa:juju/stable

sudo apt-get update && sudo apt-get install juju-core

Now the juju configuration:

juju generate-config

Follow the documentation about the configuration here


13.04 not leaving any efibootmgr entries

I have heard of bugs in some versions of efibootmgr that can cause this problem. You might try using efibootmgr in an older version of Ubuntu or in a rescue system like System Rescue CD to bypass this bug, if it's the cause.

If that doesn't work, you can try copying the EFI/ubuntu/grubx64.efi file on the ESP to EFI/BOOT/bootx64.efi. If no other OS is installed, that should get it working. The Boot Repair tool will do this, and more, automatically; it should work even if Windows is installed.

If you've got a Windows installation, another option is to use bcdedit in Windows: Launch an Administrator Command Prompt and then type bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi. (If you've got Secure Boot active, you'll need to activate shim.efi or shimx64.efi [I'm not sure which it's called in Ubuntu, offhand] instead of grubx64.efi.)


The packages available for download are the Debian version. These are incompatible on Ubuntu because of conflicting files. Codeblocks is available from the default Universe repository on Ubuntu (version 20.03-3). Also, the Ubuntu packages were consolidated into a handful of packages so there's no need to download anything extra.
First, uninstall the debian codeblocks packages using the following command:
sudo dpkg -P $(dpkg -l | grep codeblocks | awk '{print $2}') libwxsmithlib0 libwxsmithlib0-dev wxsmith-dev wxsmith-headers

Then, run the following commands to update your package list and reinstall codeblocks from the Ubuntu repositories:
sudo add-apt repository universe
sudo apt update
sudo apt install --reinstall $(apt-cache search codeblocks | awk '{print $1}')

To explain the commands used, the following command searches for and lists packages related to codeblocks:
apt-cache search codeblocks

The first column (on the left) lists the package names. So, to list only the package names, we can use awk to print only the first column which is represented by $1 like this:
apt-cache search codeblocks | awk '{print $1}'

To insert the output of that command into another command, we can use $(). So to install the packages listed by the command above, we can use the following command:
sudo apt install --reinstall $(apt-cache search codeblocks | awk '{print $1}')

Additional help:
To search for available packages, you can use apt-cache search like this:
apt-cache search codeblocks

To filter the results to only include results that contain the word "codeblocks", we can use the grep command like this:
apt-cache search codeblocks | grep -i codeblocks

For more information about a specific package, we can use the apt-cache show command like this:
apt-cache show codeblocks


While booted from the USB drive, it should not be removed. (There is an exception: if you use the the boot option toram, and there is no persistence on the USB drive, the system data from the USB drive is copied to the RAM, and the USB drive can be unmounted and removed).

After a normal installation (to an internal drive), the USB install drive is no longer necessary. If it is mounted it should be unmounted (ejected, safely removed), and can be unplugged.

Depending on how the USB install drive was created it can or cannot be used to store data.

A cloned drive has the ISO 9660 file system, which is read-only.

Other alternatives make it possible to store files. A special case is a persistent live drive, where you can store files, but also install application programs.

You can even create an installed Ubuntu system in a USB pendrive, and it will behave like a system installed into an internal drive (but slower depending on the data transfer rate).

As mentioned in another answer, you can format the pendrive alias create a new partition table and file system to restore it to a standard storage drive.

See the following links for more details,

Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it

help.ubuntu.com/community/mkusb


How to make byobu start with byobu -u on login/startup?

Since you're asking about -u and not -U, I assume you're asking about Byobu's tmux backend...

In this case, you can add any additional tmux configuration options to a local tmux configuration at ~/.byobu/.tmux.conf.  In there, you should add the following:

set-window-option -g utf8 on
set-option -g status-utf8 on

Full disclosure: I'm the author and maintainer of Byobu.


Broken MySQL Installation, Cant Install or Uninstall

So I’ve finally got it fixed!! For anyone who is wanting to resolve this issue you need to do:
sudo dpkg remove mysql-server && sudo dpkg remove mysql-server-8.0

That has fixed the issue for me and then I reinstalled it just fine


Trying to install MotionBuilder, but using alien to convert from rpm isn't working

The problem in above command output is

dpkg: error processing archive /home/cole/Downloads/MotionBuilder/motionbuilder2
020-64_2020-2_amd64.deb (--unpack):
trying to overwrite '/var/opt/Autodesk/Adlm/ASR/ENCSU202000F_EL_Adlm.asr', whic
h is also in package maya2020-64 2020.0-236

To overcome it you have to backup problematic file with
cp /var/opt/Autodesk/Adlm/ASR/ENCSU202000F_EL_Adlm.asr ~

and then force installation of failing deb-package with
sudo dpkg -i --force-all /home/cole/Downloads/MotionBuilder/motionbuilder2020-64_2020-2_amd64.deb

and then fix possible dependency issues with
sudo apt-get install -f
sudo dpkg --configure -a


It is recommended to install the icon into:

/usr/share/pixmaps/

or: $XDG_DATA_DIRS/icons

Then declare it in the .desktop file as (without extension):

Icon=filename

Only if you have a flat package that installed to /opt folder, then you have to use the absolute path:

Icon=/opt/fullpath/filename.ext

BTW, If it didn't work, possibly you have a permission issue. Icons should be readable by all.

Reference: freedesktop.org - Icon Theme Specification


You need to specifically configure your BIOS to boot from the CD drive.

How to do this varies according to your system.  Sometimes F12 during initial boot is all that is required to bring up a menu, from which you choose the CD drive as the boot drive.

Other times you'll need to go into the regular BIOS setup (using a key like F2, esc or del) and find where the boot devices are configured.  You may have to both enable the CD drive as a boot drive, and ensure that it is higher in the boot priority than your hard drive.

After your OS is installed if you have no other reason to boot from CD you can then un-do whatever settings you changed.


Changing between keymappings leading to defective keys - custom mappings a solution?

Open the /etc/default/keyboard file for editing and change the line

XKBOPTIONS=""

to

XKBOPTIONS="apple:badmap"

After next reboot those keys should be switched, which ought to be a step in the right direction, at least.

To test this for the current session (not preserved when rebooting) you can run:

setxkbmap -option apple:badmap


To uninstall the existing Java version 8.25, you can execute the following command:

sudo apt-get remove openjdk-8-jre
sudo apt-get remove openjdk-8-jre-lib

To install the Java V8 again,

sudo apt-get install openjdk-8-jdk

Hope this helps.


What is the easiest way to enable PHP on nginx?

The following method will get you started fast on Ubuntu 12.04:

Install the dependences:

sudo apt-get install php5-common php5-cli php5-fpm

Install nginx:

sudo apt-get install nginx

Start nginx:

sudo service nginx start

Test that it's working (should see "Welcome to nginx!")

sudo service nginx stop

In your nginx site configuration (/etc/nginx/sites-available/default), modify the line in the server {} section

index index.html index.htm to index index.php index.html index.htm.

Uncomment the lines in the server {} section starting with

listen for ipv4 / ipv6 both.

Scroll down to where it says location ~ \.php { and uncomment lines so it looks like this:

location ~ \.php$ {
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass 127.0.0.1:9000;
  fastcgi_index index.php;
  include fastcgi_params;
}

sudo service php5-fpm restart
sudo service nginx restart

Your default web root is located at /usr/share/nginx/www (per the config file).  (See root /usr/share/nginx/www;

(Note: For Ubuntu 12.10 or newer, you will need to replace the fastcgi_pass 127.0.0.1:9000; line with this to make it work: fastcgi_pass unix:/var/run/php5-fpm.sock;)


How do I configure a default principal for kinit (acquiring Kerberos ticket)?

The default principal can be set in ~/.k5identity

$ cat .k5identity
user@EXAMPLE.COM

Then kinit will use it as a default identity.


Cannot access to (or find out) main Settings program

Reinstall Settings (aka gnome-control-center) by running

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

in Terminal.


Formated xfs partition to ext4 by mistake, can it be recovered?

Testdisk couldn't do anything. I was able to use photorec to restore the data, music files mostly, and using Musicbrainz Picard I was able to then rename the restored file automatically.


I would suggest downloading an ISO on a working computer and just re-installing Ubuntu. Who knows what kinds of problems you may have inherited with a used machine.


The package in the PPA is called 'juju2', not 'juju-core2'.


sudo apt-get update gives 404 error "E: The repository 'http://ir.archive.ubuntu.com/ubuntu artful Release' no longer has a Release file."

It seems that the mirror you're using (http://ir.archive.ubuntu.com/) is not working.

There is usually a mirror per country, identified by the their ISO two letter country code, in your case ir.

The easiest way to fix your problem is to edit your /etc/apt/sources.list and replace http://ir.archive.ubuntu.com/ by http://SOME_OTHER_COUNTRY_CODE_HERE.archive.ubuntu.com/

There are also other ubuntu mirrors listed here with their status.


Deja Dup is just a front-end (and configuration helper) for Duplicity. From its --help, you can see what it supports:

  cf+http://container_name
  file:///some_dir
  ftp://user[:password]@other.host[:port]/some_dir
  ftps://user[:password]@other.host[:port]/some_dir
  hsi://user[:password]@other.host[:port]/some_dir
  imap://user[:password]@other.host[:port]/some_dir
  rsync://user[:password]@other.host[:port]::/module/some_dir
  rsync://user[:password]@other.host[:port]/relative_path
  rsync://user[:password]@other.host[:port]//absolute_path
  s3://other.host/bucket_name[/prefix]
  s3+http://bucket_name[/prefix]
  scp://user[:password]@other.host[:port]/some_dir
  ssh://user[:password]@other.host[:port]/some_dir
  swift://container_name
  tahoe://alias/directory
  webdav://user[:password]@other.host/some_dir
  webdavs://user[:password]@other.host/some_dir
  gdocs://user[:password]@other.host/some_dir
  mega://user[:password]@other.host/some_dir
  dpbx:///some_dir

And as you can see, both Mega and Dropbox are both on the end of that list. I would expect most of those to be available through Deja Dup.

Note: This appears to be new in Trusty. So you would either need to upgrade (pre-release at the time of writing) or manually suck the duplicity package back from packages.ubuntu.com. If you do the second, just check you can fulfill all the dependencies from your Ubuntu version before you upgrade. If you can't and you install anyway, that can cause a bit of a headache.


System errors may be depended from hardware I think.
I had in past on my Dell Vostro 3560 Ubuntu 12.04 , and on pure system after fresh install I had system errors. Similar situation is on 14.04, but now it's really rare behaviour.


Notify PCM Volume change instead of Master?

I've found my answer here in another ask Ubuntu answer.
If I use that script and change the mixer from 'Master' to 'PCM' I get a good pop-up notification of the PCM volume changes.


Go to Settings > Privacy > Connectivity Checking
Set it OFF
Restart your WiFi connection


How do I send a literal F6/etc. in byobu?

Shift-F12                   Toggle on/off Byobu's keybindings

Keystrokes will be send to the inner byobu.


hp-probe find printer network or alternative

A solution will be to scan the network and find printers. Yes hp-probe (as far as I know, is using the current network even with the -m option it never worked for me.)

A (slow) way to find them is using nmap:

for example:

sudo nmap -sP 10.16.1.1-255

The last part will scan from 1 to 255. This might take time.

Then you can check the type by using -O to find out what type of host the IP is.

sudo nmap -O 10.16.1.100

Will output:

Starting Nmap 5.21 ( http://nmap.org ) at 2012-01-30 15:23 EST
Nmap scan report for 10.16.1.100
Host is up (0.00032s latency).
Not shown: 991 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
23/tcp    open  telnet
80/tcp    open  http
280/tcp   open  http-mgmt
443/tcp   open  https
515/tcp   open  printer
631/tcp   open  ipp
9100/tcp  open  jetdirect
14000/tcp open  unknown
Device type: printer <-----------------------------------------------------
Running: HP embedded
OS details: HP LaserJet 2420, P3005, CP4005, or P4014 printer <------------
Network Distance: 1 hop

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 1.69 seconds

Then you can add using the printer tool.


How likely is upgrading with the gnome3-staging PPA to break Ubuntu 16.04?

First of all, gnome-builder is available in Standard Ubuntu repository for Ubuntu 16.04 Xenial Xerus. The answer was for 15.10 I assume.

$ apt-cache policy gnome-builder
gnome-builder:
  Installed: (none)
  Candidate: 3.18.1-2ubuntu1
  Version table:
     3.18.1-2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

Secondly, using PPAs means you're using some custom distribution. You're no longer on Ubuntu's upgrade path. It's OK as long as you're able to tackle any issue rising from using these PPAs.

Specifically, Gnome3 Staging PPA will likely to break your GNOME installation very much. Other Gnome software might not work with the latest versions of gnome libraries and hence you'll be unable to install them. However, you can always use ppa-purge to return back to Ubuntu repository.

My personal experience with gnome3-staging PPA is very bad. I would not recommend not to use that PPA to anyone who is willing to stay on Stable path.

Quoting from PPA page directly,

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

    If they break your system, you get to keep both halves.


What is the need for /boot and /tmp partitions in ubuntu

There isn't any technical problem with not assigning a separate /boot partition. The following link may help you to understand why making an external boot partition is preferable. But as they say, it is only preferred, not NECESSARY to allocate a separate boot partition. I myself have used only the / (root) and swap area to partition my drive and I've installed Ubuntu without any issues.
https://help.ubuntu.com/community/CreateBootPartitionAfterInstall


Creating separate scripts to run after separate reboots

Yes it is possible. You could save the current status of the system into a log file. Then a master script could read the last written status and run conditionally a certain script or function. Here is an example of such script:
$ cat ~/status-reboot.sh

#!/bin/bash

STATUS_LOG="$HOME/our.status.log"

# Determinate whether the log file exists ? get the status : set status0
if [[ -f $STATUS_LOG ]]
then
        CURRENT_STATUS="$(cat "$STATUS_LOG")"
else
        CURRENT_STATUS="stage0"
        echo "$CURRENT_STATUS : $(date)"
        echo "$CURRENT_STATUS" > "$STATUS_LOG"
        # You could reboot at this point,
        # but probably you want to do action_1 first
fi

# Define your actions as functions
action_1()
{
        # do the 1st action

        CURRENT_STATUS="stage1"
        echo "$CURRENT_STATUS : $(date)"
        echo "$CURRENT_STATUS" > "$STATUS_LOG"
        exit # You could reboot at this point
}

action_2()
{
        # do the 2nd action

        CURRENT_STATUS="stage2"
        echo "$CURRENT_STATUS : $(date)"
        echo "$CURRENT_STATUS" > "$STATUS_LOG"
        exit # You could reboot at this point
}

case "$CURRENT_STATUS" in
stage0)
  action_1
  ;;
stage1)
  action_2
  ;;
stage2)
  echo "The script '$0' is finished."
  ;;
*)
  echo "Something went wrong!"
  ;;
esac

Here is how it works within the command line:
$ ./status-reboot.sh
stage0 : Thu Aug  6 22:45:29 EEST 2020
stage1 : Thu Aug  6 22:45:29 EEST 2020

$ ./status-reboot.sh
stage2 : Thu Aug  6 22:45:33 EEST 2020

$ ./status-reboot.sh
The script './status-reboot.sh' is finished.

$ ./status-reboot.sh
The script './status-reboot.sh' is finished.

I think it should work without problem with crontab entry as this:
@reboot sleep 15 && "$HOME/status-reboot.sh" >> "$HOME/our.progress.log"

Please use full paths to the commands into your scripts used with crontab.

Reference: tldp.org - Using case statements


trying to install 12.10 does not have option to run alongside of windows, i have 444780 MB of shrink space

Use the shrink option. It works fine. Leave space for windows, too. It will need it for updates. Then, use the disk to install Ubuntu in the free space. You can also create an extended partition with a linux primary partition and swap primary partition inside it. Then create an ext3 file system. Then install Ubuntu. That shrink space is about 400 GB. You need about 20 GB for Ubuntu. You can probably get away with 100 GB of shrink space. Windows updates are huge.


How can I install and download drivers without internet?

Late to the party, but could be of use to someone. If you still have the Live USB from which you installed the OS, insert the flash drive (if it doesn't automount, open the Disks utility and mount it from there). Once it's mounted, open the terminal and go:

sudo dpkg -i /media/username/volname/pool/main/d/dkms/dkms_*.deb
sudo dpkg -i /media/username/volname/pool/restricted/b/bcmwl/bcmwl-kernel-source_*.deb

replace username and volname with your username and the USB volume label, respectively. after the install completes, reboot.

This folder structure is based on 15.04, should be similar in older versions.

If the terminal comes out with an error, open the file explorer and go to your Live USB. Then go the the same directory as above:

/media/username/volname/pool/main/d/dkms/

And

/media/username/volname/pool/restricted/b/bcmwl/

And click on the file in each directory. It will bring up Software Center. Install or reinstall both files.


how to check a switch or router using SSH or telnet in python

This stack overflow question may enlight your problem, just adapt the code to your needs. For example:

import socket

sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if sck.connect_ex(('some_host_name_or_ip', 23)) == 0:
    ## Telnet is open do telnet related stuff here

sck.close()

sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if sck.connect_ex(('some_host_name_or_ip', 22)) == 0:
    # SSH is open do ssh related stuff here

sck.close()


Is there any alternative to the Mac OS X dashboard?

The compiz widget layer + screenlets works like this. You can also install or Plasma if you want even more fancy stuff.

You can enable the widget layer in CCSM. (More detail will be added to this answer when I have some more time).

Run: sudo apt-get install compizconfig-settings-manager screenlets screenlets-pack-all
Open this and go the widget layer plugin:
Widget Layer options:

Run the screenlets app: alt+f2+screenlets
Set the screenlets options so that they show on the widget layer by default:

(then)


Either another instance of LibreOffice is accessing your personal settings or your personal settings are locked

If you're absolutely sure libreoffice is not running, there's a .lock file in:
~/.config/libreoffice/3

Delete it to unlock your libreoffice settings for access.

A  quick ps -A | grep soff should tell you if it's actually running.


Password sign-in blocked by installed software

I wasn't able to recreate this issue but as Bharadwaj Raju suggested you can use Ctrl ALT F1 to enter a terminal then remove gnome-do .. then once booted back in, if you want to use the program still .. you can install it and run it then click the triangle in the upper right and select preferences. In the general tab select Hide window on first launch (quiet mode) This should "hide" it at login so you should be able to avoid your issue.

Since I can't recreate the issue and if I set it to start at login, for me, it starts after I login (but I tested this on 16.04 Unity), I can't be sure that this will solve your issue or not. If it doesn't you can always remove it again.


doesn't booting after installed updates in ubuntu 12.04 LTS

Reinstall the iso, but deny any updates. thats what i always do. the iso is a frozen image where most software on the disc works. if one program does not function right look for its upgrade only in repo or on line. try to download its .deb or .rpm or other dot file extension for your distro brand. good luck. I am running Linux Voyager 12.04 LTS and my other laptop runs Linux Lite 12.04 LTS, both are XFCE desktops.  Look at distrowatch.com.


Maybe it is a problem of X. Have a closer look at /var/log/Xorg.0.log with

  sudo less /var/log/Xorg.0.log

and check the content and maybe post it here.


How can I run Unity in a virtual machine?

Unity has 3D requirements above and beyond Compiz itself.

On top of the 3D required by compiz, which is supported by Virtualbox's 3D support, Unity also requires the OpenGL Frame buffer object extension, which is not supported by Virtualbox's 3D drivers. Wikipedia has a good article on FBO too.)

Bug report: http://www.virtualbox.org/ticket/7835

However this appears to be fixed in the new release of Virtualbox


How to iconize all windows for current application, Unity

Unfortunately, this was already brought up.
https://bugs.launchpad.net/ayatana-design/+bug/733349
You can click on the "This bug affects me" part at the top, possibly popular opinion can have some impact.

There is much discussion and even someone that made a fix. https://code.launchpad.net/~ojno/unity/minimize-on-click
You may be able use his PPA to try it out https://launchpad.net/~ojno/+archive/unity-minimize-on-click
What are PPAs and how do I use them?

As the feature was rejected and even commented on by SABDFL - (Mark Shuttleworth)
https://bugs.launchpad.net/ayatana-design/+bug/733349/comments/19

Mark Shuttleworth (sabdfl) wrote on 2011-04-21: Re: [Bug 733349] Re:
Add 'minimize all windows' option to the quicklist of running
applications  #19
Rocko, no, clicking on the icon will not minimise the app.
We have a minimise button for that, it's prominent.
status opinion
Mark

It is currently Won't Fix status.


Can't delete Facebook and Google in Online Accounts! Where is the config file for Ubuntu Online Accounts located?

I had this problem too . It seemed to occur after an upgrade, I could add new accounts, and disable old ones, but unable to remove old accounts using the proper windows. I eventually found that account information appeared to be stored in the directory

/home/$USER/.config/libaccounts-glib/  (replace $USER with your username.)

There where 3 files in there accounts.* ; I removed them all and rebooted the computer, and found all the online accounts where gone, I then re-created the new accounts manually as needed.

This is a bit of a heavy handed approach, so if you use it, I recommend you take a copy of the files before you remove them from that directory.


Try the following command and modify it accordingly:

ffmpeg -f x11grab -i :0.0+10,20 -r 10 -vf format=pix_fmts=yuv420p output.mp4

Since my system build does not have an output on /dev/video0, I replaced it with a filename as an output.

-f for input/output. Input source: x11grab, indicates a screen capture provided by the libxcb1 library. Output source: /dev/video0, assuming there is a connected monitor.

-i Screen 0 is selected (run xrandr to view the available connected screens). 10 pixels and 20 pixels for x-offset and y-offset (set in the question).

-r for framerate (Hz) for recording. (10 fps selected).

-vf filtergraph flag for filtering the stream.


Software or applet to check if a server is up

Yes it does. I only know of Conky though, which can be a little on the technical side.

https://www.youtube.com/watch?v=oMKqEVMFKFY

In the description, he shows his coding to get Conky to show the server status of whatever server you wish.

An explanation to help you get started with Conky can be found here:

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

Conky can also monitor your CPU, RAM, Weather of your area, be a clock, etc. It is a really great tool to have and learn!


Is it normal that programs don't have title bar and borders in Ubuntu with Gnome3?

This is a picture found on the GNOME website on 5 nov 2013 00:57 UTC.

As you can see, the layout is the same.

So, yes, IMHO this is normal GNOME 3 behavior.


when IPv6 connectivity is broken, what's the best option : disabling ipv6 vs installing miredo?

When Chrome is slow to start loading the page but once it starts loading the page it's fast, there are two things that could be going wrong. The first possibility is that your computer is using a buggy DNS server that doesn't handle requests for IPv6 addresses well. The second possibility is that your computer thinks it has internet IPv6 connectivity when in reality it doesn't.

Run dig aaaa he.net and dig a he.net. Each one will list a Query time. The times should be within ~200msec of each other. If they are not, you DNS server is what is causing this slowness.

One case to test for is how fast the DNS server will tell you that a website does not have an IPv6 address. You can test this by running something like dig aaaa bluecc.edu. It's Query time should be similar to the other times you ran 'dig'. The important thing is that the Query time is short.

IPv6 access itself could be broken. You can test by running ping -c 5 he.net and ping6 -c 5 he.net. The 'time' for the ping6 should be comparable to just ping, and the 'time' should be at least less 1000 msec. If the ping6 is giving you destination unreachable errors, then your IPv6 connectivity is broken. In that case, you have two options. One is to disable IPv6 and the other is to install miredo, which will make an IPv6 tunnel, which should fix any connectivity problems. (You shouldn't have to do anything to set up miredo. It should just work. It's also easy to remove if you ever need to with sudo apt-get remove miredo)


How can I add the Android Emulator to Plank dock in 19.04?

Launch the app from the GNOME menu; its icon will appear on the right side of the dock. Right-click on it and select "Keep in dock" to make them appear permanently.


Is there an Ambiance theme available for Windows?

Yes, you can download it here. This theme is for Windows XP and while it has a few bugs, outlined in the download link, it should be an improvement on what you have now.


Xubuntu 12.10: Possible to use animated gifs as a background?

(I don't know whether you have tried the following suggestions, as you haven't responded to the comment, but I thought I would mention the following ways, which are about the only options available.)

General Introduction

Without using compiz or some special compositor plugin, what you can do on Xubuntu is use xwinwrap; even though the program hasn't been updated officially for a while, there is an improved version available here with many comments posted by users.

However, you may want to use the excellent gwinwrap, which is a front-end to xwinwrap. You must install it by following the instructions from the official site; it is, however, very quick and easy. You also need mplayer and xscreensaver installed in addition to xwinwrap.  Even though the documentation keeps mentioning screensavers, it does work for the desktop as well, as this useful youtube video demonstrates, and this is one way to make a desktop 'active'.

So, you could either use xwinwrap as it is and follow the tutorial here so that you can display your gif, or it may be easier to use gwinwrap. You could simply convert your gif to a video file and select it in gwinwrap and it would loop as the desktop background. Other options such as the size of the video could be passed to mplayer in the gwinwrap options.

If you run gwinwrap from terminal and select various settings and then apply them, you can see the xwinwrap command lines being used. As an example, gwinwrap executes an xwinwrap command (in conjunction with mplayer) such as this:

nice -n 15 xwinwrap -s -st -sp -b -ni -fs -nf -ov -o 1.000000 -- mplayer /home/mike/jazz.mp4 -quiet -noconsolecontrols -loop 0 -wid WID

(To kill any xwinwrap actions which have gone awry, open a terminal and run killall xwinwrap.)

Specific instructions

1) Choose your animated gif from your collections and convert it to a video format such as mp4 or avi; you can do this directly with ffmpeg, as noted in the suggestions from this superuser question. If the quality isn't what you expected, try the other alternatives.

2) Start gwinwrap, click 'new' on the first screen, and then on the second, add your video of your converted gif, specify any settings and click apply (see screenshot below).

Note: you usually have to have window compositing enabled in XFCE settings > window manager tweaks. As noted in some of the comments for xwinwrap, sometimes the video may overlay other windows depending on your graphics card. It should not happen, however, and using xwinwrap/gwinwrap is about the best way to achieve what you want.


Error while installing Apache on 12.04 LTS

As I too was having this issue on some Ubuntu 12.04 servers I was maintaining, I decided to create a clone of Ondrej's PPA with the last known working Ubuntu 12.04 packages.

https://launchpad.net/~nickmoline/+archive/ubuntu/php55

Switching to this PPA has allowed me to successfully install Apache and PHP again.

this locks Apache to 2.4.16 instead of the unworkable 2.4.20

Before I did this I contacted Ondrej who let me know that they will eventually fix the problem, but they don't have a timeframe on this, when they do, I'll go ahead and update my PPA and add a note that you can stop using it.

Feel free to use it if it is helpful to you.


I found what was the problem - both distros were conflicting with a new usb hub I used to connect the keyboard and the mouse to the notebook. This one - http://www.amazon.com/AmazonBasics-Port-USB-power-adapter/dp/B00DQFGJR4/ref=sr_1_2?ie=UTF8&qid=1402920652&sr=8-2&keywords=usb+hub+powered+amazon


Unable to Edit Display Settings in 15.04

I fixed it. I had to run these commands in the terminal:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346

Then restart:

sudo shutdown -r now

Now I have display settings and it detected my second monitor.


Lubuntu dual monitor doesn't save config

My solution involves i3, it's not necessarily valid for other cases.

I've been using ARandR to manage my screens.
Though after the computer goes to sleep and I turn off the screens, it doesn't detect the dual screens anymore.

ARandR can save your config in a .sh file, by default in ~/.screenlayout/config.sh

in my case with dual monitor, one vertical one horizontal, you get something like:

xrandr --output DVI-I-0 --primary --mode 1920x1200 --pos 3840x0 --rotate left --output DVI-I-1 --off --output HDMI-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --mode 3840x2160 --pos 0x0 --rotate normal --output DP-3 --off --output DP-4 --off --output DP-5 --off

In i3 config file (~/.config/i3/config) you can insert:

exec_always '.screenlayout/hv.sh'

This way, you just need to refresh i3 with mod+shift+R (by default) to update your xrandr config.


Title bars and menus have become too small, but everything else too big

Just turn on and turn off large text in the settings. You will get back your previous size.
After turning on the large text.
Icon size will become large like this.
After turning off the large text.


This was added in byobu 5.87, which is newer than Ubuntu 14.04 LTS (Trusty)'s version of Byobu.  You could install the latest version of Byobu from ppa:byobu/ppa on Trusty, if you like.

Full disclosure: I'm the author and maintainer of Byobu.


ubuntu 14.04 mounting usb with "can't read superblock "

You need to repair your filesystem. You can do it with testdisk:

sudo apt-get install testdisk
sudo testdisk

>Create a new log file
[Choose Disk]
>Intel/PC partition
>Advanced
[Choose Partition]
>Boot
>Repair FAT
[Accept Defaults and Write]
>(Q)uit until exited

Source link here


Ok, so after researching this a bit, I found:

Ubuntu 12, chromium/chrome facebook not loading

and

How to diagnose a selective DNS resolution failure?

and indeed, I switched the 'MTU' setting for my wireless interface from to 1492 and voilá, problem fixed. Now the why is another issue completely.


How to get a dual boot USB drive to work in Vista

With some laptops, plug the USB drive in then turn on the power. Press F2 or Delete to enter the PC BIOS settings.

The setting you want is usually under the BOOT section (use left/right arrow keys to change sections) and check the boot device order, make sure USB is before hard drive.

If you are unsure about changing anything, have a look and write down what options you see, exit without saving and let us know what options there is.


Replace openjdk with oracle-jdk on Ubuntu

You can completely remove the OpenJDK and fresh Install Oracle Java JDK by following these steps:

Remove OpenJDK completely by this command:

sudo apt-get purge openjdk-\*

Download the Oracle Java JDK here.

Note: download appropriate file, for example if your system is x64 Ubuntu (i.e, Debian) the download file is named like this: jdk-8u51-linux-x64.tar.gz

To find which version is your OS, check here
Create a folder named java in /usr/local/by this command:

sudo mkdir -p /usr/local/java

Copy the Downloaded file in the  directory /usr/local/java. To do this, cd into directory where downloaded file is located and use this command for copying that file to /usr/local/java/:

sudo cp -r jdk-8u51-linux-x64.tar.gz /usr/local/java/

CD into /usr/local/java/ directory and extract that copied file by using this command:

sudo tar xvzf jdk-8u51-linux-x64.tar.gz

After extraction you must see a folder named jdk1.8.0_51.
Update PATH file by opening  /etc/profile file by the command sudo nano /etc/profile and paste the following at the end of the file:

JAVA_HOME=/usr/local/java/jdk1.8.0_51
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH

Save and exit.
Tell the system that the new Oracle Java version is available by the following commands:

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_51/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_51/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.8.0_51/bin/javaws" 1

Make Oracle Java JDK as default by this following commands:

sudo update-alternatives --set java /usr/local/java/jdk1.8.0_51/bin/java
sudo update-alternatives --set javac /usr/local/java/jdk1.8.0_51/bin/javac
sudo update-alternatives --set javaws /usr/local/java/jdk1.8.0_51/bin/javaws

Reload sytem wide PATH /etc/profile by this command:

source /etc/profile

Reboot your system.
Check Java JDK version by java -version command . If installation is succesful, it will display like the following:

java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-xxx)
Java HotSpot(TM) Server VM (build 25.51-xxx, mixed mode)

That's it!

Note: We Assumed that the downloaded file is named jdk-8u51-linux-x64.tar.gz and used this name in all the commands used in steps 2, 4 and 5. It may depends on the type of O.S, processor type (i.e., 32bit or 64bit)


Tried to install 18.04LTS and failed. Now can't get to BIOS/UEFI. Screen blank

Windows 10 enters into recovery mode after a few failed boot attempts. Just turn your pc on and off a few times, that is before it has time to boot completely.


I cannot set as default program libre office instead of wps for docx files only

Changing default application in GUI

Right-click your .docx file.
Click in Properties.
Select Open With tab.
Select application from lists Related Applications or Other Application.
Click in Set as default.
Close Properties window.

If you want to rollback your change:

Follow steps 1 to 3.
Click in Reset.
Close Properties window.


For me, this make the clock, time, date come back to menu bar: killall unity-panel-service


How to delete words from txt file, that exists on another txt file?

There is a command to do this: comm. As stated in man comm, it is plain simple:

   comm -3 file1 file2
          Print lines in file1 not in file2, and vice versa.

Note that comm expects files contents to be sorted, so You must sort them before calling comm on them, just like that:

sort unsorted-file.txt > sorted-file.txt

So to sum up:

sort a.txt > as.txt

sort b.txt > bs.txt

comm -3 as.txt bs.txt > result.txt

After above commands, You will have expected lines in the result.txt file.


sed: -e expression #1, char 9: unterminated `s' command

Unterminated `s' command means you are missing a delimiter. You need 3 and have just 2 in your command.

sed -i 's/port=\"8080\"/port="\8000/"' /opt/apache-tomcat-7.0.37/conf/server.xml

I flipped the last \ to / and it works:

more test
  port="8080"
sed -i 's/port="8080"/port="8000"/' test
more test
  port="8000"


Have installed Ubuntu but when I restart computer, it only goes to 'grub'...Ubuntu doesn't load?

I suggest you to recover your grub installation with a live cd?

my source is https://wiki.ubuntu.com/Grub2#Recover

but i personally tried it works

This method of installation uses the chroot command to gain access to the broken system's files. Once the chroot command is issued, the LiveCD treats the broken system's / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.

1) Boot to the LiveCD Desktop (Ubuntu 9.10 or later). Please note that the Live CD must be the same as the system you are fixing - either 32-bit or 64-bit (if not then the chroot will fail).

2) Open a terminal - Applications, Accessories, Terminal. 3) Determine your normal system partition - (the switch is a lowercase "L")

sudo fdisk -l

If you aren't sure, run

df -Th

Look for the correct disk size and ext3 or ext4 format.

4) Mount your normal system partition:
Substitute the correct partition: sda1, sdb5, etc.

sudo mount /dev/sdXX /mnt

# Example: sudo mount /dev/sda1 /mnt

5) Only if you have a separate boot partition: sdYY is the /boot partition designation (for example sdb3)

sudo mount /dev/sdYY /mnt/boot

6) Mount the critical virtual filesystems:

sudo mount --bind /dev  /mnt/dev
sudo mount --bind /dev/pts  /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys  /mnt/sys

7) Chroot into your normal system device:

sudo chroot /mnt

8) If there is no /boot/grub/grub.cfg or it's not correct, create one using

update-grub

9) Reinstall GRUB 2:

Substitute the correct device - sda, sdb, etc. Do not specify a partition number.

grub-install /dev/sdX

10) Verify the install (use the correct device, for example sda. Do not specify a partition):

sudo grub-install --recheck /dev/sdX

11) Exit chroot: CTRL-D on keyboard

12) Unmount virtual filesystems:

sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys

13) If you mounted a separate /boot partition:

sudo umount /mnt/boot

14) Unmount the LiveCD's /usr directory:

sudo umount /mnt/usr

15) Unmount last device:

sudo umount /mnt

16) Reboot.

sudo reboot

hope it will work