There are a few ways to do this, including du. A common graphical tool you can use is Baobab.


I recommend combining the previous answers

watch -n 5 free -m

Note that Linux likes to use any extra memory to cache hard drive blocks. So you don't want to look at just the free Mem. You want to look at the free column of the -/+ buffers/cache: row. This shows how much memory is available to applications. So I just ran free -m and got this:

             total       used       free     shared    buffers     cached
Mem:          3699       2896        802          0        247       1120
-/+ buffers/cache:       1528       2170
Swap:         1905         62       1843

I know that I'm using 1528 MB and have 2170 MB free.

Note: To stop this watch cycle you can just press Ctrl+C.


You need to move LVM extents at the end of LVM PV partition with pvmove command before you can resize it.

KDE Partition Manager can actually do it for you. Unfortunately the version in Ubuntu 16.04 is too old, but you can boot Ubuntu 17.10 live CD, install partitionmanager there

sudo apt install partitionmanager

and then resize LVM PV from GUI.


How to resize partitions when upgrading to 12.10?

Yes, You can resize the partition in the installation process. You have to select something else option in the partitioning phase. But, This can be sometimes tricky and I recommend using Gparted in the Live session.
If you are referring to resizing the partition while doing upgrade (using update-manager), you cannot. You cannot resize, delete or otherwise change the partition while using it (the partition is mounted at /)
If you want to upgrade with update-manager
If you want resizing of the existing partition, and also do not want to do a fresh installation, You can use the Live session. Take note that, you must have free space after the Ubuntu partition or create free space

Boot to a Live Ubuntu system.

Open gparted by typing "Gparted" in the dash

Select the next partition just after the Ubuntu, Select resize and move the slider from left to right to make some space just after the Ubuntu installation. Then click on Apply button. This might take some times, so take precaution for power/battery down.

After you created free space, select the existing Ubuntu partition, then right-click → Resize and move the slider from the right end to fill all the gray free space area. Then click on Apply button.

Now, exit the Live session, boot to your Ubuntu installation and perform upgrade from it.

This method might not work, if your Ubuntu is a primary partition and the partition immediately following is an extended/logical partition. (This might be possible also, but I haven't tested it).


Remove ALL PRIVILEGES from an user group and Allow it to open only one program and read one directory

Well, what you are asking is not as simple as you might imagine. To run gthumb you need to log in and run additional programs in the background, a graphical front end (X) at a minimum. You can use a minimal graphical front end such as fluxbox.

To be honest, IMO the easiest option might be to use the guest account. This has the advantage of being secured by apparmor, although it allows more access then what you want.

If that fails you can either use a custom apparmor profile or use a chroot/jail. These options will give you more control, but at the expense of you having to identify all the underlying applications and libraries that you need to allow to run a graphical front end and gthumb.

See: http://ubuntuforums.org/showpost.php?p=9799756&postcount=5

Or Simple & easy way to jail users


New account showed up (named "postgres") why?

I am no Metasploit expert, but this guide says that it uses PostgreSQL. PostgreSQL, like many other services on Ubuntu (like Apache, nginx, MySQL, nslcd, etc.), runs a daemon as a separate user. This helps in security. Login should be disabled for this user by default (so, no password).

The PostgreSQL account shouldn't be visible on LightDM (it should be using an UID outside the normal range of visibility on LightDM) so you could consider filing a bug.


How do I get scrollbar buttons in Lubuntu?

I got the solution. It has to do with the configruation file for gtk. I got the solution fron a Firefox forum that pointed me to an openSUSE forum. I could not locate an application to generate the code so I did manual entry.
There was one syntax error in the solution that I corrected by looking at the config files generated by GNOMEcolor chooser. The GNOME color chooser needs an enable option for the 'stepper'. The following is the solution:

:~> cat ~/.gtkrc-2.0
style "stepper-enable"
{
GtkScrollbar::slider_width = 15
GtkScrollbar::stepper_size = 15
GtkScrollbar::has-backward-stepper = 1
GtkScrollbar::has-forward-stepper = 1
}

class "GtkScrollbar" style "stepper-enable"


Download this program.

Install the program if you set it to Grub2Auto it will work.


This is from a piece of software called cpu-g at some point you have installed this software and it does not have a package for Eoan. To fix this it is likely the release file is stored in

/etc/apt/sources.list.d

Finding the file with the cpug-devs url and deleting it will resolve the issue.

It is also possible that someone manually added this line to /etc/apt/sources.list. If this is the case editing the file something similar to

sudo nano /etc/apt/sources.list and removing the line with cpug-devs in (save the file and exit) will also solve the problem

run
sudo apt update once the file or line is removed and you should be error free


How do I download AND save mp3 music files to Rhythmbox?

Extract the mp3's in some folder and open them from there.

When you open a file from the Archive Manager, the file is saved in a temporary hidden .cache folder located in /home/user and it gets open from there.
You can play the file with Rhythmbox but you can't import it. In order to import it, you need to save the mp3 in a folder like /home/user/music.


Access denied for user 'root'@'localhost' (using password: YES) from different machine

You have to do something like mysql -u root -p -h example.com/orIPAddress
There are also chance of mysql root password is not set on remote machine so also in this situation you will not able to connect.
 Another way is to create a mysql tunnel as shown in Link  but it shows how to dump mysql db but except this you have to just login.


I have downloaded Ubuntu 14.04 and burned it onto a disk, it's an ISO file.. will it boot from disk?

Yes, it is supposed to boot from the disk, and it will not touch your Windows installation until you tell it to.


Installing Realtek 8188 wireless driver fails

to solve the "linux/smp_lock.h not found" error you need to edit this two files into the archive driver/rtl8192_8188CU_linux_v3.1.2590.20110922.tar.gz

file 1: include/rtw_io.h

Change osdep_service.h
(line 49) linux/smp_lock.h
to linux/smp.h

file 2: include/osdep_service.h

Change file rtw_io.h
(line 36) linux/smp_lock.h
to linux/smp.h


Dell Inspiron 1545 wireless not detecting certain networks

once , I had this problem with my old laptop Dell inspiron 15XX (I don't remember exactly) and it worked

sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source

sudo apt-get install b43-fwcutter firmware-b43-installer


Can I make a "choice image list" in MAAS UBUNTU?

Grub multi-boot MAAS feature Request
I've submitted a feature request (Feature Request Allow grub to multi-boot MAAS images) referencing this Q&A.
History
I've spent hours looking into this using google and it appears a good ole grub menu is the way to do it. Unfortunately I can't find official Ubuntu MAAS (Metal as a Service) documentation on doing it. Indeed the only thing I can find about grub with MAAS are bug reports where grub shouldn't show up.
For example from (https://bugs.launchpad.net/maas/+bug/1532935) this:
John George (jog) wrote on 2016-05-20:  #18
Ran into this issue multiple times while using Landscape Autopilot to
deploy Openstack, which was never able to complete due to at least one
machine failing to deploy, after getting stuck at the grub menu. Juju
1.25.5 and MAAS 1.9.2 were being used.

Once stopped at the grub menu I was able to bring the system up for
inspection by doing the following:

    - Reboot the server and drop into the boot menue (F11 on HP)
    - Select the UEFI module option
    - Use the file explorer to drill down to and run shimx64.efi
    - grub> cat /boot/grub/menu.lst (to see configured kernel and initrd paths)
    - grub> linux /boot/vmlinuz-3.13.0-86-generic root=LABEL=root ro console=ttyS1,38400 1
    - grub> initrd /boot/initrd.img-3.13.0-86-generic
    - grub> boot
    - Boot would stop at run level 1 and drop to a root shell prompt
    - /etc/init.d/networking start
    - service ssh start
    - ifconfig (to find configured IP)
    - ssh into the system as the ubuntu user

Also there is this complaining how MAAS installs grub to /dev/sda instead of the real boot drive which is /dev/sdb (MAAS always installs GRUB to /dev/sda, even when that's inappropriate):
So grub is part of the MAAS boot up process the question is how to make the grub menu active and give you the various images to choose from like how we choose different Ubuntu versions and Windows versions now.
I think the Ubuntu MAAS team might help if a nicely worded email were sent to the right channels. Additionally a feature-request can be posted somewhere.


xdotool's type command eating characters

The --sync option was exactly what I was looking for!

However, the --sync option only exists on a particular set of get or search commands.

The solution turned out to be: xdotool getwindowfocus windowfocus --sync type thisismyemail@example.com

What's happening here is that we first get the window that is focused, via getwindowfocus (getactivewindow is an alternative if the other doesn't work).

All we're doing differently is getting the active window and setting it to the same thing. The key difference is the presence of the --sync option which forces xdotool to wait until the previous command has been applied.

So we guarantee that we're focused to a particular window and will be able to type commands.


In 15.04 it's enabled by default thanks to @solsTiCe  informative notes. you could check that yourself

if grep -i pstate /boot/config-$(uname -r) says yes then it's so.

To enable intel_pstate in Ubuntu 14.04 , edit the /etc/default/grub configuration file with a text editor as root

gksu gedit /etc/default/grub

And for "GRUB_CMDLINE_LINUX_DEFAULT=" , add "intel_pstate=enable", like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=enable"

Save the file and update Grub:

sudo update-grub

Restart your system and to check if intel_pstate is enabled, run the following command:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver

The command above should return "intel_pstate".

source and more information


The short answer: no. You cannot at the current moment use apt or apt-get to install the latest version that is bundled. According to the website, version 3.2.0 is not yet packaged:

Even if it was, it is also extremely unstable:

If you wait for a few days (maybe weeks depending on the motivation of the devs), version 3.2.0 will most likely be packaged, and you will be able to update to the latest version with:

sudo apt update
sudo apt upgrade

Assuming you already have 3.0.5 installed.


user can't ftp to a directory but is part of the group that owns it

Check in /etc/vsftpd.conf is

write_enable=YES


How can I make the color reverse application autostart when I log in?

The application you are using is called compiz. Settings can most easily be adjusted by installing the compiz config settings manager sudo apt-get install compizconfig-settings-manager, find it in System->Preferences, although this will not be able to do what you want.
The plugin that reverses the color is called Negative (in the accessibility section of ccsm).
A possible method to auto-call a plugin on startup is described here: http://ubuntuforums.org/showpost.php?p=9351609&postcount=8 (although that seems a bit involved)

(From comment) This should do it:

dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/neg/allscreens/screen_toggle_key org.freedesktop.compiz.activate string:'root' int32:$(xwininfo -root | grep id: | awk '{ print $4 }')


Two Ubuntu Machines cannot access each other's shares anymore

I've fixed it. It is a bit slow in updating the network (the machines are appearing, but it takes a few minutes), but I got it figured out.

There was a misconfiguration in one the files. I'm not sure how it got misconfigured, but correcting it fixed the issue.

sudo gedit /etc/nsswitch.conf

Change

  hosts:          files mdns4_minimal [NOTFOUND=return] dns

to

  hosts:          files wins dns mdns4_minimal [NOTFOUND=return]


Temporarily unmount your large mount point. (Unfortunately, this guide cannot be applied if temporarily unmounting is not possible.)
Install aide.
Add an exclusion to /etc/aide/aide.conf

!/your/largemountpoint

then mount it again.

There'll be a better way I'm sure but as no one has answered you yet in 2 months...


How to determine what cause Apache to hang after 5 minutes online on ubuntu 16.04 server?

It's virtually impossible for us to diagnose your problem with such little information. Here are some steps you can take to get more information and determine what is causing the problem.

Firstly see if the system is reporting what is causing the problem before it's crashing by running this command:

dmesg

Next check if there is any free disk space on the server by running this command:

df -h

If it outputs a volume that is 90% or more full, it's likely the disk is full and that's causing problems.

Next I would suggest running these commands to see how much CPU usage occurs or if the server enters "swap hell"

htop

If for some reason htop is not available run top instead. You can press Q to exit either of them while it's running and you can press C to sort by CPU usage and M to sort by memory usage.

Next you can check if Apache2 or MySQL (assuming you use MySQL) are throwing any errors:

tail /var/log/apache2/error.log
tail /var/log/mysql/error.log

There is no reason to upgrade your server unless you have good reason to believe you are currently CPU or Memory bottlenecked or the hardware has failed. A server with 32GB of RAM should be capable of handling tens of thousands of basic reporting tasks.


high temperature after update to 16.04 LTS- Nvidia Optimus

Install Nvidia drivers by

sudo apt install nvidia-361

and reboot. If UEFI is used, disable Secure Boot.

To reduce heating you can switch to the integrated adapter by

sudo prime-select intel

then log off or reboot.


How to mirror two external screens at a Thinkpad X1 2015?

Ok, I found the answer myself. Here are the steps:

Open the notebook lid
Attach the external two screens
Go to the Display settings in the System Settings
Deactivate the internal screen (but leave it physically open)
install xandr (sudo apt-get install xandr)
Go to the terminal and list all the available monitors. Therefore, just  execute xandr
Now execute following command and replace the output-type with yours:

xrandr --output DP2-1 --same-as DP2-2

The last command, xrandr --same-as will let you mirror whatever monitors you wish.


I found this to be a problem for me caused by log files building up.

logrotate is run as part of cron.daily which by default runs at 6:25 which is quite possible that your machine is never on at this time.

So I would start by checking /var/log disk usage.

If it is that, you can fix it by editing /etc/crontab and changing it to run cron.daily at 9:25 instead (or a time you know your machine is often on).

There is an application called "Disk Usage Analyser" installed by default. Use that on the whole filesystem.


How to completely deactivate a Bluetooth USB device?

To stop bluetooth service

$ su -
$ service bluetooth stop

To disable bluetooth service on startup

# nano /etc/rc.local

add this line before exit 0

rfkill block bluetooth

To disable the bluetooth driver on startup

# nano /etc/modprobe.d/blacklist.conf

and add this line to blacklist.conf

blacklist btusb

To cut power source for bluetooth to run

# nano /etc/bluetooth/main.conf

Change

InitiallyPowered = true

To

InitiallyPowered = false

Source: http://namhuy.net/1397/disable-bluetooth-ubuntu-xubuntu-linux-mint.html


so this were the steps I took in order to install it correctly:

Download the 2 Libraries that are needed and install them:

https://packages.ubuntu.com/cosmic/amd64/libssl1.0.0/download
https://packages.ubuntu.com/cosmic/amd64/libzip4/download

Go to the MySQL Workbench Download Page and Download (At least for now) the latest version for Ubuntu 18.04 and install it. It should install correctly without any issues.

Assuming you already installed the MySQL Client/Server packages, you should be able to see it like this now:

Note that as of the writing of this answer (April 25, 2019), the package mysql-workbench or mysql-workbench-community do not exist in the 19.04 repositories (Even with universe repositoy enabled). You can see here that there are not packages created yet: https://launchpad.net/ubuntu/disco/+source/mysql-workbench


Controlling Gnome-shell Notifications Message Tray

Yes when you turn it off it will make your status busy. if you dont want to have any notification then try removing it
try Alt + F2

type

gnome-tweak-tool

then go to shell extensions and turn it Message Notification Extension off


Unity Tweak Tool

-> Text scaling factor


Adding a indicator / panel in unity panel

A possible alternative I found is to add a gnome panel to unity.
You can experiment the solution by open a terminal and type

gnome-panel

I placed one single gnome panel at the bottom of the screen. In that panel you can place whatever you want as usual. It's also good for find resources, open windows and administrative tools (not immediate to find with unity interface).

If you like the solution you can autostart your new panel everytime you log in by adding an entry in: administration->session (or something similar, I haven't English locale set).

I hope this help


I know this is a few months old, I wanted to post a response since I found it looking up my own problem with a Gateway MX 6440.

I received this error due to a Broadcom Wireless NIC in the system. I ended up physically removing the card from the laptop (laptop dosn't have the option to disable it via a hardware switch/button or the BIOS).

I was able to install Xubuntu 13.04 i386 without an issue, and then installed the b43-fwcutter package and was able to plug in and use the Broadcom wireless NIC.

Hope this helps someone!


Gnome Shell Lock Screen problem in Ubuntu 14.04

Click the gear icon on the panel, or user name and find System Settings, you can also find it with search.

Go to System settings
Choose Brightness and lock
Then:

Set "Lock" option to "ON"
Check the box in "Required my password when waking from suspend"
Set the time in "Lock screen after:"

Additional option since the above is not working for you.

Open Terminal

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'

This worked on 12.10, not sure about 14.04 but I think it should be the same.


How can I configure Internet proxy on VM?

Answering my own question here.

I also should have added to my original question that we require authentication on the internet.largecompany.com:8443 proxy i.e. we get prompted for username and password.

Therefore, the way we resolved was to use the open source network tool Cntlm Authentication Proxy. This worked perfectly for our requirements.


To get some sort of Ubuntu classic, install the gnome-shell and gnome-session-fallback packages. To do that, type in a Terminal (Dash->Terminal) window:

sudo apt-get install gnome-shell gnome-session-fallback

Then reboot, and on the session selection screen, select GNOME fallback or GNOME Classic (forgot which one it was)


Can't install needed python3-scope-harness for Ubuntu Scopes dev in Go

Failed attempt: I just upgraded to the latest Ubuntu SDK

  sudo add-apt-repository ppa:ubuntu-sdk-team/ppa

then

  sudo apt update && sudo apt install ubuntu-sdk

as instructed by https://developer.ubuntu.com/en/start/ubuntu-sdk/installing-the-sdk/ .  Then I ran

  sudo apt-get install unity-scope-tool golang git bzr python3-scope-harness mercurial

...but it still can't find python3-scope-harness :-\


How to uninstall brackets from Ubuntu 18.04?

As you can see from APT logs, brackets has been installed as a snap package.

In such case you can remove your snap package with:

sudo snap remove brackets

You can also use Ubuntu Dock ->  Applications ->  Ubuntu Software to remove an installed APT or snap package.


In the "Edit | Input preferences" dialogue, I had to choose "USB Mouse", then change "Mode" from "Disabled" to "Screen", then click "Save", then click "Close". Now the mouse works fine.


Bookmarks, Places nautilus sidebar position Ubuntu 14.04

No, there is no way you can do that in the standard file manager for Ubuntu, but there is a way in Nemo: a fork of the built-in file manager (a big brother some might say) but available in a PPA.

Have a look at their official web-site first.

PPA's contain unsupported software so you should always be careful and make a personal judgement before installing any PPA's even when given in an answer on Ask Ubuntu. That being said, I've been running Nemo for over 6 months now and would not go back ever.  :-)

To install this PPA, go to a terminal and type the following commands:

sudo add-apt-repository ppa:webupd8team/nemo
sudo apt-get update
sudo apt-get install nemo

and put your bookmarks wherever you want them, have advanced list options, built-in terminal, sticky zoom options, ...


I'm not sure what the bigger picture is, but your approach should be to run the command with on a file in the directory. E.g. if you want to run grep regex file where file is in /root, then you should approach it like this:

$ sudo grep regex /root/file

And not:

$ sudo 'cd /root; grep regex file'
sudo: cd /root; grep regex file: command not found

Why this output? Well, it's shell syntax and sudo isn't running the command in another interactive shell.

Another approach would be to alter the environment variable PWD, like this:

$ sudo -i PWD=/root grep regex file


Go to Fonts – KDE Control Module.

Set Use anti-aliasing to Enabled, then press Configure... and try different Hinting style settings.
I use Medium.


Why won't my cp command copy whole directories?

When you use cp without any arguments, it defaults to copying files as below

 cp sourcefile destinationLocation
 #will copy sourcefile to the specified destinationLocation

But if you want to copy a directory, you need to specify the recursive argument like this

cp -R dir1 dir2 #copies dir1 to dir2
cp -R dir dir2 dir3 #copies dir1 & dir2 to dir3

Ideally you can specify as many files as you want to a single destination all separated by spaces. This here below however copies a dir along with its permissions

 sudo cp -rp /home/me /media/backup/me
 -p     same as --preserve=mode,ownership,timestamps

Alternatively you can use rsync

 sudo rsync -a /home/me/ /media/backup/me/
 -a, --archive

          Note that -a does not preserve hardlinks, because finding  multiply-linked
          files is expensive.  You must separately specify -H.

And Please don't forget the trailing slashes when copying using rsync. See the man page for each command on options of using them available on your terminal by typing man cp or man rsync


from bash (terminal emulator)

GTK_THEME=Arc-Darker-GalliumOS firefox

from a shortcut icon (~/.local/share/applications/firefox.desktop)

Exec=env GTK_THEME=Arc-Darker-GalliumOS firefox %u


$/usr/games/nsnake and /usr/local/games/nsnake

Check your PATH variable. Does it include /usr/games and /usr/local/games?

echo $PATH

If not, edit .profile to include

PATH=$PATH:/usr/games:/usr/local/games


The only solution I found was

Reboot
Turn off the bluetooth in the BIOS
Exit
Get into the BIOS again and turn it on...

This is super tedious and I'm still looking for a workaround...


bought off lease Dell, with ubuntu installed... need password

This answer on another question should help you to reset the password.

or  simply try to change old password via Grub , it works but i have gathered information from others , So please see the link first first..

If you have a single-boot (Ubuntu is the only operating system on your computer), to get the boot menu to show, you have to hold down the Shift key during bootup.
If you have a dual-boot (Ubuntu is installed next to Windows, another Linux operating system, or Mac OS X; and you choose at boot time which operating system to boot into), the boot menu should appear without the need to hold down the shift key.
From the boot menu, select recovery mode, which is usually the second boot option.
After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the ᛎ Down arrow to get to that option, and then press Enter to select it.
Once you're at the root shell prompt, if you have forgotten your username as well, type ls /home (small letters & not capitals). This will list all the user accounts in your set up.
To reset the password, type passwd username where username is the username you want to reset eg. passwd mysterio in my case.
You'll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you're done. You'll be prompted to retype the password. Do so and hit Enter again.
Now the password should be reset. Type exit to return to the recovery menu.
After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would — only this time, you actually know the password!

Hope this helps.


How Do I change the size of a Window that a Custom .Desktop Launcher Defaults to?

I don't have Chrome installed, so I'll quote "allyourcode" from this thread :

  Chrome has --window-size=width,height:
  code.google.com/p/chromium/issues/detail?id=27550 That thread also
  claims that --window-position also exists, but it doesn't work for me.
  Found someone else for whom --window-position doesn't work:
  productforums.google.com/forum/#!topic/chrome/79i1oLYhK8g

Always remember to check the help or the user's manual from the applications you're running :
man google-chrome or google-chrome --help (sometimes even google-chrome -h). The answers are usually somewhere in there (I can't check myself, I repeat : I don't use Chrome).

The usual command should be the X standard --geometry=wxh+x+y but it wasn't implemented in 2012 yet. Worth the try today though.

Placement in X standards are :

+0+0 : upper left hand corner.
−0+0 : upper right hand corner.
−0−0 : lower right hand corner.
+0−0 : lower left hand corner.

So, let's say an app should be 100 pixel by 100 pixel, on the top right corner, the command would be :

applicationname --geometry=100x100-0-0

NOTE : these are options you'll need to add to the Exec= command in the .desktop file, not a specific line. You can test these in your terminal direclty.


Partitioning after Windows to Ubuntu migration

First of all: There are two partitions, not one.

And yes, you can change the partitions. Boot a live system (so the hard drive isn't accessed) and open GParted. Resize the big partition from the right and you have space for more partitions. Resizing it from the left to the right is also possible, however, this will take a lot longer since all data has to be copied.

It is also important to mention that changing something on your partitions always comes with a risk, especially if there is a power failure and you're not working on a laptop with a battery or behind an uninterruptible power supply.


How do I get the clock to show the date?

In 10.10 the tools have been changed to dconf. First install dconf-tools

sudo apt-get install dconf-tools

then run dconf-editor

Then navigate to apps -> indicators -> datetime and then check the "show-date" checkbox.


Screen brightness control not working: Lenovo g50-45: AMD Radeon: Ubuntu 14.04

Got this issue resolved. Installed the driver "linux-amd-catalyst-14.6-beta-v1.0-jul11" provided by AMD.


getting error when inserting driver module

You have both r8169 and r8168 loaded. I suspect you will have a better result blacklisting r8169. From a terminal:

sudo -i
echo "blacklist r8169"  >>  /etc/modprobe.d/blacklist.conf
modprobe -r r8169
exit

Any improvement? It may take a reboot.

If further steps are required, I will edit my answer here.

Your blacklist file appears corrupted. Please do:

gksudo gedit /etc/modprobe.d/blacklist.conf

Remove all the lines below but not including:

blacklist r8169

The last several lines of the file should now read:

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac

blacklist r8169

Don't change anything above that point. Proofread carefully, save and close gedit. Reboot.

Now check:

lsmod

r8168 only and not r8169 should be loaded.


How to completely uninstall U1 client from OS X

We would love to have the opportunity to solve your problems with it - if you contact support at https://one.ubuntu.com/help/contact/ we will investigate.

In particular the menubar helper not quitting is a bug that I'd personally like to hear more about - if you have the time, a bug report that describes in more detail what you did and what the context was, and includes the log files from ~/Library/Caches/ubuntuone/ (those will contain file names, so you can mark it as private), would be really helpful - the place to file that bug would be here: https://bugs.launchpad.net/ubuntuone-control-panel/+filebug

If you would still rather completely remove the Mac client, here's how:

First quit the service (not just the control panel app) using the quit menu item in the menubar helper.
(If that doesn't work, force quit everything with 'ubuntuone' in its name using Activity Monitor).

If you never run the app again, the ~/Ubuntu One/ folder is just another folder and nothing will change it.

You could stop here in case you would like to try using it again in the future.

To continue and really wipe everything:

Drag Ubuntu One.app to the trash.
Remove the following data and log folders:

~/Library/Application Support/ubuntuone/syncdaemon
~/Library/Application Support/ubuntuone/shares (NOTE: this deletes shared folders, copy any files you want to keep out first.)
~/Library/Caches/ubuntuone
~/Library/Caches/sso

Remove the background fsevents monitor, which watches for changes in the file system:
from the terminal, type sudo launchctl remove com.ubuntu.one.fsevents
This will prompt you for your administrator password.
(The fsevents monitor does nothing if the syncdaemon process is not running, so this is not strictly necessary).


Long boot time due to "waiting for network configuration" - but network is configured statically

Try to change the sleep time in /etc/init/failsafe.conf. Use the below commands to change the time,

mount -o remount,rw /

sudo nano /etc/init/failsafe.conf

Save and then reboot the machine. Hope this helps.


Quitting Braid causes dual monitors to switch to mirror mode

I don't have braid myself but have found this issue else where. What I can only suggest is two workarounds:

1) run in windowed mode, as detailed in comments above, which sounds like it works.

2) create a new launch script as detailed on the WINEHQ page linked above, to use xrandr after braid quits to return the correct resolution.
/opt/braid/braid && xrandr --output DVI-0 --mode 1024x768 && xrandr --output DVI-1 --mode 1440x900

edit: changed suggested xrandr command to match OP output


How does one get the ttf-dejavu fonts to show up in xlsfonts for use in rxvt?

This is a workaround more than a literal solution to the question. I switch to urxvt (i.e. rxvt-unicode) and the following .Xdefaults lines work just fine. A similar configuration for regular rxvt could not locate the same font.

URxvt.font: xft:DejaVu Sans Mono:antialias=true:pixelsize=14
URxvt.boldFont: xft:DejaVu Sans Mono:style=bold:antialias=true:pixelsize=14


How to display a flag instead of letters as language indicator in Ubuntu 16.04

Go to: System Settings > Hardware > Input Devices > Keyboard > Layouts.

And then change it to Show Flag instead of Show Label.


There was a bug opened for this problem on Launchpad.

https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1021024

I have had this problem since Ubuntu 11.10 and it has not been solved yet..I also tried using Jupiter, but the problem is only delayed for some minutes.

Probably, the only way to solve this problem is to switch off the Ati card and use the Intel integrated card (by bios or manually)..

How to completely shutdown Ati card


Why would one want to allow in an echo protocol (port 7) from host router?

EDIT from the response below. Which is technically correct.

Port 7 (both TCP and UDP) is used for the "echo" service.

If this service is available on a computer, UDP port 7 could be used instead of ICMP to perform a "ping"


GNOME Terminal has the above functionalities.

In case you didn't know, in most terminal emulators:

Copy text: Ctrl + Shift + c
Past text: Ctrl + Shift + v

Have a look at these great alternatives

Tilda

Simple, GTK+ pop-up terminal - https://github.com/lanoxx/tilda

Guake

GTK+ popup terminal. Great multi-monitor support. - https://github.com/Guake/guake

Check out Yakuake for a Qt/KDE alternative.

Terminology

Feature rich terminal using the EFL toolkit. https://www.enlightenment.org/about-terminology

WebUpd8 article about Terminology


How to Install Imagick on Ubuntu by OpenLiteSpeed web server?

Make sure you have Imagick package installed already on ubuntu. If you dont you can install it with:

apt install libmagickwand-dev imagemagick

Then you will need to compile the extension of LSPHP73. You can follow these commands here:

apt install lsphp73-dev
cd /tmp/
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar -xf imagick-3.4.4.tgz
cd imagick-3.4.4
/usr/local/lsws/lsphp73/bin/phpize7.3
./configure --with-php-config=/usr/local/lsws/lsphp73/bin/php-config7.3
make
make install
echo 'extension=imagick.so' >> /usr/local/lsws/lsphp73/etc/php/7.3/mods-available/imagick.ini
/usr/local/lsws/bin/lswsctrl restart

This will install the lsphp73-dev package, download the PHP PECL extension, extract it, build it for that specific version of PHP, and set it up to work. You can replace 7.3 and 73 with a different version as well.


Programs installed via snap not showing up in Launcher

If you are using zsh, the snap binary and desktop directories will not automatically be added to your environment variables.  In order to solve this, I added the following line to /etc/zsh/zprofile (taken from Arch):

emulate sh -c 'source /etc/profile'

This will process your /etc/profile file with bash emulation, which in turn sources /etc/profile.d/* and sets the proper PATHs, etc.

To add only the snap directories to your path, without including all the rest of the default bash profile:

emulate sh -c 'source /etc/profile.d/apps-bin-path.sh'


Building Full Perl Support in Ubuntu SDK

You could import all modules altogether into your project with perl, where you want to set up a script. It is described here:

https://www.perlmonks.org/?node_id=798650

And here it is described how this can be automated:

https://stackoverflow.com/questions/24908530/perl-use-all-modules-from-specified-subdirectory-and-solve-its-dependencies-a

Load and autoload are two different things :

https://perldoc.perl.org/Module/Load.html

I think it is not dependent whether Ubuntu would build a full Perl SDK or if you would solve this for to create a Perl environment - suiting to you on your machine.


Headphone jack doesn't work in Windows 7 since installing Ubuntu

I am not sure this will help, but my personal experience is that it is all on windows. Check and make sure you don't have a disabled device in your sound options.

Follow instructions here to see how: http://clc.its.psu.edu/labs/windows/help/sound-is-disabled

Hope this helps!


Stuck between TTY1 and Disconnected from Plymouth

Follow these commands:

sudo apt-get update
sudo apt-get -d install --reinstall gdm
sudo apt-get remove --purge gdm

(I ran this command above, but was told by the system to use # sudo apt-get autoremove instead, after the #sudo apt-get remove --purge gdm command.)

sudo apt-get install gdm

select GDM when prompted

sudo reboot

That fixed it for me :)


Take text from a file and insert to a mysql table using a script

Not strictly Ubuntu related, but you want LOAD DATA INFILE, the documentation of which can be found at:

http://dev.mysql.com/doc/refman/5.1/en/load-data.html

Probably something like..

echo "LOAD DATA INFILE 'filename' INTO TABLE tblename;" | mysql -u root -p password dbname

You could also use dbname.tblename and then drop dbname from the mysql command, they'll be equivalent.


You may try installing the fonts-indic package .

To install it open Terminal and run

sudo apt-get install fonts-indic


Best Way To Learn How To Set Up OpenVPN On Amazon EC2/a VPS?

The best way to learn is read the official OpenVPN documentation. Really, there is no better resource, and the official documentation is not at all bad.

http://openvpn.net/index.php/open-source/documentation.html

Have a look at the example config files here:

http://openvpn.net/index.php/open-source/documentation/howto.html#examples

If you remove the (very good) comments, you are left with around 10 lines of self-explained configuration instructions. There is no easier way if you want to do it alone, on your own server.

As for the second part of the question.
If you are OK with the command line, you have installed one or two other services (like a web server for example), this should be no trouble for you.
Besides, apt does most of the job for you.

Bonus:

Here is is a fine guide on how to do it on a linode vps, which is really not at all different than any other ubuntu server installation.
http://library.linode.com/networking/openvpn/ubuntu-10.10-maverick


How come I cannot adjust mouse sensitivity on Ubuntu 13.10?

In case you want a fix for now, you can use this steps:

Open a terminal
Run the command: xinput --list --short and note the name of your device.
Set the constant deceleration for the device:

xinput --set-prop "Razer DeathAdder" "Device Accel Constant Deceleration" 5

That's it. You might have to play around with the value, 5 is good for me.

To see the current settings for the device:

xinput --list-props "Razer DeathAdder"

To turn off mouse acceleration:

xinput --set-prop "Razer DeathAdder" "Device Accel Velocity Scaling" 1

To perform the tuning automatically, create a script, run chmod +x on it and add it to start up applications list:

#!/bin/sh
xinput --set-prop "Razer DeathAdder" "Device Accel Constant Deceleration" 5
xinput --set-prop "Razer DeathAdder" "Device Accel Velocity Scaling" 1`

as described in:

http://patrickmylund.com/blog/lowering-gaming-mouse-sensitivity-in-ubuntu-9-10/

and

How to change mouse speed/sensitivity?


Do not add a global using namespace std as other users are saying, this is an extremely bad practice, learn how to use methods and namespaces instead.

cout is not a particular method, std::cout is the method cout from the std namespace and this is the correct way to write methods in C++.


How do I completely remove Ubuntu/Grub and replace it with the Windows 7 bootloader?

Use at your own risk! Messing with mbr may lead hard disk corruption. Backup your data before you start.

Boot the Windows Vista or Windows 7 installation disc in the disc drive.
Press a key when you are prompted.
Select a language, a time, a currency, a keyboard or an input method, and then click Next.
Click Repair your computer.
Click the operating system that you want to repair, and then click Next.
In the System Recovery Options dialog box, click Command Prompt.

If you successfully spawned the cmd run the following commands:

1. bcdedit /export C:\BCD_Backup
2. c: (use the letter of your DVD drive)
3. cd boot
4. attrib bcd -s -h -r
5. ren c:\boot\bcd bcd.old
6. bootrec /RebuildBcd


How can I reenable the back button in Evince on Ubuntu 13.10?

I'm seeing a back button in Evince 3.10.0-0ubuntu2 in Ubuntu 13.10:


How do I apply a cursor theme in Ubuntu 13.10

Gnome Tweak Tool does not set cursors for X. Try running:

sudo update-alternatives --config x-cursor-theme

You'll get a list of installed cursor themes, and it will ask you which you want to apply. After that, you can restart Unity/Compiz/X/Ubuntu.


ubuntu 19.10 can not lanch any file in desktop

Gnome 3.x by default doesn't have the active desktop, which means you're not supposed to have anything use anything on it except folders.
It can be tweaked with gnome tweak tool, even if you have it installed yet you can try to switch off/switch on some options.
The solution here is for 17.10 but it should be valid for 19.10 since both use Gnome 3.x:

  Can't open desktop folders by double-clicking on Ubuntu 17.10

It also can be a problem with Nautilus. You can check this one:

  Not able to Open Desktop Icons & Folders but able to open Files

Please also make sure you select option Ubuntu or Ubuntu on Wayland on the login screen (a cogwheel/gear icon on the right-hand side of the password box) and not Gnome Classic which you probably also have.


After the most recent Ubuntu update I cannot login

I think your best bet is to try to recover your password. You can do so by following the information given at the following page.

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

You may want to print this out before rebooting your system, just in case you forget a step.

Good luck


Try using xargs, e.g.

md5deep -x Hashes.txt jpg/*.jpg | xargs cp -t ~/Desktop/physical/output/jpg/

You don't need to give a SOURCE argument to the cp command because the pipe from md5deep is the 'source' of the files to copy.


libimobiledevice4, unmet dependencies and ErrorBrokenCount>0

Solved this with:

sudo dpkg --purge --force-depends libimobiledevice4

Then I ran

sudo apt-get install -f

And libimobiledevice4 installed from the repos.

All seems to be working now.

Thanks to bapoumba: http://ubuntuforums.org/showthread.php?t=2234500


In 2018 and with Ubuntu 16.04 installed, can I still make a backup of the MBR with dd?

If you're booting with UEFI, your disk likely uses GPT instead of MBR partitioning, so the MBR is not that useful. See this U&L post, which suggests using sgdisk command instead to backup GPT metadata.


"Applications can no longer access your Online Account"

If you turn off the "Access your Google Calendar" option under Evolution Data Server the account will stay authorised after you restart your computer. Admittedly this solution isn't ideal especially if you use google calendar but it at least partly fixes the problem and removes the need to reauthorised on every restart.

And press again "Grant access" if comes to the top-bar. Changing only the option is not enough, which it asks at least with 2-step authentication.


How do I install drivers for an Intel HD Graphics?

The Intel cards are automatically detected and installed in Ubuntu, no need to install further drivers. See this question if you want them to be recognised in System Info.

However, if you feel that you want to install a more recent driver (I dont recommend this if you do not know how to recover from a broken graphics driver) you can add the xorg-edgers fresh X crack PPA and update your system with the packages from there.

To do that open a terminal and use these commands

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update && sudo apt-get upgrade

Reboot with

sudo reboot

Again, do this only this with extra caution!


What are you sending into your SPDIF input ? i ask this because there are subtypes and varients of SPDIF and you will need to match them up.

You can send a single PCM stream or an encoded bitstream , the soundcard will almost certainly not autodetect this and needs to be told what to expect.

There is also consumer and pro spdif , which can both be called SPDIF but are actually AES3.
http://www.sweetwater.com/insync/pro-consumer-s-pdif-standards-explained/

This thread suggests that SPDIF in is not likely to work on these cards under linux - https://ubuntuforums.org/showthread.php?t=1655003

Professional grade audio cards can be cheaply bought on ebay and they will offer better spdif support and more active development than creative labs ones. Edirol , M Audio and Echo all make excellent soundcards that work with linux really well.


How can i learn ethernet device buffer size on ubuntu 11.10

Cache on ethernet cards is usually around a handful of kB, but you won't be aware of it as normal user as your video is streaming to your harddisk, so in this case it's about how much free space you have on that.

$ lspci | grep -i eth | cut -d' ' -f1 | while read d; do lspci -vvvs $d; echo; done
00:19.0 Ethernet controller: Intel Corporation 82567V-2 Gigabit Network Connection
        Subsystem: Intel Corporation Device 0028
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Region 0: Memory at d0700000 (32-bit, non-prefetchable) [size=128K]
        Region 1: Memory at d0724000 (32-bit, non-prefetchable) [size=4K]
        Region 2: I/O ports at f0c0 [size=32]
        Capabilities:
        Kernel driver in use: e1000e
        Kernel modules: e1000e

I'm guessing here as most vendors do not easily share their datasheets. Don't get your hopes up, as size=128K probably being the firmware of the card and size=4K being the its on board cache.


Realtek driver rtl8723bu on Chuwi Herobook Ubuntu Mate 18.04

Suggest you revert to the in-tree driver with
sudo rm /etc/modprobe.d/blacklist-rtl8xxxu.conf
which reverts to the driver officially accepted in the kernel.


Search for the app in the software center, and you will be able to write a review of it there.  Also, this  may be helpful because it is a Google product.


Gateway routing failure after upgrading from 14.04 to 16.04

Well, I have an answer of sorts, though I am not sure why.

Originally, my pppd setup included defaultroute, but I noticed in the Ubuntu PPPoE setup guide that the base setup included replacedefaultroute.

I have added that to the pppd peers file, and reinstated other things as they were before, and now it works.

For anyone else in this situation: although the gateway networking worked straight away, I needed to do shorewall restart to resume internet access from the internal network.


Generate private key encrypted with password using openssl

You can add the "passout" flag, for the "foobar" password it would be: -passout pass:foobar
In your first example it become openssl genrsa -passout pass:foobar -out private.key 2048
You can also use: openssl genrsa -aes256 -out private.key 2048
This will ask you to enter a passphrase.
You can read more here: https://stackoverflow.com/questions/4294689/how-to-generate-an-openssl-key-using-a-passphrase-from-the-command-line


Alt invokes the Common User Access menu in many Ubuntu and Windows apps. It's not an operating system function. Turning that off is application-specific; you would need to consult each app where that occurs to disable it.


How can I make a persistent USB install read-only/unable to be modified after setup?

How to make a persistent USB install read-only

It is possible to do what you want using a modified Guest User account

Install lightdm:

sudo apt-get install lightdm

The install process will ask to remove GDM.

At popup select lightdm as display manager.

For a grub2 booters with persistent casper-rw partitions, such as mkusb:

Open casper-rw/upper/etc/lightdm/lightdm.conf and change allow-guest=true. Now there will be a Guest account.

For Syslinux booters with persistent casper-rw files such as UNetbootin and Rufus:
First mount the casper-rw file:

sudo mkdir /media/casper

sudo mount -o loop casper-rw /media/casper/

Then edit casper/upper/etc/lightdm/lightdm.conf and change allow-guest=true
A guest account will be added to boot options.

Modifying the Guest Account

You may use an existing User Account, or create a new User Account, to use as a Live basis for customizing the Guest Session.

Make a directory for guest session, if one does not already exist:

sudo mkdir /etc/guest-session

Create a symbolic link:

sudo ln -s /home/{NAME} /etc/guest-session/skel

Where {NAME} is the name of the User Account you wish to use as a basis.

Any changes made to the user account will appear in the guest account.

Any changes to the guest account will be deleted at end of the session.

User {NAME} can be hidden at login:

To hide the user open /var/lib/AccountsService/users/{NAME}
Edit line to SystemAccount=true

See also Add Guest user to Persistent flash drive

Customize Guest Session


New (computer-illiterate)Ubuntu user needs information

It is not possible to use just a cell phone to create an SD card that will install Ubuntu

First, Not all laptops have SD card readers and even if yours have one, there is no guarantee that your laptop can boot from the SD card.

Second, downloading the file into an SD card using your phone is not enough. The card needs to be prepared using the downloaded file and other software so that your laptop can boot from the SD card. This is not possible using only a cell phone.

Internet and the operating system are not the same thing

Think of your laptop as a car. The operating system is the engine. The internet is all the paved roads in your country and beyond. You don't need the internet to enjoy your car. You can install an air-conditioner in the car. That would be a program in your laptop. Then you can turn the engine on and enjoy the cool air without going anywhere. Your children can turn on the lights, and honk the horn. You can drive it around in your yard, if you have a big yard. But if you have no engine in the car, the air-conditioner, lights, horn will not work. These are different programs in your laptop.

What to do?

If you really need to install Ubuntu in your laptop, you will need a working computer that is connected to the internet. This can be at your friend's home, at an internet cafe, or at a public library (depending on the country you live in). Then you will have to follow the instructions about how to prepare a Live-USB stick using the working computer. When that is ready you will have to follow the instructions about how to boot your laptop using the USB stick you have prepared. This is like changing or putting a new engine in a car. I suggest you read a lot before you try.

Alternately, go to a book store and find a book on Ubuntu. If possible leaf through the book to make sure that if has instructions for how to install Ubuntu. Some of the books include a DVD with Ubuntu in it. If you find one, you can use the DVD to install Ubuntu without the Internet.

Best of luck.


Trying to install smlnj on Ubuntu 10.04, REPL not working

Try re-installing, running these commands:

For 32bit:

wget http://launchpadlibrarian.net/48337000/smlnj_110.72-1_i386.deb; sudo dpkg -i ./smlnj_110.72-1_i386.deb; rm ./smlnj_110.72-1_i386.deb; sudo apt-get -f install

For 64bit:

wget http://launchpadlibrarian.net/48558006/smlnj_110.72-1_amd64.deb; sudo dpkg -i ./smlnj_110.72-1_amd64.deb; rm ./smlnj_110.72-1_amd64.deb; sudo apt-get -f install


Yes, you can download the 11.10 iso, install it from a LiveUSB, and upgrade to 12.04 using the Update Manager:

Open the Update Manager from the dash
In the bottom left corner, press the "Settings" button
In the dialog that opens, click on the "Updates" tab
At the bottom, select "For any new version" in the dropdown menu for "Notify me of a new Ubuntu version:"

Now, when you close the settings, and refresh the Update Manager via the "Check" button, it should alert you that there is a new version to be installed at the top. Press the upgrade button, and you're on your way!

Sources: Upgrade Ubuntu - ubuntu.com


There is something wrong here - please try and recreate another USB installer - see official article about installing ubuntu from USB as a guide. To make sure use the other option of try ubuntu without installing to see if boots. If it does not boot then I would definately recreate the USB stick. Lastly make sure you are using a larger capacity memory stick for the bootable disk - I would recommend anything from 4GB upwards just to be sure. Good luck


I'm using autologin in 15.04 because I've got an nvidia optimus card and SDDM login screen doesn't work for me (after typing password it leaves me with a blank screen).

You've got to go to Configuration Settings and in the option SDDM (login screen) go to the "Advanced" label. There you've got to check "autologin" and choose the user to do it.

I've got the two things (the one you did and this one) and it's working fine.


Some people seem to have similar issues [1] [2] with recent Intel GPUs. One thing that seems to help is to set kernel boot parameter intel_idle.max_cstate=2 (or even =1). To do that:

Open your /etc/default/grub as root
Add intel_idle.max_cstate=2 to the GRUB_CMDLINE_LINUX_DEFAULT string. For instance,
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_idle.max_cstate=2"
Run sudo update-grub (or similar command, depends on your distribution)

The downside is, that your GPU will drain slightly more power even when it  is idle.

Furthermore, the stability of the driver is reported to increase if you add:options i915 semaphores=1 to your /etc/modprobe.d/i915.conf file. To do that, run:
echo "options i915 semaphores=1" >> /etc/modprobe.d/i915.conf

Least but not last, update your BIOS and use the most recent Linux kernel for your distribution.


tracker-store and tracker-miner-fs eating up my CPU on every startup

Scripting solution to disable it permanently on Ubuntu 16.04

As mention in the comments, files mention in this post no longer exist in 16.04. You can use the following script (source):

echo -e "\nHidden=true\n" | sudo tee --append /etc/xdg/autostart/tracker-extract.desktop /etc/xdg/autostart/tracker-miner-apps.desktop /etc/xdg/autostart/tracker-miner-fs.desktop /etc/xdg/autostart/tracker-miner-user-guides.desktop /etc/xdg/autostart/tracker-store.desktop > /dev/null

gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2  # Default: -1
gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false # Default: true

tracker reset --hard

These are confirmed bugs on Launchpad: 911981, 925948, 1063255.

What does these processes do?

  Tracker is a synergy of technologies that are designed to provide a
  highly sophisticated, innovative and integrated desktop.

  Tracker provides the following:

  Indexer for desktop search (for more details see this spec : https://wiki.ubuntu.com/IntegratedDesktopSearch)
  Tag database for doing keyword tagging of any object
  Extensible metadata database for apps like gedit and rhythmbox which need to add custom metadata to files
  Database for first class objects allows using tracker's database for storage and implementation of First Class Objects and the Gnome 3.0
  Model.

How to get rid of processes?

  Disabling tracker for globally (for all users)

  Edit /etc/xdg/autostart/trackerd.desktop file with root privileges (sudo -i gedit /etc/xdg/autostart/trackerd.desktop)
  Add Hidden=true to the end of the file
  Do the same for /etc/xdg/autostart/tracker-applet.desktop if you want

  Disabling tracker for your user only

  Enter the directory ~/.config/autostart, create it if it does not exist
  Create a file named trackerd.desktop
  Paste the following into the file, save and exit:

[Desktop Entry]
Encoding=UTF-8
Name=Tracker
Hidden=true

Source: https://wiki.ubuntu.com/Tracker


By default it is in user home directory and and named hs_err_pidxxxx.log where xxxx is the PID number.


Can't install Ubuntu 10.04 with 12.04 already installed

Unified Extensible Firmware Interface (UEFI) Boot was enabled in my BIOS.  After disabling it, I could boot from the 10.04 CD / DVD.  Media and burn had no impact.


This must not have to do with pulse audio, rather, with ALSA (the linux sound driver).

Try configuring the ALSA driver with this command: amixer sset Master unmute or if that don't work, fire up a terminal and type alsamixer which uses an ncurses gui to configure.

After you have done any configurations, type in the terminal alsactl store and be sure to add the ALSA daemon in your init configuration files.

If you would need more information, you could find it here. It's very accurate, but be careful with the part about the init config files because Arch uses different config files to my knowledge than Debian.


How to make my phpbb index the default "index.html" file with Apache2?

I have used vBulletin and XenForo and unfortunately have little experience with phpBB. But I do have a solution, redirecting www.pnweuros.com to www.pnweuros.com/phpbb via .htaccess.

Create a .htaccess file on your root directory, and copy and paste the following code in the file. http://pastebin.com/kP0H4iJw
Make the changes to .htaccess as instructed by the comments.

NOTE: Comments are anything in the code begining with a #.


ubuntu 16.04. pc Freezes for unknown reason

I had this problem. Most of times it is because lack of installation of Graphic card and lack of compatibility of (at least) UBUNTU with Nvidia VGAs. try to install your VGA driver. take a look here, If you use Nvidia Graphic card you can see this too.


The failure that you see is because this is a virtual machine. The ipmi_si related stuff will only work on real hardware, so the error doesn't really affect your case scenario and you don't really need a fix for it.

A good idea would be if you were able to post the output of /proc/cpuinfo so that we can make sure that the module above is not loaded on Virtual Box VM's.


Updated 16.04 server to 18.04.1, now I see weird errors about missing files, failing to resolve dns, failing to connect to bus

I had the same error on one OVH VPS server after upgrading to 18.04.01.
I have other very similar servers working fine after the upgrade, which helped me fix this.

Went down a rabbit hole and noticed:

sudo systemctl
...
systemd-logind.service     loaded failed failed
...

Which lead me to this site:
https://forum.proxmox.com/threads/systemd-logind-failures.44219/

I confirmed that my /var/run was not sym linked to /run , and it was on the other servers. This one had files in both places.

I symlinkd almost as suggested, fixing "directory not empty" errors in every line with:

mv -f /var/run/sudo/ts/* /run/sudo/ts/; rm -rf /var/run/sudo/ts;
mv -f /var/run/sudo/* /run/sudo/; rm -rf /var/run/sudo;
mv -f /var/run/* /run/; rm -rf /var/run;
ln -s /run /var/run;
reboot

This step solved parts of the problem, such as:

$ systemd-resolve --status

But the DNS resolution was still failing, but working fine using resolve:

$ ping google.com
ping: google.com: Temporary failure in name resolution

$ systemd-resolve google.com
google.com: 216.58.213.174

As per the suggestion in https://superuser.com/questions/1317623/nslookup-failed-but-systemd-resolved-works

I changed my /etc/resolv.conf symlink from /run/resolvconf/resolv.conf to /run/systemd/resolve/resolv.conf

$ ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Feb 24  2017 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

$ sudo rm /etc/resolv.conf
$ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

$ ping google.com
PING google.com (216.58.204.238) 56(84) bytes of data.
64 bytes from par21s06-in-f14.1e100.net (216.58.204.238): icmp_seq=1 ttl=53 time=9.11 ms

Everything is working now.


Okay so i have just found i need to run this command:

snap connect gitkraken:ssh-keys


Can anyone tell me how to make an image of a disc in ubuntu that later I can mount and use?

The GUI application to make ISO or other images of a disc in Ubuntu is Brasero.

Here's a short tutorial video:
www.youtube.com/watch?v=GP6nyA-Pvk8


If you need to expand your /boot, you should shrink a partition next (or previous) to the /boot partition.

Assuming you've partitioned your disk like /boot (sda1) and / (sda2):

Backup data. I've never lost data when using GParted, but you may have less luck if there is a power failure or some other hardware error.
Boot into a Live CD without mounting any filesystems
(optional) Update the software sources and GParted, this ensures that you've the latest version from the repos available:

sudo apt-get update && sudo apt-get install gparted

Shrink sda2 on the left side to allocate space for /boot
Expand sda1 to fill the allocated space.
Apply the changes

No further actions like grub-install are required since you did not remove the partition and hence the UUID and partition device number did not change.


How to make Firefox open download folder in foreground?

This behaviour of Unity (witch is a mess) can be changed from the command line, open a terminal and type:

dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 0

To restore the default value:

dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 1


Interaction between WPA_Supplicant and Netplan's YAML Files (if any) - 20.04 Wireless Networking

Wasn't worth the time to troubleshoot, TBH, so leaving this here for others.  I reimaged the microSD card following these steps:
https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#3-wifi-or-ethernet
To me it is a bit unacceptable that this is the only easy way to make wifi work (during installation/system setup using network-config file).  But it's a workaround and I can now harden the system and actually start the project I intended to do on the Pi in the first place.


You need to install Nvidia drivers. Run in terminal

sudo apt-get install nvidia-352 nvidia-prime

and reboot.

And it is not a bug at all.


I have had similar problems on my pc I had 2.0 ports and 3.0 ports all the 2.0 ports work perfectly, I am able to receive power from my 3.0 ports, this problem persisted back when I ad windows 7, Ubuntu 12.04 and 13.04, I haven't had much luck in getting it to work.

One tip I came across is that it needs to be activated in BIOS, I tried that with my ASUS P8-z68 V MOBO. but I am still having issues, I think I may have to update bios, I recommend you try and look in BIOs under Advanced and see if there is an option for usb 3.0.

Sorry I cant be of any more help.


The bootloader on the iso would not know how to fetch the rest of itself from an iso file on another file system, so even if grub didn't complain, it wouldn't work.

Which is maybe why grub complains.

If the bootloader on the iso is multiboot compliant, AND if it will be able to look on your file system to find the iso and continue booting from there, THEN maybe you could use the grub2 multiboot command to help.

But I doubt that windows can do that.


Assuming you are using normal ssh command it is the additional parameter -p (see the man page of man ssh). E.g:

$ ssh -p 2584 user@host


Managed to fix the issue.I had to add export DISPLAY=:0 at the top of the script as this task being run by cronjob and its calling xserver.


Fetching Ubuntu's OpenPGP keys for verification fails with "not a key ID: skipping"

This seems to be same issue others had with GnuPG on Windows and Mac OS X, reported on Super User in the question "gpg2 not a key id: skipping” when trying to download public keys":

  While the command works fine under GnuPG on Linux, it fails in
  Windows. I've been able to make it work by removing all spaces:

gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 843938DF228D22F7B3742BC0D94AA3F0EFE21092

  C5986B4F1257FFA86632CBA746181433FBB75451

  (the quotes are not required any more, either; so I removed them).

  If you really want to verify against signatures from Ubuntu, you
  obviously shouldn't copy/paste this specific command line as is, but
  remove the space from the original Ubuntu page on your own.

The solution will be the same, and you should get the command running by removing the spaces in the fingerprints (the hexadecimal numbers).


How to configure postfix to test site on LAMP virtualhost?

Install and access webmin http://www.webmin.com/
If it is a virtual machine change the network mode to NAT to access internet or make sure your LAMP machine has internet access
Install Dovecot service. It will be our entry IMAP/POP3 mail server

by just searching in webmin you can install Dovecot
Install BIND DNS service.

Configure the DNS server

First. We created the "Master Zone": miempresa.com and configure the following records

A: ServerMail.mydomain.com 192.168.10.2

MX: mydomain.com  ServerMail.mydomain.com (10)

Create the "inverse area" of the previous domain
When resolving a name ask a DNS server of the Internet, for example in 8.8.8.8

SMTP server settings

First create user 'mailuser1'  with password 'a' group 'users'
Postfix server > Configuration of general options:

What domain name to use for outgoing mail: mydomain.com

What domain name to use for incomming mail: mydomain.com

Send outgoing mail by machine: Deliver directly

Number of machines of this Internet mail system: Default

local networks: 127.0.0.0 / 8, 192.168.10.0/24
Test that its working. We can do it from Webmin > Servers > Reading Usuarios mails

just send an email to your email and check that you receive, you may be spam.


Which packages are installed or removed on a Ubuntu system is tracked by the dpkg package.
To reproduce a set of installed packages from one machine to another, do this on the first machine:

sudo dpkg --get-selections > installed-packages

This will write out all installed (and removed) packages to a file installed-packages. Transfer this file over to the other machine, and there do:

sudo dpkg --set-selections < installed-packages
sudo apt-get dselect-upgrade

(you may need to manually install a package called dselect first)
This will set the selected packages to "install" and, in the second step, actually install them.

Doesn't work for machines with different sources.list files, or when PPAs on the first machine have been installed, but in general you are replicating the installation of the first system to the second.


Dekko: Press the menu on the top left → email settings. Click on the envelope/account name and slide it to the right. A red trash symbol will appear and you can delete the account.

Uninstall: There are two ways. You can visit the Ubuntu Store, search for the app, go to the preview screen and choose to delete it. The other way is via the home screen. Just press the icon of an installed app for a few seconds and you'll directly open the preview screen of the app.

Wiki: We've put up a wiki at https://wiki.ubuntuusers.de/Ubuntu_Touch/ (german) you can use it via translate.google.com or just download a manual from bq: http://www.bq.com/de/support/aquaris-e5-ubuntu-edition It's hidden behind "Benutzerhandbuch". Available languages are english, french, german... and several more.

Modify: You'll have to ask in a more specific way. Perhaps the manual will answer it for you. Otherwise ask another question concerning the app.


Experiments and information from post server providers result in:

Port 995,
SSL encryption,
Authentication Type: Password.

It works OK for both pop3 servers I use.


How to get a Wacom Bamboo tablet working properly in an Ubuntu VM on a Mac?

Perhaps change from "Absolute" positioning to "Relative", then it should behave more like a mouse?

In xterm:

xsetwacom list

Find your stylus device id # in the list

xsetwacom set $ID "Mode" "Relative"


It would be tedious and lengthy to patch the module alx without any form of internet connectivity. On the other hand, alx covers your device in the version included in Ubuntu 15.10:

$ modinfo alx
filename:       /lib/modules/4.2.0-16-generic/kernel/drivers/net/ethernet/atheros/alx/alx.ko
license:        GPL
description:    Qualcomm Atheros(R) AR816x/AR817x PCI-E Ethernet Network Driver
author:         Qualcomm Corporation, <nic-devel@qualcomm.com>
author:         Johannes Berg <johannes@sipsolutions.net>
srcversion:     25B6ABE36E6CB50C1A7E6DF
alias:          pci:v00001969d000010A0sv*sd*bc*sc*i*
alias:          pci:v00001969d000010A1sv*sd*bc*sc*i*
alias:          pci:v00001969d00001090sv*sd*bc*sc*i*
alias:          pci:v00001969d0000E0A1sv*sd*bc*sc*i*
alias:          pci:v00001969d0000E091sv*sd*bc*sc*i*
alias:          pci:v00001969d00001091sv*sd*bc*sc*i*

As you can see, 1969:e0a1 is listed. I suggest you install the beta 2 version of 15.10: http://releases.ubuntu.com/15.10/


ubuntu 14.04.02 stuck after installing cuda 7

I suggest you to use the installer (.run file) from Nvidia's website and run it in text mode. I have almost the same specifications and here is what I have done for installing CUDA [link].

If you follow my steps, you will use Intel for display and Nvidia for computing. It has been working fine on my laptop for many month.


Ubuntu doesn't boot and stuck at purple screen

Did you update lately?
I updated today and was not able to boot afterwards. First, you can try to boot in an older kernel in Advanced Options.
For me, what worked was adding dis_ucode_ldr.
It's seems like it occurred from the latest intel-microcode update so you can also have a look at topic related to that. Hope it will help you.


Why does `/sbin` not included in $PATH for new user?

The /sbin directory is for system maintenance and/or administrative tools. So only administrators are allowed to use it and you don't have this directory in your $PATH. You can read more in the Filesystem Hierarchy Standard FHS.

The right place to add new value to $PATH variable are user's ~/.profile file or system /etc/profile file. Usually there is already a line with $PATH so you need just to add /sbin to the start of the line. Or just add this line at the end of the file:

PATH="/sbin:$PATH"

Also you can edit /etc/skel/.profile file. This file will be copied to a user's home directory when you create a new one. But if you want to have this feature for all users, change /etc/profile.


GNU GRUB Version 2.02~ beta 2-9 (booting from USB)

You will not be able to fix anything from that prompt (it is high-level kung-fu).
You need to boot again from installation medium and do a procedure called "grub repair". A lot of tutorials on the net, for example this one. If it fails again, ask another question with details on what you do and what errors you see.


wake up ubuntu 13.04 from sleep using usb

Make sure that wake on USB is active in your BIOS settings.
You can easily enable wake for USB devices with these handy scripts (it creates the u-dev scripts for you): http://bernaerts.dyndns.org/linux/74-ubuntu/220-ubuntu-resume-usb-hid


program run with GNOME Alt-F2 dialog doesn't have focus

Seems to have resolved on it's own

  Strange, cannot repro anymore. I don't know what changed.


How do you add slide presenter notes in LibreOffice Impress?

Click View > Notes in the menu bar (move the cursor to the top of the screen to reveal the menu bar). At first it looks like only something to be displayed if printing the slides, but after adding notes in the text section, press F5 to start the presentation, click the 'Notes' icon at the bottom of the presenter view, and you'll find the notes there to be read during the presentation.


How to type lines of command for python?

I think you can write like following lines.

>>>if True:
>>>  a = 10
>>>  b = 5
>>>  c = a + b
>>>  print a, "+", b, "=", c
>>>

p.s. I think there is other way is that you define a function.

>>>def testfunc():
>>>  a = 10
>>>  b = 5
>>>  c = a + b
>>>  print a, "+", b, "=", c
>>>
>>>testfunc()


Ubuntu 16.04 Desktop Menu Bar and upper panel missing, windows cannot be dragged, closed etc

Check the unity package details:

dpkg -l | grep unity

If 'unity' is listed in the output, proceed with the next step. If not, install it (and its dependencies):

sudo apt-get update
sudo apt-get install unity

As you mention you installed ubuntu desktop, then also I suggest perform this:
Check the ubuntu desktop package details:

dpkg -l | grep ubuntu-desktop

If 'ubuntu-desktop' is not listed, install it:

sudo apt-get update
sudo apt-get install ubuntu-desktop

Restart your system once, if problem not solved then reply with the outputs.


Polish characters in a pdf file not rendered correcly in evince

Try Install MS TrueType Fonts as shown below:

$ sudo apt update
$ sudo apt install ttf-mscorefonts-installer

Microsoft’s End user agreement wizard will appear. Click OK to continue.

After installing the fonts, you need to update the font cache using command:

$ sudo fc-cache -f -v

Alternatively, copy all Windows fonts to /usr/share/fonts directory and install the fonts using the following commands:

$ mkdir /usr/share/fonts/WindowsFonts
cp /Windowsdrive/Windows/Fonts/* /usr/share/fonts/WindowsFonts
$ chmod 755 /usr/share/fonts/WindowsFonts/*

Finally, regenerate the fontconfig cache using command:

$ fc-cache

Instruction is from: https://www.ostechnix.com/install-microsoft-windows-fonts-ubuntu-16-04/


How to deploy Juju Services Programmatically?

Yes there is a websocket-based Juju API. You can use it from Go directly (see http://godoc.org/launchpad.net/juju-core/state/api), or you can use Juju Deployer Python wrapper around the API. It supports stack-like simple and complex scripted deployments.

The best way will be to get the source locally with bzr branch lp:juju-deployer and then see the README file with instructions how to use it. You might build an up-to-date Sphinx documentation by going into the doc/ directory and running make singlehtml (or your preferred format - run make to see a list of supported targets).


LibreOffice Writer: How to give a colored background to a table?

Select your column/line/case, you will see a little bar at bottom

You can see some icon, and select this one :


Can't Install Runescape (Broken Packages?)

Sorry that this response is a bit late, I just happened upon your question.

I notice from your other package sources that you are running Ubuntu Xenial Xerus.
It does not seem that Jagex has updated their package to Xenial yet, so you should start by logging in to their website and contacting Runescape Customer Support and requesting that they update their package.  Ideally, they would have released an update to this package while 16.04 was in testing.
The dependency that the installer is looking for, libglew1.10, is not in the xenial repository.  It has been deprecated and replaced with libglew1.13.

If you are set on running Runescape before Jagex updates their package, you can install the deprecated libglew1.10 package from the trusty repository manually.  Try downloading the package for your architecture from libglew1.10 page of the the Ubuntu Package Repository. Once you have downloaded the package install it (replace with the actual path to the file):

sudo dpkg -i /package/path/name.deb

and then try installing the runescape-launcher package again.

sudo apt-get install runescape-launcher

I was able to get to character creation in the game with no issues.

We don't have the libglew1.10 package updated to xenial, so you will probably get a very annoying ldconfig response indicating that those libglew1.10.so files are not symbolic links to other locations as they should be.  While we could fix that, it could make it harder to remove the manually installed libglew1.10 package whenever Jagex releases a xenial-supporting package, so I chose to leave it.


It seem to be a bug due to samba update : https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1675698

Wait for correction...

I rollback my version from 4.3.11 to 4.3.8 waiting patch release.


Installing Ubuntu on a Windows CE 6.0 EzBook PC (ez-72a)

There is no BIOS on that machine because it's not an IBM compatible PC. It's an ARM device. Even if you could get the usb to boot, the PC versions of Ubuntu (i386 and x64) wouldn't work because the chip is completely different. You'll need an arm build, which luckily for you is almost done:

https://wiki.ubuntu.com/ARM/OMAP

Unfortunately, the process for creating an image is very specific to each piece of hardware and unless your a programmer it might be a case of waiting until someone makes an image you can install.


Run the below commands on terminal to poweroff,

sudo shutdown -P now

OR

sudo poweroff

OR

Click on the gear icon in the top-right corner  and  select Shutdown option from the list.


Phpmyadmin error HTTP 500 after fresh install

Let's try installing PhpMyAdmin dependencies. I presume you're using PHP 7.
sudo apt-get install php-mbstring php7.0-mbstring php-gettext

Then restart Apache:
sudo apache2 restart


Installing a program over again using terminal

No problem at all. The old version was replaced with the new one. If you had apt-get update before install it would end up in the same state as it is now.


I solved it by using this command:

cd /etc/openvpn/easy-rsa; . ./vars; ./build-key --batch username


kubuntu 16.04: How to disable "tap to click" (using touchpad)?

Under "Touchpad Settings" there should be a "Taps" tab where you can disable "Mouse Click Emulation" by setting the selection for "One finger:" to "No action" from the dropdown menu.


Package installed but not installed?? (apt-get)


gitk should be invoked from command-line in your root git repository. You should look into git-cola for more featureful git gui.


How to set default paragraph style to "normal" in email replies in Evolution?

The only answer found so far, thanks to David:
Evolution retains the formatting of the original message, some other clients auto-wrap and others don't and you have to deal with what you receive from them.

I don't think there has ever been a way to automatically change this but you might be able to "hack" one of the default Evolution config files (somewhere).


If the installation procedure is not customized, the binary is at

/usr/local/bin/noip2

The configuration is at

/usr/local/etc/no-ip2.conf

You can find more information in README.FIRST, which should be in noip source directory.


To have php 5.3.2 + Openssl 1.0.1 + Ubuntu 16.04

A lot depends on if you want to only use officially supported packages.

There is nothing stopping you removing the PHP 7 package and compiling PHP 5.3.2 yourself and linking against OpenSSL 1.0.2 if you have the knowledge on how to do so. It may be easy or hard depending on API changes in dependencies. It would probably worth using 5.3.29 though, which I understand should be compatible with your 5.3.2 code but have a few more fixes.

http://www.php.net/releases/#5.3.29

I would check for security issues that have come up since release though before putting it live. It is not supported anymore IIUC so you would be on your own to patch it.

Because of the lack of security patches I would also advise updating the code base to something more recent ASAP. PHP publish migration guides (e.g. http://php.net/migration54) and you could follow each one until you were supported again.

I am not personally aware of any packages (official or otherwise) that would let you avoid having to compile yourself.


IIRC you cannot send a "ping" packet to a specific port.

On a port, there is a "software" listening. This software will implement it's own protocol - HTTP, SMTP, FTP, or even some own protocol.

Those servers won't respond to an ICMP packet. ICMP packets need to be sent to the ICMP port.

However, you may just try to open a TCP connection (telnet host 12345) and see if the connection is successfully.


18.10: how to set system default webcam?

I had the same problem, and ended up disabling the usb device for the IR camera, since I don't actually need it.
My solution is here: How do I change the default webcam?


Ubuntu-touch facebook notifications are not received

I'm using Ubuntu Touch development channel on my Nexus 4 and I've never had Facebook notifications come through. I don't believe this is a bug per se, but I do believe we'll need to wait until there's a native app for Facebook notifications.


How to control left and right volume of my headphone in kubuntu seperately?

Yes, KDE has such an application. It's kmix.

Install it with

sudo apt install kmix

Open it from Menu.
Go to Playback Devices tab
Right click on the volume slider
Select from the popup-menu Split Channels
Apply your preferred settings.


Webcam's Image Upside Down and with Zoom

Hello,

System: Ubuntu 12.04, skype 4.1.0.20

Surely you have checked it, but just in case:

Options > Video devices

There is a check box that says:

Disable Autoexposure (darker video, higher frame rate).

For my case I unchecked it and I could see the remote desktop well.

I hope this helps!


I was able to fix this. I have haproxy and dnsmasq running in Docker, so I need to assign a second ip to the loopback interface and add a nameserver. I had done this using netplan as such:

network:
  ethernets:
    lo:
      renderer: networkd
      addresses:
        - 10.10.10.10/8
      nameservers:
        addresses:
          - 10.10.10.10

Everything works correctly on startup, but after resuming lo only has the IP 10.10.10.10, not 127.0.0.1.

To fix this I added the normal ip's to the netplan and everything works as expected now.

network:
  ethernets:
    lo:
      renderer: networkd
      match:
        name: lo
      addresses:
        - 127.0.0.1/8
        - ::1/128
        - 10.10.10.10/32
      nameservers:
        addresses:
          - 10.10.10.10

I don't know if this is the most idiomatic way to do this in Ubuntu, but it is working for me.


Have a look at Easytag .

sudo apt-get install easytag

The scanner option (Scanner -> Rename Files and Directory) is capable to re-arrange your files based on parameters from the ID tag.

Example:

Artist/Track# - track name.ogg`: `%a/%n - %t

would result in:
Prince/07 - Purple Rain.ogg


No wireless internet connection Ubuntu 12.04 LTS

What version of Ubuntu have you installed? I answered another question similar to this one. I even had this problem myself on my Dell Inspiron. You should try to create a 'wired' connection and then create your wireless connection.

Ubuntu 12.04 appeared to have a bug, strangely when you are asked for the 'password' Ubuntu automatically throws a failure instead of prompting for the password. This seems to occur on 12.04 only, prior versions were fine for me.


clang++ fails to compile simple hello world c++ program

I found to resolve this issue that after installing libstdc++-4.8-dev package, I need to specify the  include paths and lib path to the clang++ like this.

clang++ -I/usr/include/c++/4.8/ -I/usr/include/x86_64-linux-gnu/c++/4.8 -L /usr/lib/gcc/x86_64-linux-gnu/4.8 test.cpp -o test


Recovering the command used by a launcher icon

You have to look for the Desktop file in ~/.local/share/applications/ and/or /usr/share/applications/, open it and then look for the part Exec=.

For example if you want to know the command that launches gedit

$ cat /usr/share/applications/gedit.desktop
[Desktop Entry]
Name=gedit
GenericName=Text Editor
Comment=Edit text files
Exec=gedit %U
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
Icon=accessories-text-editor
Categories=GNOME;GTK;Utility;TextEditor;
X-GNOME-DocPath=gedit/gedit.xml
X-GNOME-FullName=Text Editor
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gedit
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.10.4
X-GNOME-Bugzilla-ExtraInfoScript=/usr/share/gedit/gedit-bugreport
Actions=Window;Document;
Keywords=Text;Editor;Plaintext;Write;
X-Ubuntu-Gettext-Domain=gedit

[Desktop Action Window]
Name=Open a New Window
Exec=gedit --new-window
OnlyShowIn=Unity;

[Desktop Action Document]
Name=Open a New Document
Exec=gedit --new-document
OnlyShowIn=Unity;

You are interested in Exec=gedit %U


Do Dell Laptop Touch Screen Monitors Work with Ubuntu 12.04/12.10?

Basically, no, in my experience (I have a 2013 XPS 15 w/ touch screen).  There's multiple minor problems that make it unreliable.  First, if you have multiple monitors plugged in, the touches on the screen will go to your "main" monitor, even if that isn't your laptop screen (obviously not a problem when you don't have external monitors plugged in).  Even when the touches are on the right screen, they rarely do what you want them to do.  For example, dragging your finger on a webpage selects text on the page, it doesn't scroll the page.

This could all be improved in newer versions of the kernel and/or ubuntu updates... but I wouldn't rely on it working.


Unable to reinstall 13.04, option missing from LiveCD

If you encrypted your files when you installed ubuntu you cant save your files.


How to Install a C/C++ compiler in Ubuntu 14.04LTS?

install compiler(s)

C and C++ and make etc.

sudo apt-get install build-essential

Fortran

sudo apt-get install gfortran g77

to edit source code

use any texteditor. From the graphical user interface for example use kate. From the commandline use nano:

nano main.cpp

to compile

g++ main.cpp -o main


How do I use MAAS to create a Debian Image?

More complete answer:

Download a debian cloud image in raw format.

Mount the image

sudo mkdir /mnt/loop
sudo mount -o ro,loop,offset=1048576 <nameofdebianimage.raw> /mnt/loop

Convert to a gzipped tarball

cd /mnt/loop
sudo tar czvf ~/debian.tgz .
sudo umount /mnt/loop

Upload this to maas

cd ~
maas login your.user http://<maasserver>:5240/MAAS 'user:credentials'
maas your.user boot-resources create name=custom/debian title="debian" architecture=amd64/generic content@=debian.tgz

Edit /etc/maas/preseeds/curtin_userdata_custom and add the following at the top after the comment line and before debconf_selections to override the kernel to install:

kernel:
  fallback-package: linux-image-amd64
  package: linux-image-amd64


The messages you get indicate that the architecture you added was 'i1386', not 1386. Try the following:

sudo dpkg --remove-architecture i1386


Set the boot mode to UEFI and turn off secure boot.
Set the SAT operation to AHCI more.
TO make the bootable device(pendrive) use Rufus in "GTP partition scheme for UEFI computer" mode.
Install the OS and run "Boot Repair" on the live mode without restarting.


Format partition with GParted to recover Windows after installing Ubuntu over it

First, when you installed Ubuntu over Windows, you automatically erased Windows. So, it is gone and unrecoverable. You will have to reinstall Windows if you want to use it again.

Second, it is recommended to install Ubuntu on a ext4 partition, not fat or ntfs partition. You could install it on Windows-type partition (under non-standard conditions), but it works best on linux-type (ext) partitions.

The recommended way to install a dual-boot system is to first install Windows automatically (it creates some 3-4 partitions) and then install Ubuntu. Just remember: in a dual-boot environment GRUB (the Ubuntu bootloader) will supersede the Windows bootloader. If you remove Ubuntu at a later time, you will have to repair the Windows bootloader.

Keep in mind that Windows can't deal with linux partitions. Just clean-erase the entire hard-disk for now and let Windows do its' work.

Ubuntu  typically uses 2 partitions: ext4 (>10GB) and swap (= 1,5...2xRAM size).


Playonlinux on Ubuntu 14.04 LTS: unmet dependency error

Try running

sudo apt-get update

To update the package sources followed by

sudo apt-get -f install

To resolve unmet dependencies.


How to search for APT packages with a specific substring in their names only?

With apt-cache, you can use the --names-only switch with your search term, and/or use some regex to narrow the searches down. Some examples I have used are listed below.

1) Using --names-only with a simple search of the word launcher cuts out a lot of results:

apt-cache search launcher --names-only

Often when using regex in your searches, --names-only isn't necessary as well, since you narrow the results down much further anyway, as these examples below demonstrate.

2) You could use regex to find all available desktop environments available:

apt-cache search -- '-desktop$'

3) or to find dev files that you don't know the name of:

apt-cache search 'jpeg*-dev'

The methods shown in the examples above are very useful when using apt-cache to search for packages for which you only partially know the name.


Note: This is just a workaround..

I have created a repository in git hub.. Download the files from there..

https://github.com/PRATAP-KUMAR/UbuntuStyleCSS-for-19.10

You will get two files after Extraction from zip..

Ubuntu Directory
ubuntu.css original Ubuntu 18.04 style sheet for referencing colors

put the Ubuntu Directory in your preferred location for gnome-shell theme like

$HOME/.themes/ or
$HOME/.local/share/themes/ or
/usr/share/themes/

Refresh the gnome-shell with "Alt+F2 r Enter" method.

Open gnome-tweaks (If not yet installed.. install it by sudo apt install gnome-tweaks command) and choose Ubuntu from the drop down under "Shell"

gnome-shell extension User Themes must be enabled for above to work.

Pics from Ubuntu 19.10 Practice:


Unable to view/connect usb devices to a virtualbox guest from ubuntu host

The problem was I wasn't part of the vboxuser group. For those with the same problem:

Make sure you have the Virtualbox Extension Pack. This allows use of USB 2.0. USB 3.0 is not yet supported.

Add yourself to the vboxuser group (in the host):
sudo usermod -a -G vboxusers <useruame>

Log out then back in for the change to take effect.

Enable USB 2.0 (EHCI) controller in the settings for you VM.

If you need more help see this topic.
Credit to Takkat.


Boxee with a dual monitor setup spans over two screens in fullscreen

You can press \ to toggle full screen mode. Then you could at least run it in windowed mode on a single screen.

For a more complete solution, this thread on the Boxee forum may be helpful. It's been a while since I used Boxee on a dual screen system, but when I did, I used something similar to what's outline there.


Problem with resolution of Ubuntu 14 on Windows7 x64 Virtualbox5

As first you need to download the VirtualBox 5.0.17 Guest Additions installer image from here.
(P.S.: make sure you download one for Linux 32-bit or 64-bit depending on the system you installed on your VM)

After that add this image into your VM's DVD and start your VM.

When booted up and logged in you might need to mount the cd image (in case you use a server image of Ubuntu) and aswell need some software to install.

# Run those commands if youre using Ubuntu server
sudo mount /dev/sr0 /media/cdrom

# The following you need always
sudo apt-get install build-essentials
sudo sh /media/cdrom/VBoxLinuxAdditions.run


What's the opposite of setxkbmap -option ctrl:nocaps?

When you have already set something, you might need to clear before setting something new.

To unset:

  To put it back to how it normally is, just setxkbmap -option works for me. – Emanuele Natale Sep 8 '14 at 19:29

Example: I was using setxkbmap -option ctrl:swapcaps so that I could deal with (i.e. unset) caps lock after it got set by random quirks.  Today I wanted nocaps, but could not set it because the other setting was still active.  I used the command above and then I was able to use setxkbmap -option ctrl:nocaps


Trying to get RodeCaster Pro to work with Ubuntu 20.04

This should work with a linux-5.7 kernel and above.


I'd suggest reading this Security.SE answer (and the links at the end).

It is true that overwriting a memory sector will wipe it without any of the ghosting old mechanical disks get, but the controllers for these disks have all sorts of life-prolonging features that obscure physical "sectors" away from the operating system.

For example, many modern disks reserve a portion (up to 20% of physical size) for wear levelling. Because this is all handled by the disk in the background, this prevents you from actually clearing everything. You might be able to get everything by doing a multi-pass write but it's hard to guarantee without doing a chip-by-chip analysis (which a determined attacker might).

As others have said before, if you want security you need to start with security:

Buy drives that are hardware-encrypted.
Use full disk encryption.

In either case, it's childplay to prevent the correct key being entered, rendering the data unusable without time-expensive cracking techniques. More than that, a wipe of an encrypted disk will knock out at least ~80% of the data (a mathematician will probably counter this), making it much harder to decrypt.

The only way to otherwise guarantee a secure wipe on an SSD is to destroy it.


How do I know if I am running Wubi or a proper dual-boot?

Both Wubi and "dual boot" allows you to choose Windows or Ubuntu when you start the computer. However, Wubi uses a virtual partition in a big file inside Windows partition to store the Ubuntu installation and all the user data.

In windows

Boot into Windows and look for the file c:\ubuntu\disks\root.disk (or it may be in D:). If you find it, you have installed using Wubi.

Alternately in Ubuntu

Open a terminal by pressing Ctrl+Alt+T and enter:

sudo losetup /dev/loop0

and if that says /host/ubuntu/disks/root.disk you know it's Wubi. (Thanks @bcbc)

There is a script to move Wubi installation to its own partition and thus make it a true dual boot. However, this is a bit complicated and you may be better off doing a fresh install from a CD or USB after uninstalling the Wubi installation from within Windows.

In either case, backup all the data first.


To summarise the above:

1) try to connect using the standard mysql client
2) if that works, find out the port it's using

  netstat -nlp | grep -i mysql

so that you can configure the appropriate firewall ports

3) if it didn't work, run

  ps -ef | grep -i mysql | grep -v grep

to discover if mysql is actually running or not
4) if not (as was the case here) start it and repeat if connectivity still fails.


Remmina cannot perform VNC remote desktop session before user logs in

Remmina is the viewer; Vino is probably the server that you're using, Among other drawbacks, it is unable to run outside of a user session.

X11VNC is what you want.  I find that the performance is also much better than Vino; for years, every time I try Vino, I always end up installing X11VNC.

There is a bit of config to be done to make it work right, but here are some skeleton notes on what I did with my last X11VNC installation:

Vino performance still stinks; installed X11VNC
    $ x11vnc -storepasswd
    /etc/init/x11vnc.conf:
        start on login-session-start
        script
        x11vnc -display :0 -auth /var/run/lightdm/root/:0 -loop -forever -safer -shared -ultrafilexfer -bg -o /var/log/x11vnc.log -rfbauth /home/charles/.vnc/passwd -rfbport 5900 -http -users charles -nowireframe
        end script
    Reboot and it's good to go.  Indestructible! Even survives desktop reconfig due to monitor unplugs, etc.
    (added -nowireframe later because the lack of visible icon when dragging files was annoying. Take off if it bogs id down on slow connections.)


Installing nvidia driver 396 on ubuntu 18.04

Nvidia releases a new driver 396.37  (09/07/2018).
This is currently available only in rpm and not available on the graphics driver ppa.
It is impossible to compile cuda 9.2, because the old version was remove and is now based on a new driver.


How do i install ubuntu on corrupt win 7

There are two separate problems here:

Does the DVD now contain a bootable Ubuntu installer. (check how you created the DVD). You need a bootloader from somewhere.
How can you select the DVD drive, to boot from. (see below)

You need to get the PC to select the correct boot source (your DVD drive).

Best method is MANUAL, not setting boot order.

You need to select whatever key (often Esc, or F10) to see BIOS menu. Then select 'manually select boot device' (or similar).

If you identify the exact motherboard, BIOS, etc. someone can probably tell you exact steps.

Then follow steps as suggested by @Registered User.


How is USB-C w thunderbolt / docks on ubuntu 18.04?

I too have a XPS 15.

The Dell TB16 seems to work fine for me, i.e. hdmi, usb and ethernet - it charges as well. I have not seen any issues so far but I have only been using for a week

I do the xrandr scaling for hidpi and it makes it a little more complex to script but it works.

I also got a cheap usb c adapter off of amazon and it works as well.

https://www.amazon.com/Abonda-Multiport-Converter-Charging-Chromebook/dp/B07JG39HGV/ref=sr_1_8?ie=UTF8&qid=1542361893&sr=8-8&keywords=abonda

Charging works but I only have a 100 watt usb c. and 87 watt apple usb doesnt provide enough juice. I will write back if there are any issues after a week or more of testing.


This solved what I was trying to do.

<applications>
        <application name="*">
          <maximized>true</maximized>
        </application>

        <application type="dialog">
          <maximized>false</maximized>
        </application>
</applications>


Netbeans IDE did work after installation, but doesn't start after restart.

I changed

netbeans_jdkhome="/usr/lib/jvm/java-6-openjdk"

to

netbeans_jdkhome="/usr/lib/jvm/java-6-openjdk-amd64"

in netbeans-7.1/etc/netbans.conf on Ubuntu 12.04

It worked.


How do you install the latest version of GNU Octave?

You can install the latest stable version of GNU Octave for any supported Ubuntu release:

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

This PPA is maintained and supported by several Octave developers.


Shutdown problem for cron job /etc/cron.d/collect

Same problem on Xubuntu 20.04 since 2 weeks. My system hangs after having displayed :
 Reached target Reboot.
 systemd-shutdown[1]: Waiting for process: crond

After searching across cron jobs files using this command :
find /etc/cron* -type f | xargs  ls -ltr

I found 2 potential "culprits" (both have a recent update date):
/etc/cron.daily/google-chrome
/etc/cron.d/collect

In order to disable them, I moved these files elsewhere (in my home directory) and restarted twice to check.
Great! I recovered the fast shutdown!
PS: The file /etc/cron.daily/google-chrome is a script that does not look so bad.
But the file /etc/cron.d/collect schedules a weird binary named /var/tmp/crond that is not documented.
This post gave me the way.