Git configuration for NetBeans should be found in:
~/.netbeans/<your_netbeans_version>/config/Preferences/org/netbeans/modules/git.properties

How to find it:
Try searching in all the NetBeans configuration files.
First you can check your project's configuration in /path/to/your/project/nbproject
$ cd /path/to/yout/project/nbproject
$ grep -r -o -i "stellaireman" *

If you found nothing, then you can next check the NetBeans main config directory.
$ cd ~/.netbeans/7.4/config
$ grep -r -o -i "stellaireman" *

Of course you need to replace 7.4 by the verison you are using version.


The ubuntu help describes this problem https://help.ubuntu.com/community/EncryptedHome

Caveats
There are a few minor caveats that one must keep in mind about these encrypted configurations.
When you are not logged into your system, data in your home directory is not accessible in plain text. This, of course, is by design. This is what keeps an attacker from gaining access to your files. However, this means that:
1.    Your cronjobs may not have access to your Home Directory

The solution is, I think, not to have encrypted home directories, or move the files to somewhere that root can see (like root's home directory).


Is there a Ubuntu-next Server beta image available for download?

See http://cdimage.ubuntu.com/ubuntu-server/daily/current/ The server has a slightly different link. The server release does not have a "live dvd" version.

xenial-server-amd64.iso         04-Mar-2016 06:57  749M  Server
install image for 64-bit PC (AMD64) computers (standard download)

xenial-server-i386.iso          04-Mar-2016 06:59  738M  Server
install image for 32-bit PC (i386) computers (standard download)


12.04 Lock screen and password prompt skipped after resume from suspend

You actually just need to have gnome-screensaver installed and running.

I needed to add it to the list of apps to start when signing in.

Require password after suspend is a setting for this piece of software.


What is the difference between single user mode, recovery mode from GRUB, and booting with Ubuntu install disk?

Runlevel

Formal explanation
According to wikipedia, The term runlevel refers to a mode of operation in one of the computer operating systems that implement Unix System V-style initialization.

Basically every Multi-User or Time Sharing system allow several users to log in at same time when system is running in multi-user mode (Default mode of modern OS). However there are situations, like kernel upgrade or other maintenance, when you have to make sure that no other user is logged into system that can possibly alter the resources or processes, You can do same by bringing the runlevel down to single user mode so that only a single user is allowed to log in who is authorized to perform the desired task.
You can say that A runlevel is a software configuration of the system which allows only a selected group of processes to exist.
In linux system telinit utility is used to change system runlevel among 6 possible values:

0 System Halt
1 Single user
2 Full multi-user mode (Default)
3 Full multi-user mode
4 Full multi-user mode
5 Full multi-user mode
6 System Reboot

Recovery Mode

Recovery mode is same as the single user mode but it allows only a selected kind of programs to run, Recovery mode make sure that only a program which is absolutely necessary to run the system is loaded, It prevent any other programs to load by default to prevent a possible failure due to any malfunctioned configuration or program.

Live Mode

When you boot using a live linux CD you have a completely different operating system and configuration than that of pre-installed on your system, This is because of the fact that you are actually using the operating system made available through the live CD.

You can use telinit to switch between Single User mode or Multi user mode when there are more than one users who use the same Operating system and it is necessary to perform a task which might be interrupted by another user if logged in, such as fsck or kernel upgrade etc.

Rescue mode is best to overcome most of the system malfunctions such as an installed package which can prevent system to boot as it allows you to log into system even if you cannot boot into regular mode

You can boot into live mode for various testing or diagnostic purpose. Live mode provides you access to system hardware and even the installed OS using the chroot utility. When nothing helps and you cannot find a way to log into the system you can boot into live mode and chroot into the installed system.


Update fails after checking all settings for system updates

If you've checked the CD-ROM in the sources and do not have the CD in the drive, the error message correctly tells that it was unable to fetch packages from it.

It is usually unnecessary to check them after a working installation, so you can safely uncheck them.

(Alternatively you can insert the installation media into the drive and check if the error message goes away.)


Ubuntu 20.04.1 stuck at "keyboard = person"-screen in VirtualBox 6.0

I got it resolved. If you use Windows enterprise edition you have to disable Windows credential guard.


"Could not retrieve the required disk image files" when using wubi.exe + iso in same folder

This is the problem:

03-18 01:11 DEBUG  Distro:   checking Ubuntu ISO C:\Users\Ofer\Desktop\ubuntu-12.04.2-desktop-amd64.iso
03-18 01:11 DEBUG  Distro:     does not contain casper\vmlinuz

I know this is an existing bug in the development release 13.04, but I wasn't aware it was in 12.04.2 as well. There is no workaround to this, because you'd have to update the ISO (possible but painful).

Reference: https://bugs.launchpad.net/wubi/+bug/1134770 (just updated with this latest info).

Workarounds

You could either use the 12.04.1 Wubi.exe with the 12.04.1 ISO available at old-releases.ubuntu.com/releases/12.04.1/
Or you could use the 12.10 Wubi.exe plus the 12.10 ISO.


How to stop Kern.log and Syslog from growing too much

The best option when you get error messages in your log is always to find out what the underlying problem is.
However, if everything seems to be working ok, and you still get spammed in the logs, this is the way to filter out these messages:

Create a new file in /etc/rsyslog.d (here I use the name 01-block-pcieport.conf)
sudo touch /etc/rsyslog.d/01-block-pcieport.conf

Enter the following into 01-block-pcieport.conf
if $msg contains "pcieport 0000:00:1c.5" then { stop }

This will filter out ALL log messages related to pcieport 0000:00:1c.5 and you will no longer be able to troubleshoot this device using the logs.
So again, it's highly advisable to find the underlying cause before filtering out messages like this. I wonder if it may be a driver problem? I think you should investigate this first.


Try looking here:

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

After you download it, insert a blank DVD into your computer. Choose to do nothing when the AutoPlay (or similar) dialog pops up. Right click the .iso file and choose "Burn to disk". (That should be close to the actual wording.) Once that is done, put/keep the disk in and restart your computer. After that, go here and follow the instructions: http://www.ubuntu.com/download/desktop/install-ubuntu-desktop


How to open ports number from 32768-65334 on ubuntu?

Read man ufw. You can only open 1 port at at time. If you MUST open all those ports (and can't constrain the port range) use seq (man seq):

for p in $( seq 32768 65534 ) ; do
    ufw allow $p/tcp
done


Remote access Ubuntu Server filesystem through GUI

The Ubuntu server

When you write that you do not want to install anything in the Ubuntu server, I guess you mean except an SSH server, which you have already (for example openssh-server) or a Samba server according to this link and links from it,

help.ubuntu.com/community/Samba

If you want to log in and run application programs remotely, you can do it via

ssh user@ip-address

or if you want to run GUI application programs remotely,

ssh -X user@ip-address

if you have some basic X software installed in the server, for example

sudo apt-get install fluxbox xinit xterm

and the software you want to run.

From Windows

If you do not want to install anything into Windows, Samba is a good alternative. You can use Explorer and connect to the Samba share like you would connect to a shared directory in another Windows system via the network.

But there are several tools, that can be installed, and that communicate via ssh, not only Filezilla, but also WinSCP. You can also install an SSH client and log in.

From Ubuntu Desktop

If you do not want to install anything into an Ubuntu Desktop system, Nautilus is a good alternative. It can connect via ssh, enter the address into the box for directory to be displayed, for example sftp://sudodus@192.168.0.2/home/sudodus and you can save it as a bookmark for easy access later.

And as described earlier, you can run

ssh -X user@ip-address


Pantheon Files opens Home folder when clicking Trash in Launcher

google was nice to me and solved my own problem. for those of you having the same problem, you need to check some lines in your mimeapps.list:

i suggest to backup first. go to ~/.local/share/applications/, copy then rename pasted file of mimeapps.list to mimeapps.list.backup

open the original file, look for this line:

x-scheme-handler/trash=marlin.desktop

if your using nautilus, it must be trash=nautilus.desktop

make that line look like this (i'm using Pantheon File manager):

x-scheme-handler/trash=pantheon-trash.desktop

and pantheon-trash.desktop file must be on the same directory (~/.local/share/applications)

here's what pantheon-trash.desktop file looks like:

[Desktop Entry]

Name=Trash Folder
Comment=Open your personal trash folder
TryExec=pantheon-files
Exec=pantheon-files trash:///
Icon=trash
Terminal=false
StartupNotify=true
Type=Application
Categories=GNOME;GTK;Core;
OnlyShowIn=GNOME;Unity;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=pantheon-files
X-GNOME-Bugzilla-Component=general
X-Ubuntu-Gettext-Domain=pantheon-files
Name[en_PH]=pantheon-trash

here's my source: http://ubuntuforums.org/showthread.php?t=1861067


How to disable auto-maximize new window in 18.10 (GNOME)

Use the below command to set auto-maximize to false

gsettings set org.gnome.mutter auto-maximize false


Why does Server 14.04.1 install the boot loader to my USB drive instead of the hard disk?

If you try picking "something else" on the page that asks you where and how you want to install it, you can select where you want the bootloader. You will have to set up which disk to use for the / mount point and elect to use encryption manually but it will let you choose where to install the bootloader and should at least get you a fully bootable, fully functional, system.


How to properly install mysql on Ubuntu 14.04

Please go through with following steps

sudo apt-get install mysql-server

sudo mysql_secure_installation

You need to check MySQL servics running or not.

 sudo service mysql start

Check status by executing

sudo service mysql status

Then then

 mysql

Or check which port used during instllation

 mysql -h localhost --port 3306 - u root -p

you can also use MySQLTuner by executing:

 sudo apt-get install mysqltuner


Purple screen at the boot after installing Ubuntu 13.04

Computer is to old, the processor is to old. You might want go with 32 bit. It will probably make it work, but their is no promise. Good luck. I had the same problem with 10.04.


If you want to run VS Code from the terminal, create the following link substituting /path/to/vscode/Code with the absolute path to the Code executable by running this command

sudo ln -s /path/to/vscode/Code /usr/local/bin/code


MySQL Installation Issues on Ubuntu 15.04

I solved this issue.

After several trial & error, what I did was:

I rolled back an earlier backup (2 months old)
I re-tried installing lamp sever using:

sudo tasksel install lamp-server

This helped me identify the missing directories.

I manually created the missing folders in the mysql directory
Next, I ran these commands

sudo dpkg-reconfigure --force mysql-server sudo dpkg-reconfigure --force mysql-server-5.6
I manually installed every other important php5 & mysql packages

Somehow, this worked for me. I'm not sure where I did it right, & if it has no side effect... so I don't advise anyone having similar issue to follow what I just out-laid.

However, you could keep exploring till you a get a fix. Document it, so in future you know exactly how you handled it in the past.


Find files in linux and exclude specific directories

You can use the -path option to find and combine it with the -not operator.

find . ! -path "*/test/*" -type f -name "*.js" ! -name "*-min-*" ! -name "*console*"

Please note two things

-path must come as the first argument
the pattern matches the whole filename, so -path test will not match anything, ever

By the way, I'm not sure why you are using parentheses, it doesn't make a difference. It is only used for precedence, for constructs such as ! \( -name '*bla*' -name '*foo*' \) (that is, do not find things that have both bla and foo).

A further refinement: no need to use the bash loop, you can simply do

find . ... -exec cat {} \; -exec echo \;

where ... are the other arguments to find.


How to run multiple user X sessions on the same computer, at the same time?

If you want multiple users to use Keyboards/Mouse then that is multiseatX.See this documentation


Unable to Mount anything; USB, internal drives; do not have permissions; HELP!

First, I don't know why you'd want to use Nautilus to remove Thunderbird. That's just wrong. If you were deleting things with Nautilus as root, you could have nuked anything by mistake. If you're not sure exactly what you erased, I'd not be too concerned with screwing up you whole Linux install, because you probably did. I've hosed my system, and some people re-install weekly, just to try out different distributions.

Second, do you have a good backup of all your user files? Things like photos, documents you've created over the years and don't want to lose? If you do, great. If not, I'd do some damage control first. If you can boot to an Ubuntu Live CD or USB, you should be able to plug in the 1 TB USB drive you use for your regular backups, find your home directory on your hard drive and copy everything to a folder on your 1 TB USB drive.

If you don't have a large USB drive you use to make regular backups , you need one, and you need to use it.

After you've managed to back up everything, and you're sure you've backed up everything including hidden files in your home directory because you've checked carefully, you can do a clean install and copy everything back if all the other excellent advise you're going to get here can't save your installation.


Ubuntu 20.04 fix for chrome screen tearing

Not sure if you are having the same issue that I was having but disabling "hardware acceleration" in google settings solved it for me


Updated Intel display driver causing errors when booting

Here is how I uninstalled the latest Intel Graphics Driver :

Open a new Terminal (CTRL+Alt+T) and execute

gksudo gedit /etc/apt/preferences.d/intel-removal

Paste this code in the File and save it

Package: *
Pin: release a=trusty*
Pin-Priority: 1001
Package: *
Pin: origin download.01.org
Pin-Priority: -100

Run

sudo apt-get dist-upgrade

You will be asked to downgrade about 20 packages and that's what you want.

Just some cleaning up to do:

sudo rm /etc/apt/preferences.d/intel-removal

sudo rm /etc/apt/sources.list.d/intellinuxgraphics.list*

sudo apt-get update

Now you must delete the actual drivers :

sudo apt-get purge i915-3.15-3.13-dkms intel-linux-graphics-installer

Finally reboot


Eclipse's executable file won't run in ubuntu

My OS was actually 64 bit version. And the Eclipse package I downloaded was 32 bit. It seems stupid, but usually 32 bit softwares run without any problem in 64 bit operating systems. So I didn't pay much attention there.

I downloaded the 64 bit version of Eclipse and it works fine.

Thanks @Sergey for the time and patience.


Lenovo S540, "The system is running in low graphics mode"

I've had the same issue on my ThinkPad S540 after installed Ubuntu 13.10. The solution for me was to create /etc/X11/xorg.config file which was somehow missing:

sudo cp /etc/X11/xorg.config.failsafe /etc/X11/xorg.config

and then restart.

If you stuck on "The system is running in low graphics mode" page and Ctrl+Alt+F1 does not work to enter terminal mode then try to play with Enter / Tab / Windows+Left / Windows+Right shortcuts until the terminal mode appears ;)


Wake up from suspend does not show log in screen immediately

This is a known bug.

I would recommend to sign up at Launchpad and add yourself to the people that this bug affects. It is a bit worrying that nothing has been done about this bug, a clear security issue, for over a year.


Getting grub rescue on boot, but can get to grub via 'BIOS'

It turned out I had to put my boot back into UEFI mode (I had turned it off to get the boot USB to run)


How to Flash (Chrome or Firefox) hardware accelerated decoding? Something instead?

UPDATE

For weaker hardware or decent hardware but desire for real 24 FPS web-embedded videos I suggest minitube-ubuntu, resoned below. Minitube can play videos from Youtube without using Flash and having Graphics User Interface, that is better decoding performance or less system resources taken for the action. I have also noticed difference in FPS (= no screen tearing or slideshow) while Flash was showing FALSE 0 dropped frames... The only problem I found is no Youtube account support, however subscribe works fine.

You can get minitube-ubuntu at Software Center.

gstreamer package or workaround may be needed:

sudo ln -s /usr/lib/kde4/plugins/phonon_backend /usr/lib/qt4/plugins/phonon_backend

.

Other issues fixes: http://flavio.tordini.org/minitube/faq

For videos not hosted on Youtube there is youtube-dl supporting variety of sites. But without GUI, command termianl program.

Spec

CPU 2x 1700 MHz
APU AMD E2-1800 driven by fglrx-updates, VESA
Ubuntu v14.04
Chrome v36.0.1985.125
Flash v14.0.0.145 /opt/google/chrome/PepperFlash/libpepflashplayer.so

Performance

youtube.com HTML5 video 480p taking 70% CPU and false 24 FPS (I think Flash renders OK but Chrome FPS is lower and my eyes are not satisfied while screen is tearing)

minitube-ubuntu 1080p taking 70% CPU and true 24 FPS


Application won't run when installed in "/opt"

If you remove the gksudo stuff in bin/aplomb you see the error message:

Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/aplomb/bin/aplomb", line 48, in <module>
    import aplomb
  File "/opt/extras.ubuntu.com/aplomb/aplomb/__init__.py", line 26, in <module>
    from aplomb import AplombWindow
  File "/opt/extras.ubuntu.com/aplomb/aplomb/AplombWindow.py", line 23, in <module>
    locale.bindtextdomain('aplomb', '/opt/extras.ubuntu.com/aplomb/share/locale')
NameError: name 'locale' is not defined


sometimes evince takes a lot of time to open a file

I've run evince from the command prompt using strace like this:

strace evince /path/to/file.pdf

while looking at the output of strace at the terminal I noticed that it was pausing for a couple of seconds at a line like this:

stat(..."/path/to/a/file/I/opened/a/few/days/ago"...)

This pause occurred a few times. I also noticed that "/path/to/a/file/I/opened/a/few/days/ago" was on a network share that was not available at the moment (it was a NAS that was powered of) but my Linux box still had the share mounted and busy. I've umount -l the share and evince started normally. I don't know why evince was stat'ing that old file but this was the root of my problems.


sudo apt-get install tcl8.5-dev tk8.5-dev

These packages exist and they are available in Ubuntu 14.04, here is the output of your command in my Ubuntu 14.04.4:

galoget@hackem:~$ sudo apt install tcl8.5-dev tk8.5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libfontconfig1-dev libfreetype6 libfreetype6-dev libpng12-dev
  libpthread-stubs0-dev libtcl8.5 libtk8.5 libx11-dev libx11-doc libxau-dev
  libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxrender-dev libxss-dev
  tcl8.5 tk8.5 x11proto-core-dev x11proto-input-dev x11proto-kb-dev
  x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev
  xorg-sgml-doctools xtrans-dev
Suggested packages:
  libxcb-doc libxext-doc tcl-tclreadline tcl8.5-doc tk8.5-doc
The following NEW packages will be installed:
  libfontconfig1-dev libfreetype6-dev libpng12-dev libpthread-stubs0-dev
  libtcl8.5 libtk8.5 libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev
  libxext-dev libxft-dev libxrender-dev libxss-dev tcl8.5 tcl8.5-dev tk8.5
  tk8.5-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev
  x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev
  xorg-sgml-doctools xtrans-dev
The following packages will be upgraded:
  libfreetype6
1 upgraded, 27 newly installed, 0 to remove and 261 not upgraded.
Need to get 8.262 kB of archives.
After this operation, 37,2 MB of additional disk space will be used.
Do you want to continue? [Y/n]

A tip, you can search for any package for any release version of Ubuntu in this website, and also you can download the files from that site, here are the two packages that you're trying to install:

tcl8.5-dev (8.5.15-2ubuntu1)
tk8.5-dev (8.5.15-2ubuntu3)

Once downloaded the .DEB files, to install them, just follow these steps:

Assuming the .DEB files are for am64 and are located in ~/Downloads:

cd ~/Downloads
sudo dpkg -i tcl8.5-dev_8.5.15-2ubuntu1_amd64.deb
sudo dpkg -i tk8.5-dev_8.5.15-2ubuntu3_amd64.deb

But I believe you're going to need some dependencies for those 2 packages to be installed correctly and work, you can check the output of my terminal at the beginning.


Per your interfaces settings, you need to let the kernel do Network Address Translation to route packets across these subnets. Try this first:

# iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 192.168.2.0/24 -j SNAT --to 192.168.2.1
# iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -d 192.168.1.0/24 -j SNAT --to 192.168.1.1

Where 192.168.2.1 is the IP address of eth1 and the default gateway for subnet 192.168.2.0/24, 192.168.1.1 alike.

And make sure you have net.ipv4.ip_forward=1 in /etc/sysctl.conf. And run sysctl -p to make that change in effect.


nice: nice - run a program with modified scheduling priority

Format: nice [OPTION] [COMMAND [ARG]...]

So nice -999 ls -l should be nice -9 ls -l or nice 10 ls -l or so, what it would do here is to set the nice level of the ls command to the nice value given. But in your case you use a nice value of -999 its range is -20 to 19.

The purpose of the nice command is to make sure a given command runs at a set priority other than that of its default priority. So say ls command should run with a nice priority of 10 then running it with nice 1 ls will make it more favourable to other processes (i.e. it will give way to others with less favourable niceness, so to speak)

Usage:

Modify niceness:

nice -10 ls -l

Modify to negative niceness:

nice --10 ls -l
# Note the use of "--"

Modify an already running process' niceness:

renice -12 -p <PID>

Modify an already running process' niceness to negative value:

renice 12 -p <PID>

Source:

man nice


List all files in dir with color-coding alphabetically (dir and files separated)

At least with recent versions of ls, you can add the option --group-directories-first to get a listing with directories above plain files. Your ls command is probably already aliased to use --color=auto but if not, you can add that (you could use --color=always, but that may cause undesirable results if you ever use the command in a pipe). Finally, -1 causes the output to be presented in a single column. So the full command would be

ls -1 --color=auto --group-directories-first


Ubuntu 13.04 only detects one of my processors

Issue top on terminal and press 1 - you will see all 4 cores at work. It has to be something wrong in kernel cpu boot detection...


/usr/bin/env: ‘ruby’: No such file or directory

The default PATH crontab is using is "only" /usr/bin:/bin, however you can adjust it.

Instead of writing the things in that script try adding it directly into the crontab command:

@reboot PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/gems/ruby-1.9.2-p180/bin"; /etc/init.d/unicorn_myapp start > /home/username/unicorn_start.out 2>&1

You can also add the path variable above every cronjob so it's applicable to every task you put in there:

 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/gems/ruby-1.9.2-p180/bin"
 #
 #
 * * * * * myjob.sh
 @reboot /home/username/unicorn_start.sh > /home/username/unicorn_start.out 2>&1


Libre Office can be found on their website https://www.libreoffice.org/download/libreoffice-fresh/?version=5.0.0

Also you can get it from accessing your terminal. I am running 14.4 Xubuntu and I downloaded from the website with no errors.

Hope this helps.


The "Installation size" options lets you decide the amount of space you want to "give up" for WUBI. That is the space wubi's Ubuntu install is able to use. Wubi creates a disk image (loopmounted device) on your host system in/on which Ubuntu is installed. This can be compared to a kind of "safe partition" on your system.

See this answer for details


how I can fix the apt.conf? I don't need of the proxy

Open a terminal (Ctrl+Alt+T), then run this to edit the file:
sudo nano /etc/apt/apt.conf

If it has a line that looks like:
Acquire::http::Proxy "http://192.168.1.1:3142";

comment it out (put // in front of it):
// Acquire::http::Proxy "http://192.168.1.1:3142";

Press Ctrl+O then Enter to save the file and Ctrl+X to exit the editor.


What OS are you using?
if it is ubuntu
Have you installed ubuntu SDK?

Anyway the instruction to restore to Android can be found here
On Restoring Android Section
For more help you can also contact ubuntu-touch channel on IRC
http:// webchat.freenode.net/?channels=ubuntu-touch


upgrade from 12.10 to 13.x - says "no new release found"

I'd suggest that you check and ensure that "Notify me of a new Ubuntu version" is set correctly.

Open Software Sources.
In the "Updates" tab, ensure that "Notify me of a new Ubuntu version" is set to "For any new version".
Then retry:

do-release-upgrade


How to mount windows partition in ubuntu 12.10

Note: All images are for instructional use only

To automatically mount Windows drives, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo blkid

So you can get the UUID of the drive.  Make sure that you get the UUID of the drive with TYPE="ntfs".

Then edit the fstab config file

gksu gedit /etc/fstab

And add the line at the bottom of the file as shown in the image below.  Make sure to replace the UUID with the UUID of your NTFS drive.  Save and close the file

Then create mount points, and take ownership by doing:

sudo mkdir -p /media/Windows
sudo chown -R <username> /media/Windows


How can I run c files in sublime text 3 that takes user inputs?

I don't think you can do user input in Sublime. To just integrate a build system using gcc, navigate to Tools > Build System > New Build System and put this in:

 {
"shell_cmd" : "gcc $file_name -o ${file_base_name}",
"working_dir" : "$file_path",
"variants":
  [
    {
      "name": "Run",
      "shell_cmd": "gcc $file_name -o ${file_base_name} && ${file_path}/${file_base_name}"
    }
  ]
}

Source

Any other compilers would be similar. I might also suggest Vim if you aren't married to Sublime. Here is a good blog post about setting up a C development environment in Vim.


There is no solution to this except the following:

Open terminal and type

cd /opt

then run this

sudo rm -r BitDefender-scanner

This will remove the directory as a root

Now when you will open synaptic package manager, there will be no problem.


Why Ubuntu 18.04 has LibreOffice 6.0.7? How can I upgrade that to version 6.28?

You need to add the LibreOffice PPA.

Open a terminal and enter:

sudo add-apt-repository ppa:libreoffice/ppa

Next run this command to update the list of packages available to install on your system:

sudo apt update

Finally, run this command to upgrade or install LibreOffice 6.0:

sudo apt install libreoffice

Once this command completes you can head to your application launcher of choice and launch LibreOffice.

To verity your upgrade went successfully just head to the Help > About option. You should see the correct version listed.

This is currently 6.3.2.2


If there is no QML module that can help you accessing IRC servers, you will probably need to write a QML plugin in C++ that does that work as a backend. You can then use QML to implement the UI frontend.


How do I install the video driver for my Toshiba Satellite on 14.04?

Open "Software Sources" from "System Settings", there should be a tab called "Additional Drivers". Look for proprietary drivers for your graphic card


Missing Settings in Ubuntu 18.04 with GNOME 3.28.2

The solution was:

If you reinstalled linux manteining old home, than look in your home at the path:
/home/marco/.local/share/applications
there are lot of file with extension '.desktop'
Delete entire folder or, if you prefer, eliminate only files with name like 'gnome-...-panel.desktop'.

The same files were a old copy of original that are located into
usr/share/applications


Can’t get TLSv1.3 to work with nginx 1.14.0 and OpenSSL 1.1.1 on Ubuntu 18.04.4

I've solved my issue. I had a default_server config also included in /etc/nginx/sites-enabled/, which didn't have the TLSv1.3 flag in the ssl_protocols parameter (in fact, it didn't have a ssl_protocols parameter at all). This apparently caused the failure, even though my tests were run on hostnames that were served by different server blocks. Go figure!


Stop all services used by VMWare(by using 'kill' and 'service  stop') and also run the command:-
vmrun list
This will list all VMs running in the OS with their path. Then run the command:-
vmrun stop
Wait until the command executes and returns that 'VM  has stopped...'
Then restart your OS.(Optional but for automatically restarting the services that you have already stopped.)
After restarting, start using your VMWare. It will work properly.


How to get Ubuntu distribution's full code name?

Using no external tools:

You can just source (the source command is a dot .) the /etc/os-release and you'll have access to all the variables defined there:

$ . /etc/os-release
$ echo "$VERSION"
14.04, Trusty Tahr

Edit. If you want to remove the 14.04, part (as asked by terdon), you could:

$ . /etc/os-release
$ read _ UBUNTU_VERSION_NAME <<< "$VERSION"
$ echo "$UBUNTU_VERSION_NAME"
Trusty Tahr

Note that this is a bit clunky, since on other distributions, the VERSION field can have different format. E.g., on my debian,

$ . /etc/os-release
$ read _ UBUNTU_VERSION_NAME <<< "$VERSION"
$ echo "$UBUNTU_VERSION_NAME"
(wheezy)

Then, you could imagine something like this (in a script):

#!/bin/bash

if [[ -r /etc/os-release ]]; then
    . /etc/os-release
    if [[ $ID = ubuntu ]]; then
        read _ UBUNTU_VERSION_NAME <<< "$VERSION"
        echo "Running Ubuntu $UBUNTU_VERSION_NAME"
    else
        echo "Not running an Ubuntu distribution. ID=$ID, VERSION=$VERSION"
    fi
else
    echo "Not running a distribution with /etc/os-release available"
fi


How to turn off TexStudio forcing text on you while typing?

On the top bar, click Options > Configure TeXstudio.  Then select Show Advanced Options in the lower left.  Then select Adv Editor in the left pane.  Then unselect Auto Completion Parentheses.

EDIT:

I believe that you are looking to turn off the Auto Completer which puts in the words.  In the left pane, click on Completion.  Then unselect Automatically start completer when typing LaTeX-Commands.

Hope this helps!


"Are you sure you want to proceed?" message on login

I figured it out after some digging. I have a script in my .profile file that changes some settings for touchpad and keyboard. I've been using it for a few years, but didn't get this error before.

Some of the commands from the script seem not to be working anymore:

xinput set-int-prop "VertResolution" 7
xinput set-int-prop "HorizResolution" 5
xinput --set-prop --type=float "Logitech Unifying Device. Wireless PID:4013" "Device Accel Constant Deceleration"

E.g.:

$ xinput set-int-prop "VertResolution" 7
Usage: xinput set-int-prop <device> <property> <format (8, 16, 32)> <val> [<val> ...]

I assume that when .profile is loaded and those errors are returned, the system pops that message, because when I run them manually, I don't get the pop-up.

Anyway, I commented them out and I don't get the message anymore.

So the source of problems was in my .profile


It is called "Kernel Mode Setting" or KMS or the kernel frame buffer

  Kernel mode-setting (KMS) means that the kernel is responsible for setting up and changing the display mode: resolution, frequencies and color depth. Kernel modesetting and memory management describes some aspects of KMS along with Fedora specific information. KMS as a Linux feature was introduced in 2.6.29.

The Debian documentation is here -

https://wiki.debian.org/KernelModesetting

Additional documentation -

https://wiki.archlinux.org/index.php/Kernel_mode_setting

http://dri.freedesktop.org/wiki/DrmModesetting/

http://nouveau.freedesktop.org/wiki/KernelModeSetting/


Perhaps your best bet would be to map an unused/rarely used key on your keyboard to the Alt key per this tutorial:

How do I remap keyboard keys for Ubuntu

And possibly check out this answer:

How can I remap keyboard keys?


How to access Windows 7 PC in Samba network?

You might need to check that "Turn off password protected sharing" is selected under Control Panel > All Control Panel Items > Network and Sharing Center.

You may also be able to give access to a Guest account on the Windows 7 box for the folders you want to share, and then from Ubuntu just enter the log-in name as Guest.


Change permanently the priority of all process started by user

Have a look at the OOM Killer's priority and how it chooses what to kill: https://www.kernel.org/doc/gorman/html/understand/understand016.html

In particular: badness_for_task = total_vm_for_task / (sqrt(cpu_time_in_seconds) * sqrt(sqrt(cpu_time_in_minutes)))

So you can give it a higher "priority" by having it use more CPU and less virtual memory.

You can also set /proc/[pid]/oom_adj to -17 for all processes of the user.  this effectively makes it unkillable: http://man7.org/linux/man-pages/man5/proc.5.html


I don't understand the exact cause of the error - it's probably something deep in the bowels of how autoconf attempts to deal with the non-portability of the echo command. However you can try a couple of workarounds as follows:

The existing configure script appears to work if run explicitly using bash i.e. bash configure in place of ./configure

[Perhaps when Tcl7.5 was packaged, it was reasonable to assume that /bin/sh was bash - Ubuntu now has dash as /bin/sh]

You can run autoreconf -f in the same directory to create a new configure script that should be compatible with the current autoconf

Either way, I would be surprised if you didn't run into further issues building such (20-year-) old software - good luck.


How do I fix the the brightness controls on a Samsung RV520?

There is command like xbacklight, but not all displays resp. drivers of graphics cards work together with this command. As I see in manpages xbacklight probably is referring more to intel-chipsets. But if your machine has an intel-processor with hybrid-chipset of nvidia like GT 520M ( mine here is GT 540M ) - this should work to use xbacklight cautiously as command like explained here at top of :

How to use xbacklight with brightness keys in a VAIO


parted mktable error. but gparted "create partition table" works?

First, it looks like you're trying to create a partition table, on a partition
/dev/sdb1
instead of on the disk itself
/dev/sdb

I'm guessing that could lead to some strange errors... are you really trying to create 64 partitions on a USB drive, or that could be a strange error.

After sorting out the partition table, I think these commands should work:

Create MBR (msdos) partition table

sudo parted /dev/sdb mktable msdos

Make a partition (a primary partition, with FS ID ext3, starting at 1MB & using 100% of space) (If start at 0% or 0MB, it's not aligned to MB's and complains):

sudo parted /dev/sdb mkpart primary ext3 1 100%

Apparently gparted does a wipefs on new or existing partitions when they're formatted, to avoid problems with old filesystem signatures. So could do  this too:

sudo wipefs -a /dev/sdb1

Then make the filesystem on the first partition (sdb1) just created (-L label is optional, see the mkfs.ext3/mke2fs man page for lots of options):

sudo mkfs.ext3 -L "NewLabel" /dev/sdb1

Here's the built-in help from parted <dummydevicefile> help mkpart (seems more detailed than the man/info page):

mkpart PART-TYPE [FS-TYPE] START END     make a partition

    PART-TYPE is one of: primary, logical, extended
    FS-TYPE is one of: zfs, btrfs, ext4, ext3, ext2, fat32, fat16, hfsx,
    hfs+, hfs, jfs, swsusp, linux-swap(v1), linux-swap(v0), ntfs, reiserfs,
    freebsd-ufs, hp-ufs, sun-ufs, xfs, apfs2, apfs1, asfs, amufs5, amufs4,
    amufs3, amufs2, amufs1, amufs0, amufs, affs7, affs6, affs5, affs4,
    affs3, affs2, affs1, affs0, linux-swap, linux-swap(new),
    linux-swap(old)
    START and END are disk locations, such as 4GB or 10%.  Negative values
    count from the end of the disk.  For example, -1s specifies exactly the
    last sector.

    'mkpart' makes a partition without creating a new file system on the
    partition.  FS-TYPE may be specified to set an appropriate partition
    ID.


Encrypt /boot with LUKS 2 on (K)Ubuntu 20.10

Current grub release is 2.04. from 2017-07-04.
This release offers LUKS1 encryption only.
Do you want to follow the development of luks2-mod?
Do:
git clone https://git.savannah.gnu.org/git/grub.git
cd grub
git log --grep=luks2
# or/and
git log grub-core/disk/cryptodisk.c
# or/and
git log --author=Washburn --author=Steinhardt --author=Kiper

And then: Pray to whatever, that $magic comes to us ( the unworthy ^^ )


Unable to install Unity Revamped --ppa:ikarosdev/unity-revamped

I think I have found why it's not working for you.  5.14.0-0ubuntu1 is still in the proposed section of the software repositories.  If you disable the proposed selection in the software sources and then run the install commands it should then give you the option of installing unity-revamped

Open the Software Center and in the Edit menu select software sources then click on the updates tab....

Remove the check from the Proposed box.

Then in a terminal run

sudo apt-get update
After the update is completed try to run

sudo apt-get dist-upgrade again and it should show you that unity 5.12.0-0ubuntu3 is available.

Just a note, it is safer to not select the Proposed updates unless you need some program that is not available in the current release.  The Proposed selection will install as updates all the newest programs, but they are the programs that are still in the testing phase so they can have some bugs still.  Once the programs that are in the Proposed section have been fully tested, they will be moved to the Updates section and be available as a stable package.

The untiy-revamped ppa lags behind the release a little bit, I believe that it was about a week the last time but he seems to do a good job of keeping it updated(as far as I can tell anyway, this ppa has only been running a short time)

As an aside, I have been running unity-revamped and have had very few problems with it, the dodge windows feature occasionally sticks and will not hide the launcher but it is fixed by logging out and back in.  This only happens once in a great while and everything else works fine while it is stuck....

Edit:  the above mentioned version of unity (5.14.0-0ubuntu1) is currently the recent version of unity so 5.14.0-0ubuntu1+ikarosdev2 should install correctly (as of Sept 2012) but this answer will still work if you have the proposed repository selected and are getting a similar error but with different version numbers.  i.e. this will occur any time a new version of Unity is installed from the proposed section but the unity-revamped ppa has not bee updated to the newest "proposed" version.


15.04 Only Boots in Recovery Mode After CPU Change

O.K. Try this:

Reboot into recovery mode
Press enter on all of the following menu items (IN ORDER!!)

network

yes

root

Type apt-get install --reinstall gnome-shell and press enter
Type y if asked confirmation to reinstall
Type reboot press enter

If that didn't work try this:

Reboot into recovery mode
Press enter on all of the following menu items (IN ORDER!!)

network

yes

root

Type apt-get purge gnome-shell and press enter
Type y if asked confirmation to remove
Type apt-get install gnome-shell and press enter
Type y if asked confirmation to install
Follow any onscreen prompts or instructions
Type reboot press enter


How to extract mapped ports from `docker ps`'s output

According to the docker man pages you could try this:

sudo docker ps --format "{{.Ports}}"

or if you also need ID:

sudo docker ps --format "{{.ID}}: {{.Ports}}"

It is not mentioned in the documentation, but to format output you have to use {{}}.

Quote from man docker-ps:

   --format="TEMPLATE"
      Pretty-print containers using a Go template.
      Valid placeholders:
         .ID - Container ID
         .Image - Image ID
         .Command - Quoted command
         .CreatedAt - Time when the container was created.
         .RunningFor - Elapsed time since the container was started.
         .Ports - Exposed ports.
         .Status - Container status.
         .Size - Container disk size.
         .Labels - All labels asigned to the container.
         .Label - Value of a specific label for this container. For example .Label "com.docker.swarm.cpu"

Docker 1.10.3

Nowadays, there are a few useful notes about {{}} braces in man docker-ps:

   --format="TEMPLATE"
      Pretty-print containers using a Go template.
      Valid placeholders:
         .ID - Container ID
         .Image - Image ID
         .Command - Quoted command
         .CreatedAt - Time when the container was created.
         .RunningFor - Elapsed time since the container was started.
         .Ports - Exposed ports.
         .Status - Container status.
         .Size - Container disk size.
         .Labels - All labels assigned to the container.
         .Label - Value of a specific label for this container.
         For example {{.Label "com.docker.swarm.cpu"}}

Display containers with their commands
              # docker ps --format "{{.ID}}: {{.Command}}"
              a87ecb4f327c: /bin/sh -c #(nop) MA
              01946d9d34d8: /bin/sh -c #(nop) MA
              c1d3b0166030: /bin/sh -c yum -y up
              41d50ecd2f57: /bin/sh -c #(nop) MA

Display containers with their labels in a table
              # docker ps --format "table {{.ID}}\t{{.Labels}}"
              CONTAINER ID        LABELS
              a87ecb4f327c        com.docker.swarm.node=ubuntu,com.docker.swarm.storage=ssd
              01946d9d34d8
              c1d3b0166030        com.docker.swarm.node=debian,com.docker.swarm.cpu=6
              41d50ecd2f57        com.docker.swarm.node=fedora,com.docker.swarm.cpu=3,com.docker.swarm.storage=ssd

Display containers with their node label in a table
              # docker ps --format 'table {{.ID}}\t{{(.Label "com.docker.swarm.node")}}'
              CONTAINER ID        NODE
              a87ecb4f327c        ubuntu
              01946d9d34d8
              c1d3b0166030        debian
              41d50ecd2f57        fedora


This is normal behaviour if your arrow keys are not bound to any functionality. You can for example add these lines to ~/.inputrc to search for the string before the cursor when pressing up or down:

"\e[A": history-search-backward
"\e[B": history-search-forward

You'll need to log out and in again to make them take effect.


Reading lines from a text file and creating a text file for each name on each line

#1 Using Bash + touch:
while read line; do touch "$line.txt"; done <in

while read line; [...]; done <in: This runs read until read itself returns 1, which happens when when the end of the file is reached; the input for read is read from a file named in in the current working directory instead of from the terminal due to the <in redirection;
touch "$line.txt": This runs touch on the expanded value of $line.txt, which is the content of line followed by .txt; touch will create the file if not existing and update its access time if existing;

#2 Using xargs + touch:
xargs -a in -I name touch name.txt

-a in: makes xargs read its input from a file named in in the current working directory;
-I name: makes xargs replace every occurence of name with the current line of input in the following command;
touch name: Runs touch on the replaced value of name; it will create the file if not existing and update its access time if existing;

% ls
in
% cat in
john
george
james
stewert
% while read line; do touch "$line.txt"; done <in
% ls
george.txt  in  james.txt  john.txt  stewert.txt
% rm *.txt
% xargs -a in -I name touch name.txt
% ls
george.txt  in  james.txt  john.txt  stewert.txt


How to remap default unity window placement shortcuts

Ho ho, just found the answer thanks to the comments on another thread : Laptop-friendly alternatives to Unity window-placement shortcuts

Those shortcuts are related to the "Grid" plugin. You can re-map them or disable the plugin using CompipzConfig Configuration Manager.


I also have this problem and I learned a lot trying to fix it. I couldn't find a GUI fix to this. I'm on a Dell Latitude D630 running 10.10, which is docked and runs two 23" LCDs.

Here's what I did, and what you can try:

xset s XXX

where XXX is the number of seconds you want the pc to be idle before it suspends/poweroff your monitor

xset dpms 0 0 900

The first zero is for standby, second is for suspend, and third is the off setting. This will turn off my monitor in 15 minutes if left idle.

You can test dpms standby, suspend and off settings with:

sleep 1; xset dpms force standby

You can replace the word "standby" in the command above with  suspend or off. In my testing, they all did the same thing; they each powered off the monitor (blacklight completely off). When I moved my mouse to wake the monitors, each command did it equally as fast. For my situation, I stuck with off.

xset -q

The above command gives you interesting details about your screensaver and DPMS settings. When I ran this command before changing anything, it says

Screen Saver:
prefer blanking:  yes    allow exposures:  yes
timeout:  0    cycle:  0

and

DPMS (Energy Star):
Standby: 0    Suspend: 0    Off: 0
DPMS is Enabled
Monitor is On

On a fresh boot, the timeout and cycle value under Screen Saver are 600. Over time, they change to the above.  This is a bug, and I'm sure its been reported @ launchpad.net. I couldn't find the appropriate bug report (if someone does, please share a link).

Now, specifying the commands above do not persist after you log out. The only way I could get it to work was to create a file called xset-start.sh in my home directory.

In the file I have:

#!/bin/bash

/usr/bin/xset dpms 0 0 900 &

You need to give the file execute permissions, otherwise it wont work.  Open a terminal and run:

chmod u+x xset-start.sh

To have startup at logon, do the following:

Go to System -> Preferences -> Startup Applications
Click Add
You can name it xset-startup
Browse to your home directory where xset-setup.sh is
Give the startup entry a comment if you'd like and click Add when finished.

Test it by restarting your computer. After restarting, open a terminal and run

xset -q

make sure the off value for DPMS is 900.

I'm sure there are global files and other per-user startup files this could go in.

this post: External monitors don't go into standby if laptop lid is closed states that the external monitors go to sleep properly if the lid is open on the laptop. I didn't test this, but it made me think if the laptop lcd is disabled in the "Monitor" preferences, are the dpms settings being honored by the external monitors?

References:

xset manpages
Custom X Session
A Primer on Screen Blanking Under Xorg
How to turn off the display via the command line?

Tips:

How can I put the display to sleep on screen lock?


That actually was syslog kernel messages and there's a deafult way to disable them to prevent spamming your console and apearing each time before you login, for example.

You just need to modify this file /etc/sysctl.confdoing the following:

    # Uncomment the following to stop low-level messages on console
      kernel.printk = 3 4 1 3

The line is commented by default. Removing the comment stops low-level messages from appearing in the console, e.g. console blinking before login screen appears as happens when laptop returns from suspend mode.
The message are perfectly available via dmesg or logged in journalctl so you can check them late if you need. The high-level messages will still appear.

That makes it estetically better as I do not want to see a lot of warning spam from my wifi each time I suspend my laptop. Besides I have a habit to check error log from tiem to time, so it works fine for me.

Found the solution there How to stop kernel messages from flooding my console?


If you want to start the service without a reboot, you should run:

$ sudo systemctl enable --now bluetooth

Or:

$ sudo systemctl start bluetooth

If you simply run systemctl enable it will enable the service for the next boot, but it wont start it.


I am a newbie also, so take this answer with a grain of salt.  Check your directory and see if you have a /Home directory.  This might be where you important files will be found.

Good luck.


Allowing mythfrontend on a remote machine to access mythbackend running on a second machine.

If mythfrontend is not being run on the same machine as mythbackend, there is some additional configuration required to allow remote access to mythbackend.

Two separate issues related to MYSQL on the mythbackend host may be at work:

First, ensure that networking is enabled in the my.cnf file '/etc/mysql/my.cnf' on the mythbackend host machine. In this file, by default there exists either the following (depending on version) which prevents a remote mythfrontend from accessing the info on the database on the mythbackend host.

skip-networking

or

bind-address localhost

or

bind-address 127.0.0.1

Instead of skip-networking the default is now to listen only on localhost which is more compatible and is not less secure.

So a suggested solution is to change 'bind-address' to the machine's LAN IP address - although this will only work if the IP address is static and not dynamically assigned.

Note

If bind-address is used, it can only be configured to use 1 IP address.

#skip-networking

or

#bind-address localhost

or

#bind-address 127.0.0.1

or

bind-address 192.168.3.4

Note

No '#' on the final example

Second, it may be necessary to alter the privileges table for the MythTV database to allow the frontend to access the mythbackend (NB; The mythfrontend communicates with the mythbackend by logging on to its mysql database -- generally as the user mythtv. On some systems by default mysql will not allow a user on another machine to login. The following grants users with id mythtv from any machine access to the mythtv databases).

This can be done by executing the following from the command line on the mythbackend machine (thanks to Torfinn Ingolfsen, Norway for this).

Notes:

The 'passwd' in the command below should be the password listed in MythTV's configuration, which is also found in ~/.mythtv/mysql.txt

By default, the mysql database root user has no password, so this also should be changed by securing the default mysql accounts, refer to: http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html

mysql -u root -p mysql
mysql> grant all on mythconverg.* to 'mythtv'@'%' identified by 'passwd';
mysql> flush privileges;
mysql> exit;

You may also have to open port 3306/tcp in your firewall.


Ubuntu won't boot up, keeps on re starting

Open up a terminal before login with ctrl+alt+F1

The first step is uninstalling the nvidia driver:

sudo apt purge nvidia-*

Then, upon reboot, What I would recommend is looking up nvidia in your Synaptic package manager. nvidia-340 Should do the trick. Mark nvidia-340 for installation, apply, and after that you'll have to reboot again. If you get the same rebooting problem after this let me know.


Create and Save New Folders/Files in Root directory

In principle, you can have folders in the root file system (/) for data without affecting or damaging system operation (apart from the fact that you risk damaging the file system if you commit an error while attempting to create folders). However, it is not elegant practice.
There is an agreed-upon file hierarchy standard in linux. /mnt traditionally is just a quick mount point for a temporary file system. /media is where removable media are mounted. Except for /home, all other folders essentially host system files. How /home is implemented is, however, not defined by this agreement. So that would lead me to conclude that any user data that is not on separate partitions belongs somewhere under /home.
User data in first instance resides under the user's home folder, which commonly is /home/<userlogin>. Thus, if you are the only user of that system, store "Videos", "Doc" etc under your home folder, preferably even in the folders that in an Ubuntu install are foreseen for that purpose.
If there is data you want to share with multiple users, I would recommend creating a folder /home/data, and then put your folders "Videos", "Doc" etc there. You can use symbolic links to create very convenient access to these folders for each user that needs it. Symbolic links act and feel like real folders, and allow you to create a folder in the home directory of the user that seamlessly brings the user to another part of the file system hierarchy. Of course, you may need to adjust permissions and groups of these folders to grant the users .
With respect to "Applications", stick to the maximum extent to software provided through the APT software management system of the distribution, or alternatively, to software from snap (available by default in Ubuntu), or flatpak or appimage. Other ways to get software may incur a risk to break the system, entail technical knowledge, or increase the risk to be exposed to malware.


Dual-Boot Windows 10 and Ubuntu, GRUB 2 not booting

First, you probably can disable Secure Boot; you just haven't figured out how. For systems that shipped with Windows 8, Microsoft required that users be able to disable Secure Boot, so if it really can't be done, Acer is in violation of their contract with Microsoft. That said, the option could be completely hidden or named in a confusing way. That said, disabling Secure Boot should not be necessary -- it does work for you, or you wouldn't have been able to boot the installer. There is one exception, though....

In the bcdedit command you said you used, specifying grubx64.efi bypasses Shim, which is what Ubuntu uses to deal with Secure Boot. Thus, that particular command will work only if Secure Boot is disabled. The equivalent that should work with Secure Boot active is:

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

You can also try using EasyUEFI in Windows. This is a third-party GUI tool for managing EFI boot manager entries. Try moving the working ubuntu entry to the top of the priority list.

If that doesn't work, then chances are your firmware is defective. I'd say to return the computer to the store for a refund, but if you've had it for beyond the return period, you may be out of luck on that score. There is an ugly hack of a workaround, as described here (among other places). At a minimum, if you need to resort to this "solution," you should write to the manufacturer. If possible, return the computer for a refund because it's defective.


ok, this might be stupid, but have you made sure you haven't accidentally hit the FN+ what ever Fkey turns off your touch pad?

try pressing it a few times and see what happens


You forgot to tell us if you are running Ubuntu, and what version.

On my Ubuntu 13.10, I'd have to edit /etc/dhcp/dhclient.conf and comment the following line:

send host-name = gethostname();

"Commenting" a line is just putting an # before it, so it would look like this:

#send host-name = gethostname();

Edited: by the way, this was already asked:

How can I stop sending my hostname via DHCP?


Clarification on sharing NTFS and installing GRUB2 with Windows 8.1

You should avoid making /home a NTFS partition, it does not support file permissions which may cause some headaches later. Besides that, if you plan on using hibernation, it may also lead to file loss and data corruption when you boot into Ubuntu while Windows is hibernated (and vice versa).

If you really have a need to share files, create another partition. So your disk layout will be:

Windows hidden boot partition.
C: Windows OS & programs
D: NTFS shared files
Ubuntu root and /home partition (or separate them if you like to)
swap partition (optional)

Since you have a Windows 8 installation, I guess that you have an EFI system where you need to install the GRUB image on a small "EFI system partition". I am not too familiar with this, so have a look at some related questions.


Choose autoinstall config by BIOS serial or mac

I think the most general solution would be to create a very basic user-data file that is used by default for all boots.  Within that user-data file, use early-commands to create a machine specific configuration at /autoinstall.yaml.  The machine specific configuration could be generated or simply copied from a predefined file.  The early-commands would be able to use anything available to shell commands, so serial number or MAC address could be accessed.  It will probably take some tinkering to get the early-commands to work as expected, and to get the proper format for the /autoinstall.yaml file.
I don't know if anybody has written up a full example of this process, but the docs for early-commands can be found at https://ubuntu.com/server/docs/install/autoinstall-reference


Upgrading kubuntu to version 12.10 stops

This is related to this question on launchpad.

The Virtuoso package seems to be unstable, as the upgrade sometimes fails and sometimes succeeds.


Why Doesn't The Full Amount of RAM appear?

If your system is 32-bit then this is no surprise. There are not enough bits to address 4 GBs of RAM on 32-bit operating systems.

Read this to get a clearer picture on why that is.

You can check if you are running 32 or 64 bit version of Ubuntu by running uname -a command. Look at the output and search for one of these:

"x86_64" - means you have 64-bit OS
"i386" or "i686" - means you have 32-bit OS


A right-click solution can also be nice in that it is faster and works also if you are off line.

No desktop environment was specified in the original question, so this answer will also be generic. Several file managers allow to define custom actions, which then can be executed by right-clicking the file.

A basic script to convert a PDF to jpg can be a one liner using one of several tools available. Using imagemagicks convert for example:

convert input.pdf output.jpg

will convert input.pdf into one or multiple jpeg files, sequentually numbered in the latter case.

Then it will depend on the file browser how this command can be incorporated into a script, and what placeholders need to be given to have input.pdf automatically substituted by the actual file name. For the default filemanager of Ubuntu 18.04, a how-to about adding your own script is provided here. A more powerful option that is not officially supported by the nautilus developpers, is provided by filemanager-actions. Users of Thunar can start here.


What modules do I need to run perl CGI with apache?

I was able to solve that with :

$ sudo a2enmod cgi

from that answer https://askubuntu.com/a/54259/23006


Will Ubuntu Touch be avalible for all Android phones? what version will I need for installation?

The primary target for Ubuntu Touch is dedicated handsets that come with the operating system.

As those don't exist yet, the supported devices being used for development are the Galaxy Nexus (GSM version), Nexus 4, Nexus 7 (2012 model) and Nexus 10.

Separate to this, there are community supported ports to some other existing devices.  If you are lucky, someone might do the work to create a port for your device, but it isn't guaranteed.


installation of qt5-default turned the red error icon into a yellow warning one and enabled me to build projects.


Brother scanner not recognized after Ubuntu dist-upgrade => 18.04

Here is what I did to solve the problem:

Reconfigure package(seen so many posts advising to uninstall/reinstall the driver so I came to an acceptable - though IMHO better - equivalent solution):

dpkg-reconfigure brscan3

Launch the skanlite binary (which is bundled by default in the Kubuntu distro): [1]

skanlite

[1] Not sure that this step really helped, any feedbacks about this would be very welcome :)

That's it, my brother scan was detected !


My problem is now solved. This was not the updates that screwed over my performance, but the replacement of one of my screens (I have dual screen). I did both almost at the same time so I suspected the updates. The addition of the screen (and subsequent change in resolution) caused havoc on my system and after a reboot, everything is back to normal.


How do I list the non-default settings in ccsm?

Install Compiz configuration settings manager (CCSM)

sudo apt-get install compizconfig-settings-manager

Open it, Go to Preferences → Profile&Backend tab → Export
Select path, Enter a file name then Save
A message dialog pop up:

  Do you want to skip default option values while exporting your profile?

Click Yes


You need to upgrade your docker installation. The docker homepage describes how to install docker-ce.

Follow the steps to the letter: remove current docker, add docker-ce repository, add pgp key then install docker-ce

$ sudo apt-get remove --purge docker docker-engine docker.io
$ sudo add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) \
    stable"
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install docker-ce


dpkg-source: error: can't build with source format '3.0 (quilt)': no orig.tar file found

This basically means that the build system is unable to find the source code. Are you sure that there is some file like xfce-appmenu-plugin.orig.tar.gz in the folder?

If yes, then you might be experiencing this problem. In this thread, the solution is to use dh_make --createorig. Alternatively, you can usedh_make -f ../xfce-appmenu-plugin.tar.gz. These will create the correct .orig.tar.gz, which can then be used by dpkg-buildpackage. Here, xfce-appmenu-plugin.tar.gz is the original source code in compressed form.

Looking through another source, I found this bug reported against dpkg-dev (Note that it is the same version that is shipped in Oneiric with the latest updates). The solution mentioned here was to rename the .orig.tar.gz to the exact name mentioned in the Changelog.


If you don't plan on sharing this drive with Windows, then ext4 will be the best option.

But, in case you have plans on dual-booting with Windows, then it is better to format the drive as ntfs, as this is accessible by both Ubuntu and Windows. But, be aware that file permissions may not work properly in an ntfs File System .


Will Ubuntu be ok after formatting windows 7?

Windows would rewrite MBR and purge grub from this drive sector, but don't worry - you can upgrade your Windows almost safe. Be sure you can run Ubuntu in recovery mode.

Here you have a guide how to do that: Recovering Ubuntu After Installing Windows


Missing applications in "Open With... Aplications" menu

If the application is not listed, once you click on Show Other Applications, then, an .desktop file needs to be created in ~/.local/share/applications

To create that file, take a look at this Post to see an example on how its done.


Failed to kill a process as its user, sudo, and root. What else could I have tried?

You could have tried

kill -1 6533

this sends SIGHUP to the process. Depending on the program it will re-read it's configs after receiving the SIGHUP. Not sure if this would of worked in your case but it doesn't hurt to try before restarting.

default kill just sends 15 SIGTERM. which just sends a signal to stop what it is processing.

you can get a list of them like this

kill -l

will show you all the signals you can use.


Convert .mov files to Home Theater compatible MP4

My recommendation would be to install & use Ffmpeg not WinFF.

sudo apt-get install ffmpeg

Once Ffmpeg is installed, open Terminal and paste the command:

ffmpeg -i input.mov -sameq output.mp4

Where input.mov & output.mp4  Change the filenames accordingly.

That command encodes the video into an .mp4 format but keeps the same quality as the original.


use dd to back up transfer hard driver image

Both dd and Clonezilla should be run when the computer is booted from a third drive. The source drive with the original system, and the target drive where you want the cloned copy should have no mounted partition.
The target drive must be at least as big as the source drive, not one single byte smaller. It is not enough that the nominal size is the same, look at the actual size of the source and target drives.
Both tools work, but Clonezilla is better than dd

Clonezilla is much safer because it asks questions and gives you a chance to double-check, that you will be writing to the correct target drive.
Clonezilla is faster because it can identify which blocks in the partitions that are used and copies only them, but skips the free blocks. It saves a lot of time, particularly if there is a lot of free space.
I suggest that you download a stable version of the Clonezilla iso file, create a live system in a  DVD disk, USB pendrive or memory card.

link: clonezilla.org


why do youtube videos stop loading after suspend?

I would suspect that it is more that Youtube has canceled the download stream.  If they didn't, I would think that the bandwidth you were using when you suspended would just be waiting indefinitely for you to reconnect and unavailable to another user.

Just think of how hard it would be for you to watch a Youtube video if 50% of the servers bandwidth was reserved for a bunch of computers that were not going to connect again for the next 12 hours.

I could be wrong here but I would be surprised if I am not at least very close to the truth.

P.S. You would be right about the cache having a bit of the video loaded in the buffer and when that plays out is when the video freezes, but it is not fixable if the video stream that it was loading has ended.


The latest version was for Lucid, but you can install the package also in Vivid with some aditionally packages.

Download the Lucid version of libgluezilla_2.4.3-2

32-bit

cd; wget http://security.ubuntu.com/ubuntu/pool/main/g/gluezilla/libgluezilla_2.4.3-2_i386.deb

OR
64-bit

cd; wget http://security.ubuntu.com/ubuntu/pool/main/g/gluezilla/libgluezilla_2.4.3-2_amd64.deb

Download xulrunner-1.9.2

32-bit

cd; wget http://security.ubuntu.com/ubuntu/pool/main/x/xulrunner-1.9.2/xulrunner-1.9.2_1.9.2.28+build1+nobinonly-0ubuntu0.10.04.1_i386.deb

OR
64-bit

cd; wget http://security.ubuntu.com/ubuntu/pool/main/x/xulrunner-1.9.2/xulrunner-1.9.2_1.9.2.28+build1+nobinonly-0ubuntu0.10.04.1_amd64.deb

Download libhunspell-1.2-0

32-bit

cd; wget http://security.ubuntu.com/ubuntu/pool/main/h/hunspell/libhunspell-1.2-0_1.2.8-6ubuntu1_i386.deb

OR
64-bit

cd; wget http://security.ubuntu.com/ubuntu/pool/main/h/hunspell/libhunspell-1.2-0_1.2.8-6ubuntu1_amd64.deb

Install dependencies available in the repositories (perhaps more depends on your current installation)

sudo apt-get install libnspr4-0d libidl0 libnss3-1d

Install

32-bit

sudo dpkg -i libgluezilla_2.4.3-2_i386.deb xulrunner-1.9.2_1.9.2.28+build1+nobinonly-0ubuntu0.10.04.1_i386.deb libhunspell-1.2-0_1.2.8-6ubuntu1_i386.deb

OR
64-bit

sudo dpkg -i libgluezilla_2.4.3-2_amd64.deb xulrunner-1.9.2_1.9.2.28+build1+nobinonly-0ubuntu0.10.04.1_amd64.deb libhunspell-1.2-0_1.2.8-6ubuntu1_amd64.deb

Tested in my Vivid system

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:    15.04
Codename:   vivid

% apt-cache policy libgluezilla
libgluezilla:
  Installed: 2.4.3-2
  Candidate: 2.4.3-2
  Version table:
 *** 2.4.3-2 0
        100 /var/lib/dpkg/status


are there any brands of laptops that are not compatable with Ubuntu?

So there are a lot of questions here and I will try to answer most of them. Here I will be speaking mostly from experience with Ubuntu over the last couple of years.

Officially supported Ubuntu laptops

Canonical keeps a list of laptops and desktops that have been thoroughly tested. If support is the most important thing to you, find something on this list. Personally, I think the list is a bit restricted. I have used a ton of hardware that isn't certified by Canonical and most of it has worked with no problems at all. That being said, I have wasted hundreds of dollars with hardware that I thought would work, and it didn't.

There isn't a specific manufacturer who has good or bad support for Linux, it all depends on the machine. You might notice that most certified machines are made by Dell and HP, but you could find great support from any manufacturer.

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

Surprisingly I have found Amazon.com a very helpful source of information. You can look at the reviews for a lot of popular products and easily find out if it has Linux support. You will know quickly if something has poor Linux support by looking at the user reviews. If you see a lot of Linux users complaining about bad support, its probably not worth your time.

Quick side note: System76 makes great (and expensive) Linux laptops.

Processor Support

This is pretty easy to answer, and I think a lot of people will agree with me on this one: Ubuntu can run equally well on AMD and Intel. A lot of people stick with AMD for building gaming machines because they are cheap, but Intel chips last longer and run cooler. If you're on a tight budget, go with AMD, but if you are willing to spend more money, go with Intel.

"Microsoft lock"

I'm not sure what you're referring to here, but here are a couple things off of the top of my head:

Safe Boot

This is just one of those things that Microsoft has enabled by default that doesn't add that much security anyway. It can be disabled in the BIOS pretty easily on most installs.

UFEI

At first, Ubuntu had some trouble with installing in UFEI mode especially while dual booting windows and Ubuntu. The installer has gotten much better and this shouldn't be an issue anymore.

Manufacturer Locked BIOS

There isn't much you can do here, fortunately this is not very common. P.S. users hate this 'feature' (cough cough Android).

Summary

Google is your friend. You can find information about Linux support for hardware on many different Linux forums. When in doubt, go with hardware that is certified by Canonical.


(this answer is tested and verified in real life)
Access NFS share with several different users / NFS mount ownership problems / NFS mount share files  / NFS mount access rights problems
With NFS
it is difficult to grant access to several different users.
I found a way:
Unify and use the group access the good old Unix way.
Solution
a) I create a default owner for the to-be-shared-files on the host / server machine.
Example: user  доступ uid = 1002, group доступ gid 1003.
b) We assume the NFS is working fine for every one.
Access r+w is granted to any user.
Unfortunately one user can not edit (=overwrite) the file of other users.
Idea:
One common group is created. It will become default group for all files created by any user
(Example: доступ, gid 1003).  This is based on the Unix idea of access rights by gid and uid.
c) Change ALL user machines UMASK from 022 to 002 in /etc/login.defs:
UMASK           002
Make sure, ALL existing to-be-shared-files belong to group доступ
(tipp: for existing files & directories use "find" command with option "exec" chgrp as sudo to adapt them all).
d)
Change ALL users default group membership.
Set default membership to доступ gid 1003.
Slightly anonymized  examples
Example for the hosts /etc/exports file:
/srv/alle-daten 192.168.075.0/255.255.255.0(rw,no_root_squash,nohide,no_subtree_check,all_squash,anonuid=1002,anongid=1003)
(the ids are related to the default user!)
Example for client mount in /etc/fstab :
192.168.075.111:/srv/alle-daten/      /mnt/network-alle-data-nfs   nfs     nofail,timeo=600,_netdev,users,rw        0 0
It took me years to find this solution. It is compatible to having an SMB mount in parallell for the same users and same files.
It works for me in real life.
If i missed to mention important config details just ask.
Discussion
The solution is probably overdefined. Please note the man page for exports (man exports) explaines the proper mapping of any user to one common uid/gid:

By default, exportfs chooses a uid and gid of 65534 for squashed
access. These values can also be overridden by the anonuid and anongid
options.  Finally, you can map all user requests to the anonymous uid
by specifying the all_squash option.

and further

all_squash: Map all uids and gids to the anonymous user.

Actually we do map them: To our default user доступ having uid = 1002, group доступ gid 1003  !
So there probably is a more simple solution possible.
There is always room for improvement!
constructive comments welcome.


How change display scale from the command line in Ubuntu 18.04 (xorg)

Determine your output device (mine is DP-1) by running xrandr on its own, then use this:

gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <2>}"
xrandr --output DP-1 --scale 1.5x1.5
xrandr --output DP-1 --panning 3840x2160


How to download game on linux ubuntu from a CD

Probably the CD must be having .exe application test if its Linux supported.
try navigating to the cd and typing

./configure
make
make install

If its Linux supported this wil do the trick or else you'll have to google for the linux version of the software


Well, it's a kind of big question, but if you're serious about making a distro, I think it can't hurt if you get Linux From Scratch and follow that. It's a DIY distro in the form of a book that provides step by step instructions and you end up with a working distro. It's very useful to understand all the underlying concepts of a GNU+Linux distro.

It would probably be easier for you to sell your services to your customers and provide your resulting hardening to upstream Ubuntu. Certainly much cheaper for you as you won't need to maintain everything yourself.


No login screen after upgrade to 17.10 (edited)

Try reinstalling the display manager, or switching. You can reinstall GDM3 by logging in to a terminal by CtrlAltT, and running

sudo apt install --reinstall gdm3

or, try lightdm, which is what was used in older versions of Ubuntu, you can install that by:

sudo apt install lightdm

it should then ask you which display manager you want to be the default, choose lightdm, and then run

sudo service lightdm restart

to avoid a reboot.

Another thing worth trying is removing the .Xauthority file with:

rm ~/.Xauthority

from the terminal, and your display manager should re-create the file, and hopefully start working again.


Sometimes I did not have time or courage to do it

Once is enough. All the other reports will error out with a message that this case is already registered (that is if it is the same error).

  I thought this would be solved with the next upgrade of Ubuntu

Often that is the case. But bugs also can be marked as invalid, or as won't fix, or as unclear.

  How can I know when to resume 'normal operations'?

Those reports end up on the bug pages on Launchpad so track down the bug and see if there is any progress on it. For a more detailed answer you probably need to include an error report into the question (that will probably tell you the package against it is filed and the bug id you need).

  Is it safe to turn off apport reporting in xdiagnose?

Yes, it is safe! However, even if it was No: I see no reason for you to keep getting crash notices to report ;)


How to automatically install entire Google Web Fonts collection?

The existing answer in this post is out dated and does not work (specifically, the remote hg repository no longer exists).

New instructions are available here: https://github.com/google/fonts

In summary:

wget https://github.com/google/fonts/archive/master.zip
unzip master.zip

Then, as previously:

sudo mkdir -p /usr/share/fonts/truetype/google-fonts/
find ./fonts-master/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || return 1
fc-cache -f > /dev/null


PyCharm Pro ImportError and Broken Virtualenv

from django.core.management import execute_from_command_line works perfectly plus you are getting the following error when using python3.7 interpreter in Ubuntu 19.04:

You must provide a DEST_DIR
Usage: virtualenv [OPTIONS] DEST_DIR

The PyCharm terminal is like the default Ubuntu terminal except that it can be used within the PyCharm application. It looks to me like there is a typo in your question and instead of running virtualenv cmd which would have worked in the terminal you ran virtualenv which wouldn't have worked.

You got the following additional error in PyCharm.

ImportError(Couldn't import Django. Are you sure it's installed and
available on your PYTHONPATH environment variable? Did you forget to
activate a virtual environment?)

That looks like another typo error. The correct command to import Django is import django not import Django.

If import django doesn't work either then you need to tell PyCharm to look for Python packages that were installed from the default Ubuntu repositories when you create a new project. If any of the project's Python packages are installed from the default Ubuntu repositories PyCharm will find them automatically if you select the Inherit global-site packages option when you create a new project.

Select File -> New Project to create a new project. Click the triangle marked by the mouse cursor in the below screenshot to show the new project's options.

Then check the Inherit global-site packages checkbox and click the  Create  button in the lower right corner of the Create Project window.


Can I use gpg on both Ubuntu and Windows to encrypt my files

The answer of the question: Can I use same encryption key for both Windows and Ubuntu? is Yes. You can definitely use the same encryption key on both Windows and Ubuntu.

How part of the question requires some more info:

To use gpg key on Ubuntu

Open password and encryption keys and import your gpg private to the keystore.

then you can use this key to sign and encrypt files you want. Here is a good tutorial about using gpg on Ubuntu.

To use gpg on Windows

To use the same gpg key on Windows download a suitable tool from this site. After installation is complete you can import the gpg private key into your keystore and use that key to sign your files. The documentation is here


Press Alt + F2, then type

gedit ~/.gtkrc-2.0

to start the text editor gedit with the file already opened. Then copy and paste the code, save the file, log out and back in again.


Enter Windows, exec cmd as administrator (important) and type:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
then reboot! Good luck!


XBMC Ubuntu Minimal Systems Requirements1

CPU: x86 or x86_64 processor such as: Intel Pentium 4, Intel Pentium M, AMD Athlon XP/64, AMD Opteron, or newer CPU. (Anything made in the last few years does.)
RAM: 256MB minimum, 1GB recommended
Graphics: XBMC will run on most graphics cards made in the last few years. This includes most cards from ATI/AMD, Intel, or NVIDIA which support OpenGL 2.0 or later.

ATI/AMD - minimum: ATI Radeon RV710/M92 (HD 4300/4500), recommended: ATI Radeon Cedar (Radeon HD 5400 Series) or newer
Intel - minimum: Intel GMA 950 (945G), recommended: Intel GMA X4500HD (G45) or newer
Nvidia - minimum: Nvidia GeForce 6-Series, recommended: Nvidia GeForce 8-Series or newer

Drive space: minimum: 4-8GB, recommended: 16GB or more

The Intel 82865G Integrated Graphics Controller is subject to this bug report: X Error of failed request: BadAlloc (insufficient resources for operation). From the bug description: My OpenGL has stopped working. According to this answer you can get OpenGL (by itself, not necessarily with XBMC) to work in Unity 2D with Intel 82865G Integrated Graphics by running this command:

sudo apt-get install xserver-xorg-core

1Source: XBMCbuntu wiki


OK so I have resolved the problem and wanted to share the solution with anyone who is facing similar issue,

I tried methods like

sudo rfkill unblock all
sudo service network-manager restart

but did not work

also tried methods mentioned

here
but did not work.

I tried to add following line to disable my internal wifi card,

iface wlan0 inet manual

to file /etc/network/interfaces then restarted network manager, it only ended up showing my internal wifi device as disabled in the menu but the USB wifi option was still disabled

finally this solution worked, I search for modules

lsmod

and apparently two modules were related for my internal wifi iwl3945 which was using iwlegacy module, I tried to unload iwlegacy but it failed since it was used by iwl3945.
However unloading iwl3945 also unloaded iwlegacy as well and immediately my USB wifi starrted to work,

sudo modprobe -rv iwl3945

But this lost its effect when machine rebooted,so to make it permanenet I have added this module in the blacklist.conf

  /etc/modprobe.d/blacklist.conf

then saved the blacklist file and run the command, this command rebuilds the initial directory structure that is loaded along with kernal at boot time and does not contain blacklisted modules

  sudo update-initramfs -u

then even after reboot the iwl3945 and iwlegacy modules remain unloaded and the system only sees one USB wifi and the menu to enable wifi is available,


The following is what is stated in the Ubuntu Official Documentation.

Open the Activities overview and start typing Users.
Click Users to open the panel.
Select the user account that you want to log in to automatically at startup.
Press Unlock in the top right corner and type in your password when prompted.
Toggle the Automatic Login switch to ON.


How to get sound in a separate X server in Ubuntu 11.04 or later?

When I did that kind of thing, I had to be part of the "audio" group. That way the audio from every screen could be heard. One problem: switching screens does not change the audio outputted. If I had an instance of KDE running on one screen and playing music with Amarok, I would be able to hear it on all screens.

If you (like me) don't know how to add a user to a group through the command prompt, just install "kuser" in Synaptic or the software centre or type sudo apt-get install kuser in the terminal.

I seem to remember having some problems starting it as root with the default launcher. If it gives you an error saying it cannot access a file, it generally isn't a problem, just make sure you are using the program as root. If it just tells you you need to be root, close the window, press ALT+F2, then type gksudo kuser. The computer will ask for your password, then Kuser will load correctly.


Ubuntu Tweak crashes on launch Ubuntu 13.04

Ubuntu Tweak 0.8.4, Now Compatible With Ubuntu 13.04

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get upgrade -y
or
sudo apt-get install ubuntu-tweak

Help Webupd8


These steps should be performed by first booting from live media as mounted partitions shouldn't be modified.

Insure that the swap partition isn't in use by by the live media by opening a terminal and issuing the command swapoff
Delete the swap partition (/dev/sda7 in your example)
Extend /dev/sda6 to the desired size reserving enough space for a swap partition of the desired size.
Recreate the swap partition (of the desired size)

Gparted usage is beyond the scope of this answer but there is a manual available for those who are unfamiliar with it's usage.


How to sucessfully install redis-server, "tclsh8.5 not found" error

It is a common error that shows up when you did not install tcl8.5 (source).

You need to install tcl8.5

sudo apt-get install -y tcl


You will need to select the startup device, this is usually done by pressing F12 at startup on most Toshiba units, sometimes it needs to be enabled in the bios.
Others you need to hold 0 as you start it, whichever it requires you will need to select the external media you need to boot from.


Is dual booting ubuntu 15.04 and windows 8.1 different from 14.04?

If you have successfully dual booted Windows UEFI with Ubuntu 14.04 in the past, you can use exact same steps to dual boot Windows UEFI and Ubuntu 15.04. There is no difference here.


Is it okay to burn CDs of Ubuntu and then sell them for a low or cheap price?

Personally I am not a lawyer, though I think you cannot sell anything legally without paying a taxes or getting a special permission. Furthermore, it would be a matter of ethics to sell something that is free (and more than free) in a first place.

Nevertheless, you can ask for the compensation of the service of writing the CD (practically selling the service). That would mean: You can offer to sell the CD by the price no less than a CD itself, but even better - for the price that is offered to you. Let the buyer determine the price. Besides that, you should emphasize they could download it online for free. That would be the path to spread the word of Ubuntu and to comprehend the meaning of the word "ubuntu" as well. Though I have no doubt for the latter because you already showed a great amount of ethics (not just for 13-year old) by asking this question in a first place.


Which folders are ABSOLUTELY safe to copy from an old 18.04 ubuntu machine to a new 20.04 ubuntu machine (without updating the former to 20.04)

Your question explicitly states: ABSOLUTELY safe.

Absolutely safe to copy, obviously, is your user data: documents, pictures, etc.

The other items in your home folder are user configuration data. Simply put, copying these is NOT absolutely safe, unless the application that uses them is at the same version as on your 18.04 install. The possibility exists that a newer version changed the format of its configuration files. The presence of the old configuration may in a few cases cause unexpected issues, although that will not be common. But the possibility is not excluded.

In practice, you will likely have no issues in 99% of the cases copying over your old configuration files to the new Ubuntu version. But it is NOT ABSOLUTELY safe.


mounted SSD not show in Logical Volume Management tool

If you want to access existing files on that volume, you should not be attempting to use Logical Volume Management (LVM). In most cases, the desktop versions of Ubuntu will automatically mount NTFS volumes when you plug them in, or at least give you an icon you can use to mount these volumes. You can also use the mount command to mount them manually.

Note that NTFS is a poor filesystem choice for use with Linux. You should use NTFS only on disks that are shared with Windows. This could be removable disks that you move back and forth between computers or partitions used to store shared data on a dual-boot computer. If you intend to use the disk in a Linux-only environment, you should probably create a fresh Linux-native filesystem on the disk. This does not need to involve LVM. See, for instance, this question or this one for information on this subject.

LVM, by contrast, is used to make managing multiple filesystems easier, particularly in complex setups with multiple disks or when you need to frequently add, delete, or resize Linux filesystems. If you want to discard all the files on the disk's existing NTFS partition and use it as an LVM physical volume (PV), you can do so, but you'll need to learn about LVM to proceed. Note that, although LVM adds a great deal of flexibility and can simplify some operations, it has a significant learning curve when you're just starting out. Completely describing it in an answer on this site is therefore impractical. Instead, I suggest you read an existing Linux LVM tutorial, such as:

This one on the Ubuntu wiki site
This more complete tutorial on HowtoForge
This one on LinuxConfig


How do I remove chromium browser completely from 20.04

First, don't worry too much about "complete removal". Your system will not loose performance in any way. At worst, some disk space will still be occupied.
Chromium is installed as a Snap. When removing, the program files are automatically erased from your disk. Your user configuration for chromium is automatically backed up in a system folder and purged automatically after 30 days.
What will remain, is a "chromium" folder in your "snap" folder right in your home folder, containing very few items. Feel free to remove that. Leave the rest to the automated framework for installing and removal of software, with which you interacted through Ubuntu Software.


Installed Ubuntu 12.04 and no Menu on boot!

Maybe there is a Windows recovery environment (just maybe) and you chose that place as the place to install GBUB.

Whatever reason, follow these steps to restore GRUB.

Keep in mind that it doesn't overwrite the MBR, instead it adds a GRUB entry to the windows Bootloader.

Source

Download Easybcd here.  It's a tool that can edit the windows bootloader and it is a very popular program along Windows-Ubuntu users.
Open EasyBCD.
Go to "Add new entry"> Linux/BSD  and then select GRUB2 from the dropdown menu.  Name the entry whatever you want, like "I love linux" or "Ubuntu GRUB".

That's it!  You should see a GRUB entry in the Windows boot menu when you reboot.  Select it and choose "Ubuntu generic . . . . . .pae" from the GRUB menu(if the installation failed then you might not see it).

Good Luck!


You can install Ubuntu 16.04.1 with the 4.4 kernel.

You can download images from HERE

The 4.4 kernel still gets security updates. I don't recomment to install the 4.11 kernel.


Does Lenovo ideapad series support Ubuntu y510/z510/u510

Welcome to AU! The Lenovo support site does have over 100 documents mentioning Linux here.  A number of Ideapads show up on the first page.


I've fixed the issue. I restored the wallpaper using Ubuntu Tweak. That magically fixed the garbled screen login.


Run the command:

sudo apt-get install build-essential

Chances are you will need things like gcc to actually do the building so you might as well install those as well. The build-essential package will install other tools used along with make.


Click on the Super (Windows) key and open software sources.

After that click on the other software tab

Find the repository that you posted (http://ppa.launchpad.net/rohityadav/vlmc/ubuntu/dists/quantal/main/source/Sources) and remove that. You need to enter your root password to do that.

Again start the update manager and you will be fine.


There is a scope for the music lens for Audacious available in the Scopes Packagers PPA.  To install, enter the following in a terminal:

sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update && sudo apt-get install unity-scope-audacious

Log out and log back in again to activate the scope.


Looking at panic.c:

/**
 *      print_tainted - return a string to represent the kernel taint state.
 *
 *  'P' - Proprietary module has been loaded.
 *  'F' - Module has been forcibly loaded.
 *  'S' - SMP with CPUs not designed for SMP.
 *  'R' - User forced a module unload.
 *  'M' - System experienced a machine check exception.
 *  'B' - System has hit bad_page.
 *  'U' - Userspace-defined naughtiness.
 *  'D' - Kernel has oopsed before
 *  'A' - ACPI table overridden.
 *  'W' - Taint on warning.
 *  'C' - modules from drivers/staging are loaded.
 *  'I' - Working around severe firmware bug.
 *  'O' - Out-of-tree module has been loaded.
 *  'E' - Unsigned module has been loaded.
 *  'L' - A soft lockup has previously occurred.
 *  'K' - Kernel has been live patched.
 *
 *      The string is overwritten by the next call to print_tainted().
 */


Try this:

Boot the Ubuntu Live DVD/USB.
Press Ctrl-Alt-F1
Use fdisk utility to list the partitions on a device.

sudo fdisk -l

Suppose it informs that / is /dev/sda4 and EFI system is '/dev/sda1', continue running:

sudo -i
umount /dev/sda4
mount /dev/sda4 /mnt
umount /dev/sda1
mount -t vfat /dev/sda1 /mnt/boot/efi
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
nano /etc/resolv.conf

In the open file paste these lines:

nameserver 208.67.222.222
nameserver 208.67.220.220

Control + O, save file. Control + X, close nano. Continue running:

apt-get update
apt-get install --reinstall ubuntu-desktop aptitude deborphan grub-efi
cp /boot/efi/EFI/ubuntu/grubx64.efi  /boot/efi/EFI/boot/bootx64.efi
update-grub
aptitude remove '?and(?reverse-depends(kubuntu),?not(?reverse-depends(?exact-name(ubuntu-desktop))))'
apt-get install --reinstall ubuntu-desktop
apt-get -f install
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get autoremove
apt-get clean
exit
umount /mnt/sys
umount /mnt/proc
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt
reboot


Connecting to a ubuntu 14.04 VM-Guest from the Windows-VM-Host using putty if the Windows Host hast no network connection at all

You need to install VMware workstation with the option "host networking" selected.

Than you need to configure the host and the client accordingly.

Read this support article to understand and proper configure those options.


How to get root access to my primary account?

Source:

In standard Ubuntu, root logins are not allowed, neither from the GDM (graphical) login manager, nor from the text console (i.e., the one you get if press Ctrl+Alt+F1).

In order to perform root (i.e., administrator) operations you have to use the sudo command in a terminal, or any GUI equivalent of it: these will ask you for your password and then perform the requested privileged operation (and only that one).

The reason for this behavior is, as others have pointed out, that performing root operations is inherently risky and the number of operations really requiring root privileges is comparatively small: by using this sudo approach you are running most of the time with a unprivileged account (i.e., harmless to the system and other users) and just get the root powers when it's really needed.

An example might help clarify.  Assume you want to install a new service (daemon) on your machine; this is relatively new and you need to read about it and how to configure it to your needs.  You will end up browsing the web a lot to find information, example configs, etc., maybe have some IRC chat to ask for more info -- none of this requires root powers! In the end, you only need privileged access for two operations:

install the new program (i.e., sudo apt-get install ...), and
edit the default configuration

A commonly accepted principle in computer security is always use the least possible privilege level to perform an operation. -- this reduces the risk that something bad happens because of bugs in the software or errors from the operator.

The Ubuntu default setup goes in this direction; if you were using a root login, instead, you would have ended up surfing the internet, doing IRC (and possibly all the other stuff that one does concurrently) from the root account, thus needlessly exposing the system to a threat.


Audio CDs (that is, ones conforming to the Red Book standard) use uncompressed Linear PCM for their data so take up huge swathes of space on a compact disc. Some are extended (thinner spindles, more outer tracks) but these improvements give minutes extra.

The limits for audio on CD are just under 80 minutes. Their bitrate is 1411kbps.

If you put compressed audio on a CD as data, you can change things around. You can use something like the Speex codec to get things down to just 4kbps if you wanted to. With that you could fit 450-470 hours* on a data CD.

The only problem is you're limited to where you can play this disc. Any player will need to know the Speex coded so almost all CD players (eg Hi-Fis) are going to struggle. You'll most likely need to play the disc through a computer.

If this is no good, you could look at low-bitrate MP3 (16-48kbps VBR - any lower will be horrible) and you'll only get ~50 hours per disc but a lot more hardware CD players support MP3 tracks. That has been an increasingly common feature in them for some years.

* There's going to be a bit of overhead from the file format but it'll be a hell of a lot more than 80 minutes or 80 hours.


LightDM not loading in 12.04 in VirtualBox

I had UEFI enabled. After disabling that, I was able to boot.


How do I change the base language of a computer I inherited

Try runnning LANGUAGE=C gnome-language-selector from a terminal window (Ctrl+Alt+T). It will bring up the Language Selector in English. From there, you will be able to set the language of your choice as the default.

If that doesn't work, try:

LANGUAGE=C sudo apt-get install language-pack-en


Guest account can't set up wifi connection without admin password

I have tried it in guest-session in the Question and successfully connected to new wifi connections scanned.
as a super user edit the file /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
find the below part
  <action id="org.freedesktop.NetworkManager.settings.modify.system">
    <description>Modify network connections for all users</description>
...
...
...
    <defaults>
      <allow_any>auth_admin_keep</allow_any>
      <allow_inactive>auth_admin_keep</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

Edit the line <allow_active>auth_admin_keep</allow_active> to <allow_active>yes</allow_active>
save the file and restart the gnome-shell with "Alt+F2 r Enter" Method.

credits: https://askubuntu.com/a/315900/739431