problem with install su jdk-7u1 in ubuntu

it is better if you try to install JAVA from Ubuntu Software Center after that you can run java programs
also follow these links
http://brunoreis.com/tech/intalling-java-ubuntu-natty/
http://www.liberiangeek.net/2012/04/install-oracle-java-jdk-7-in-ubuntu-12-04-precise-pangolin/
http://www.shinephp.com/install-jdk-7-on-ubuntu/


How can I extract audio track from video file and save it as MP3?

Very simple CLI solution:

ffmpeg -i VIDEOFILE -acodec libmp3lame -metadata TITLE="Name of Song" OUTPUTFILE.mp3

In case you don't have ffmpeg installed:

sudo apt-get install ffmpeg


I had the same problem with my Epson WF-3520 and the driver from the Epson-Website. This solved my problem:

Try, to make sure the damaged driver will be removed:

sudo apt-get -f install

And then install the driver from the package manager

sudo apt-get install printer-driver-escpr

I installed the package "printer-driver-escpr" version 1.3.0-1 with the package manager and the driver works for me with the Epson WF-3520.

Now, try to add a new printer.

Application -> System Tools -> System Settings -> Printers

Network priner with connection type:

LPD/LPR queue 'PASSTHRU'


Reduce mtu value (suggested 1452) instead of automatic for the specific wifi in ubuntu
or
reduce mtu in wan setup in router/modem


From the manual page of shadow(5):

  Each line of this file contains 9 fields, separated by colons (“:”), in the following order:

  [..]
    encrypted password
        Refer to crypt(3) for details on how this string is interpreted.

Alright, let's have a look at man 3 crypt then. From the notes section:

  [..] So $5$salt$encrypted is an SHA-256 encoded password and $6$salt$encrypted is an SHA-512 encoded one.

  "salt"  stands  for  the  up  to 16 characters following "$id$" in the salt.  The encrypted part of the password string is the actual computed password.

So, the salt is stored in the password field of /etc/shadow itself. For more details, have a look at the manual page of crypt(3).


Benchmarking a HDD using the Benchmark utility in "Disks" on Ubuntu 16.04

hdparm is a standard CLI for testing disk speed and the drives don't have to be mounted (when doing read tests).

$ sudo hdparm -tT /dev/nvme0n1

/dev/nvme0n1:
 Timing cached reads:   20760 MB in  1.99 seconds = 10414.33 MB/sec
 Timing buffered disk reads: 5104 MB in  3.00 seconds = 1701.12 MB/sec

$ sudo hdparm -tT /dev/sdb

/dev/sdb:
 Timing cached reads:   18822 MB in  1.99 seconds = 9442.74 MB/sec
 Timing buffered disk reads:  80 MB in  3.08 seconds =  26.01 MB/sec

The first drive is an SSD and the second drive is a USB pen drive.


Serial console root login on arm64 Ubuntu server 16.04

Since you can clearly get into the file system and modify files, then with the image mounted as a directory, try this as root on the hist:

chroot /path/to/image

Then When you run passwd, it should be changing the password of root in the image, not on the host. Use exit to leave the chroot. By using passwd, you may fix any problem that might have existed with manually changing the password.


AMD/Nvidia hybrid graphics not working whatever I am trying

You will need to install Nvidia drivers.
Open the Software & Updates app, go to the Additional Drivers tab, and select an NVIDIA driver 440 is the latest at the moment.
Once that is done reboot and nvidia card should be working.


Kernel source version number does not match

Try apt-get --download-only source linux-image-3.0.0-15-generic

Ubuntu kernels are base on mainline ones, but aren't numbered the same way.


it seems to me your issue is you are attempting to use Cosmic sources with Bionic : https://wiki.ubuntu.com/Releases

run :

sudo apt-add-repository --remove 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
sudo apt update
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt update
sudo apt install --install-recommends winehq-stable

also as a long-time user of wine who has experience using it, the best possible wine experience comes from letting other programs configure & use it for you, E.G. Steam and Lutris. While both are meant to be used for running specifically gaming apps, I've used them successfully with non-gaming apps. You should probably take a look.


Can't connect to windows 7 ad-hoc network

I know that under 10.04 you had to go and manually change the mode of the network in the Ubuntu network settings to Ad-hoc, I've not used WiFi on 12.04 but is this the same issue?

UPDATE: OK, I've not got wireless installed on my Ubuntu box just now. However, if you click on the up/down arrow in the info bar at the top of the screen.. Then "Edit Connections" - Wireless. You should have a wireless connection entry in the list. If not, you will need to add one. In the settings box for the wireless connection, the second box down is labelled "Mode". This should be on "Ad-hoc" not on "Infrastructure".

If it is already set to Ad-hoc, make sure that the SSID is correct. If the Band is set to auto, try the correct band for your desktop PC, also check that the Channel is set to the same as your desktop. On the security tab, change the security to match your desktop; Win7 defaults to WPA2-Personal. Make sure that you've entered the key correctly. On the IPv4 tab, try manually setting the IP details. Choose an unused IP address on the same network as your desktop. For example, if the desktop has an IP of 10.0.0.1 associated with the Wireless network, the "mask" will be 255.255.255.0 by default so you must choose an address of 10.0.0.2 - 10.0.0.254, make the gateway the IP address of the desktop (e.g. 10.0.0.1 in this example).


How do i install Ubuntu in UEFI or load in legacy while windows is in UEFI

Use EasyBCD software(Non-commercial freeware) in Windows to add Ubuntu to the boot menu when booting. Go here for detailed info of using it-
How to use EasyBCD

Download it here-
EasyBCD


How to integrate aria2 or wget with google chromium?

There is a project with wget integration to chromium

https://code.google.com/p/wget-plugin-chrome/


Automatic Android video backup on Ubuntu One

The current version of the app only supports auto-upload of photos. Once there is support in the REST API for resumable uploads (so large interrupted uploads don't start uploading from zero), the files app will add auto-upload video support.


You'll need to uninstall, clean and install it again:
To uninstall:

./waf uninstall

To clean up results of a build (objects, libraries, etc) use

./waf clean

Now, the build

./waf configure
./waf

To install again:

./waf install


How do I know if I'm getting the most out of my video card?

Yes, you should definitely use fglrx if you want to maximise the potential of your graphics card. These proprietary drivers provided by AMD itself are the best route to take. There is an active debate over whether or not the open source or the proprietary drivers are better for proprietary cards.  You can see a full comparison here, which lists some stats. Ultimately it's your decision, but I recommend the proprietary drivers.


How can I make a custom desktop file for VS Code for my dock, under Ubuntu 20.04?

I have no real idea why, but I solved this by renaming my code.desktop to code_code.desktop.


You can go to Tweaks -> Fonts and there is option Scaling Factor.


USB2&3 in Ubuntu 14.04 64bit gone missing after reboot when running from within a VM

Installing all updates for XenServer 6.5 SP1 resolves this issue.


How install libcairo2 (>= 1.12.0) in 12.04?

monodevelop packages depend on libcairo2 version 1.12.0 or grater but Ubuntu 12.04 have 1.10.2-6 version (you can see here) so you have to manually download and install from here or here.

  wget http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/libcairo2_1.14.2-1ubuntu1_amd64.deb
  sudo dpkg -i libcairo2_1.14.2-1ubuntu1_amd64.deb

download version according to your system configuration (64bit or 32bit )
if it still show any dependency then try command:

sudo apt-get install -f


It looks like the file is somehow unavalible for wget but works in download by web browser.
I suggest to download it manually and then do rest of work in terminal. It is another story when you work in console mode only... But you can always download it somewhere and bring it on a flash drive.

or

try to use lynx or other terminal web browser (f.e. links, elinks) and it works just fine:)
(Of course if not avalible try to install it by sudo apt-get install lynx)


Help with g810-led, actually g213-led and g203-led. Setting up a service

You can configure the Logitech G203 Lightsync mouse with the following (20.04):
Install ratbagd (system daemon to introspect and modify configurable mice):
sudo apt install ratbagd

Install Piper:
 flatpak install flathub org.freedesktop.Piper

Add the missing mouse id to /usr/share/libratbag/logitech-g102-g203.device
DeviceMatch=usb:046d:c084;usb:046d:c092
Restart ratbagd
sudo systemctl restart ratbagd.service

Run Piper, and I was able to set resolution, buttons and RGB effects.


Screen tearing in Xubuntu, no problem with Ubuntu

Note: these directions have been abridged from the original source of Duncan Lock's blog.

Disable XFCE's built-in compositor:

Open up a terminal, and run these commands:

 sudo apt-get update
 sudo apt-get install compton
 cd ~/.config
 nano compton.conf

Paste this into Nano (see here for a commented version):

backend = "glx";
glx-no-stencil = true;
glx-copy-from-front = false;
glx-swap-method = "undefined";
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -5;
shadow-offset-y = -5;
shadow-opacity = 0.5;
shadow-exclude = [
    "! name~=''",
    "name = 'Notification'",
    "name = 'Plank'",
    "name = 'Docky'",
    "name = 'Kupfer'",
    "name = 'xfce4-notifyd'",
    "name *= 'VLC'",
    "name *= 'compton'",
    "name *= 'Chromium'",
    "name *= 'Chrome'",
    "name *= 'Firefox'",
    "class_g = 'Conky'",
    "class_g = 'Kupfer'",
    "class_g = 'Synapse'",
    "class_g ?= 'Notify-osd'",
    "class_g ?= 'Cairo-dock'",
    "class_g ?= 'Xfce4-notifyd'",
    "class_g ?= 'Xfce4-power-manager'"
];
shadow-ignore-shaped = false;
menu-opacity = 1;
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
alpha-step = 0.06;
blur-background-fixed = false;
blur-background-exclude = [
    "window_type = 'dock'",
    "window_type = 'desktop'"
];
fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "opengl-swc";
dbe = false;
paint-on-overlay = true;
sw-opti = false;
unredir-if-possible = true;
focus-exclude = [ ];
detect-transient = true;
detect-client-leader = true;
wintypes:
{
    tooltip =
    {
        fade = true;
        shadow = false;
        opacity = 0.85;
        focus = true;
    };
};

Press CTRL+X and then Y and then Enter to save and exit.

Now, run this command: compton

Your screen will flicker, and you will no longer have screen tearing!

Finally, just add it to your startup applications:


Does downloading Ubuntu 12.04 LTS normally take around 10 hrs?

It completely depends on the speed of your internet connection.If you had highspeed internet connection then it would be downloaded within a hour.For slow connections it takes long time.


I think the problem is in your video card try

sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo

EDIT:
    Try:

sudo apt-get install libcheese*
sudo apt-get install xorg-video-abi-15
sudo apt-get install fglrx-updates


Rather than compiling from source as in the answer of @maggotbrain, and totally confuse your package management, use a newer package instead.

Download the one for Quantal here (4.0.1) and install using for example

sudo dpkg -i gawk_4.0.1+dfsg-2_amd64.deb

It has very standard dependencies easily met in Ubuntu Precise, so this is a very trivial backport.

Advantages:

You don't overwrite files managed by your package management
Reverting is also very easy by just telling your package management to install another candidate version.
Does not involve compiling and therefore
does not require you to install the build dependencies.

However, don't just blindly upgrade software on your system. Keeping older, stable versions is part of the release schedule of Ubuntu. This makes sure developers can 'freeze' the shared libraries and use them efficiently. Security and severe bugs will be backported to the versions as released with the OS release.


Backlight screen flickering on a Sony Vaio VPCYB15AL

I have had the same problem, it seemed to be solved when installing the proprietary driver, on my system it works, but I get a logo on the screen right down: AMD not supported hardware. The tips about removing this logo with a script as can be found on the Internet does not work in this case. Afterwards I removed the proprietary driver and now I startup using Unity-2D which does not have this problem (and quicker startup, hardly any difference with 3D and longer battery life, less fan noice).
Best
RoK


I subsequently found out that hibernation with Secure Boot is disabled as a result of Lockdown - how pertinent it is to be writing that right now.

In Ubuntu 20.04, Lockdown can no longer be disabled using Alt+SysRq+X.

As I am loading my Secure Boot keys using UEFI Secure Boot (via KeyTool.efi) rather than MOK Manager, all that is required is to disable Secure MOK Boot (rather than UEFI Secure Boot) using the command:

sudo mokutil --disable-validation

Run the command and create a password. Restart and then run MOK Manager (mmx64.efi). Disable Secure Boot and Lockdown is disabled, enabling hibernation. Note, it is safe for me to do so because I am using LUKS but otherwise this is not advised.

Note, in order to execute mmx64.efi, it must be signed using your Secure Boot key. The article at https://github.com/jiazhang0/meta-secure-core/blob/master/meta-efi-secure-boot/README.md I found particularly useful.


Nouveau does not yet have 3D accelleration for nvidia video cards. It should have it within a few months, I think. At this time, those of us with Nvidia video must use the hardware drivers to enable 3D.


How can I log into a commandline session, without having to launch any desktop environment?

sudo systemctl set-default multi-user.target

To go back to graphical boot:

sudo systemctl set-default graphical.target


How to see specific information from the Motherboard

Try dmidecode

dmidecode --type baseboard
# dmidecode 2.9
SMBIOS 2.5 present.

Handle 0x0200, DMI type 2, 9 bytes
Base Board Information
    Manufacturer: Dell Inc.
    Product Name: 0D8635
    Version: A01
    Serial Number: ..CN6970265R0638.

Handle 0x0A00, DMI type 10, 10 bytes
On Board Device 1 Information
    Type: Video
    Status: Enabled
    Description: Embedded ATI ES1000 Video

On Board Device 2 Information
    Type: Ethernet
    Status: Enabled
    Description: Embedded Broadcom 5708 NIC 1

On Board Device 3 Information
    Type: Ethernet
    Status: Enabled
    Description: Embedded Broadcom 5708 NIC 2

For additional options, use dmidecode --type

dmidecode --type

dmidecode: option `--type' requires an argument
Type number or keyword expected
Valid type keywords are:
    bios
    system
    baseboard
    chassis
    processor
    memory
    cache
    connector
    slot

=)


E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

sudo apt-get update && sudo apt-get upgrade

the commands before and after && are separate commands, so sudo must be used by both commands.


WoW Severe graphical Corruption on Ubuntu 11.10

I've seen that before, I cannot remember what fixed it.  However there is a list of things you can disable.  I'd first start with turning off triple buffering and making sure you're using OpenGL.

http://appdb.winehq.org/objectManager.php?sClass=version&iId=24878


Try the following:

upower --enumerate

...and detect the battery canonical name. After that, you can issue:

upower -i /org/freedesktop/UPower/devices/battery_BAT0

(change with your name). This will give you the full statistics of the battery. If it's old, you can have a maximum capacity different form 100%:

energy-full:            44.69 Wh
energy-full-design:     47.52 Wh

...and that means that the battery is "old" and had loose (in my case about a 10%) part of its capacity. If the battery is three-four years old, losing a 35% could be a normal thing.

EDIT:
Given the new data on the question, this seems a bug of the power indicator; it is averaging the battery of your bluetooth and the main one. You can check http://bugs.launchpad.net/ubuntu/+source/indicator-power to see if you find it, or posting a new one; but it is probably related to  https://bugs.launchpad.net/ubuntu/+source/indicator-power/+bug/850728.


How to create a bootable iso file from a multiboot USB

here is only described how to create one iso-file out of
several iso-files ...

http://answers.yahoo.com/question/index?qid=20100131184456AAs9iR8

in case of usb-stick you probably would have to create an img-file ... ???
have nothing found about that.

here is different link for windows-users:

http://www.makeuseof.com/tag/combine-multiple-iso-images-burn-single-bootable-iso-image-file/


Apache2 error no listening sockets avaliable

netstat -an will show you if port 80 (http) is already in use, which the error suggests is the problem.

You can try edit apaches default config file:

/etc/apache2/sites-enabled/000-default.conf

Change <VirtualHost *:80> to <VirtualHost *:8080> then sudo service apache2 restart to see if it gives an error. If it works then you need to find what's configured to listen on port 80. Use your browser (on apaches computer) to look at http://127.0.0.1 and see if anything loads. http://127.0.0.1:8080 will be apaches default page if you configured it for 8080.

Another useful command ... apachectl configtest

You may need to check what other programs you have installed recently. Usually config files are located in /etc// and man <program name> e.g: man apache2 to see command options etc.


chroot : sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

You somehow removed the setuid bit from sudo. The permissions for the file are -rwxr-xr-x while they should be -rwsr-xr-x.
I'm not quite sure how you did this, because when I tried to run the two commands you ran (of course not on /usr/bin/sudo but on a copy for safety reasons) they did not remove the setuid bit (assuming you were running them as root, because if you weren't running them as root they should simply fail and do nothing). Maybe you typed chmod 0755 instead of chmod 4755 ?
Anyway, I understand you lost access to sudo now and can't perform anything as root. You have to boot from live system on Ubuntu installation medium, mount your main system partition and execute the following:
sudo chmod u+s /mountpoint/of/your/partition/usr/bin/sudo

where /mountpoint/of/your/partition of course needs to be substituted by the actual mountpoint where you mounted your partition.


How should I configure Kinesis Savant Elite/USB pedals in 14.04?

To program the Savant Elite footswitch, the programming driver needs to be installed on a Windows 32 bit computer (http://kinesis-ergo.com/wp-content/uploads/2014/01/xkeyswxp.exe). The driver is not compatible with any other operating system, as well as 64-bit Windows. Once it’s installed it can then be programmed for keyboard commands (programming instructions located in User’s Manual). Once it’s programmed, that information is stored in the device and can then be connected to his Linux computer and it will function exactly as programmed.

BTW this is a discontinued product and is outdated. The current Savant Elite2 is fully compatible with all operating systems including Linux and can be programmed much easier (without the user of a driver).


I had a very similar issue after an update in 12.10, not sure if this might apply to your issue directly.
Searching here did not resolve my issue, but then I found a workaround on my own.
I looked up the running processes where I found lightdm (light display manager) which is used by Ubuntu for the login screen.

simply restarting it was working fine for me and I was able to continue with updates and whatsoever.

ps -aux | grep lightdm
sudo killall lightdm
sudo lightdm


downloaded 13.04 on inspiron 3520, at start it gives me two icons windows and ubuntu, windows works great, ubuntu gives error message

I installed Ubuntu 13.04 on a Dell Inspiron 5720.  Are you booting in UEFI mode? Or Legacy?  If you are booting in UEFI mode, you may need to go into the BIOS (hold down F2 at the Dell boot screen) and go over to the Boot tab.  My laptop lists boot priority.  If Ubuntu isn't listed, go down to Add and select the Ubuntu partition, then go down to the file selection and look for the bootx64.efi file in the /boot/efi/EFI/ubuntu.  (It has been a little bit since I did this.  And I can't edit my entry to see what I have selected.)  This may allow you to boot ubuntu.  It sounds like Ubuntu isn't passing secureboot, and the laptop is attempting to go to Windows by default.  I hope this will be of some help.


About Alacarte

When you edit the icon of a .desktop file with Alacarte, Alacarte copies the global .desktop file to ~/.local/share/applications, and edits that one. Since on the next login the local one will overrule the global one, to fix your issue, you need to manually edit the local one.

Alacarte's bug with icon extensions

Alacarte does not handle icons well however if they need to have an extension (like .png). This is a known issue; Alacarte simply removes the extension, even if you use the full path to the icon. In your case, Alacarte incorrectly uses:

Icon=/usr/share/code/resources/app/resources/linux/code

where it should be:

Icon=/usr/share/code/resources/app/resources/linux/code.png

One more issue; incorrect StartupWMClass -line

Also the line:

StartupWMClass=/usr/share/code/resources/app/resources/linux/code.png

is incorrect. If the .desktop file needs the line to represent the window, it should be:

StartupWMClass=code

If you fix these two issues, all should work fine :)


I'm not receiving Firefox updates, what is wrong?

As explained in the question you link to, the new version of Firefox will come to all supported releases. You don't have to add a PPA for that.

If you want to have it as quickly as possible, you could enable the 'proposed' repository. But you should only do that if you want to help testing new packages (not just the Firefox one!) and are willing to submit bug reports.
.


can't login in lightdm (16.10) with xdmcp

I had a similar problem and I fixed it by:

sudo mv ~/.Xauthority ~/.Xauthority.backup
sudo service lightdm restart


Ubuntu Software (Software Center) Crash - Ubuntu 16.04

I fixed the same problem myself with

sudo apt-get upgrade gnome-software


"Dependency is not satisfiable" error when trying to install an application

From your pastebin it looks very much like you have not got the updates repository enabled

Tick this option shown - the refresh your installation before install pyChess

sudo apt-get update && sudo apt-get upgrade


Why is my network interface named enp0s25 instead of eth0?

This is known as Predictable Network Interface naming and is part of systemd, to which Ubuntu has been transitioning as of version 15.04.

Basic idea is that unlike previous *nix naming scheme where probing for hardware occurs in no particular order and may change between reboots, here interface name depends on physical location of hardware and can be predicted/guessed by looking at lspci or lshw output. Conversely we can guess information about it's physical position in the pci system. In your case that would be pci bus 0, slot 2. According to the freedesktop.org article, there actually are 3 ways how interface name is assigned: based on BIOS/Firmware for onboard cards, based on PCI information, and based on MAC address of the interface. Refer here for other examples.

According to the freedesktop.org page one of the reasons for switching to predictable naming is that classic  naming convention can lead to software security risks in multi-interface systems when devices are added and removed at boot. Also, according to the comment by Sam Hanes, "On a big server with many Ethernet ports it's invaluable: you can immediately tell which interface goes to which port and adding or removing hardware doesn't change the names of other ports."

See How to rename network interface in 15.10 in case you decide to revert back to the other version of naming.


well let me ask a question first, did you try using a different cable?
if the problem still persists then there is one of two things going on

one the monitor HDMI port broke
two the laptop HDMI port broke
you can simply test this by trying a different display or try plugging the display into something else


You can also use ffmpeg and the commandline (taken from Rotating videos with FFmpeg):

  Rotate 90 clockwise:

ffmpeg -i in.mov -vf "transpose=1" out.mov

  For the transpose parameter you can pass:

0 = 90CounterCLockwise and Vertical Flip (default)
1 = 90Clockwise
2 = 90CounterClockwise
3 = 90Clockwise and Vertical Flip

And to flip it horizontally (ffmpeg documentation):

  Flip the input video horizontally.

  For example to horizontally flip the video in input with `ffmpeg':

ffmpeg -i in.avi -vf "hflip" out.avi

Nota bene 1

Older versions of Ubuntu supplied avconv instead of ffmpeg. In this case just change ffmpeg to avconv:

avconv -i in.mov -vf "transpose=1" out.mov

Nota bene 2

If the output is a .mp4 video you has to add strict -2 before the output file to avoid error message :

ffmpeg -i in.mp4 -vf "transpose=1" -strict -2 out.mp4


Do you really need a swap file? In Linux you usually make a swap partition. That is a partition solely dedicated to function as swap memory. If you installed Ubuntu on a blank disk, you should have one by default. If you chose your own partition layout and didn't make one, I suggest repartitioning to have one.

The only issue I have encountered with hibernation so far is that if the swap partition is smaller than your physical RAM, hibernate always fails. Is the image file larger than your RAM or not?


Firestarter preventing Firefox accessing internet

You may need to allow port 53 TCP & UDP for DNS and ports 67 & 68 UDP for DHCP.

Although I have never used Firestarter, because I prefer UFW.

Have a look at this simple guide on my website for setting up UFW, it may help.


Display Resolution Reverts to Low Resolution After Each Re-Boot

Create a startup script that runs an xrandr command that sets your resolution.

That way, every time you login RandR will set your preferred resolution for you automatically.

Create a script with the following contents:

#!/bin/sh
xrandr --output monitor_name --mode 1920x1080

Save it with a .sh postfix.
You can find out your monitor name with xrandr | grep "connected".

Search for "startup applications" in the dash and add the above script as a startup program - make sure you've made the script executable.

Should work now =)


Most probable cause is that a kernel upgrade is causing the problem. From the grub menu instead of selecting recovery mode, boot using the older kernel version. If it works then set that kernel as the default. Follow this to set the default kernel.


how to extract service names out of file and save them in clean version in file?

The file /etc/services looks like this:

# Network services, Internet style
#
# (more comments)

tcpmux    1/tcp     # TCP port service multiplexer
echo      7/tcp
...
discard   9/tcp     sink null
discard   9/udp     sink null
...
ssh       22/tcp    # SSH Remote Login Protocol
...

That is, there are

lines that consist only of a comment
lines with trailing comments
empty lines
duplicates in the first column

To remove all of them, the following command is one possible way:

awk '!/^\s*$/ && !/^\s*#/ {print $1}' /etc/services | sort -u | cat -n

Output

 1  acr-nema
 2  afbackup
 3  afmbackup
 4  afpovertcp
 5  afs3-bos
 6  afs3-callback
 7  afs3-errors
...

Explanation

awk '!/^\s*$/ && !/^\s*#/ {print $1}' /etc/services

In general, awk reads a given file (or stdin) and then executes the following for each line:

condition_for_a_line { commands_when_condition_is_met }

We use !/^\s*$/ && !/^\s*#/ as the condition which means line is not empty and line doesn't start with a comment. When both conditions are met, the first column $1 is printed. This gives us all first columns of the file without empty and comment lines.

sort -u

This sorts the data and eliminates duplicates in one go.

cat -n

Simply adds line numbers.


Libreoffice in KDE Neon using GTK theming

You have to install the libreoffice-kde package (it is a package that I always uninstall because it introduces performance issues). It is supposed to cater for KDE integration.

You may have to log out and back in or even reboot for the changes to take effect.


Is it possible to sync Rhythmbox playlist to Ubuntu One Music or use a m3u file as Ubuntu One playlist?

I have a script which will convert an M3U to an Ubuntu One playlist (and dump an Ubuntu One playlist to an M3U). You can download it at http://bazaar.launchpad.net/~sil/+junk/m3u2u1ms/files. Requires Ubuntu 12.04 or better. Let me know if it doesn't work for you.


choosing proper release of Ubuntu to install

You are always best off using the latest release available.  I'm not sure why someone would recommend older releases.  The latest ones are more likely to work correctly on your hardware and user friendliness is being improved with each release.


Check download progress of 'wget' after starting it in background mode

You can run it with -o option and check the log for the progress:

wget -o log http://file


Shell script to CRON that calls URL and saves file

One way to download an URL without having to use an user interface (text or GUI) is to use wget with all needed parameters (as you wish) as a cron job.

About wget

An example for a single URL (with output name merged with a timestamp, to enrich the answer, could be a static name):

 wget URL -O "/home/uname/dirn/`date +%y%m%d-%H%M%S`-n.htm" -b
 wget URL -O "/home/uname/dirn/`date +\%y\%m\%d-\%H\%M\%S`-n.htm" -b #in crontab

note: in cron you have to use "\%" (as in the second line above) instead of just "%"  (as in the first line above), because cron interprets the "percent"-character.

where: -O "/home..../date...-theRestOfTheName" breaks up into:

absolute path (cron may have its own path configured, so from practical point of view, it is often favourable to have your path of interest specified in each command)
on-the-fly execution of date with output configured as a human-readable kind-of a time-stamp
the rest of the target file name

-b asks wget do work in the background, with logging into syslog.

You can optionally use a list of URLs from a file (-i filename).  You could also play around with wget and its manpage (man wget) - it is relatively short and can give you lots of ideas.

About cron

Note, cron assusmes your machine is on at all times: cron does not catch up with jobs for the time the machine was off. Editing cron as a current user

crontab -e

Add a line of configuration that specifies the frequency of execution of the command (simple instruction gets displayed as a comment in the topmost lines the crontab editor, please read it).  For running every 5 minutes on Sunday you would write:

# m  h  dom mon dow   command
*/5  *   *   *   0    wget google.com -O "/home/uname/dirn/`date +\%y\%m\%d-\%H\%M\%S`-ind3.htm" -b


How can I change Maximum segment lifetime in Ubuntu 14.04

The Maximum Segment Lifetime value is used to determine the TIME_WAIT interval (2*MSL)

Try to check this value with commands below:

sysctl net.ipv4.tcp_fin_timeout
cat /proc/sys/net/ipv4/tcp_fin_timeout

edit /proc/sys/net/ipv4/tcp_fin_timeout

and change default value. Once you have modified your sysctl.conf file with the above required settings, you can reload the configuration and make it permanent, by the below command.

sysctl -p /etc/sysctl.conf


Where are the login screen images stored on the HD

The images are stored in usr/share/ backgrounds

If you want to change these images you just need to change your desktop wallpaper.  This will also set the back ground of the login screen (LightDM) to be the same.

Instructions how to change the wallpaper in LightDM

Instructions how to configure LightDM


Installing Ubuntu woes (2x SSD in RAID 0 & 1x HDD)

Your partition table (sdc1 - efi) suggests that you are booting in UEFI mode. My experience is that the 14.04 installation (desktop or server) does not work with efi boot - at least it didn't for me. However, I found a way past it. You should be able to modify my RAID1 solution to match your problem. Good luck!


How do you grow partition on 4 terabyte disk

Your filesystem has MBR (Master Boot Record), in MBR maximum partition size is 2TB(tera byte) only, so that's why you are not able to do this.

To make the system capable of this, you need to replace your MBR with GPT (GUID Partition Table). It allows you to create one partition up to 2PB(peta byte).
To replace you can read this link : How can I change/convert a Ubuntu MBR drive to a GPT?

For difference between MBR & GPT go to this link or DuckDuckGo.


same thing happened to me.  I upgraded to Ubuntu 18.04 and was not able to connect to home Wi-Fi.

I then used a network cable to connect via LAN  to the internet, ran Ubuntu software upgrade, installed all the updates and restarted the computer.  This fixed the issue!


How can I pack Windows XP ISO that is unpacked into a folder on Ubuntu?

As I stated in my question I want to place Windows XP ISO into one of the partitions in my USB stick to run it at boot to install XP just in case. After searching for a while on the net I learned that it's not that easy. I needed to extract XP ISO into folder then apply winvblock driver and edit a few files in extracted folder, and then pack folder into bootable XP ISO again

In order to boot from CDs, it needs boot sectors to be detected by BIOS. A bootable CDROM actually contains an image of floppy disk. https://superuser.com/questions/476415/what-does-a-bootable-cdrom-usb-floppy-disk-contain-exactly

When you extract a bootable ISO file into a folder, you can't just reassamble it into a ISO file (like mkisofs -o /tmp/cd.iso /tmp/directory/) and preserve boot functionality  unless you apply a boot sector patch.

mkisofs helps apply that patch while it is creating "Bootable ISO Image" from folder. It's  possible for both Windows and Linux.

For Windows XP you need to place bootsect.bin in root of folder then from root of folder in terminal run:

mkisofs  -b bootsect.bin -no-emul-boot -boot-load-seg 1984 -boot-load-size 4     -iso-level 2 -J -l -D -N -joliet-long -relaxed-filenames     -V "WINSP"     -o ../winsp.iso .

That's all. You have a bootable XP.ISO

For Linux you need isolinux.bin and boot.cat and issue command:

mkisofs -o output.iso  -b isolinux isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table    CD_root

Some time ago a guy asked similar question for Ubuntu here How can I create a bootable iso from an extracted Ubuntu 13.04 iso?

It's possible with syslinux http://www.syslinux.org/wiki/index.php/ISOLINUX

I tested my modified XP ISO in Virtualbox, it runs well.


If you are upgrading from an older version of Ubuntu, your login will stay the same.
If you freshly installed Ubuntu 16.04, called it an upgrade and rage-quit halfway through, the system asks you to choose your login on the same screen as you choose your password, way before you get anywhere close to halfway through, so YOU KNOW what your login is.


Is there a way to hide the Messaging Tray in GNOME Shell?

I just managed to hide the messaging tray. Here are the steps I followed:

wget http://aur.archlinux.org/packages/gn/gnome-shell-extension-remove-bottom-bar/gnome-shell-extension-remove-bottom-bar.tar.gz
tar -zxf gnome-shell-extension-remove-bottom-bar.tar.gz
cd gnome-shell-extension-remove-bottom-bar/
mkdir -p .local/share/gnome-shell/extensions/remove_bottom_bar@k2z.com
cp extension.js .local/share/gnome-shell/extensions/remove_bottom_bar@k2z.com/
cp metadata.json .local/share/gnome-shell/extensions/remove_bottom_bar@k2z.com/

Now press Alt + F2 and enter r. After that, open gnome-tweak-tool  and turn on the extension 'Remove bottom bar extension'.

There is an extension in the official GNOME extension website that lets you disable the messaging tray. You only have to download it from the site and turn it on in the gnome-tweak-tool to disable the corner.


Problems installing ubuntu on a lenovo thinkpad x1 yoga

From the original poster's edits (now removed from their question):

  SOLVED: You need to disable pstate by adding an instruction in GRUB:

intel_pstate=disable

  Then do it again at GRUB after installation. This is due to a reappearing
  bug that's going to be fixed at kernel 4.5 (Bug report)


According to my system, the package name is libapache2-mod-php7.0.  Try sudo apt install libapache2-mod-php7.0 to install that package.

That said, you should not need that package to get the phpinfo() function working in a PHP script.


Ubuntu 14.04 Requested size ** exceeds 3D hardware limit ** - dual monitors

I used ARandR.

$ sudo apt-get install arandr
$ arandr

Worked like a charm


Create a menu item to sent to pen drive?

I'm quite certain you can't copy to a pen drive like how it is in Windows but you can simply use 'copy' and 'paste' function from a 'right click' to copy things onto the pen drive. Hope this helps


AMD Vi error: unable to write to iommu perf counter

Add this line to /etc/default/grub:
GRUB_CMDLINE_LINUX="iommu=soft"
Then sudo update-grub and the error goes away. Answer taken from here. Works for me with a Ryzen 4350G CPU + MainMSI B550M PRO-VDH WIFIB550


Need "correct" method to install nvidia driver on thinkpad running ubuntu 12.04+

Add this repository:
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
Update:
sudo apt-get update
Install NVIDIA Drivers:
sudo apt-get install nvidia-current nvidia-settings


Unable to locate package qt5-default in LXD container

The package is available. Compare with the following steps.

$ lxc launch ubuntu:18.04 bionic
Creating bionic
Starting bionic

$ lxc exec bionic bash

root@bionic:~# apt update

root@bionic:~# apt policy qt5-default
qt5-default:
  Installed: (none)
  Candidate: 5.9.5+dfsg-0ubuntu1
  Version table:
     5.9.5+dfsg-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
root@bionic:~#

First, you launch the container from ubuntu:18.04. In this case it would be OK to also use images:ubuntu/18.04, however for some other tasks it is better to stick to ubuntu:18.04.
Second, when you get a shell in the container, you need to run apt update so that the package list is updated. I suppose this was the issue; you did not run this command, therefore the container did not have any list of packages. The containers with Ubuntu perform a daily check for security updates, therefore, if you had left the container running for a day, then it would have ran apt update by itself. However it is good practice to run apt update when you first create the container. There is also a way to configure LXD to make the container to auto-update as soon as they are created.
apt policy qt5-default shows that the package is available, from the universe repository.


Repair vanished partitions after Startup Disk Creator

It is a good idea to clone the drive with ddrescue as soon as possible, and do the recovery work on the cloned copy. Then you dare test more recovery options. It things go wrong, you can clone it again for more tests.

Install ddrescue with the following command,

sudo apt-get install gddrescue

You find instructions including examples in the info page,

info ddrescue

-o-

I think it is a good idea to continue with testdisk, to try different ways of using it.

If you still have no luck, it is possible to use photorec, also from www.cgsecurity.org/. Photorec will probably recover a lot of your files, but without directory structure and file names, so it is a lot of hard work to identify the recovered files and give them suitable names. It is probably easier to work, if you let photorec search for one file type each time, and take care of those files instead of all files at the same time.

-o-

Gparted is not able to interpret the partition structure of the cloned iso file correctly - this is why the drive size seems to be 4 times bigger than it is.


It seems like you did not forward port 22 in your router's settings on the host side.

Also, try deleting your SSH cache on the guest like so:

  rm ~/.ssh/known_hosts


Most likely the installation didn't added the swap partition to the fstab. This is easy to solve:

Open a terminal and type sudo blkid:

sudo blkid
/dev/sda1: UUID="bf554a2f-a035-4c22-bca8-162def35a03c" TYPE="ext4"
/dev/sda2: UUID="3962db06-3776-4f38-8ab9-eab6feeccc1d" TYPE="ext4"
/dev/sdb1: UUID="AA64B45A64B42AC9" TYPE="ntfs"
/dev/sdb2: UUID="F66E431C6E42D551" TYPE="ntfs"
/dev/sdb3: UUID="75a0854b-8b6b-453f-8aec-2a081a1f19e3" TYPE="swap"

I've marked the swap partition. Save the UUID value.
Edit the /etc/fstab file with whatever editor you like, but for efficiency sake I would tell you two methods:

Open the file with an editor using sudo gedit or sudo vim or sudo nano, whichever you like/feel better, then type this lines at the end (be aware the I will be typing my owns since this is an example, you must change the UUID value)

UUID=75a0854b-8b6b-453f-8aec-2a081a1f19e3 none            swap    sw              0       0
Using a one liner. Type the following in a terminal:

UUID="75a0854b-8b6b-453f-8aec-2a081a1f19e3"
sudo sh -c "echo $UUID 'none swap sw 0 0' >> /etc/fstab

Now reboot your system, then type free:

             total       used       free     shared    buffers     cached
Mem:       1533744    1455700      78044          0      89548     690756
-/+ buffers/cache:     675396     858348
Swap:      1546232          0    1546232

As you can see, the total swap is not 0. Same should happen with the system monitor


InvalidArgumentException : Cannot write to directory | running Laravel

Try to give write permission to www-data group on the products folder.

sudo chmod -R 775 /var/www/blog/storage/public/products


How to crop a .ps image and output as .jpg on terminal

I imagine you would have to first convert your ps file to jpg, and crop the jpg file after that first step is done.

For cropping, you can see this answer. Basically, the command would be something like this:

convert image.jpg -crop 713x470+5+3 output.jpg


Help - Stuck in Firefox and can't do anything

As you said, this is a Linux machine which has been set up to allow users to surf the Internet and nothing else.  Trying to find a way to disable this settings would take much, much more time than reinstalling the whole system, so I recommend the latter.  Plus, you'll be free to have any Linux distro on your computer (not just that Ubuntu which is probably outdated).


Can i partition windows and ubuntu and have the same data in them?

Yes you can, install DiskInternals(software) in windows and open that ubuntu partition to access the ubuntu files. In ubuntu you can simply mount windows local drive partition and use. Hope it helps.


black screen after install Nvidia drive 304.125 on ubuntu 15.04

It happen to me as well, i am sure there is a way to make it work but i recommend you to boot a live cd, save everything you need and re install ubuntu 15.04.

Visit this link to learn how to upgrade your other drivers :)

How do I install additional drivers?


How can I make the Indicator backgrounds transparent in the gnome-panel?

I'm sorry if I'm answering this incorrectly, but I assume you mean your taskbar at the top of your screen or the panel in your SuperKey.

If you want to do that, you'll want to get a theme for Gnome. In order to get a theme for Gnome, you'll have to download one here, or just look around yourself. Gnome themes change everything in your desktop except Window edges and GTK, so everything will fit in.
In order to apply Gnome Shell Themes, follow the instructions here.

If you just wanted to change the transparency of that bar alone, I don't know what to tell you, that's probably out of my pay-grade. You can do it with Unity by downloading MyUnity, which is available through the Software Center, though, and just going through the settings of it. If you try it with MyUnity, the settings might transfer over to Gnome, but there are no guarantees.

I'm sorry I could not help more, but I am considered a new user and may only use two Hyperlinks when answering questions. I'm sure a quick Google of "Gnome Shell Themes" will direct you to the right place. If you want to know a transparent theme, one is called Nord. I would have posted pics, but I'm not allowed to do that either.


How do I install Parallels Tools via the command line?

I have solved this issue with Ubuntu Server 18.04 as follows:

1) Click "Update Parallels tools" (upper right corner of the parallels virtual machine window)

2) Log in and then give the commands:

$ sudo mount /dev/cdrom /media/cdrom
$ cd /media/cdrom
$ sudo ./install

If, when mounting the CD-ROM, you get the error:

mount: /media/cdrom: unknown filesystem type 'iso9660'

you can fix this using:

$ sudo apt-get install --reinstall linux-image-$(uname -r)


Unmet dependencies when trying to install curl on Ubuntu 16.04

UPDATE:
I fixed the problem by reverting to an older version of libcurl3-gnutls.

For anyone who is having the same problem, I did this by listing the cache:

apt-cache showpkg libcurl3-gnutls

Which gave me a long output, but the important part was the last three lines:

Provides:
7.47.0-1ubuntu2.6 -
7.47.0-1ubuntu2 -
Reverse Provides:

I used the following command to download the older version:

sudo apt-get install libcurl3-gnutls=7.47.0-1ubuntu2

Then I ran sudo apt install curl as normal.

Thanks for the help!


apt-get install php-soap gives me the wrong version

By your apt-cache madison output, it seems to me that you have access to two different version: 7.1+50+deb.sury.org~trusty+1 and 0.13.0-1.

If you run:

apt-cache policy php-soap

I think you should get the 7.1 one as candidate for installation.

If you want to install the older version from official repositories, then run:

sudo apt-get install php-soap=0.13.0-1

that should do the trick.


You can use the command below:

sudo apt-get dist-upgrade -y --print-uris --install-suggests | grep -o '\'http:.*\' | tr "\'" " " > /to/destination/file

replace /to/destination/file with the absolute path of the file where you want to dump the packages' uris.


How do I change the xubuntu start menu color and style?

Xfce uses GTK2 themes for customization. Check out http://gnome-look.org/index.php?xcontentmode=100&PHPSESSID=56eb14690452b50911b07b88ea68daab and http://xfce-look.org/index.php?xcontentmode=15x100x420&PHPSESSID=2680837881809694cad5e06bae10e01f for a huge collection of GTK2 themes. The two start menus in your screenshots differ by more than colors, these are different applets. The new menu applet (second screenshot) is called Whisker Menu, you can find it in the applet list of your Xfce panel.


How to add Linuxmint repositories to Ubuntu?

I added the Linux Mint LTS release (Qiana or Mint 17) repositories to my Ubuntu 14.04 LTS by running the following commands through the terminal:

Add the repository

sudo sh -c 'echo "deb http://packages.linuxmint.com/ qiana main" >> /etc/apt/sources.list.d/mint.list'`

Now run an update to retrieve information about what packages are available:

sudo apt-get update

You'll see an error in the update highlighting that public key is not available for the Linux Mint repository just added:

  GPG error: http://packages.linuxmint.com qiana Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <em>&ltSome scramble encryption number&gt</em>

To avoid this, run another command to download the Linux Mint keyring:

sudo apt-get install linuxmint-keyring

It will ask your permission to download, say yes.
Once downloaded, update your package database again:

sudo apt-get update

Now you'll see that the update is successful and without any error.

Once updated, we are ready to install any packages from linuxmint repositories.


I think your plan is OK but while you are at it, why don't you put the /var on a Logical Volume too instead of a separate partiton on your new drive? I find lvm a lot more flexible than regular partitions. My main machine is all using lvm, including / without any problem and very quick to resize/reconfigure Logical Volumes.

To use your current HD with lvm, you'll need to empty and format it. One way to do that is to put the new drive as a device in the Volume Group, move your current home to it, format the current HD and add it to the VG.


Why some of my applications missing from Synapse search?

Synapse relies on .desktop files  in /usr/share/applications or ~/.local/share/applications for the application being shown in it's search list.
If it doesn't find a .desktop file in those locations, it will not show that application if you search it.

I have both Google Chrome and Sublime Text installed and synapse shows them in search. To test, I removed sublime texts .desktop file. The result was synapse stopped showing Sublime in the search result after removal of it's. desktop file.

I belive, your application doesn't have a .desktop file.  If your application doesn't have a .desktop file in /usr/share/applications directory or if you removed that file at some point of time, You can create one by hand. Check these questions
to have info for it.

How do I create a .desktop file to launch eclipse?
How can I edit/create new launcher items in Unity by hand?


"No journal files were found" on chrooted rescue system

It turned out that I had an error in /etc/fstab so nothing could be written to the log files.


I resolved the problem doing this suggestion. After installing the gnome 3 repository and updating the system, nautilus can now show flac thumbnails in Ubuntu 12.04.


Your code is correct - for bash

  I have #!/bin/bash at the top of the .sh file

Good

  Then I run sh filename.sh to run it.

Here's the problem - you're explicitly telling the system to ignore the shebang, and run the script with sh. That likely resolves to /bin/sh which on Ubuntu is the POSIX dash shell by default.

Instead, just make your script executable

chmod +x filename.sh

and then run it using

./filename.sh

which will ensure the correct interpreter is used. See also

What is the difference between sh and ./ when invoking a shell script?


Can I have Ubuntu, apps, and files on a USB

Of course.

Please check this link. In my opinion it lets you do this in the most easy way:

Download Ubuntu distro (Lubuntu would be the lightest)
Download and run Unetbootin
Choose system *.iso image
Chose USB on which you wish to have Ubuntu, and remember to set option that uses some part of USB as system HDD.

And done.


Error The package lists or status file could not be parsed or opened while updating

To fix MergeList problem:
sudo rm -r /var/lib/apt/lists/*

then:
sudo apt clean
sudo apt update


Is this damaging to the operating system or the filesystem?

No. A freeze means the file system isn't touched anymore. In case something does get damaged the power down is not the cause.

It is the overclocking that would be the cause. All the other issues are an effect from that.


How do I install for a Mac while the Mac's hard drive is in a PC?

You haven't said why you want to install an OS for one computer by using another one. Without that information, I can't evaluate whether your reasons are good. Odds are they aren't, though. EFI (which all Intel-based Macs use) is different enough from BIOS that BIOS tricks people have picked up over the years don't apply, and trying to use those tricks can in fact imperil your ability to boot. The key problem is that EFI-mode booting involves both disk-based information and information stored in the computer's NVRAM. Although installing Ubuntu using your Mac's disk installed in your HP can create perfectly acceptable disk information, it won't touch your Mac's NVRAM, leaving you with an incomplete boot loader installation. Furthermore, if your HP is also (U)EFI-based and you remove its hard disk, its firmware may notice that its own boot entries are missing and delete them. Thus, you risk not only a failed Ubuntu installation on your Mac, but your ability to boot the HP, as well! There are ways around these limitations, but without knowing why you want to do what you suggest, I'm reluctant to write a lengthy response telling you how to do it, particularly when following my instructions might just make matters worse for you.

My hunch is that you're trying to work around a problem booting the Ubuntu installer or a post-boot problem that's causing your installation to fail. If so, please post a new question describing the problem you're having. Chances are there's a much better solution than what you're trying to do.


Auto discovery of DAAP share through SSH tunnel

I belive daap discovery is a layer2 service. Which means it's broadcast.
Which means you have to be on the same network. Just forwarding one port wont "catch" the broadcasts.

You would have to create a layer2 vpn. This could be done with software like openvpn or vtund. But there has to be simpler ways.

What is it that you really want to do? Listen to music from your remote machine?

why not just mount the remote filesystem on your remote box with sshfs , and just play files like they were local?


Mongo wont load - Ubuntu 14.04 - PHP5 - Apache2

It was the silliest mistake. I was about to go ahead and delete this question but I thought it might help others who do silly mistakes like me.

I restarted the server like service apache2 restart.

What I should've done is sudo service apache2 restart.

I know!


Dragging files onto Sublime (or any custom program) in Unity

You need to add the MIME types of the files you want to open to the .desktop file.

Propably the mostr easy way to do this is to use Arronax:

Open Arronax
Drag the Sublime symbol from the Dash into the Arronax window. This loads the .desktop file.
Open the "MIME types" tab in Arronax
Drag some files of the type you want to open from nautilus into the MIME types input field. You will see the MIME types added.
Save the .desktop file in ~/.local/share/applications/. The "User App folder" button in the "Save" dialog will take you to that folder.


No Wireless Internet Connections Show Up!

Do:

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

Reboot


Problem with Installing intel-linux-graphics-installer_1.0.2-0intel3_i386.deb

If Mitch's solution doesn't solve the issue, try:

sudo apt-get remove libpackagekit-glib2-14
wget https://download.01.org/gfx/ubuntu/13.04/main/pool/13.04/i/intel-linux-graphics-installer/intel-linux-graphics-installer_1.0.2-0intel3_i386.deb
sudo dpkg -i intel-linux-graphics*.deb && sudo apt-get install –f
sudo apt-get update && sudo apt-get dist-upgrade

(To reinstall the removed library; if the error still exists:)

sudo apt-get install libpackagekit-glib2-14


Global 24-hour time format in KDE Plasma

In KDE, go over to the clock on your bottom taskbar and right-click it.
Once done there is a coniguration icon.

Once done click on the Time-Display option and then you can change the time-format to either 12-hour or 24-hour.
Hope it helped.


What are some good budget Ubuntu-compatible digital cameras?

Most digital cameras are seen by Ubuntu as USB flash drives. While there are some that won't get along with Ubuntu, you're pretty safe in this area. Once you have your options narrowed down to 2-3 kinds you should search the forums for those models to see what others have experienced.

Here's a pretty good page on cameras/photos in Ubuntu to get you started.


How to login from terminal using launchpad.net credentials?

As explained in the documentation, you can use the login_with() method to do so:

launchpad = Launchpad.login_with('id-of-your-program', 'production', credentials_file='./credentials', version='devel')

When you'll do something with the launchpad object that triggers a request to Launchpad, a Web browser page will pop up, asking you to log-in to Launchpad and/or to confirm you want to give access to your Launchpad account to this program.

The credentials will be stored in file credentials.

Hope this helps.


The file ending .conf has no syntax set by default.  Different configuration files have different syntax, so vim cannot use the same syntax for all .conf files.  To handle this, vim looks at the whole file name and compares it to the patterns found in filetype.vim (located at /usr/share/vim/vim74/filetype.vim on my system)

For example, say you opened the file apache.conf, vim will look in filetype.vim until it finds something like:

       au BufNewFile,BufRead apache.conf*,apache2.conf* setfiletype apache

which tells vim to use the apache syntax highlighting file for any file that begins in apache.conf. Try creating a new file called apache.conf and you should get apache syntax highlighting for that file.

Another way vim can set the syntax for a file is with modelines. Modelines let you run vim commands for specific files. They can be found at the top or bottom of files and look something like this:

# vim: syntax=apache

For more info on modelines checkout :help modeline in vim.


MATE Dock Applet does not show all program windows

Try updating to the V0.88 from https://packages.debian.org/sid/utils/mate-dock-applet (install the .deb file).

I had a lot of issues like that in previous versions but now it's better (although there is still a few applications not showing up)


Cannot change Wifi settings, stuck on WEP Security

Please Update with Wireless Router model and any pertinent info regarding that device.
For now, I'm assuming Your wifi router can in fact provide other forms of encryption.

The first thing we should know is what your device is named:

$sudo iwconfig

it gives similar output to ifconfig. What we care about is the device name. lets pretend it  is wlan0.
next, do $sudo iwlist wlan0 auth

alternatively,
do

$sudo iw list

this will tell you what authentication protocols your wlan0 device supports.
If there is something besides WEP available, Please tell us your preferred Authentication method, out of which your device supports. I will update my answer accordingly.


have you checked you host file ?

I mean If you haven't configured localhost properly at /etc/hosts then there chances of these errors.

To know more information about this : ubuntuforums


grub does not show Windows 8 installation

Try to update the repository and hope this will help you to use the GRUB in windows 8. Please try the below commands,

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

sudo apt-get update &&

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

boot-repair


The equivalent tool to MAMP for Linux/ Ubuntu is LAMP.

I believe this is what you are looking for.


Vsftpd - different r/w permissions to one folder for different group of virtual users

Can you provide ls -la /var/www/folder1 and your cat vsftpd.conf?

And, may be, you can use this:

user_config_dir

This powerful option allows the override of any config option specified in the manual page, on a per-user basis. Usage is simple, and is best illustrated with an example:

If you set user_config_dir to be /etc/vsftpd_user_conf and then log on as the user chris, then vsftpd will apply the settings in the file /etc/vsftpd_user_conf/chris for the duration of the session.  The format of this file is as detailed in this manual page (see below link).

PLEASE NOTE that not all settings are effective on a per-user basis. For example, many settings only prior to the user's session being started. Examples of settings which will not affect any behaviour on a per-user basis include:

listen_address
banner_file
max_per_ip
max_clients
xferlog_file
etc...

By default no one of these are set.

from Manpage VSFTPD.CONF


How to enable ethernet interface with netplan on Ubuntu 20.04

I tried this and succeeded:
sudo ifconfig enp3s0 up

where enp3s0 is the logical name for your Ethernet.


The files that you will have to install are:

apache2.2-bin
Apache HTTP Server common binary files

The Apache Software Foundation’s goal is to build a secure, efficient and
extensible HTTP server as standards-compliant open source software. The
result has long been the number one web server on the Internet.

libapache2-mod-dnssd
Zeroconf support for Apache 2 via avahi

mod_dnssd is an Apache HTTPD module which adds Zeroconf support
via DNS-SD using Avahi. This allows Apache to advertise itself and the
websites available to clients compatible with the protocol.

Install both from the synaptic package manager, and reboot after you have installed. Once you have rebooted the computer, you will be able to enable the personal file sharing for Ubuntu 10.04

that will solve your problem in order to use it. The libapache2-mod-dnssd you don't need its already installed via avahi which is on your system. logout and back in.


How to install virtualbox on Ubuntu 18.04 32 bit

Make sure you have enabled "multiverse" sources, then run:
sudo apt update
sudo apt install virtualbox


The newly released (proprietary) 10.7 Catalyst drivers from ATI specifically support Eyefinity under Ubuntu 10.04 (Lucid).

The proprietary NVidia drivers also support multiple monitors rather well, allowing you position them in relation to one another.

In theory the Monitor Preferences also supports configuring multiple monitors in this way, but reports on the Ubuntu forums are mixed and I have no way to test this personally.


lucid 10.04 LTS => Precise 12.04.1 : upgrade doesn't work

Have you tried running 'do-release-upgrade' without the '-d' option? From what I remember the '-d' option is only used to upgrade to an alpha/beta version of the OS.

do-release-upgrade --help

Usage: do-release-upgrade [options]

Options:
  -h, --help            show this help message and exit
  -V, --version         Show version and exit
  -d, --devel-release   Check if upgrading to the latest devel release is
                        possible


How to remove distribution from dual boot?

Backup whatever you might need from both installations (when changing partitions, things can go badly wrong).  If grub was last installed from Ubuntu, reinstall grub from the Debian side.  You may then remove the files from the Ubuntu partition and mount it on the Debian side (a home data partition for instance).  If the Ubuntu partition is after the Debian partition (so the Debian partition will be expanded by moving its end), you may use gparted to delete the Ubuntu partiton and increase the Debian one.  I think this may be done on a running system, and the filesystem will be increased to fill the bigger partition (with gparted, not something else).  If you need to expand the Debian partition from the beginning, do that off-line (from a live install media for instance).  The beginning expansion might be done with a move (of the whole partition), followed by a resize.

The "Tip" under item 1 of "Resizing a Partition" of the gparted manual, gparted manual indicates support for growing some online partitions.


Try Alt+F1 and Alt+F2 for Applications drop down and "Run Application" dialog.


Iterating over man page's parameter options by script

$man -P cat the-command-you-want | your-program

Or inside of your-program, call MYVAR=$(man -P cat the-command-you-want) and operate on MYVAR.
The man pages more often than not contain MUCH more than just the parameter and options lists (likely more than you need or want).  In that case, use B.Tanner's suggestion.  Inside of your script: MYVAR=$(the-command-you-want --help).
From the man manpage:
Controlling formatted output

   -P pager, --pager=pager
          Specify which output pager to use.  By default, man uses less -s...

You are in this case using cat instead of less as the 'pager', so that you do not have to scroll through the manpage.


Take a look at the previous question about your mount points.

Something's seems broken in your config.

Your MariaDB/MySQL data files should live in /var/lib/mysql which should be local to your container, so should always be available.

Take a look in /etc/fstab + ensure there's no mention of /var/lib/* + if there is you might prefer to scrape you containers + start again.

Then you'd create a GRANT allowing Windows clients access to your Virtualbox MariaDB/MySQL instances.

So there should be no... mucking about (tech term) with any local filesystems.


Ubuntu LTS 16.04 Install problems: UEFI and Black Screen after Grub Loader

Try with an older version of Ubuntu and upgrade.

Also try a rolling distribution.

Looks like a driver or hardware problem. Best to take an older release and if that doesn't work another os.


You could install e.g. HWE kernels, see https://wiki.ubuntu.com/Kernel/LTSEnablementStack. Press Shift during boot to get to Grub menu so you can choose kernel to boot.


Failed to generate sqlite database in GTKpod

Use your file manager to transfer the files.

If you have some files that are already on the player, take a look at how their tags are formatted, and see if you can match it up with the files you are transferring now.


How to add checkbox or radio buttons to a Unity quicklist?

I'm not sure is it correct, but I'm using something like this:

checkbox:

def check_item_activated_callback (menuitem, a, b):
    if menuitem.property_get_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE) == Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED:
       menuitem.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, Dbusmenu.MENUITEM_TOGGLE_STATE_UNCHECKED)
    else:
       menuitem.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED)

check1 = Dbusmenu.Menuitem.new ()
check1.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Checkbox")
check1.property_set (Dbusmenu.MENUITEM_PROP_TOGGLE_TYPE, Dbusmenu.MENUITEM_TOGGLE_CHECK)
check1.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED)
check1.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)
check1.connect (Dbusmenu.MENUITEM_SIGNAL_ITEM_ACTIVATED, check_item_activated_callback, None)
qucklist.child_append (check1)

radio buttons:

def radio_item_activated_callback (radioitem1, a, radioitem2):
    radioitem1.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED)
    radioitem2.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, Dbusmenu.MENUITEM_TOGGLE_STATE_UNCHECKED)

radio1 = Dbusmenu.Menuitem.new ()
radio1.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Radio Button 1")
radio1.property_set (Dbusmenu.MENUITEM_PROP_TOGGLE_TYPE, Dbusmenu.MENUITEM_TOGGLE_RADIO)
radio1.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, Dbusmenu.MENUITEM_TOGGLE_STATE_UNCHECKED)
radio1.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)
quicklist.child_append (radio1)

radio2 = Dbusmenu.Menuitem.new()
radio2.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Radio Button 2")
radio2.property_set (Dbusmenu.MENUITEM_PROP_TOGGLE_TYPE, Dbusmenu.MENUITEM_TOGGLE_RADIO)
radio2.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED)
radio2.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)
quicklist.child_append (radio2)

radio1.connect (Dbusmenu.MENUITEM_SIGNAL_ITEM_ACTIVATED, radio_item_activated_callback, radio2)
radio2.connect (Dbusmenu.MENUITEM_SIGNAL_ITEM_ACTIVATED, radio_item_activated_callback, radio1)

separator (aka "horizontal dividers"):

separator = Dbusmenu.Menuitem.new ();
separator.property_set (Dbusmenu.MENUITEM_PROP_TYPE, Dbusmenu.CLIENT_TYPES_SEPARATOR)
separator.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)
quicklist.child_append (separator)

enabled/disabled menu items:

item1 = Dbusmenu.Menuitem.new ()
item1.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Item Enabled")
item1.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)
item1.property_set_bool (Dbusmenu.MENUITEM_PROP_ENABLED, True)
quicklist.child_append (item1)

item2 = Dbusmenu.Menuitem.new ()
item2.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Item Disabled")
item2.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)
item2.property_set_bool (Dbusmenu.MENUITEM_PROP_ENABLED, False)
quicklist.child_append (item2)


Copy any files off that may be important to you (it may be easiest to do this using a live CD or USB), then reinstall Ubuntu.

Trying to recover your computer from where it is will take far longer than the 15-30 minutes it will take to reinstall and copy all of your files.


Lan not working if cable not inside while booting

DHCP protocol can not assign your NIC an IP address without a cable connected.
Obtain root acces in a console and execute dhclient eth0 where eth0 is the name of your NIC.


Ubuntu 14.04 Trusty doesn't utilize hot corners after rebooting

Same happended to me. But, first of all, after I upgraded to 14.04 I didn't have this problem, it happened like two days ago after an update. The point is that I solved it by applying a solution I once knew worked for 13.04. Its the following:

Run the dconf-editor:

$ dconf-editor

(if you don't have it install it by: sudo apt-get install
dconf-tools)
In the pop-up window go to the list on the left and open "core", which you find in the following order:

org -> compiz -> profiles -> unity -> plugins -> core
Once selected "core", on the right find a key named "active-plugins", and change the order of the last three entries in
the "Value" field, so that the last ones are 'unityshell', 'expo' and
'scale'. For ease of the procedure, delete all the entries in the
"Value" field, copy the following lines and paste them in the "Value"
field:

['core', 'composite', 'opengl', 'copytex', 'compiztoolbox', 'resize',
'mousepoll', 'wall', 'widget', 'grid', 'imgpng', 'snap', 'move',
'place', 'regex', 'vpswitch', 'animation', 'session',
'unitymtgrabhandles', 'workarounds', 'fade', 'ezoom', 'unityshell',
'expo', 'scale']
Reboot.


alsamixer and pulseaudio actually conflict with each other. But you cannot delete any of them since they are all required by Ubuntu

PulseAudio “official” website suggested that PulseAudio usually overwrites the ALSA settings.

PulseAudio has problems in recognizing the audio device, the user has to manually configure it by editing the /usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf file.

1: Open terminal and type

sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf

2: Change

[Element Desktop Speaker]
switch = off
volume = off

to

[Element Desktop Speaker]
switch = on
volume = on

This solution works because every time pulseaudio runs it uses this file to generate settings for analog-output-speaker profile which overwrites the settings set in alsamixer.


bios_grub partition in the way of resizing Ubuntu partition

Simply delete /dev/sda6.
Then right-click on the dev/sda7 ext4 partition to add the unallocated space 97.71 GB+1 MB to the ext4 partition.
Finally ran boot-repair.

Note: Please make sure that the partitions which you are going to resize should be unmounted.


Disabling desktop environment in Ubuntu 16.04 for a specific kernel/boot option

I am not totally sure, but would try an educated guess:
In this line linux /boot/vmlinuz-4.8.15-rt10 root=UUID=0c2ea0ab-08e3-42b6-8752-4b1aaad7bc1d ro quiet splash 8250.nr_uart$ echo 'Loading initial ramdisk ...'
enter 'text' behind 'ro'.


This list is the official certified laptops out in the market, (mine is not in the list using it for 2 years now w/out problems). You should check it online by the hardware looking is there any issue..

Edit :Quick research, knowing this pc comes with integrated gpu's it would be flawless in at the motherboard side


How do I create simplistic window-like elements in a command-line program?

The text-based window-like interface, contained within a terminal, that you see when you run sudo dpkg-reconfigure lightdm is coded using the ncurses library. So if you want your program to provide an interface that looks like that, you can use ncurses too.

Here's the ncurses project page.
Here's an NCURSES Programming HOWTO.
You can install some ncurses documentation files with the ncurses-doc  package.

This includes the ncurses manpage, which you can also view online here. It also includes manual pages for all the functions provided by the ncurses library (some share a manpage). Those manpages are not currently online at manpages.ubuntu.com.

To build software using ncurses in Ubuntu, you should get the appropriate header files package. Unless you're cross-compiling, this will be:

For programs using traditional strings where most characters are represented by a single byte (for example, UTF-8), use libncurses5 .

This is probably what you want if your strings are arrays of char (in C and other C-based languages) or std::string (in C++).
For programs requiring wide character support, use libncursesw5 .

You'll especially need this if your strings are arrays of wchar_t (in C and other C-based languages) or std::wstring, std::u16string, or std::u32string (in C++).

Optionally, for help debugging your program, you might also want debug symbols (for debuggers such as gdb). For that, install libncurses5-dbg  or libncursesw5-dbg  too.

See also the ncurses in Ubuntu page on Launchpad, which contains a list of the major ncurses packages in Ubuntu as well as version information for each currently supported Ubuntu release.

When you build your program with GCC (e.g., with the gcc or g++ commands), give it the argument -lncurses or -lncursesw, usually at the very end of the command. This links your program to the ncurses library. For example:

g++ -Wall -g -o hello hello.cpp -lncurses

That compiles hello.cpp to produce an executable with debug symbols (-g), called hello (-o hello), warning on most things you might want a warning about (-Wall), and linking to the regular (not wide character) ncurses library (-lncurses).


Full Install vs Persistent install
Ubuntu can be installed to a USB in different ways. A Live install extracts the OS from a compressed file and does not save between sessions.
A Persistent install extracts the OS from a compressed file and saves new data to an overlay file or partition each session, and to the hard drive if required.
A Full install installs the complete OS to the USB just like an install to internal disk. A full install USB can save data to it's root partition, it's /home partition, (if it exists) and to the hard drive.
Both Persistent and Full installs run mainly in the computers RAM. A Full install can use the computers Swap partition or The USB's swapfile once RAM runs out, (very slowly).
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.

Slightly less wear on the drive.

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 the forums).

No ugly startup / install screen.

Better security, you can use full encryption

You can use proprietary drivers.

Hibernation works.

Many persistent installs are 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.

Generally faster boot than Live or Persistent USB's.

More stable, better for day to day use.

Note that once booted, both methods run at about the same speed. If the computer has lots of RAM Ubuntu should run mainly in RAM and there will not be a big difference between running off internal HDD and USB3 flash drive.
Full Install Method
A quick and easy method to flash a Full install to USB can be found here: Easy Full Install USB that Boots both BIOS and UEFI
A more traditional methods for creating a Full install USB from scratch can be found here: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step


Virtual Terminal switching with a multiseat setup and lightdm

Rereading the wiki entry under https://help.ubuntu.com/community/MultiseatX, I guess you should have a look at how X is invoked; e.g. the -sharevts and -novtswitch command line options should be somehow passed to X in your lightdm.conf.

If you have a working state, please consider updating the wiki entry to 11.10.


Why am I getting an error related to linux-image-3.13.0-53-generic (3.13.0-53.88)?

I am uncertain on the cause for the error, but if you select advanced options during your initial load you should be able to select a previous image to load. I encountered the same issue and was able to load without an error with the last kernel image.

I posted this as a possible suggestion:

http://stephenjkennedy.me/?p=68

Hope it helps.


Xubuntu Wifi drops out randomly but shows a good connection

OK i narrowed it down to a Router issue as my brother said the connection was dropping out for him as well and he runs windows 10 so thanks for the help Pilot.


type in the command line : sudo update-grub

This command will allow grub to search for other OSs installed in your system.


Nope. This is every bit as dangerous as people are saying.

Meltdown and Spectre can be triggered by any arbitrary code execution. This can be done with JavaScript, just as an example.

While most users won't need to be too worried about this, it's a massive deal for shared servers, virtual machine providers (AWS, DigitalOcean, etc.), and the like where systems do execute arbitrary code.

If you're asking this question because of the performance impact you're going to see with the patches, it's best to just take the hit. In most cases, the performance impact will be negligible and it's better to the alternative of getting your system compromised.


Where did Network Manager xfce plugin go?

Usually executable is named nm-applet.

It is installable with

sudo apt-get install network-manager-gnome

It should autostart because of /etc/xdg/autostart/nm-applet.desktop.

Manual restart is possible with

killall nm-applet
nm-applet &


Gconf-editor missing gnome-system-tools from tree

gnome-system-tools now uses dconf instead of gconf so you have to use dconf-editor (not installed by default, install package dconf-tools) instead of gconf-editor.


Handbrake ripped mp4 stops at 27mins 55 sec

As the files launch and run OK on other devices I've determined that this is an issue with the Sony TV app that I'm using on my Smart T.V.


What happens when support has ended for a specific version of Ubuntu?

It means that you won't get security updates and selected high-impact bug fixes any longer.


Disable Pinch/Zoom Logitech K400 Keyboard Touchpad

What I believe happens here, is that the keyboard sends mouse events on motion axis #4 which are then interpreted as wheel events. The left control key is inserted to distinguish two-finger scroll from two-finger pinch (without control key it scrolls, and with control key it will zoom).
Of course, all of that is completely useless and quite annoying, when you have web pages zooming in and out all over the place as those two-finger events fire off by accident all the time. Fortunately ... Linux can simply be told to ignore events on motion axis #4 and that's the end of that. I believe this will work on all systems, including Ubuntu ... but if anyone wants to test, by all means update me.
#!/bin/sh

XIN=/usr/bin/xinput
DEV1="pointer:Logitech USB Receiver"
DEV2="pointer:Logitech K400"

for DEV in "$DEV1" "$DEV2"
do
    MOUSEID=$($XIN --list --id-only "$DEV" 2>/dev/null)
    if [ -n "$MOUSEID" ]
    then
        echo "ID $MOUSEID is $DEV"

        # This disables the button 4 and button 5 which emulate scroll wheel.
        $XIN set-button-map "$MOUSEID" 1 2 3 0 0 0 0 0

        # This disables the translation from motion a[4] events into Wheel emulation.
        $XIN set-prop "$MOUSEID" --type=int --format=8 "Evdev Wheel Emulation Axes" 0, 0, 0, 0
    fi
done

Take note, that if you unplug the Logitech USB dongle and plug it back in again then settings will reset back to default and you need to run the script again. I'm sure there is a way to get these changes into the system defaults but this is sufficient for my purposes. For some reason my device has a different name to the original question, mine has wireless dongle with "Device Product ID (272): 1133, 50475" in the props so perhaps there are a bunch of similar devices out there.


some keys behave strange on login screen

I don't know why this worked.

But I do know it worked.

Since only keys that react to fn key changed behavior, I thought fn was locked. (It wasn't)

So I turned on and off num lock (using fn+f11).

Surprisingly, the login screen worked back normal.


When you ssh, you need to pass a -t option to allow screen to work.  Or you could add your username to the ops.txt file.

But, what you really want is a full-featured bells-and-whistles script that uses screen to interact with the Minecraft server.  Check out Minecraft Sheller.  I think it provides what you want and more.


"Failed to delete the item from the trash"

Usually when you delete something from a pendrive in linux it actually isnt deleted. its moved to a hidden folder called ".trash" you can manually delete this from the drive. but it is hidden.


Try disabling the WMM on your router and check your download speed,

Just google on to,

how to disable WMM  ?


cannnot boot to text mode with r/w fileystem

You seem to have answered your own question.  You set GRUB_CMDLINE_LINUX_DEFAULT="text" in /etc/default/grub, then run sudo update-grub.


ubuntu 13.10 has exerienced a internal error

Actually non LTS versions are not that stable. So it crashes sometimes. It's a normal thing with non LTS versions. You can remove apport, the package that reports errors. Use this command to remove apport:

  sudo apt-get remove apport

I had a discussion going on in a Facebook group. You may like to check it here
.


How can I install a newer python on Trusty?

This PPA should have the latest version of Python 2.7:

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7

Add it by running:

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt-get update

Then run sudo apt-get upgrade and it should upgrade Python.


"~/.bashrc: Permission denied" when opening mate-terminal

During chat session we have located a typo in ~/.profile file.

The problematic code block:

if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        "$HOME/.bashrc"
    fi
fi

should be changed to

if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

Note the dot (.) in the "$HOME/.bashrc" line above, it means sourcing.


Cannot access internet through ethernet on freshly installed Ubuntu

It looks like you have a link (enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP>) so assuming there is a dhcp server configured on your network you could try to manually request an ip address:
sudo dhclient enp0s25

Did you get an IP now?
ip a

If this didn't help it could be that something went wrong with the negotiation of your link speed and duplex. What is the output of:
sudo ethtool eth0

What kind of network card do you have?
sudo lshw -class network


/etc/hosts is ignored on 16.04 and no previous solution helps

After trying all of the above, including steeldriver's suggestion in the comments I finally solved it...

...by rebooting the machine.

Now /etc/hosts works as it should.

I don't know WHICH solution did the trick, but applying all of them, and then rebooting... evidently did.


There's a WhatsApp plugin for Pidgin. But you have to get the password of your WhatsApp account. Read this to learn how.

EDIT: As noted in a comment, this doesn't seem to work any more.


When to remove the pendrive after installing Ubuntu?

After the install is complete, shut down the machine.  Remove the USB device then power up the machine.


Keyboard not working/ kbd_drv.so missing

The file kbd_drv.so has been superseded by evdev_drv.so for a while. You can still install it by installing the xserver-xorg-input-kbdp package:

sudo apt-get install xserver-xorg-input-kbd

But that will most likely not fix anything. This seems like a hardware problem to me, since the keyboard won't work also for entering the boot setup, that has nothing to do with Ubuntu.

Run this command from a terminal:

xev

Press some keys on your laptop keyboard. Does it react to keystrokes? Press some keys also on your USB keyboard for reference. It probably won't.

Remove the battery, unplug your laptop, wait some minutes and then plug all again. If the problem persists, I think your kaptop keyboard (probably some wiring) is broken.


authentication password required to download ubuntu application

The Software Center is asking for your administrative password (the one you use to log into Ubuntu), this for security reasons.

For the video you can install VLC, which will (usually) pull the required packages.


Error while updating software Ubuntu 18.04 LTS

I had the same issue when i first installed the 18.04 LTS version for the first time it's the issue with the 'xserver-xorg' what i done was is reinstalling xserver-xorg

before you reinstall it remove  .XAuthority files by using this command:

sudo rm /home/[your username]/.XAuthority*

reinstall xserver-xorg by using this command :

 sudo apt-get install --reinstall xorg

hope this answer will fix your issue.


Windows 7 + Ubuntu 12.04 + Invalid EFI file path + Boot repair + Grub many entries

The Boot Repair tool is increasingly making a hash of things by creating too many backup copies of too many boot loader files. There are numerous ways to solve this problem. Here's one of them:

Back up your EFI System Partition (ESP), which is /dev/sda1 in your case and is mounted at /boot/efi. A file-based backup (using tar or cp, for example) should do fine. This will enable you to recover should things go badly.
Install my rEFInd boot manager. This is most easily done by installing the Debian package.
Reboot. rEFInd should appear and show you boot options for Ubuntu and Windows.
Test each of the rEFInd options in turn, taking note of the filename specified under each and what it does. (A few may lack such filenames. One with a Windows icon will probably be one of these, but it will probably launch GRUB.) Be sure you can boot both Linux and Windows from rEFInd.
In Linux, open a shell and change to the /boot/efi directory, which is the EFI System Partition (ESP), where boot loaders are stored.
Delete the boot loaders that didn't work when you tested them, or copy them into a backup location (say, /boot/efi/backups). Do likewise with duplicates -- if two boot loaders both launched GRUB, for instance, you can delete or move one of them.
Move the boot loader that actually launched Windows (if it was identified by filename in rEFInd's main menu) to /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi. This is where it's supposed to belong. Boot Repair copied it to another filename, so you're just copying it back.
If you can boot Linux directly via a vmlinuz-3.5.0-23-generic entry, you can probably delete GRUB, or uncomment the dont_scan_files line in /boot/efi/EFI/refind/refind.conf and add grubx64.efi to its list.

If all goes well, you should now be booting via rEFInd, which should present you with a much smaller list of boot options. If there are still too many, you can try to track down the errant files and delete them, if you think that's appropriate, or use the dont_scan_files, dont_scan_dirs, or dont_scan_volumes options in /boot/efi/EFI/refind/refind.conf to keep the remaining items out of the boot list. Such "blacklisting" might be helpful to keep links from /vmlinuz to /boot/vmlinuz-3.5.0-23-generic out of the boot list, if your system has such a symbolic link.

Note that rEFInd scans for boot loaders on every boot, so it will automatically pick up new kernels when you install them.

If you prefer to keep using GRUB, you can do something conceptually similar to my procedure, but you'll need to peruse the /boot/grub/grub.cfg file and cross-reference this to your notes on which boot loader entries work and which don't work to discover which files to delete. You'll then need to use update-grub to re-write your grub.cfg file. Your current grub.cfg file also has BIOS-mode entries for launching Windows, which are useless, and I'm not sure how to keep update-grub from picking them up, if indeed that's how they got in there.

Good luck!


Upgraded to Ubuntu 20.04 and got the "Oh no, something has gone wrong" when trying to log in

You will probably need to reset your Gnome config to default. Here's how you can do it.
Open a terminal and:
cd /home/{your directory}
mkdir .gnome-config-bak
mv .gnome .gnome2 .gconf .gconfd .metacity .cache \
.dbus .dmrc .mission-control .thumbnails .config/dconf/user \
.compiz* .gnome-config-bak/

Be sure to replace {your directory} with whatever your home directory name is.
Then remove the user file:
rm -f .config/dconf/user

Alternatively, you can just rename it to something like user.bak.
From here you should be able to log into your primary account again, though your desktop will be reset to default. You may be able to copy some of the previously moved files back to their proper locations to restore past functionality, but it would probably be better to use these as a template to re-install and reconfigure.
Hope this gets you back into your account.


gvfs-metadata and other metadata from veracrypt contrainer

There are basically two options:

Don't use desktop environments or applications that depend on GVFS

This excludes most software based on GNOME but not software based merely on the GTK+ toolkit. You can try LXDE as a desktop environment and software suite because it tries to be lightweight and not depend on useful but non-crucial libraries like GVFS.

Use full disk encryption

If you really want to be sure that no (meta-)data leaks into unencrypted regions the only way to be sure is to encrypt everything.

If you're less concerned you may find the encryption of your user home directory sufficient. Alternatively you can set up an encrypted area inside your home directory and move and sym-link .local/share/gvfs-metadata there.


How to create/extract the EDID for/from a Monitor

Got it. Was wrongly searching in the apt search box for ESID instead of EDID. Found the read-edid app which comes with 2 programs, get-edid which is the one I need to extract the data from the Monitor and then parse-edid which reads the binary output from get-edid (In the same pipeline) and parses it in a human readable format. After this I can include it in the Nvidia Settings and test out the outcome but at least I can extract the EDID from the Monitor.

The how to use it is also here: http://manpages.ubuntu.com/manpages/oneiric/man1/get-edid.1.html

but basically is what I just did:

get-edid > filename  then parse-edid < filename or just do get-edid | parse-edid

Also the nvidia-settings includes a "Adquire EDID" button that saves into binary or text format.

I will leave this here although this question might not come out a lot, it will help anybody that is looking for something related to extracting the EDID.


You can download the latest version from  ftp gnome. look at this link.

Now download your needed version then build from source.


If it locks up completely, you can REISUB it, which is a safer alternative to just cold rebooting the computer.

REISUB by:

While holding Alt and the SysReq (Print Screen) keys, type REISUB.

R:  Switch to XLATE mode
E:  Send Terminate signal to all processes except for init
I:  Send Kill signal to all processes except for init
S:  Sync all mounted file-systems
U:  Remount file-systems as read-only
B:  Reboot

Some mnemonics for REISUB:

Rise up (from the dead) if you're inclined to zombie movies
BUSIER backwards, as in The System is busier than it should be!
Reboot Even If System Utterly Broken.
Or the classic: Raising Elephants Is So Utterly Boring

This is the SysReq key:

NOTE: There exists less radical way than rebooting the whole system. If SysReq key works, you can kill processes one-by-one using Alt+SysReq+F. Kernel will kill the mostly «expensive» process each time. If you want to kill all processes for one console, you can issue Alt+SysReq+K.

NOTE: You should explicitly enable these key combinations. Ubuntu ships with sysrq default setting 176 (128+32+16), which allows to run only SUB part of REISUB combination. You can change it to 1 (all commands enabled) or 244 which is potentially less harmful. To do this:

sudo nano /etc/sysctl.d/10-magic-sysrq.conf

and switch 176 to 244; then

echo 244 | sudo tee /proc/sys/kernel/sysrq

It will immediately work! You can test this by pressing Alt+SysReq+F. For me, it killed active browser tab, then all extensions. And if you will continue, you can reach X Server restart.

More info on all the Alt+SysReq functions here.


How to re-enable bold texts in Terminal?

As of Ubuntu 18.04 (GNOME Terminal 3.28) this preference is still available as a hidden one, it's just no longer displayed on the UI.

You can change it with dconf (conveniently using dconf-editor), under /org/gnome/terminal/legacy/profiles:/:<profile-id>/allow-bold.

Also, newly created (from scratch, that is, not cloned) profiles set it to the default value, i.e. enabled.


Libgnomecanvas error when installing Ardour on Lubuntu. Gnome conflicting with LXDE?

Solved: Ardour 4 doesn't work with Libgnomecanvas and works perfectly with Lubuntu. The compiled version from the default ppa is Ardour 2, using a different ppa it's possible to install Ardour 4 through apt-get. The website also has some pre-compiled packages, but you'll have to pay for those.


Updated Linux kernel, NVIDIA driver not functioning. OS is running at lower resolution with most features unusable

If you're going to use untested software in the future, please read around the subject before you put your system in peril. If you had, you would have seen that the x-swat page recommends ppa-purge:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntu-x-swat/x-updates

This should get you back to a state where you're running on the standard stack.


Configuring the default behaviour of Super + Tab

You can use Super+` (key above Tab) or Alt+` to cycle windows of the same application.
If you wish to change the shortcut from Super+` to Super+Tab, you can do that by going to Settings → Keyboard Shortcuts and changing the Switch windows of an application shortcut to Super+Tab (or whichever shortcut you'd like).


is it good or bad to upgrade kernel for ubuntu?

In my personal view,updating your kernel to the latest version from an older version may not be appropriate,as the newer version of the operating system may contain the newest version of the kernel itself.

Updating your kernel will expose new functions which may have changed and as a result,not integrate correct with your operating system.


Configuring and using Xdmcp with gdm3 on ubuntu 18.04

In case soemone else finds this question and has problems getting XDMCP to work with gdm3, I managed to get it working by setting gdm3 to use xorg instead of wayland.

/etc/gdm3/custom.conf

[daemon]
# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=false


Cursor and booting problems on Ubuntu 16.04

lightdm is a more lightweight login display manager the GDM, which is why it's called lightdm. GDM being heavier than lightdm sometimes has problems booting on some systems. When your laptop stops at the purple/black screen do as follows:

Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3.
At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter.
Now you are logged in to a text-only console, and you can run terminal commands from the console. Run this command:

sudo dpkg-reconfigure gdm3

This will open up a new screen allowing you to select either gdm3 or lightdm as the default login display manager. Use the up/down arrow keyboard keys to select lightdm and then press Enter. After you press Enter the default login display manager selection screen will go back to the default console screen.
Reboot the computer and it will start normally.

sudo reboot

When you have rebooted back to your Ubuntu 16.04 desktop check to see if all the usual panel icons are in their proper place in the upper right corner of the desktop. Sometimes the first time you reboot after switching the default login display manager some panel icons may be missing, but you can bring back the missing panel icons by running these two commands from the terminal:

setsid compiz --replace
setsid unity


Coming [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException in ubuntu 20.04

Either the version of Wine you're using has bugs/built wrong/missing libraries or you didn't install the required version of .Net (NET Framework 4.6 or later) using winetricks. source. See Problem to install .NET 4.6 using Wine. ppa:ricotz/unstable includes wine 5.0 in Ubuntu 20.04.
Installing PKHeX in Ubuntu is like the tail wagging the dog. Because of possible package management issues that could be caused by using ppa:ricotz/unstable in Ubuntu 20.04 it makes sense to install the small PKHeX application in Windows instead of in Ubuntu if you have a device with Windows installed on it. Unless you're going to install a lot of garbage Windows programs in Ubuntu anyway.
Open the terminal and type:
sudo apt update
sudo apt install winetricks


If the only reason you want to encrypt your Ubuntu partition is because of fear for malware from Windows, then you probably don't want to do it.

It is almost impossible for Windows malware to harm Ubuntu as Ubuntu generally speaking does not understand EXE files (unless you use Wine).

If you want to encrypt your Ubuntu partition because you fear that Windows malware will corrupt the Ubuntu partition, encryption is not going to solve the problem.