I never figured out what exactly was wrong, but I know it was a software issue; not only was the OS capable of recognizing the Nexus 4 android phone as a storage device (but no other USB flash drive), but when I booted up using a bootable USB with Ubuntu 14.04 LTS, it worked just fine. I was able to plug in and use a second USB to store my back up data after mounting the ssd in the usual manner through Nautilus. I had to use command line 'sudo -i' to be the root user before copying the folders, since my home folder was previously password-protected, but it all worked out in the end. A subsequent fresh install of Ubuntu has solved all of the original problems.

Moral of the story: whatever the problem was, it was fixed by a fresh install, preceded by backing up through a USB-bootable version of Ubuntu.


ffmpeg static builds from john requires libraries?

I suspect that you are picking up another version of FFmpeg as John Van Sickle's FFmpeg does not show these error messages.

Try installing as follows:

mkdir ~/bin && cd ~/bin
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
tar xvf ffmpeg-git-amd64-static.tar.xz --no-anchored 'ffmpeg' --strip 1
source ~/.profile

And this should set you up with John's static FFmpeg for a local user! I tested this on my 18.04 system and it worked very well. Only remaining task would be to consider removing the archive remaining, if you have no further use for it:

rm ~/bin/ffmpeg-git-amd64-static.tar.xz

And that should do it...

References:

Frequently Asked Questions: The FAQs for John Van Sickle's FFmpeg static builds with a few more installation options. I note that he does not use the ~/bin approach that I have described here.


How do I take over unallocated space on a flash drive with gparted?

The allocated space at the front of the drive was created when the NTFS partition was created... and the partition was aligned to a cylinder or MiB boundry. Partition alignment is important for performance reasons. That being said, you wouldn't normally place a NTFS partition on a USB flash drive, but on a SSD or HDD, and where partition alignment and performance become more important issues.


/etc/init/rc-sysinit.conf file is missing in Ubuntu 18.04.01

You can't get this file on Ubuntu 18.04 LTS as it uses systemd.

Previous versions had upstart and this file was installed as a part of it (see search results in packages.ubuntu.com).


How can I reload dhclient without restarting network?

The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. Open a terminal and type the command:

$ sudo dhclient -r

Now obtain fresh IP:

$ sudo dhclient


disable accessing cdrom for specific user

You could use the file system permissions to block all removable devices.

Currently in Ubuntu all removable devices are mounted in /media

Using the chmod command you can block all renovable devices:

sudo chmod 700 /media

This can be allow the root user only mount the removable disks not the normal users.

In order for the optical drive to be used only by root, you can also edit the file /etc/fstab:

exec sudo -i
mkdir /media/dvd
nano /etc/fstab

And add this line:

/dev/sr0    /media/dvd    auto    noauto,defaults    0 0

Ctrl+O Save file Ctrl+X Close nano


volume jumps to 100% when inserting or removing headphones

Try controlling the volume using alsamixer.


gedit is a text-editor that supports plugins.

One of the plugins is Spell: Checks the spelling of the current document. This plugin is shipped with Gedit by default, you can activate and desactivate it in the Options.

Once the plugin is activated, push Shift+F7 to activate the spell-check, or Tools > Spell-Check.

You can also activate automated spell-checking in the Tools menu.


There is no virus, uninstalls and installs are part of the upgrade process.


mps430-gcc .run file not doing any thing

first of all, I think the problem is not explicitly related to VirtualBox nor to the host system. I encountered this problem trying to run the 3.05.00.00 compiler installer on Ubuntu 14.04 64bits (not the full installer).

Seeing this post on TI forums (http://e2e.ti.com/support/development_tools/compiler/f/343/t/421764), I installed all the CCS prerequisite (http://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv6#Ubuntu_14.04_64bit), rebooted the pc and it finally worked :

sudo apt-get install libc6:i386 libx11-6:i386 libasound2:i386 libatk1.0-0:i386 libcairo2:i386 libcups2:i386 libdbus-glib-1-2:i386 libgconf-2-4:i386 libgdk-pixbuf2.0-0:i386 libgtk-3-0:i386 libice6:i386 libncurses5:i386 libsm6:i386 liborbit2:i386 libudev1:i386 libusb-0.1-4:i386 libstdc++6:i386 libxt6:i386 libxtst6:i386 libgnomeui-0:i386 libusb-1.0-0-dev:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 unzip


Problem seems to be present in Kernel 4.4.0-112. As downgrading to 4.4.0-104 removes my issue.

Try:

sudo vi /etc/default/grub and change your GRUB_DEFAULT=0 to: GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 4.4.0-104-generic"

Include the "quotes". Then do a sudo update-grub This should select the default kernel to be something workable for you, provided you have that -104 kernel as I do. Not knowing when this issue entered the kernel, you may have to play around with a few kernels on your box to see if you have a workable one. Then I guess we wait for the kernel to be fixed.


Crontab is not running properly with .py

It works when you run it manually because you are probably running it from the directory containing the config.txt file. Your crontab will be running from the home directory of the user whose crontab it is. So, if you ran crontab -e as the user foo, it will be looking for /home/foo/config.txt.

The simplest fix would be to use the full path in your python script:

my_bot = TwitterBot("/home/foo/config.txt")

Also, you script looks kind of strange. Why so many imports? Why reinitiate the bot so many times? I can't test it, but are you sure you don't just want:

#!/usr/bin/env python

from TwitterFollowBot import TwitterBot
my_bot = TwitterBot("config.txt")
my_bot.sync_follows()
my_bot.auto_rt("@ShoutGamers", count=2200)


Click on "Show Applications" (the 9 dots at the bottom left of your screen), then select "Settings".

When you have opened Settings, choose "Displays". Then I don't remember exactly what it looks like when you have two displays, but there should be some way to choose that you want to mirror the displays, you choose that in a drop-down list or similar.


They are bug fixes for installed apps
Security fixes for OS
Hardware fixes
Unity/Gnome/KDE/Xfce Fixes and updates
Also new features in some cases (Thanks Ashu)

They are helping you just you wont see the benefit of them all. I update regularly to make sure I have the latest security fixes. You don't need to update all the time, if you have a stable install just work with it until you feel you want to upgrade.

Bill


How to proceed installation after reaching at 'Try Ubuntu'?

Your install media is probably corrupt. When booting the install media there is an option to "Check CD for defects" this is somewhat misnamed. It really is a file-integrity checker, but the other way sounds better. Do that "Check CD for defects". Your files are probably @#$!.  Also give us more info: How much Memory do you have? Which version of Ubuntu are you using? et. al.


How to find out on which partition my home dir is?

Use the df command with the -P flag:

$ df -P /home/
Filesystem     1024-blocks     Used Available Capacity Mounted on
/dev/sda6        913043932 90791288 775849572      11% /home

If home is not on a dedicated partition, you'll get something like:

$ df -P /home/
Filesystem     1024-blocks     Used Available Capacity Mounted on
/dev/sda5         39240312 12539228  24684728      34% /


Setting DISPLAY=:0 has no effect to notify-send via ssh

notify-send needs to have session credentials to be able to send notifications within your friends session. These are stored in Environment variables included in a session when you login, this prevents rogue background processes from messing up your desktop.

An easy way to make these session credentials available (and subvert the security of the desktop completely) is to have the desktop session start a screen session and then background it.

you can then ssh to it , connect to the screen session and then your notify-send will work. If you do this ensure your flatmate is fully aware that you have total access to her desktop and files.

To configure the screen session:

From the dash run 'Startup Applications'

click add , give it a name and enter the following in command:

screen -dmS desktop_session

Then when you connect via ssh

screen -r desktop_session
notify-send "Insecure message"

You can then run any command and have its graphical output appear on that desktop session.

You will need to do this interactively, if you want to do it non-interactively you could have a shell script poll a file and when it has data send it to notify. or just use an instant message client.


Share folders between windows and ubuntu in Virtualbox

This is described in the manual here. The command to map a drive in the XP guest is:

net use x: \\vboxsvr\sharename

Or you can map a drive using the windows tools. The 'server' name is always vboxsvr


Try this dude.

Type in terminal

sudo nano /etc/default/grub

then find a line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Modify it to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" acpi=force apm=power_off

Type in terminal sudo nano /etc/grub/modules then add apm power_off=1 under line lp. Save and close the terminal.

Update the GRUB

sudo update-grub

Source: Reboot after shutdown (Ubuntu 14.04 (also 12.04); Dell latitude E7440)

It worked for me


Got the server running! :)

The problem is because there are 2 Listen 54912 inside config. So by changing the file httpd.conf to Listen 14912 and retaining the file ssl.conf to Listen 54912, I can now run apachectl startssl and after entering the password, the server is up and running!

Special thanks to Tim Yencken for the help. (Dunno if he's here or not).


The Ubuntu Touch package manager is called click. Apt and dpkg are available but for safety/reliability reasons the rootfs is read only.
If you want to install software from the Ubuntu Archive, you should use an Ubuntu Touch feature called Libertine Containers (available from the preferences menu, and on the CLI). Further details can be found on the UBports documentation web site.


You can use emacs, gedit etc to write your java code and compile in terminal, if you wish to use IDE for java you can use eclipse or netbeans.

The list of editors is really very long. See What IDEs are available for Ubuntu? to know more.


i Installed Ubuntu 17.10 alongside windows 10 But Windows 10 starts Automatically without showing OS Selection message

Maybe you can try installing Boot Repair.

This will help you to recover the properly boot systems from other operative systems.

First, install the repositories

sudo add-apt-repository ppa:yannubuntu/boot-repair

Then, update them

sudo apt-get update

Later, install the program

sudo apt-get install -y boot-repair && boot-repair

Then, a screen like this will appear:

Use the recommended repair, or take a look the the Community help page of the program (linked above)


Though a proper library is the best solution, I'd like to show a simple alternative: use \r (carriage return) instead of \n (line feed) for line endings, so that that the cursor is placed at the start of the current line, instead of on the next line.

#! /usr/bin/python3

from time import sleep

for i in range(100):
    print('[' + '='*i + ' '*(100-i) + ']', end='\r')
    sleep(0.1)


text between 2 words with some lines before patterns

You can do:

grep -Pzo '(?s)\n\K([^\n]*\n){3}[^\n]*command[^\n]*\n.*?\n[^\n]*ideal[^\n]*(?=\n)' file.txt

-P enables Perl Compatible Regex, -z makes the input data separated on ASCII NUL rather than usual newline, -o lets up take only matched portion
(?s) is DOTALL modifier, this enables us to match newline (\n) with . token
\n\K([^\n]*\n){3} matches \n at first and then discards the match \K, ([^\n]*\n){3} matches three lines before line containing command
[^\n]*command[^\n]*\n.*?\n[^\n]*ideal[^\n]*(?=\n) matches all lines starting from line having command till the line containing ideal

Example:

% cat file.txt
my name is
Mansour
and I confuse to
use sed
or grep for
piping my command output
to get
my ideal output

% grep -Pzo '(?s)\n\K([^\n]*\n){3}[^\n]*command[^\n]*\n.*?\n[^\n]*ideal[^\n]*(?=\n)' file.txt
and I confuse to
use sed
or grep for
piping my command output
to get
my ideal output


The answer is to enable the broken_shadow functionality for the pam_unix.

In /etc/pam.d/common-account, find the pam_unix line and add broken_shadow to the end of it:

account [success=1 new_authtok_reqd=done default=ignore]        pam_unix.so  broken_shadow

Description:

  Some network setups include 'x' in a crypted password field, but have
  no shadow information. When this happens, pam_unix fails account
  management because it can't read this information. A 'brokenshadow'
  option assumes that errors reading the information mean that it
  doesn't exist, and allows the user to log in.


Copying files over from Ubuntu to Windows via Ethernet?

I would recommend using setting up a Samba/CIFS share on Linux. They run on a network file sharing protocol that both Linux and Windows understand. Since the content can be accessed by both machines a "transfer" as you're thinking isn't absolutely necessary. In this case archiving and compressing data may not be necessary. However, if you were still planning on taking what was in the CIFS share and copying it locally then there would be some value to 7z.


How to avoid /bin/sh -c /bin/bash and /bin/bash running for the same shell script?

You could try including the shebang #!/bin/bash at the start of test.sh.

This sets bash as your shell for the script from within the script itself, without having to spell it out explicitly in your crontab line.


Why image in VirtualBox 5.2.18 doesn't work with latest VirtualBox 6.0.8?

I had the same problem installing virtualbox 6 while having virtualbox 5 already installed. Before installing virtualbox-6.0, I just tried

sudo apt remove virtualbox

and then

sudo apt install virtualbox-6.0

but when trying "apt upgrade" lead to:

The following packages have unmet dependencies:
virtualbox-6.0 : Conflicts: virtualbox
                 Conflicts: virtualbox-qt but 5.2.18-dfsg-2~ubuntu18.04.5 is to be installed

so I realized there was some package not correclty removed.

sudo apt autoremove --purge virtualbox*
sudo apt install virtualbox-6.0

finally worked for me.


Can I limit how much graphics memory Ubuntu uses? (Cuda/OpenCL related)

Stop using a compositing window manager. They use the GPU for their special effects, which means that in addition to the framebuffer in VRAM, every window is backed by a texture in VRAM and shaders are used to render the desktop. If you use a simpler window manager with no fancy or 3d effects there should be less contention for your GPU resources.

(Some compositing window managers can be run with compositing features disabled, so try that before you go shopping for an entirely new window manager.)


The screenshot shows an error with the device 0003:256c:006e.0003, which seems to be an Huion tablet. Maybe disconnecting it could help solving the problem.


You are right: these arguments are not documented in man synaptic and in builtin help (synaptic --help) either.
So the only possible way to know what these options really do is to read the source code of Synaptic application - check gtk/gsynaptic.cc to get some details.


Resolution and screens not detected properly

Ok, so this seems obvious now as I've found the solution.

For some reason 12.04 couldn't find a 16:9 resolution that both screens could handle. 12.10 did work on the login screen, but not later - I still don't know why.

I've tried the daily build of 13.04 and it did work well with 1366x768 on both displays, so I decided to try setting up mirrored desktop. And it did work well.

The solution was to uncheck the "Mirror displays" box and now everything works perfectly on 12.04.


Bash Script: Batch file rename to remove/change all characters illegal under a windows filesystem

Create a script rename1.sh:

#! /bin/bash
old=$1
new=${old//[\''"?*%#^!@$&()=+[]{};,`~']}
new=${new//['<>:\|']/-}                   # I removed /, see below.
if [[ -e $new ]] ; then
    if [[ $old != $new ]] ; then
        echo Cannot rename "$old" to "$new" - target already exists.
    fi
else
    mv "$old" "$new"
fi

It renames one file according to the given rules using parameter expansion. To rename a subtree, run it with find:

find /path -exec rename1.sh {} \;

Are you sure you want to replace / with -? It would put all the files into the same directory.


This happened to me today:

From conky display the process ID is 14633, so in the terminal use:
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~/Python$ ps -o ppid=14633
14633
17412
 3140
[1]+  Done                    gedit gmail-list-msg.py
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~/Python$ ps -s -p 14633
  UID   PID          PENDING          BLOCKED          IGNORED           CAUGHT STAT TTY        TIME COMMAND
    0 14633 0000000000000000 0000000000000000 ffffffffffffffff 0000000000000000 R    ?          9:16 [kworker/4:0]
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~/Python$ ps -s -p 3140
  UID   PID          PENDING          BLOCKED          IGNORED           CAUGHT STAT TTY        TIME COMMAND
 1000  3140 0000000000000000 0000000000000000 0000000000001000 0000000180010000 Sl   ?          0:07 /usr/lib/gnome
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~/Python$ ps -s -p 17412
  UID   PID          PENDING          BLOCKED          IGNORED           CAUGHT STAT TTY        TIME COMMAND
 1000 17412 0000000000000000 0000000000010000 0000000000380004 000000004b817efb Ss   pts/19     0:00 bash
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~/Python$

The 100% CPU usage was caused by using:
gedit gmail-list.msg.py &

gedit is used all the time as a background process and this is the first time I've seen 100% usage.

After closing gedit the offending process: kworker/4:0 is still using 100% of one CPU.
After closing gnome-terminal the offending process is still using 100% of one CPU.
After opening a new terminal using sudo kill 14633 doesn't help.
After using sudo kill 3140 there is no change.
Using sudo kill 17412 has no effect.

The only option left is to reboot and monitor if using gedit Xxxx & causes problem to reoccur.

First Reboot
After first reboot the problem shifted from CPU 4 to CPU 0 and offending kworker changed from 4 to 3.
Gnome terminal was automatically called by Startup Applications which seemed a regression of this bug: Debian Bug report logs - #594245
gnome-terminal using a lot of cpu
I deactivated gnome-terminal from Startup Applications and rebooted

Second Reboot
After second reboot no CPU is running at 100%.
I notice another problem where CPU frequency is running close to maximum of 3,000 MHz when it should be around 1,000 MHz with powersave governor active (which it is).
I also notice a crash report on pstree which is called by one of my bash script daemons that didn't wake up properly. I filed the automatic data collection bug report with Ubuntu and then rebooted.

Third Reboot
The BIOS start up screen seems frozen. Do a 1 second power button press and it acts like a 10 second power button press (hard power off).
Press power button again for cold boot (no longer a Restart / Warm Boot).

Power up after Shutdown
All is well again. Unknown what exactly went wrong but hopefully the documented steps helps others diagnose transient errors.


Try doing Ctrl+Alt+C. Tested on my Kali Linux. I wasn't able to find the reason for it. But it seems like something common and needed so I had to answer even if wasn't able to find the reason.


Try:

rsync -aP /ORIGINAL_A/* /DESTINATION_C/

This is like a copy of the folder A

rsync -aP /ORIGINAL_B/* /DESTINATION_C/

That should sync the folders A an B to another the new folder C.

You could sync the file from A to B directly but you don't will have data loss this way.


First and foremost, I strongly recommend you to never run mendeley as super-user (i.e. with sudo). On top of the fact that this program does not need such privilege to work properly, it is also fairly risky: we are talking about a closed-source program, which means that even-though it comes from a trusted source (do we really trust Elsevier though?), nobody apart from Elsevier knows how it works. So who knows what it is actually going to do with such privileges?
Concerning your question:
TL;DR: after backing up your files (in particular Mendeley library folder…) do a mendeleydesktop --reset.
More details:
I just ran into a similar problem, which I just fixed. I am using a computer that was originally installed with Ubuntu 18.04. I did an upgrade to 20.04 by installing a brand new / partition in place of the former one, while keeping my /home partition. This means that eventhough the "system" partition (/) was reinstalled from scratch, the configuration files were kept (because they are stored in /home).
So I had to reinstall all the applications I use, including Mendeley. I went to the Mendeley website and downloaded the latest version (1.19.4) "for Generic Linux" which comes as a .tar.bz. After unzipping the archive and copying it to /opt/mendeleyDesktop/, mendeley can be started as ./bin/mendeleydesktop… And I ran into exactly the same problem as you did!
The fix: using the answer from this forum, I resetted mendeley by typing ./bin/mendeleydesktop --reset which deletes all configuration files (includes the local copy of the Mendeley library, so you might want to do a backup of it first). After that, mendeley could run smoothly as it always had been.
In the end, it seems the problem was a conflict with the configuration files of my previous install of mendeley, which I had kept.


wireless detecting network but not connecting - ubuntu 12.04

DNS problem, maybe?

Have you edited

/etc/NetworkManger/NetworkManager.conf

or

/etc/network/interfaces

My 12.04 wifi problems were fixed when I disabled iPv6 and edited /etc/network/interfaces to include just

auto lo
iface lo inet loopback

(Don't have to delete everything else, just ## comment out.)


The building of ddebs is down to the build system and the Debian packaging.

The openal-soft source package is in universe so is community maintained. If this is fixed in Ubuntu, then it would primarily fall to the MOTU team. Any fix would best be forwarded up Debian as well, since ddebs apply to Debian too. In Debian, the appropriate person is the maintainer of the openal-soft package.

You should check for existing bugs in both Debian BTS and Launchpad, file bugs as appropriate, and link Launchpad bugs to any corresponding Debian bug.

Providing a suitable patch directly to the Debian maintainer in a bug filed in the Debian BTS is the easiest way to get something like this fixed. Then the change will eventually arrive in Ubuntu, or you can ask MOTU to merge any fix from Debian in the meantime.


Yes, and no. You have something which is called laptop mode tools:

https://help.ubuntu.com/community/PowerManagement/ReducedPower

Above webpage does not mention support for wireless, but you can read about it here:

http://manpages.ubuntu.com/manpages/natty/man8/laptop-mode.conf.8.html

Take a look - maybe you will some settings which fit you.


How to move entire Back In Time backup set to new hard drive?

You need to add rsync -H to preserve hard-links.

rsync -avhH --progress /SOURCE /DESTINATION

Alternative you could use tar to copy the snapshots because tar will preserve hard-links as well

cd /DESTINATION; tar cf - /SOURCE/* | tar xf -


Matlab says invalid file installation key

As I understand Matlab, they have different installation keys for different variants of the application - a Windows key won't work for Linux, and vice versa, while known 'leaked' keys are probably no longer valid in Matlab's installer systems.  As well, an isntaller key for a different version of Matlab won't help you either (as in 2014 vs. 2015)


how do I change the default wallpapers in Ubuntu 13.10?

You can find wallpapers from

 /usr/share/backgrounds/


No sound on Asus Zenbook UX430 with Ubuntu desktop 18.04

It was solved automatically after a while. Then it happened again now. There was no answer to my question, but I figured out by my self.
Just shutdown!!!
I was doing restart and trying different things to fix. But the solution simply is to shutdown the computer and turn it on again.


Update/upgrade a program installed via tar.gz

You have "installed" Postman by just unzipping some already build binaries of it, which then you linked into you bin folder. If you want to update the program, you will have to download the new version manually and follow the same procedure.

Alternatively, you can install postman from a repository (you should get rid of the installation you manually made though, beforehand). That will ensure that every time you sudo apt-get upgrade the program will stay up to date (In other words it will sync with the repository and will always update to the latest version that the repository is providing). Check this link on how to install Postman through aptitude.


A tip on http://ask.systutorials.com/715/gthumb-hangs-at-startup-on-fedora helped me: Unmount all iphone mountpoints.


How to setup IPTABLES for logging/monitoring usage while using a DSL with a dynamically assigned IP

You do not need to depend on the NAT in the DSL modem, you can still do it on the Ubuntu router box, even with a dynamic public IP address.
You wouldn't want to do it unless you are confident in the security of your iptables rule set.
Sometimes DSL modem/routers have no option to turn off the router (NAT) stuff, in which case what you are doing is fine.

And yes, with default policies of ACCEPT, and forwarding enabled,

$ cat /proc/sys/net/ipv4/ip_forward
1

it is as simple as the one POSTROUTING rule (copied from your comment):

iptables -t nat -A POSTROUTING -o em2 -j SNAT --to 192.168.2.2


You should have spaces between the *
Also as mentioned by @steeldriver - you have too many fields

Adding spaces and removing the extra * should work:

10 * * * * /path-to-link/

More info - how-do I add jobs to cron under linux

  Example: Run backup cron job script

  If you wished to have a script named /root/backup.sh run every day at
  3am, your crontab entry would look like as follows. First, install
  your cronjob by running the following command:

crontab -e

  Append the following entry:

0 3 * * * /root/backup.sh

  Save and close the file.

  How do I use operators?

  An operator allows you to specifying multiple values in a field. There
  are three operators:

  The asterisk (*) : This operator specifies all possible values for a field. For example, an asterisk in the hour time field would be
  equivalent to every hour or an asterisk in the month field would be
  equivalent to every month.
  The comma (,) : This operator specifies a list of values, for example: “1,5,10,15,20, 25”.
  The dash (-) : This operator specifies a range of values, for example: “5-15” days , which is equivalent to typing
  “5,6,7,8,9,….,13,14,15” using the comma operator.
  The separator (/) : This operator specifies a step value, for example: “0-23/” can be used in the hours field to specify command
  execution every other hour. Steps are also permitted after an
  asterisk, so if you want to say every two hours, just use */2.


I dont think so that's an good idea of doing it. U need to wait untill the Ubuntu becomes available for the tablets. Still there more than the rough edges not applicable in the ubuntu to be working on the Tablet. I installed it in Nexus 7 .. I am not satisfied with it. But i hope canonical along with mark can pull it back.. But my only worry is they need to pull back as soon as possible..

Kindly do it before this may (That means they should be ready with the ubuntu 13.04)


Try editing /etc/default/grub to remove "quiet splash" from GRUB_CMDLINE_LINUX_DEFAULT. Run "sudo update-grub" to apply the changes.

In the boot command line, "splash" says to cover the screen with the Ubuntu boot logo.

"quiet" says to hide to output of boot scripts.

It sounds like you don't want either.

edit: I forgot about plymouth, another pretty piece of technology that replaces information with branding. If you're still seeing boot logos after removing "splash", put "noplymouth" where "splash" was.


How to see the localhost traffic details?

What you want to see should be already getting logged in the Apache logs. They already include the source IP address of each request, and several other pieces of information.

If you're using xampp I think the logs are kept in /opt/lampp/logs/. The requests are logged in access_log, or ssl_request_log if you're using SSL. The errors go to error_log.

To see a log in real time you could use:

tail -f /opt/lampp/logs/access_log

(Use Ctrl+C to stop it)

Or, you could see more than one log at a time, using multitail.

First, install multitail if it's not installed already:

sudo apt-get install multitail

Then:

multitail /opt/lampp/logs/access_log /opt/lampp/logs/error_log

(Press q to close it)

You can pass it whatever logs you want to watch.

If what you need is lower-level information, then there are several other choices, like Wireshark, nmap/zenmap, tcpdump. I'm not going into details here, because I guess these are too low-level for your needs, but I mention them for completeness.


Steeldriver, thanks for your attention to my questions. As expected, there was nothing really serious about the problem. Some hours ago the system suggested I download updates including some for LibreOffice, which I did. After that, the error message I got became more verbose and clear: LO informed me of insufficient permissions for the .config/libreoffice folder. Turned out it was owned by root. I ran

sudo chown -R username:group ~/.config/libreoffice

(replace username and group with your actual username and group name)

and the problem disappeared.

I hope my reply will be of help to someone looking for help as numerous other extended replies were to me.

Thanks!


The process of metadata (read: id3 tags) extraction from the music files could take a while. As such, you might not see the music files sorted correctly immediately. This question is relevant.


Can't boot any OS after installing Windows. "GNU GRUB Minimal Bash-like line editing is supported"

I've solved it!!!!

This link was very useful:

How can I repair grub? (How to get Ubuntu back after installing Windows?)

Boot repair didn't work when I tried with a USB and the terminal commands didn't work either, but when I booted the live USB and installed boot-repair then ran it and told it to install to the new partition sda7 (the one with 17.04). I rebooted and the GRUB menu appeared!! I can now choose the 16.10 from the menu and it boots fine.

It does take longer now and when booting there are a lot of messages like starting... such and such.

Windows boots fine and 17.04 boots fine also. I might try to start using 17.10 as I can access all my files on the 400gb 16.10 partition from there.

I should mention that before doing all that I restored the MBR with the Boot-Repair Lubuntu tool.


There is no such thing as "ubuntu minimal".  The mini.iso refers to the size of the iso, not what it installs.  The image is small because it only contains the installer itself, and it downloads everything that it installs.  You have the same system you would had you used the desktop cd.


You want to add a repository which does not provide your Ubuntu version. It looks like you have Lucid installed. Upgrade your Ubuntu first, for instance Vivid is supported in the repository.
Check the repository yourself by opening following link in a browser and see which versions are supported:

http://ppa.launchpad.net/ppsspp/stable/ubuntu/dists/


Unable to change screen brightness with hotkeys on Ubuntu 14.10

I had the same issue.

For me it helped to remove a piece of the grub command line which was needed before in Ubuntu 14.04

From the grub file I removed a boot parameter as follow.

sudo nano /etc/default/grub

Look up the line that looks more or less like this.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"

remove the text piece: acpi_osi=Linux
In my case the adjusted line is:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

save file

sudo update-grub
sudo reboot


Why does Abiword crash or behave oddly on Xubuntu?

Keep the zoom level at the 100% default, so AbiWord will have not too much graphics rendering to do.
Your problem with inserting the paragraphs in the middle is being caused by the middle button on the mouse which acts as a copy key to copy from the clipboard. If you are careful to not press the middle button of the mouse when scrolling, you should not have this problem.
You have made a good choice of operating system to match your hardware. Linux Mint is heavier than Xubuntu and may give you worse performance, especially when using the web browser, unless you use the lightweight MATE desktop environment.

To set the autosave time interval in AbiWord:

Select Edit -> Preferences -> Documents tab.
Put a check mark in the checkbox next to Auto Save.
In Interval set the number of minutes after which your document will be automatically saved.

Auto Save is enabled by default in AbiWord, and the default Auto Save Interval is preset to 5 minutes. The .bak~ extension is added to the filename when the document is autosaved so that AbiWord does not overwrite the last version of the file you saved deliberately. This should be left as the default (.bak~) unless you have a really good reason to change it.

If the document has not been created in a folder or saved before, AbiWord will autosave the backup document to your Home directory. After the document has been saved the first time, AbiWord will continue to autosave the .bak~ document to the same directory as the original document. The autosaved backup is a hidden file that can be displayed in the file manager by pressing the keyboard combination Ctrl+H.


wireless not working, tried to install drivers, did'nt work. what do I do?

Run the following sudo command to insure the correct driver is installed:

  sudo apt-get install firmware-b43-installer


Terminal doesn't show up in the launcher

Problem solved, I restarted and it works fine.


Just as a hunch I'm adding your question to last 24 hours of problems:

After recent updates of 18.04 network disapears after sleepmode
Cannot reboot or shutdown after kernel update
After "security update" to 4.15.0-24-generic #26-Ubuntu screen shows log content not login
Why a system crash after latest kernel upgrade to 4.15.0-24?
Ubuntu desktop 18.04lts freeze whith usb wifi-dongle
Why did Bionic kernel update to 4.15.0-24 get removed from the repos?
Wake-on-LAN quit working with latest kernel (Bionic)
Long boot delay on Ubuntu loading/splash screen following regular dist-upgrade on clean SSD install (18.04)

If you're suffering the same as the rest the same answer applies:

Reboot
At grub menu select Advanced Options
Pick an earlier kernel to boot with
Monitor this site for bug reports and fixes
Wait for 4.15.0-25 to be released and carefully test it


'on-screen keyboard' error after upgrading from 9.04 to 9.10

I have 9.10 Karmic and 10.10 Maverick systems at hand and if I start onboard from the terminal I got the same warning on both of them as well: "WARNING:Config:Can't load Default loading default layout instead" on both systems. Here is the screenshot from the Maverick fresh installation:

What does that warning mean? I'm not sure but I feel that its something related with the keyboard layout. I use "Turkish Q" layout. That warning might try to say that "there's a Default layout for onboard but, for now, not that Default but your default layout will be started". If this is the case, obviously, it makes sense. However, I have no clue what the "main Default" is or what to do in order not to get that warning, but -at least for me- that warning has no ill effect and I didn't even know about such a warning before I read your question. (I don't start onboard from terminal so I haven't seen it.) In my opinion that is not the important part of your problem or maybe its not an issue at all.

Your second and main problem: You say that onboard crashes when you minimize it. On my Maverick system, when I minimize onboard (version 0.94.0), its icon still lies on the bottom panel as usual for most of the programs. Like this (circled in red):

But on my Karmic system (onboard version 0.92.0) it behaves in a different way: When I minimize onboard , its icon sits the top panel, right side. Like this (circled in red):

On Karmic, with onboard version 0.92.0, if this is not set to be on top panel, it crashes when onboard is minimized. Most probably, this is a bug. So, on Karmic, I set it to be on top panel. On Maverick, with onboard version 0.94.0, both ways work, as it should be, so its up to taste to choose one or the other behaviour, i.e. minimizing to top or bottom. It may be possible to uninstall 0.92.0 and install 0.94.0 on Karmic but I didn't try it and I don't know if there are dependency problems or not.

So, from where can we set this behaviour? Let's go to the Settings section of onboard. How? Start onboard (version 0.92.0 in this example) and click on the area circled in red:

Now click on the Settings :

Tick the option "Show icon in system tray to hide/show onboard":

Settings interface for onboard 0.94.0 is a little bit different, but the same choise exists as shown belown (remember that on Maverick with v. 0.92.0 that choice was a must as a workaround to prevent crash; here it is optional as an option should be):

In short, in your situation (Karmic + most probably onboard v. 0.92.0) I advice to tick that box. Then, you don't have to start it from the terminal; you may start it via Alt+F2 or via Applications menu (if you have added onboard to the menu.)


How do I completely remove MenuLibre and reset all changes?

What Menulibre does is copy the global .desktopfile of an application, in /usr/share/applications, to ~/.local/share/applicationsand edit the local one. The local one in ~/.local/share/applications will then "overrule" the global one.
To revert, simply remove the corresponding .desktopfile(s) in ~/.local/share/applications, log out and back in. Dash and and the Unity Launcher will then use the global one in /usr/share/applications again.
~/.localis a hidden directory by default. Press (in your home directory) Ctrl+H to make it visible.
Note
Editing global .desktop files is bad practice and won't help you in this case.


how to obtain ipv4 address of ubuntu server running in virtual box along with ipv6?

Apart from the bridged mode, I had to disable ipv6 as per this post to get it working:
https://superuser.com/questions/1146122/ubuntu-virtualbox-guest-does-not-get-ipv4-in-bridged-mode/1148247#1148247?newreg=7c77aaf0882540148a3700242cd05d0b

Pasting the steps from above:
Open /etc/default/grub

In this file, find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"

Save the file and update GRUB by running:

sudo update-grub

Now reboot the VM. Next time it comes up with appropriate ipv4 address.


How do I get my Ubuntu web server to host on the internet?

Try ti open on port forwading section on router your port.

So go to router ip:

port forwading section;
add tcp rule at your ipaddress
open browser and write your
externalip:port .

In /etc/host remove the external ip if this last is dynamic.


You can add or remove sources manually.

Open /etc/apt/sources.list and add or remove the source(s).

Shortcut to add sources echo <source> >> /etc/apt/sources.list

After adding or deleting sources you should run apt-get updade && apt-get upgrade
More information here.


When will Metapackage be updated to Kernel 5.6 or better

Ubuntu 20.10 uses kernel 5.8.
Ubuntu 20.04.2, to be released in about three months (around January 2021), will use the same kernel.
The pattern is:

Interim releases of Ubuntu (xx.04/xx.10) occur in April and October.
The most recent LTS point releases occur three months later (April --> July, October --> January), using the same kernel as the three-month-old interim release.


Downgrade kernel by deleting new one from /boot?

You should be able to remove your new kernel without problem (apt remove command). But if you don't use apt to install your kernel, you have to do sudo update-grub at the end of removal to detect again the available kernels. This will update your grub boot menu.


curl: (35) gnutls_handshake() failed: Error in the push function

# host get.sdkman.io
get.sdkman.io has address 159.89.187.78

IP 159.89.187.78 is in Roscomnadzor blacklist.
You can check it:

https://blocklist.rkn.gov.ru/


Try running the following command in your terminal

sudo apt-get update && sudo apt-get upgrade
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get install wine1.7 winetricks


System dramatically slowed down suddenly

I would recommend you to run fsck to make sure your hard disk is healthy. Do not run fsck on a mounted device, you will need to unmount the target first to avoid damage to your files.
sudo umount /dev/sdb
sudo fsck /dev/sdb

You can use -p to allow fsck to automatically apply repairs.
sudo fsck -p /dev/sdb


So, I found a workaround... well, sort of: I opened nvidia-settings and enabled my integrated Intel card, and according to this test the tearing seems to be gone. It kind of bugs me that I've wasted money on a gpu with a shitty driver, but I guess that form now I'll have to settle for what I have. If someone has any better suggestion please let me know.

EDIT: even with the integrated gpu chrome has some serious tearing. Everything else works alright.


How do I uninstall code block completely from Ubuntu 14.04(Including plugins)

To remove a package completely, you can use

sudo apt-get purge <packagename>

Example:

sudo apt-get purge codeblocks

To remove a package plus its dependencies, you can use

sudo apt-get autoremove <packagename>

Example:

sudo apt-get autoremove codeblocks

Read the official documentation first here https://help.ubuntu.com/community/AptGet/Howto.


FORTRAN 77 to C/C++ translator is already packaged in Ubuntu repositories as f2c package.

You can install it with:

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install f2c

Note: develop new good habit - before trying to compile something manually visit http://packages.ubuntu.com and search for needed application here.


How do I install bully and mdk3 on Ubuntu 16.04 (Xenial Xerus)?

Bully can be installed by running these commands in all currently supported in versions of Ubuntu up to at least Ubuntu 21.10:
sudo apt-get -y install libpcap-dev libssl-dev aircrack-ng
wget https://github.com/aanarchyy/bully/archive/master.zip && unzip master.zip
cd bully-*/
cd src/
make
sudo make install

mdk3_6.0-4_amd64.deb can be downloaded from Ubuntu — Package Download Selection — mdk3_6.0-4_amd64.deb. Open a terminal, use cd to change directories to the directory where mdk3_6.0-4_amd64.deb is located and install it using the command:
sudo dpkg -i mdk3_6.0-4_amd64.deb

mdk3 can be installed in Ubuntu 17.10 and later from the default Ubuntu repositories. Open the terminal and type:
sudo apt install mdk3


Lubuntu 18:10: Failed to execute child process "lxsession-default" (No such file or > directory)

I had the same issue. What resolve the issue for me was to open LXQT settings then Desktop. Click on advanced tab and uncheck "show menus provided by windows managers when desktop is clicked" under Window Manager.

Lubuntu 19.10


Unable to navigate to Folders in Home Directory

/home is  not your home directory. /home/whyshock is.

Do one of the following to get to your home directory:

cd /home/whyshock
cd ~
cd "$HOME"
cd

To navigate to a directory in your home directory, you can do either of:

cd ~/Downloads
cd "$HOME"/Downloads


How to make apache2 serve HTTPS on port 443 and non-standard ports?

Browser knows default ports (80, 443). http:// is also default. So when you write

server

Your browser actually makes a request

http://server:80/

If you type in

https://server/

Your browser will make a request

https://server:443/

In fact it is a little more complicated, because you cannot access the network name directly. Browser finds out IP of the server and makes request

http://<ip of server>:80/

and tells the server that the request is for server, because you can host also server1, server2,... on the same IP address.

You will not be able to make browser to request port 8443 by default. You will have to write it in the address.

The problems you are describing are not all clear to me, but it looks like they are all connected with apache configuration and the inability of browser to go to 8443 port by default.

When you have VirtualHost defined in apache, you must specify ServerName. Clients will arrive to the IP of server, but apache needs to know which server name was requested to send back the correct pages. If you access server only with IP the name will not be sent to apache and it will send back the default pages. I suspect that is happening in your case, because you say that browsing to IP works. I would suspect it works to default port numbers.

I hope I helped to clear out the questions at least a bit.


Why can't I set group and ownership of one folder without afffecting the other?

It is because the shell is expanding the ".*" to be ".." or up one directory.

In this case it is best, IMO, to use find

Become root

sudo -i

run find

find /home/$user -exec chown $user:$user {} \;

Change $user to the appropriate user name

In theory, chown should work with the -R and without the wildcard

sudo chown -R $user:$user /home/$user

but I think this misses the hidden or .files, which is why RoboJ1M tried ".*" which caused the problem.


Wifi not connecting immediately after sleep

This can sometimes happen as a result of wireless power saving mode being set to enabled as this is the default setting.

You can disable the wireless adapter power saving mode as follows:

Run the following command in the terminal:

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

An editor will open. Please find:

wifi.powersave = 3

and change it to:

wifi.powersave = 2

Save and exit by pressing Ctrl + X then press Y then press Enter
Reboot your system for the change to take effect.

  wifi.powersave modes explained:

  wifi.powersave = 3 means enable wireless adapter power saving

  wifi.powersave = 2 means disable wireless adapter power saving


Like Mac. Close Tap (lid) and active hybrid-suspend 14.04

You may be able to do this by configuring logind.conf - this will also override any of your user's power settings, and will work whether you are logged in or not (system-wide). You can configure it via running:

sudo nano /etc/systemd/logind.conf

You should like something like this:

Change the below lines to this:

HandleLidSwitch=lock
IdleAction=hybrid-sleep
IdleActionSec=1200

with no # at the beginning of any of the lines- a # at the beginning of the line means it is a comment and will be ignored and the defaults will be used

This should mean that when the lid is closed the computer locks; and when it is left idle (for 20 minutes (20x60=1200 seconds) it will enter a hybrid-sleep state - the idle action will also take place with the lid open, and the configuration file may accept the time in minutes: IdleActionSec=30min.

Note that after making the changes you may need to restart logind or the system to see if the changes work.

Here is a quote from the manual page - note other values like lock, poweroff etc can be used.

  HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, HandleLidSwitch=

  Controls whether logind shall handle the system power and sleep keys and the lid switch to trigger actions such as system power-off or
  suspend. Can be one of "ignore", "poweroff", "reboot", "halt",
  "kexec", "suspend", "hibernate", "hybrid-sleep" and "lock". If
  "ignore", logind will never handle these keys. If "lock", all running
  sessions will be screen-locked; otherwise, the specified action will
  be taken in the respective event. Only input devices with the
  "power-switch" udev tag will be watched for key/lid switch events.
  HandlePowerKey= defaults to "poweroff". HandleSuspendKey= and
  HandleLidSwitch= defaults to "suspend". HandleHibernateKey= defaults to
  "hibernate".

  IdleAction=

  Configures the action to take when the system is idle. Takes one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend",
  "hibernate", "hybrid-sleep", and "lock". Defaults to "ignore".

  Note that this requires that user sessions correctly report the idle status to the system. The system will execute the action after
  all sessions report that they are idle, no idle inhibitor lock is
  active, and subsequently, the time configured with IdleActionSec= (see
  below) has expired.

  IdleActionSec=

  Configures the delay after which the action configured in IdleAction= (see above) is taken after the system is idle.


How to give a new user permissions to call sudo without a prompt for sudo password?

That's easy. I'll refer to another answer of mine and give the gist for your case. My other answer was: When Ubuntu asks for an admin user's password, how does it decide which administrative user to ask for?

The gist is to edit /etc/sudoers and add a Cmnd_Alias (say PRIVCMDS) for the command you want to allow and then something like this in sudoers:

%ubuntu ALL=(root) NOPASSWD:PRIVCMDS

But please read through my complete answer to the other question.

The above is for the system group named ubuntu. If you wanted the same for the user named ubuntu it would read:

ubuntu ALL=(root) NOPASSWD:PRIVCMDS


How can I force a refresh of the login console?

Solved with the following:

sudo systemctl restart getty@tty1


Why does using sudo run a different version?

bash keeps a hash table of recently executed files and their location, so it doesn't need to search PATH every time a command is invoked.

You can see the currently kept hashes with hash. Look for cmake in there. To clear the hash table and make bash search PATH anew, do

hash -r

See also this wonderful explanation.


Grub problem on dual boot UEFI installation - Boot on grub console, boot-repair doesn't help

I finally managed to fix it. It was a long ride.
I think (while I'm not sure) that it was due to several issues :

Grub that installed both as UEFI and Legacy boot
Corrupted Grub that would not entirely uninstall, and would generate bad configuration files at each update
Corrupted EFI partition resulting from attemps to fix it
Corrupted kernel headers in my /boot folder

Here is what I did to fix everything :
Before everything : Make sure that the computer boots in UEFI mode (bios settings) !

Got into a live Kubuntu Session with a Live Kubuntu Install USB Key
Deleted the existing EFI partition via Gparted on the Live Kubuntu Install USB
Created a windows recovery drive on a Windows 10 install I had on another computer
Restarded the computer and booted on the recovery drive and got into the command prompt
Followed the instructions on this link to create a new EFI partition, and to restore it thanks to the windows files on C: . Access to windows was restored after that.
Came back into the live Kubuntu session
Used the following commands in a console of the live environment to mount and access the partition where my Kubuntu install was

sudo mount /dev/nvme0n1p4 /mnt # nvme0n1p4 is the partition with my linux install
sudo mount /dev/nvme0n1p5 /mnt/boot/efi # nvme0n1p5 is the newly created EFI partition
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo mount --bind /run /mnt/run
sudo chroot /mnt

Renaming a script that prevented a good purge of grub with

sudo mv /etc/kernel/postrm.d/zz-update-grub /etc/kernel/postrm.d/zz-update-grub.bad

Purging and reinstalling grub once and for all with

sudo apt-get purge grub grub-pc grub-common grub-efi
sudo mv /boot/grub /boot/grub_backup
sudo mkdir /boot/grub
sudo apt-get install grub grub-pc grub-common grub-efi
sudo grub-install /dev/nvme0n1p5 #nvme0n1p5 is the newly created EFI
sudo update-grub

Determine the packages that have files installed in the /boot folder with the command

dpkg -S /boot

Reinstall all of the packages with

sudo apt-get install --reinstall <packages names separated with spaces>

run update-grub

Done ! Everything should work. If not, purge and reinstall grub one last time with boot-repair.

Thanks to @oldfred for their patience and wise advice !


You must replace:

GTK_FILE_CHOOSER_ACTION_OPEN with Gtk.FileChooserAction.OPEN
Gtk.RESPONSE_CANCEL with Gtk.ResponseType.CANCEL
Gtk.RESPONSE_OK with Gtk.ResponseType.OK

etc.

This is not PyGTK, it's GObject Introspection. You must build names as follows: Gtk.EnumTypeNameHere.VALUE

See https://live.gnome.org/PyGObject/IntrospectionPorting


rm -i alias not working with sudo as root

Looking at the sudo manual, I see the following:

   -i [command]
               The -i (simulate initial login) option runs the shell
               specified in the passwd(5) entry of the target user as a
               login shell.  This means that login-specific resource files
               such as .profile or .login will be read by the shell.  If a
               command is specified, it is passed to the shell for
               execution.  Otherwise, an interactive shell is executed.
               sudo attempts to change to that user's home directory
               before running the shell.  It also initializes the
               environment, leaving DISPLAY and TERM unchanged, setting
               HOME, MAIL, SHELL, USER, LOGNAME, and PATH, as well as the
               contents of /etc/environment on Linux and AIX systems.  All
               other environment variables are removed.

That is, you don't get the environment variables from your .bashrc file (where the alias definitions from .bash_aliases are executed) unless you use -i.


I can't test on Xenial at the moment, but here's a fix that worked for my DPI-related problem on Trusty when none of the others did.

Problem: When I rebooted after having to swap out one of my 19" 1280x1024 monitors for a 17" 1280x1024 monitor, my fonts were small and looked "wrong" (I lack the vocabulary to say more but I assume it had to do with how the anti-aliasing interacted with a bad DPI setting).

Worse, GTK+ 2.x apps gave the confusing impression that they were ignoring the font size settings. (If I changed the font face or style, applications would update, but not even restarting applications would cause a change from 11pt. to 12pt. or 14pt. to have any visible effect. I didn't test that symptom against GTK+ 3.x though.)

Solution: The Xft.dpi X11 resource.

Confirmed effective for: GTK+ 2.x, GTK+ 3.x, and Qt 4 apps

For your case, try running this on your system and then restarting your applications:

echo Xft.dpi: 75 | xrdb -merge

Note: You may need to wait and/or restart them twice. When I tested GTK+ 3.x with file-roller and a DPI of 144, it remained on the 144 scale the first time I tested it after setting my DPI back to 96, but quitting and restarting it a second time returned it to the expected scale.

If that solves the problem, persist it by adding Xft.dpi: 75 on a line of its own in ~/.Xresources.

If it doesn't solve it, try again with other values to make sure you understand what the system is doing with the value you give it. I had to set the DPI to 96 to get the desired scale and that didn't occur to my sleep-fogged mind until I tried 72 DPI and the font shrunk rather than growing.

(Replacing the failed left-most 19" monitor with a 17" monitor was an online replacement and I have KDE's display settings daemon disabled, so what I expected was all three monitors operating on a fixed DPI setting calculated from a 19" 1280x1024 display.)

If the ~/.Xresources version has no effect, your desktop is probably missing the customary call to xrdb to apply them. I typically add xrdb -merge ~/.Xresources as one of the last things to run on login so it doesn't conflict with whatever else the desktop may be trying to accomplish.


Why do Disk utility and Gparted show different information for the same hdd(s)?

The result shown by sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL performs calculations using the binary prefix i.e. multiples of 1024 (which is 210). So 500107862016 bytes would be equal to 465.76 GB or approximately 466 GB. (You can use -b switch to print in bytes instead of human readable as sudo lsblk -b -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL.)

Calculation:

500107862016 bytes = (500107862016 / (1024 ^ 3)) GB = 465.76 GB

While Disks Utility uses decimal prefix for calculation so expressed as multiples of 1000. So 500107862016 bytes here would mean 500.11 GB or 500 GB approx.

Calculation:

500107862016 bytes = (500107862016 / (1000 ^ 3)) GB = 500.11 GB


How to theme Nautilus' resize area/handle border?

I changed the last entry in /usr/share/themes/Ambiance/gtk-3.0/apps/nautilus.css to:

NautilusWindow > GtkTable .pane-separator {
    background-color: shade (@dark_bg_color, 1.1);
    border-width: 0;
}

to get this:

Instead of using just a single background color, you can also use a gradient:

NautilusWindow > GtkTable .pane-separator {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                 from (shade (@dark_bg_color, 1.04)),
                                 to (shade (@dark_bg_color, 2.2)));
    border-width: 0;
}

If you want to remove the handle icon, you have to set the -unico-inner-stroke-color to transparent:

NautilusWindow > GtkTable .pane-separator {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                 from (shade (@dark_bg_color, 1.04)),
                                 to (shade (@dark_bg_color, 2.2)));
    border-width: 0;

    -unico-inner-stroke-color: @transparent;
}

You can also change the thickness of the resize pane by adding this to the CSS file (will make the resize pane 3 pixels thick):

NautilusWindow * {
    -GtkPaned-handle-size: 3;
}

The final thing looks like this:

Thanks to Andrea Cimitan for helping a bit. ;-)


Why is shutdown so much slower than previous versions?

Its hard to answer without a full list of packages on your system and possible the console output that normally is hidden by the shutdown screen. However, some bugs have been fixed in the shutdown (I know because I fixed quite a few myself) that make it safer for your data. A lot of services weren't being terminated properly in previous releases, which sometimes resulted in filesystem corruption! 11.04 had a few fixes for this, and 11.10, a few more. I don't think any of the new methods should add more than 10 seconds to the shutdown though.

Perhaps hit 'pgdn' while shutting down to see if anything is being printed to plymouth's log.


How do I find the last logged system boot and shutdown times?

Use the last command.

last -x | grep shutdown
last -x | grep reboot

You can pipe this to the head to read the last n instances. For example, in your case:

last -x | grep shutdown | head -n 10

You also should set

BOOTLOGD_ENABLE=Yes

in the /etc/default/bootlogd file (it could be No by default).


KDE Dolphin file manager: Configure Places for all users

one simple way is of course to just copy the places config file ~/.local/share/user-places.xbel to the home directory for each user.

Sufficient for me right now.


Is there a terminal command that can change Gnome 3's Chat Status?

got it to work! simple python script:

#!/usr/bin/python

import os
import time
import dbus
session_bus = dbus.SessionBus()
from gi.repository import TelepathyGLib as Tp
from gi.repository import GObject
loop = GObject.MainLoop()
am = Tp.AccountManager.dup()
am.prepare_async(None, lambda *args: loop.quit(), None)
loop.run()

screensaver_started = 0
running = 0

while 1:
        active = 0
    out = ""
    pid = 0

    if screensaver_started == 0:
        # Don't do anything if the screensaver isn't running
        s = os.popen("pidof gnome-screensaver")
        spid = s.read()
        s.close()
        if len(spid) > 0:
            screensaver_started = 1
    else:
        h = os.popen("gnome-screensaver-command -q", "r")
        out = h.read()
        active = out.find("inactive")
        h.close()

        if active < 0 and running == 0:
            am.set_all_requested_presences(Tp.ConnectionPresenceType.OFFLINE, 'Offline', "")
            running = 1
        elif active > 0 and running == 1:
            am.set_all_requested_presences(Tp.ConnectionPresenceType.AVAILABLE, 'available', "")
            running = 0
        time.sleep(3)

this script will automatically set status to "unavailable" when screen is locked or screensaver is activated, and will bring it back to available (online) when screensaver is closed!


Right click on the photo > send to > choose your format > send as: ? e-mail > choose you type of compression >  zip or tar > Goes to default email application.


Is Dell Bios article on Ubuntu Wiki outdated?

I can only assure you, that the following steps worked for me. This "What worked for one user on a Dell Inspiron 1525 and Xubuntu, using Wine to extract BIOS image etc" on the mentioned wiki page is quite similar to my steps:

I've recently updated the BIOS of my Dell Latitude E6500 from version A27 to A29 under Linux Mint 17 KDE (= Ubuntu 14.04 LTS Trusty Tahr) with the CLI and here is what worked very well for me:

Download the needed DELL Software sudo apt-get install firmware-addon-dell smbios-utils wine
Check your BIOS version: sudo dmidecode -s bios-version My output: A27
Download your BiosUpdateFile.exe (in my case E6500A29.exe) for your specific device from the DELL Support Page
Switch to the directory which nests your E6500A29.exe and extract the *.hdr file from it with the command: wine E6500A29.exe -writehdrfile
Update BIOS: sudo dellBiosUpdate -u -f E6500A29.hdr
Reboot: sudo reboot now
Check your BIOS version again: sudo dmidecode -s bios-version My output: A29


I am getting an error while mounting my NTFS drives?

I tried to replicate your problem with my own ntfs partition, in fact i too didnt had the write permissions on the ntfs partition,

The answer to why you are not able to mount the ntfs parition with write permissions lies in the FUSE library.

In the screenshot which you have pasted, it says you are trying to mount a ntfs block device using FUSE library.

First check if you have fuse-utils package installed on your system, if not install the fuse-utils package using apt-get

Then, remove the following lines from your /etc/fstab

  /dev/sda2 /media/myMountPoint ntfs-3g quiet,defaults,rw 0 0

Now, we need to mount the ntfs block partition using fusermount  command

Now, open the /etc/mtab with root priviliges, and add the following line

/dev/sda3 /media/D fuseblk rw,nosuid,nodev,allow_other,blksize=4096,default_permissions 0 0

replace with your partition and mount point and reboot the system.

Sorry for putting this in separate answer, i could not write all this as a comment. After the reboot, when i mounted my mountpoint, i was having write permissions, tell me if it works for you too.


1- install getdeb package here http://www.getdeb.net/updates/Ubuntu/16.04#how_to_install

2- $ sudo apt-get update

$ sudo apt-get install avidemux2.6

Ready

Best Regard


Imagine you want to install package A, apt is going to install package B and C because package A won't work without them, but since you never asked for package B and C and no other package needs them, if you remove package A apt will realize you don't need package B and C anymore.
There are other scenarios as well; for example, if you update a package, it may not depend on some packages it was before.
If apt recognize any of these packages which you don't need, it will tell you that you can remove them with apt autoremove.
Is it safe? Not entirely, you may have installed other packages without apt, and they may need these packages to work, and apt won't recognize them; this is why apt don't remove them by default and asking you to remove them, if you know you don't need them anywhere else.


The important part of that error seems to be (with extra spaces for readability):
Expected type: KeySym

Actual type: KeyMask

In the expression: shiftMask

So, apparently you need to use a KeySym instead of a KeyMask for the second part of the key combo. That's likely because the "modifier keys" (Ctrl, Alt, Shift, Cmd/Win/Super) are "masks" (bitmasks) that change the internally-generated code when other keys are pressed, but they don't do so for each other.
If you are okay using 2 modifiers + 1 regular key for this effect you can "or" the modifiers together as per this answer and pick a KeySym that's not already mapped to that 3-key combo.
If losing/moving one of the modifier keys is okay the answer below that is from someone who uses xmodmap to remap the left Ctrl key to the left Super/Win key. So, you could remap a KeyMask to a KeySym if it would somehow be worth it.


Details regarding System program Problem Detected?

Where does the problem will be reported?

Launchpad in general and specifically: to the package the crash occurred on. By the way: if this specific crash is already known you will get a notice regarding that.

  What would happen if we cancel it?

No report will be filed.

  What could be the possible Reasons of such occurrence?

Bug in a program. Faulty hardware. Unsupported features in hardware.

  Is there any Log/History files to view the sent Report?

The program apport (Ubuntu specific) stores crashes in /var/crash. (See https://wiki.ubuntu.com/Apport and this on U&L).

  How to know that the problem was solved or being solved?

Track down the bugreport number and visit Launchpad.

  Ways to report it manually, if we found?

Sure you can manually report a bug on Launchpad BUT you will need to get all the information added to a bug report otherwise it will be marked as "incomplete".


Collapse Terminator Icons on Dash to Dock

After a more researching I have found an answer (whether it is "the" answer is another question)

My problem was that to change to using terminator I was using the command

sudo update-alternatives --set x-terminal-emulator

Then setting it to emulate terminator rather than run it. To do this, on gnome ubuntu >12, instead use:

sudo gsettings set org.gnome.desktop.default-applications.terminal exec terminator


Similar problem here. Running Ubuntu 18.04.4 on an Acer Swift 5 (SF514-54T). After an update, I lost all sound and got a "dummy output" in place of the soundcard.

It seems that the problem was the update to Ubuntu kernel 5.3.0-42-generic which has been recently reported as a bug.

Reverting to the previous kernel 5.3.0-40-generic should solve the problem.

To see what version kernel you are running type in the terminal:

uname -r

You can boot to the previous kernel by selecting the relevant option in the grub2 boot loader. Once in the grub2 menu, select "Advanced options for Ubuntu" and then choose "5.3.0-40-generic".

If the grub2 menu does not appear, press ESC or (left) SHIFT while booting.

If pressing these keys does not work to bring up the grub2 menu, you need to manually edit the boot loader settings. This can be done by e.g. tweaking the grub.cfg file using a text editor (in this case gedit):

sudo gedit /boot/grub/grub.cfg

Search for "timeout" and change the following to:

set timeout_style=menu
set timeout=10

and save the grub.cfg file. Next time you boot, the grub2 menu should appear.

I reckon that there must be more elegant solutions until the bug is fixed but, for the moment, this did the trick for me. Let me know if this solution worked for you!


Unable to enable remote admin on MySQL 5.7 server on Ubuntu Server 16.04 using MySQL Workbench after system reinstall

Ok, I found the problem.  When I setup the user entry on the MySQL host, I apparently fat-fingered the IP address in the @hostname entry when granting privs.  When I added a second user using the hostname, it worked.  The final configuration in /etc/mysql/mysql.conf.d/mysqld.cnf was for the bind-address entry to be set to the IP of the host machine.

Let the snarky comments begin.  :o)


How to open netbeans project from other partitions

You need to first mount that partition on some point mount point (a directory if you want) on your computer.

For example, let's say you have a ~/windows_partition folder, you could :

identify the name of the other partition on which your NetBeans project isvwith the output of sudo fdisk -l. e.g. /dev/sda3 or using gparted
use sudo mount /dev/sda3 ~/windows_partition to mount the partition on the folder.
you can now access the folder on which your NetBeans project is from the folder on which you mounted the partition


How to make ubuntu look for available wifi networks?

Open a terminal. Type the following:

sudo crontab -e

Now type the following:

* * * * * iwlist eth1 scan

Save it and exit.


How can install a copy of Ubuntu ON a flash drive?

Full Install vs Persistent install
A Full install USB and a Persistent install USB both save data and installed programs after reboot.
Refer to the links in sudodus' answer above for instructions on each.
Comparison between Persistent and Full install USB
Advantages of a persistent install:

You can use the persistent pendrive to install Ubuntu to another computer.

A persistent install takes up less space on the pendrive.

You can reset the pendrive by overwriting the old casper-rw file with a new one.

The install to pendrive takes less time.

Advantages of a Full install:

You can update and upgrade.

If you have problems or wish to modify, the solution is the same as with an internal install, (You can ask for help in these forums).

No ugly startup / install screen.

Better security, you can use full encryption

You can use proprietary drivers.

Hibernation works.

A persistent install is limited to a 4GB casper-rw and a 4GB home-rw persistence file, to get more persistence requires persistence partitions. Once casper-rw is full, the drive will not boot.

More efficient usage of disk space. Does not require reserved space for persistence.

Faster boot, no automatic disk checking or Try Ubuntu/Install Ubuntu screen.

You can run VBox and use virtual machines.

Note that once booted, both methods run at about the same speed.
Full Install Method
One method for creating a Full install USB: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step


How do I install the AMD Raidxpert 2 driver?

Files are here: amd support

(http://support.amd.com/en-us/download/chipset?os=Linux%20x86_64)


glitches (.xsessionrc and desktop image) after suspend

Here's a fix for making the x settings permanent: I gave up on .xsessionrc when I found this post Making the xinput --set-button-map changes permanent and created /usr/share/X11/xorg.conf.d/Microsoft-Wireless-Optical-Mouse.conf (name doesn't seem to matter; not sure what the number prefix on some pre-existing files is for) as follows:
    Section "InputClass"
        Identifier  "Microsoft Microsoft Wireless Optical Mouse® 1.00 Mouse"
        Option  "ButtonMapping" "1 2 3 4 5 6 7 9 8"
    EndSection

The correct "Identifier" having been found using "xinput list" (there were three "Microsoft Microsoft Wireless Optical Mouse® 1.00" entries).
Swapping 8 & 9 in the button mapping makes the side button a back button; almost worth the hassle;)
I found I had to delete ~/.xsessionrc after making the above changes, due to it seeming to create a conflict when resuming. The mouse (which was working on the login screen) was dead until reset.
The desktop image seems to be stable on resume when changed away from the default; I still have no idea what's going on there...


How do I tell a shell script my password?

You don't actually have to include your password in your script (from what I have seen its generally not advisable to have your password in a script). Instead you can edit your sudoer file to allow you to run the apt-get command without the need for a password.

For more information go to this website.

open a terminal (ctrl + alt + T)

Enter the command

sudo visudo

At the end of the sudoers file type

username ALL=(ALL) NOPASSWD: /usr/bin/apt-get

Where username is your username (obviously)

editing this file will allow you to run any of the apt-get commands without entering a password. This means you can also install or upgrade packages without entering your password.

You can also add other comands to this list by entering the path to the command after a comma. The path to a command can be found by entering the following command in a terminal.

which command

Where command is the name of the command( for example reboot).


MAAS Upgrade from 2.0.0 beta 3 to 2.0.0 beta 4

Basically you should follow http://maas.ubuntu.com/docs/install.html#maas-packages-and-repositories with a slight change:

# add developement branch instead of stable
sudo add-apt-repository ppa:maas/next
sudo apt-get update
sudo apt-get dist-upgrade

If you'll be able to drop PPA source any time later with:

sudo add-apt-repository -r ppa:maas/next


How to run some alias command in bash's non-interactive mode

just found out because the origin .bashrc provided by Ubuntu have some code like below to prevent the script run in non-interactive mode. so why my alias not work. It's work now just need to move aliases higher then this block

#If not running interactively, don't do anything
case $- in
 *i*)
 ;; *)
 return;;
esac


How to install EduBOSS linux theme into ubuntu unity?

EduBOSS 4.0 uses the GNOME Desktop Environment. If you want something resembling EduBOSS, install GNOME and use it instead of Unity. As for the icons, you'll have to find something you like. The icon theme on EduBOSS appears to be original.

To install and use GNOME on your computer:

Open a terminal (Ctrl+Alt+T) and run sudo apt-get install ubuntu-gnome-desktop.
Once that installs, log out.
Click the gear icon to the right of the Password section.
Select the Ubuntu GNOME option and log in.

You will now have a desktop that looks like EduBOSS.


Kubuntu 14.04 clock showing only UTC despite correct timezone

Right click on the widget and select Digital Clock Settings > Time Zones and make a selection in Clock defaults to.


Default folder deleted - can not change back keybinding theme

Open a terminal and enter

dpkg -S /usr/share/themes/Default

The command shows you which packages use (and create) this directory. In my case the output is: libgtk1.2-common, libgtk2.0-common: /usr/share/themes/Default.
So the best idea would be to reinstall both packages:

sudo apt-get --reinstall install libgtk1.2-common libgtk2.0-common

So they create the directory and fill it with the correct content.


After some investigation, I figured out that the network device was simply deactivated. Weird that it deactivated upon reboot but after I could ssh I rebooted to see if the problem would occur again and it didn't.


Black screen on login and then flickering of GUI elements on Nvidia 9500GS

try to install latest driver

sudo apt-get install nvidia-glx-185

If you getting any problem after install then log with recovery mode[2nd option of grub menu] go to root shell.

sudo apt-get autoremove nvidia-glx-185


How to get into terminal on my Dell laptop which interferes with Wi-Fi button?

Please use Fn+Alt+F2 as the function keys may need Fn. However, tris lets you run one command and the better key combination to use is Ctrl+Alt+T.

This actually applies to cases where any function key(F1-F12) acts improperly.


virtualbox ubuntu 12.04.01 ran out of space and will not reboot

you have re-sized your disk but not the partition ;-). Open your virtual machine with knoppix and use gparted or similar to re-size the partition in order to use all your disk space.


How to make apache running on ubuntu docker only accsible via VPN?

I think I got it.
I just started my container without any port exposure.

Just using: docker run --name WebServer -t -i ubuntu:Apache

I hope this is the right way to do it.


GRUB menu does not show after shutting down and restarting from Ubuntu on a Sony Vaio with pre-installed Windows 8 dual-booted with Ubuntu

Sony VAIOs are pretty notorious for having flaky firmware. I recommend you first check Sony's site for an update and, if one is available, install it.

If that doesn't help, start investigating your firmware boot order options using efibootmgr in Ubuntu. You'll see something roughly like this:

$ sudo efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0003,0007,2003,0001,2001,2002
Boot0000* rEFInd (direct)
Boot0001* Lenovo Recovery System
Boot0003* ubuntu
Boot0007* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

The details will differ, of course. Look at the BootCurrent and BootOrder lines; the numbers refer to the various Boot#### entries. In this example, the BootOrder is set to rEFInd (direct) first, followed by ubuntu, and so on; and the system actually booted (BootCurrent) via rEFInd. Note that the numbers are actually hexadecimal, although this example doesn't show any over-9 digits.

Compare the output of this command when you reboot from Windows vs. when you reboot from Ubuntu. Does the BootOrder change depending on how you boot? Also, does rebooting from Windows automatically change the BootOrder back (and fix the boot-time behavior)?

If the BootOrder is changing, you might try setting it back to the way it should be in Ubuntu. Use the -o option to efibootmgr, as in:

sudo efibootmgr -o 0,3,7

Change the numbers to match your Boot#### options, of course. If this works on a one-time basis, you can create a shutdown script to do it automatically every time you shut down, as described here:

Execute a script upon logout/reboot/shutdown in Ubuntu

If that doesn't help, then there are possible solutions that involve renaming and moving boot loader files. Boot Repair can do this semi-automatically via an option on its Advanced menu (I don't recall the exact name, though; it's something to do with backing up and renaming files). I'd use this option only as a last resort, though; it's an ugly hack that doesn't always work and that can create confusion down the road if/when you need to re-install an OS or otherwise manipulate the boot loaders.

I do not recommend re-installing Ubuntu as a solution. It didn't work the first time and it's unlikely to do any better the second time. The presence or absence of a /boot partition is almost certainly irrelevant to your problem.


How can I edit the color of this button using a GTK theme?

Use Gpick sudo apt-get install gpick to see which color is it, then locate the color in the gtk.css file, afterwards search the line from gtk.css in the file gtk-widgets.css to make sure which one is it.

I Believe Thunderbird uses the gtkrc file from the gtk 2 portion of the theme so check that. Firefox uses gtk 2 styling not gtk 3 so I guess Thunderbird does too.


One of the following should work:

sudo apt-get remove --purge nvidia-current
sudo apt-get remove --purge nvidia-current-updates

Follow that with an

sudo apt-get autoremove

Plus, you may want to start afresh on your X configuration

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

If you are still having problems, could you please clarify which instructions you followed to install the nvidia drivers and what you tried so-far to remove them.


How to create primary partition after having an extended one?

It looks like /deb/sda2 is an extended partition.

It can contain multiple logical partitions.

In your case you can increase size of /dev/sda2 and create some more logical partitions in it, or create a new primary partition.

You need to consider that you can have only one extended partition and no more than 4 primary partitions (including extended).


How do I use chmod to make .sh files executable?

Easy way in Kubuntu (Ubuntu is the same). Properties of sh file that you need to change.

Just open a terminal and go into the folder where you handle the .sh file (like mine below), and run chmod a+x foo.sh where foo.sh is the name of the script.

cd /path/to/script/directory
chmod a+x foo.sh


If I am not mistaken, your flash drive need to be unplugged, or just change the boot priority to let the hard drive have the highest priority if you don't want to remove the USB Drive.

So try unplugging the USB Drive and turn on the computer and see.


How to define alternative sets of Depends in a deb control file?

You can achieve what you aim for, by creating two meta packages (that only contain dependencies) that provide a virtual package (that exists to declare some functionality that some other package can provide). So:

Package: nvidia-dependencies-340
Provides: nvidia-dependencies
Depends: nvidia-340 (>=340.29), nvidia-340-uvm (>=340.29), nvidia-340-dev (>=340.29), etc...

Package: nvidia-dependencies-343
Provides: nvidia-dependencies
Depends: nvidia-343 (>=343.0), nvidia-343-uvm (>=343.0), nvidia-343-dev (>=343.0), etc...

Package: my-application
Depends: nvidia-dependencies

HTH,
*t


git: where cloned remote repository is saved?

When you've started the clone command you should have get this message:

git clone https://github.com/Itseez/opencv.git
Cloning into 'opencv'...

You should find the OpenCV source in a folder named just opencv where you launched the git clone command.


How to fix apt-get broken updating wireshark

so at least one file pocsettings.dtd is included in both package libwireshark-data and libwireshark-common. Try to remove that file name from:

/var/lib/dpkg/info/libwireshark-common.list

so it doesn't know about the conflict and will install the new version.


How Can I Get Ubuntu 16.04 To Work With Newer Hardware?

Guides exist which explain how to change to Unity on 18.04 LTS, from sources such as It's FOSS, LinuxConfig, and LinuxBabe.

$ sudo apt update
$ sudo apt install ubuntu-unity-desktop

Choose your login manager, then run

$ sudo shutdown -r now

At reboot, click on your login name and then select Unity when prompted to Select Desktop Environment.  Should you wish to remove GNOME, do

$ sudo apt remove gnome-shell


Where can I find the startup applications in 12.10

Open Dash ( by pressing Super key), and search for Startup Applications.
An alternative way is to press alt+f2 and type gnome-session-properties.


How do I solve "Unable to fetch some archives, maybe run apt-get update or try with --fix-missing" error?

Try using

sudo apt-get update

then retry.


I don't understand the part about "GOAT Ubuntu".
Nevertheless, as far as I know the lightest Ubuntu flavor is Lubuntu: it's really optimized to run on weaker hardware.
Watch out, there seem to be two Lubuntu websites. The one linked from the Ubuntu official flavours page is lubuntu.me. (I don't know what's up with lubuntu.net.)
With that out of the way, there are 32-bit variants on the download page: "18.04.5 desktop" and "18.04 alternate":
https://lubuntu.me/downloads/


how do I resize my home partition (ext4) on runtime?

You can't resize home and root partition, because they are mounted. You have to use live cd.


No. Ubuntu has almost the driver for every device on planet Earth or eve


Recover ram used by lightdm when not using it

I answer myself in case someone has the same questions, completing Anwar's answer:

service is a wrapper for systemctl, so its the same
you don't corrupt anything by closing lightdm, in fact, is desirable for a command line server.


Will just any IR remote work with an irDA adaptor?

IrDA has both signaling and frequency specifications, therefore cannot really be used with remotes; it is designed to facilitate communication between two intelligent pieces of hardware (read: computers).

If you want to be able to receive signals from a remote control then the best thing to do is to get a receiver such as those made by SNK since those are far more liberal with what they accept.


How can I prevent myself from getting logged out automatically in a multi-user setup?

You can check that you have enough TTY's:

Open a terminal and do:

grep tty /etc/default/console-setup

It should show (check the last number, it should say 6):

ACTIVE_CONSOLES="/dev/tty[1-6]"

If not, edit the /etc/default/console-setup file by typing:

gksudo gedit /etc/default/console-setup

And look for ACTIVE_CONSOLES, and make the line look this:

ACTIVE_CONSOLES="/dev/tty[1-6]"


Configuring Cisco VPN Anyconnect to use VPN and the local network simultaneously

it's kind of ugly, but works for me:

iptables-save | grep -v DROP | iptables-restore
iptables -P INPUT ACCEPT; iptables -P OUTPUT ACCEPT


Try downloading and running the file again. It works for me.

Here is Minecraft_Installer_20.sh (as of August 23rd 2012).

1 - Copy and paste the text in a new file named Minecraft_Installer_20.sh in your home directory.

2 - Now, open Terminal and run the following command:

bash ~/Minecraft_Installer_20.sh

It should work!


Im assuming that you don't actually want the repo and just want the skin Aeon on your XBMC

If this is the case then Good News! You are extremely over complicating things!
The way to do this is very simple, open XBMC->Settings->Appearance->Skin then either select a skin that you have or select Get More to download more skins (Aeon).


I would recommend the use of the metacity compositor.  It's lightweight, effective, and generally used with Unity-2D.

To enable the metacity compositor, go to your terminal and paste:

gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool true

To disable:

gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool false

You may have to log out and log back in to see a difference.  Hope this helps!

To make the above process easier, the latest Ubuntu Tweak (0.7.1) can now enable and tweak metacity compositor settings.

See this article for more information.  http://www.webupd8.org/2012/05/ubuntu-tweak-071-available-for-download.html


Build Kernel in 16.04 - no firmware package built

I had the same problem and could not solve it, but the main kernel image works as expected, so it is not an issue for me at the moment.

I thinks it is related to this change:

kbuild: deb-pkg: remove firmware package support
https://github.com/torvalds/linux/commit/cc18abbe449aafc013831a8e0440afc336ae1cba


Disk is write protected after making it into a live usb

I had almost the same issue, it turns out the Group permissions are read-only, and you cannot get them right again  -  UNLESS you change the UUID of your USB-stick.
See my question and answer here:
USB stick read only
After changing the UUID and reformating the disk everything works normally again!
Do try without reformating, and then change the group-permissions to Read-Write!  Have not tried this, but it should work!!
So that didn't work, then we have to use the big Terminal hammer:
[Ctrl][Alt]t  brings forth the terminal so enter:

sudo dd if=/dev/zero of=/dev/sdx bs=512 count=16

This will erase the start of the USB-stick. this solution I got here:
Refurbishing the USB-stick
Now you should be able to format it to fat32 - or something else without any further trouble!


How to correctly run AppImage and other programs in /opt?

appimaged is an optional daemon that watches certain locations for AppImages and if it detects some, registers them with the system, so that they show up in the menu, have their icons show up, MIME types associated, etc. It also unregisters AppImages again from the system if they are deleted.

appimaged will register the AppImages in with your system from the following places:

$HOME/Downloads (or its localized equivalent, as determined by
G_USER_DIRECTORY_DOWNLOAD in glib)
$HOME/.local/bin
$HOME/bin
$HOME/Applications
/Applications
[any mounted partition]/Applications
/opt
/usr/local/bin

https://github.com/AppImage/appimaged#monitored-directories


Hey @Praveenks if you're a beginner in rails, I would recommend you to use the scaffold generator.

  rails generate scaffold ads attribute1:type attribute2:type...

In this way rails generates for you the controller, views and routes for your Ads model.

By the way, to create the routes you want to, try the follow in your routes.rb file:

  resources :ads, only: [:new, :create, :index, :show]

I hope it helps :)


as suggested by the comments - do not migrate 1:1 ubuntu instalation on a different hardware - there's a big chance you'll end up with broken system on the new computer.
to migrate:

install ubuntu on new HW
install LAMP stack
migrate DB - mySQL migration guide here: https://www.digitalocean.com/community/tutorials/how-to-migrate-a-mysql-database-between-two-servers
migrate wordpress PHP installation (simple rsync of /var/www/ shoud do it)
start it up and check if everything's working as expected

bonus step: learn ansible and automate your deployment for future migrations :)


How can I create an alias so that when I enter "kt" it executes "killall gnome-terminal"?

Creating an alias

To add an alias type the following in terminal,it will work until you close your terminal.
alias kt='killall gnome-panel'
To add this alias permanently you have to add the above command into .bashrc file
gedit ~/.bashrc
Add the first command at the end of your .bashrc file,

To refresh your .bashrc file type the following in terminal,
. ~/.bashrc  or  source .bashrc
Now you can type kt in terminal it will perform the action of killall gnome-panel
To list all your aliases type alias in terminal.

Few examples:

To create an alias for update,you have to add the following to your .bashrc
alias update='sudo apt-get update'
For upgrade
alias upgrade='sudo apt-get upgrade'
To add both update and upgrade you can do the following
alias upd='sudo apt-get update && sudo apt-get upgrade'

Note:

Source command is used for applying the changes that you have just made in a configuration file.
By ændrük suggestion you can also put your custom aliases in ~/.bash_aliases


Alt+Num will move you to the tab that Num corresponds to. So:

Alt+1 for the first tab.
Alt+2 for the second tab.
Alt+3 for the third tab.

and so on.

Good luck!


http strict transport security on apache

It's really yout application that should be setting this imho, but you can use Header set to make apache do it:

Header set Strict-Transport-Security "max-age=31536000"


How can I change ^L code in many files in Ubuntu?

Control-L (represented as ^L) is the "form feed" character. In ASCII, it has decimal value 12 (L is the 12th letter of the alphabet) or hex value 0c:

$ printf 'foo\x0cbar\n' | cat -et
foo^Lbar$

$ printf 'foo\x0cbar\n'
foo
   bar

You can replace it using tools like sed by specifying the hexadecimal escape code:

$ printf 'foo\x0cbar\n' | sed 's/\x0c//'
foobar

Alternatively, compose ^L directly using the keyboard sequence CTRL+V CTRL+L

sed 's/CTRL+VCTRL+L//'

For your specific replacement, given

$ printf '<\x0cilename\n'
<
 ilename

then

$ printf '<\x0cilename\n' | sed 's/<\x0c/<\/f/g'
</filename

(the g modifier is added in case there is more than one instance per line).


How to remove app installed from terminal?

sudo apt purge teamviewer* might be enough to jar it loose.


I experienced this on two different distributions. The solution was, as suggested above but found experimentally, to switch to "ALSA audio output" module with "Default ALSA Output (currently PulseAudio Sound Server)" device. This worked for both. It changes no functionality since ALSA gets routed through Pulse anyway.

Note you may need to restart VLC after switching the output module and device and make sure there's no lingering instance (reboot to guarantee). Otherwise it's easy to think it didn't work.


16.04 LTS wifi connection issues with Realtek RTL8723BE adapter

Finally I was able to fix the issues after trying out numbers of different methods.

Get details of your PCI wireless card by running sudo lshw -class network
Get your card model info according to the product line.
For instance, as you can see in the question description it says product: RTL8723BE PCIe Wireless Network Adapter so the model of my card is RTL8723BE

Or product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
so the model of my card is RTL8101/2/6E
Give the permission sudo chmod 755 /etc/pm/config.d/
Open or create config and add SUSPEND_MODULES="rtl8723be"(replace rtl8723be with your own model number)
Then run echo "options rtl8723be fwlps=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
(note that when replacing rtl8723be with my card which is RTL8101/2/6E i should only type .../modprobe.d/RTL8101.conf; and /2/6E shouldn't be written)

Finaly restart your system.

Now your system should be able to reconnect automatically after sleep, and wifi connection never got lost once for me after doing this.

"The up/down arrows is likely a network manager bug that results in network manager thinking the wifi device is actually ethernet.", according to Jeremy31.see bug info here You should be able to fix it by installing NetworkManager-1.2.0.

Thanks to Jeremy31 for providing the solutions.


Windows factory reset with a Linux partition

A hardware manufacturer's factory reset will reset your laptop back to the original state that it was when it was shipped from the factory with Windows preinstalled. It will erase everything else including your Linux partition.

A Windows factory reset which is initiated from Windows will not erase the Linux partition. You can select either the Keep my files or Remove everything options depending on whether you want to keep your data files intact. Either way, all of your Windows settings will return to their defaults and apps will be uninstalled.


GNU GRAB problem in single os Ubuntu 14.04

Go to Advanced options for Ubuntu in it enter to recovery mode and upgrade Grub. If it will not work then use third party tool eg Boot repair disk, which is live CD about 600mb. Mandatory condition is it should be connected with WiFi before repairing boot loader.It will automatically scan your all bootable drives and will give you instructions on the spot. A menu will come where mouse will not work. In that condition you have to use tab to move courser and space to select. Good luck.


Mozilla firefox has a extension which can intercept:

Tamper Data


Using xmonad configuaration on ubuntu 12.04

When you pick GNOME with Xmonad, you're telling it to run in Gnome. I've never actually tried that myself, but I believe it's actually meant to keep some of the Gnome GUI around. If you want to get rid of that, you need to run xmonad without Gnome. The way I usually do it is by making an xmonad.desktop file in /usr/share/xsessions/ with the following contents:

[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Lightweight tiling window manager
Exec=xmonad
Icon=xmonad.png
Type=XSession

That allows you to pick xmonad from the login screen.


Battery discharges while AC is plugged in

I found a solution.

The Battery had to be recalibrated which is easily done by discharging it nearly to zero and charge it again.


How can I make terminal tabs persist so I don't have to set everything up again every time?

Yes, there is a way to automate it via -t and -e flags to gnome-terminal.

For instance, here's a script I've used quite recently for this question:

#!/bin/bash
gnome-terminal --tab -e "bash -c 'printf \"\033]0;TEST1\007\"; sleep 7'" \
               --tab -e "bash -c 'printf \"\033]0;TEST2\007\"; ping -c 4 8.8.8.8'"

What happens there is that there will be launched gnome-terminal window with two tabs , and each will run its own command. The rest is simple - open Startup Applications and add that script as one of the commands to be launched upon logging-in. Remember to make the script executable and give full path to script as a command.


re-direct /Documents to a folder on a ubuntu server

Just mount the network share on the Documents folder

Move any existing docs out of the local user Documents folder first.

Then add this to fstab

server.local:/srv/user/Documents /home/user/Documents  nfs  _netdev,auto 0 0

Change server.local to a valid dns name of your server.

Tell it to do the mounts now

mount -a

Now your local Documents folder points to your server location.

You would need your nfs server in place first, and nfs-tools installed locally.

This is a manual way to do it for one user on one workstation.  For multiple users or a generic version you'll need something smarter using LDAP or NSS.


Ubuntu 18.04.3 LTS amd64 freezes during boot from USB 2.0

I did not solve the problem entirely, but found a nice work around! If you create your boot-usb-drive with this http://Pendrivelinux.com instead of rufus and use FAT32 it works fine for me!


lvmetad is not active yet; using direct activation during sysinit / still not solved

changed boot to upstart as default and everything is working okay now.


Thank you guys for the help, this appears to be a dumb user error.  I didn't realize when copying files like so:

sudo rsync -av --delete /mnt/Storage /media/Drobo

It would be making a folder inside Drobo called Storage.  Apparently I needed / after Storage and Drobo.  Interesting that the cp command doesn't, yet rsync does.  Anyways, I noticed when testing another folder double nested names and realized my error.

Thanks community!


I'm not sure if this is the origin of your error, but: There is a problem with the AMD legacy driver (which you need to run your ATI HD4670) which is not compatible with actual X-Server Version 1.13.

There exists a workaround, which downgrades your X-Server. This has not worked to me, but you may try it.

Further information:

https://launchpad.net/~makson96/+archive/fglrx
http://ubuntuxtreme.com/howto/how-to-fix-your-amd-graphics-in-ubuntu-12-10/