WiFi Issues on HP Stream 14 with Broadcom BCM43142 Network Controller and no Ethernet Port

As per our comment and as a very rare cases (Thanks to Charles Kocher for the testing). The user can follow this guide Installing Broadcom Wireless Drivers either for OFFLINE installation or ONLINE installation but on both cases they would need to disable Secure Boot.

This is the same case when installing Ubuntu from a LiveUSB / LiveDVD and you select "install 3rd party software and drivers" and the installer asks to disable Secure Boot. It appears this applies to the HP Stream 14 to. I have known about 2 other cases but I see there are more to come. So thank you Charles.


Apache 2.4 cannot proceed due to conflicts with Module mpm_prefork

I would use the proper command to disable a mod in Apache:

sudo a2dismod mpm_prefork


ubuntu 18.04 boot error cpuFreq:Cpufreq_online: Failed to initialize policy for Cpu 0

I met this problem when I try to install ubuntu 18.04 in vmware v12.5.2
I had a solution by turning off 3D Acceleration.
In vmware, select VM. Select Display. Uncheck 'Accelerate 3D graphics' in '3D graphics'
And reboot and then this problem will be passed.


you cant repair system unless you install those lost packages again
First step is to see whether re-installing Unity helps, because it contains all default applications that comes when you install fresh ubuntu

  sudo apt-get update

  sudo apt-get install --reinstall ubuntu-desktop

  sudo apt-get install unity

  sudo shutdown -r now

note this will require to restart your computer.
even this does not helps then you can install these network-manager software from Ubuntu Software center.

Network (network-manager-gnome)
Network (unity-control-center)

you need to reinstall the software that you have installed to share internet thru wifi
this should work,if not then comment !


So, I've decided to stop the impossible and pull out pieces of Unity into Fluxbox. Instead, there is a much more fluxboxy solution, indeed relying on setxkbmap. With reference to this unix stack exchange answer I have made a similar submenu setup for Serbian (Latin) and German on an US keyboard.

In .fluxbox/menu,

[begin] (fluxbox)
[include] (/etc/X11/fluxbox/fluxbox-menu)
[submenu] (keyboards)
[exec] (us) {setxkbmap us}
[exec] (de) {setxkbmap de qwerty}
[exec] (rs) {setxkbmap rs latinunicodeyz}
[end]

the preceding snippet sets up three items corresponding to  different keyboard layouts.

To make things more flexible, i have also added keyboard shortcuts in .fluxbox/keys,

Mod4 Shift 1 :Exec chkb.sh us
Mod4 Shift 2 :Exec chkb.sh rs latinunicodeyz
Mod4 Shift 3 :Exec chkb.sh de qwerty

where chkb.sh is a script with the following content

#!/bin/bash
langsel="$1"
varant="$2"
setxkbmap "$1" "$2"
xmodmap "/home/user/.Xmodmap"

. Since I am an Emacs user, I prefer to bind Caps Lock to Ctrl functionality (and Ctrl to Caps Lock) , and each time I change the  keyboard layout, I need to repeat the binding process by rereading the .Xmodmap definition. This is nicer if packed into a script, than called directly by the :Exec directive.

Maybe someone still has a different solution...


Macbook Pro randomly waking up from Sleep Mode, on Kubuntu and many other distro

Found a solution...
Apparently the problem is XHC1 enabled in '/proc/acpi/wakeup'
To disable it using nano wont help so run the following as root

~# echo XHC1 >> /proc/acpi/wakeup

The problem is it needs to be done at every startup and after XHC1 is disabled only the power button can wake the system from sleep. Laptop lid does work though.
A more permanent solution is given in link; haven't tried it yet.


Kazam video recoder software low sound problem?

Found the solution: If you go into File > Preferences, then you can set the volume by clicking on the volume button, for speakers and for microphone individually.


Did you make your edited 40_custom file executable using a command in the form:
sudo chmod +x /etc/grub.d/filename

See the tutorials:
https://ubuntuforums.org/showthread.php?t=1195275
https://www.dedoimedo.com/computers/grub-2.html
And, of course, there is a series of steps in addition to merely editing the 40_custom file, along the lines of:

Run sudo update-grub to get the current available kernels.

Copy the desired "menuentry" listings from /boot/grub/grub.cfg to /etc/grub.d/40_custom The entry begins with the line starting with "menuentry" and ends with a line containing "}".

Add any other "menuentry" items you wish to see on the boot menu.

Edit the titles of the "menuentry" line if desired (between the quotation symbols). Do not change the lines following the "menuentry" line. Each entry should start with a "menuentry" line and end with a "}" on the last line.

Remove the executable bit from /etc/grub.d/10_linux, /etc/grub.d/20_memtest86+ and /etc/grub.d/30_os-prober
Removing the executable bit from any file in /etc/grub.d will exclude the file from being included in grub updates.
Code:
sudo chmod -x /etc/grub.d/10_linux /etc/grub.d/20_memtest86+ /etc/grub.d/30_os-prober

Run sudo update-grub


How to find reasons for journal recovery

Your only ext3 partition happens to be /home. One possible reason for your problem is that /home isn't being unmounted because it is in use at the time your system is being shut down. Since /home shouldn't be in use when no normal user is logged in, identifying if it is in use when nobody is logged in is one way of identifying if this particular possible issue is the cause of your specific problem.

Temporarily enable root login on your system (we'll disable it again later). This will allow you to log in without accessing /home, so that you can check whether anything else is using it and whether it unmounts correctly.
Log out.
Press Ctrl+Alt+F1 to switch to a text virtual terminal.
Log in as root. This will start a shell in root's home directory (/root) which is outside of /home.
Try to unmount /home by typing umount /home (no sudo is required since you're already root).
If this succeeds, then this isn't your problem. If it fails, then this is your problem. If the reason is that the filesystem is in use, then the command fuser -m /home will list processes using /home which you can investigate.
Mount /home again by typing mount /home.
Log out with the command exit.
Switch back to the graphical login screen by pressing Alt+F7.
Log back in as yourself.
Disable root login to return your system to its original configuration.

This may or may not identify the cause of your specific problem, but should work to identify processes that are preventing /home from being cleanly unmounted on system shutdown in the general case.


Weird, as the launchpad still lists it as a valid package (even though it seems to have not been updated since early 2018 according to the changelog), you can follow this link and download the .deb file yourself if that helps: https://launchpad.net/~mc3man/+archive/ubuntu/bionic-media/+sourcepub/9055776/+listing-archive-extra

Edit 2: For this package, you'll need to run the following two commands to add the PPA to get the package through apt-get:

sudo add-apt-repository ppa:mc3man/bionic-media
sudo apt-get update

Then Try:

sudo apt-get install libzimg-dev

Edit: That download link should be for 18.04, just make sure you properly get the 64 bit version if you have a 64 bit install of Ubuntu or 32bit for 32 bit Ubuntu.

Hope this helps you out! :)


Did you choose wlan0 as interface name and wext as driver in Wicd? Please check:

sudo service network-manager stop
sudo killall wpa_supplicant
sudo service wicd restart


I know of no CHM viewer who can.

You could convert the chm document into a pdf and use an annotation tool for pdf files: How can I highlight or annotate PDFs?

To convert the chm file, install chm2pdf

sudo apt-get install chm2pdf

and create a pdf, eg:

chm2pdf --book yourfile.chm


Certificate error after upgrade to 20.04

I found a solution, according to the accepted answer of this question: Ubuntu 20.04 - how to set lower SSL security level?
In particular, the openSSL configuration file /etc/ssl/openssl.cnf shall be modified in the following way.
At the beginning, add openssl_conf = default_conf
At the end, add
[ default_conf ]

ssl_conf = ssl_sect

[ssl_sect]

system_default = ssl_default_sect

[ssl_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT:@SECLEVEL=0

After this modification, the certificate is recognized without security errors.


Can I control more exactly the screen brightness / energy saving options in 12.04 LTS?

Original Answer

     I did some research and figured out how you can adjust the "idle" time of your computer. Basically this way you can adjust it so that the computer doesn't ever dim the display or adjust how long it takes before the display dims.
     You will need dconf tools, and to be on the safe side you should make sure all your packages are updated first.
     So in your terminal type:

 sudo apt-get update

     Then install dconf-tools:

sudo apt-get install dconf-tools

     Once that is finished, in the terminal type the following to launch the program:

dconf-editor

     You should see an expandable list on the left hand side of this new window use them to navigate the following path:
org > gnome > settings-daemon > plugins > power
Once you've clicked power you should get a list of options on the right hand side of the window. Scrolll to find "idle-dim-battery" and uncheck the box. This will completely prevent the screen from dimming while on battery. OR if you'd prefer, find "idle-dim-time" and change the value in seconds.
     Hope this helps with the dimming problem.

     Next, for video watching you can use a program called caffeine:

 sudo add-apt-repository ppa:caffeine-developers/ppa

then,

 sudo app-get update

finally:

 sudo apt-get install caffeine python-glade2

     Lastly for power saving there are a lot of different options, I personally installed and use Jupiter, Laptop mode tools, and Powertop.

     Best of luck and I hope this helps.

Workaround / Updated Answer

     Should dconf not work, you can also try adjusting these settings using the terminal command "gsettings". This accomplishes the exact same thing as Dconf editor except without the graphical user interface (GUI).

     To entirely turn off the automatic dim on battery, copy and paste the following into your terminal:

 gsettings set org.gnome.settings-daemon.plugins.power idle-dim-battery false

or to instead set a time in seconds until the computer automatically dims the screen enter the following and replace "X" with the number of seconds (i.e. 90 or 200 etc.)

 gsettings set org.gnome.settings-daemon.plugins.power idle-dim-time X

     Where, again, "X" is the number in seconds.
     I personally tried these commands in my terminal and they did work. I still highly recommend using dconf editor as above and navigating to the same power options to verify that the changes did in fact take place.

Hope this works!


Figured it out. I purged all nvidia drivers and it fixed it!


If you use ifup to configure the interface over which you will access the OpenDNS nameserver then add a dns-nameservers option to the definition of that interface in /etc/network/interfaces specifying the IP address of the OpenDNS nameserver.

If you use NetworkManager to configure the connection over which you will access the OpenDNS nameserver then add the IP address of the OpenDNS nameserver to network indicator | Edit Connections... | Edit... | IPv4 Settings | Additional DNS servers.


First, you cannot just copy the iso to a usb the same way you would right-click on an iso and would then select burn from the given options. With the Windows operating system it is recommended that you use a program called "universal pendrive linux" to install the iso.

If you have already downloaded the iso file of Ubuntu, just decline to download the iso from the source after you select the OS from the list of OSs to install and then select the iso from file. Follow the instructions and you will end up with a working USB to boot Ubuntu from. Good Luck and have fun! Here's the link: www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3

Finally, it sounds like you have the option to select the USB drive as the first drive in the order of bootloader devices but I feel it is important to also mention that some older computers do not have the option to boot from a USB in the BIOS settings.


Resize the window using unity keyboard shortcuts

This happened to me in LibreOffice Calc on Ubuntu 14.04.

Press Alt+Space, R.
Then move your mouse to desired window size.


Well, this is not Grub2 problem. It is related to BCD configuration. Actually, Windows 8 replaces every bootloader without confirmation like any Windows does. And Microsoft apparently had chosen wrong way last time, because their so called "boot screen" is not actually boot screen but logon screen. When you deleted Windows 8 partition, you made Windows system totally unbootable. Now you should perform these steps to correct the problem:

Choose Windows 8 in GRUB2 menu.
Find entry "Run earlier version of Windows" and select it. (May be you need to hold F8, not sure).
Reboot.
Repeat step 1.
Boot into Windows 7.
Run EasyBCD. There, you should do:

Rewrite Windows bootloader.
Set up Windows 7 boot entry and set it to default.

Reboot into Ubuntu and update GRUB menu.
Check if Windows 7 starts normally.

And you always can restore Windows 7 bootloader using it's installation media, then restore GRUB again.


Uninstall then reinstall mate-term with

sudo apt update && auso apt upgrade && sudo apt remove mate-terminal && sudo apt install mate-terminal

Test, and advise if the issue persists.


Install package for swrast:

sudo apt-get install libgl1-mesa-dri

Fix warnings with appmenu-gtk-module by installation of:

sudo apt-get install appmenu-gtk2-module appmenu-gtk3-module


Can I report about bug in system that I don't use?

If you report a bug on a different system no one can answer with what you can do to fix the bug because you can't implement their solutions. Neither can you answer questions about contents of specific configuration files or programs installed since you no longer have them.

You could find similar bugs and post a comment there saying "This happened to me once before but I can't reproduce it now".

You need to report the bug as it happens and will be asked to submit system information at the same time. As such you can't report a bug for an old system you were running because your current logs won't be compatible. Refer to launchpad.net for examples of bug reports.

Some bugs are automatically reported as they happen in Ubuntu when a crash happens. You don't have to do anything special but you won't know what is being done to fix it.

Some automatic bug reports will be ignored if you are running a mainline kernel such as 4.14.34 which although released by Ubuntu isn't supported by Ubuntu.

NOTE: This is for reporting bugs about Ubuntu in lauchpad.net. Other developers can have different rules.


The problem here is that windows lock down its stuff before shutting down as in general fastboot is enabled.

Fastboot is just a feature in windows, which let it store certain cache files to help in fast startup.
In exchange leaving all your windows files in read mode only.
When this feature is on you might have observed that windows come back to same state as it was when you shut it down (means if you left some files open, they will open up at startup).

So the problem you are facing of not being able to edit files can be solved by disabling Fastboot. It is completely harmless to disable this feature.
How to disable Fastboot :- pretty easy.

Just follow this Link.
And if you don't want to disable it that then while clicking on shutdown in windows keep shift key pressed down (it will disable fastboot for that specific instance).

Ownership Issue
To change the ownership of the file use command

For a single file, and directory
sudo chown user:user filename/directory

For directory and all content in it
sudo chown -R user:user directory_name

Former 'user' in user:user is for the owner and latter one is for the group, replace user with your username in actual implementation. You can leave the part after colon, code will look like-
sudo chown -R user directory_name. -R means apply this to the directory recursively, in simple apply to all folders/subfolders/files.


Why did Apache stop working after adding two sites?

Great question, the problem is that you have a different ServerName in each of your sites. Apache will look for this in the URL line, so for mercurial  you'd have to go to

http://mercurial.server/....

And for redmine you have to go to

http://myservername/...

Since you want them both to live in the same hostname, you probably just need one VirtualHost tag to define the DocumentRoot and desired ServerName, and then the aliases and such that you want under that host. This will all be simpler if it lives as one "site" configuration.


Why are mysterious jpg files being created in my home folder?

It's liferea, as soon as I start it files start appearing, then stop when I quit.

Also, found this:

Random images appearing in my home directory... Where are they coming from?


Claws mail does not minimise to notification/indicator applet

Install Claws-mail tray notifier: sudo apt install claws-mail-multi-notifier
Load the plugin from Claws Mail: Configuration -> Plugins
Configure the plugin from Claws Mail: Configuration -> Preferences
Now Add or Edit a file named claws-mail.desktop in startup directory having following content:-

  Content of:  ~/.config/autostart/claws-mail.desktop

[Desktop Entry]
Version=1.0
Name=Claws Mail
GenericName=E-mail client
Exec=sh -c "sleep 10 && claws-mail &"
Icon=claws-mail
Categories=Network;Email;
Keywords=lightweight;fast;gui;extensible;plugin;pop;pop3;imap;imap4;nntp;news;
Comment=Lightweight and Fast GTK+ based Mail Client
Terminal=false
Type=Application
StartupNotify=true
X-Info=Claws Mail


There is no magnetic link in the official site. I wonder from where did you get it. A torrent file is provided at the website.

Click here to go the official download site.
The name of the torrent is ubuntu-14.04.2-desktop-amd64.iso.torrent.


I cannot find the FF Multi Converter for Ubuntu 14.04 LTS

I install ffmulticonverter 1.6 Stable from PPA on UbuntuStudio 14.04 x386 and have no problems, working fine.

You need:

Install ffmpeg for Ubuntu 14.04 from this PPA with:

sudo add-apt-repository ppa:mc3man/trusty-media

sudo apt-get update

sudo apt-get install ffmpeg

next you need remove this respository to avoid problems with some updates of other packages:

 sudo add-apt-repository --remove ppa:mc3man/trusty-media

Then update:

 sudo apt-get update

2.- Install FFmulticonverter 1.6 from Stable PPA with

sudo add-apt-repository ppa:ffmulticonverter/stable

sudo apt-get update

sudo apt-get install ffmulticonverter

Working fine on UbuntuStudio 14.04, Now you have the best Video Converter Software of all times for Linux.

Next is you want convert some image files to other install:

sudo apt-get install python-pythonmagick

And if you want convert Libreoffice files to Microsoft Office files install:

sudo apt-get install unoconv

But take care, this metod only working if only use the libreoffice that come with the default Ubuntu packages, because if you install the deb file that you can download from www.libreoffice.org you can't install correctly unoconv


How to record the output of a bash script from terminal without suppressing the terminal output?

I want to record the resulting output to text and keep it in the terminal as well

What you want is tee command. It allows echoing text to stdout and to a file. For example:

$ ls -l /etc/passwd | tee output_file.txt
-rw-r--r-- 1 root root 2989 6月  17 20:45 /etc/passwd
$ cat output_file.txt
-rw-r--r-- 1 root root 2989 6月  17 20:45 /etc/passwd


I receive the message at the opening of Konsole, without executing command.
I configured 1 administrator account and 2 user accounts.

bash: / : est un dossier
bash: /swapfile: Permission non accordée
xxxx@Zalman:~$ cat /proc/swaps
Filename                    Type            Size    Used    Priority
/swapfile                  file            2097148 41968   -2
xxxx@Zalman:~$


Can't access Ubuntu after I installed windows

That happened, because Windows has replaced GRUB at its proprietary bootloader and has changed MBR record.

Now you should repair your GRUB.

You can find instruction here.


What I ended up doing was going into nautilus as root.

sudo nautilus

Then, at this point, I was classified as the owner of the hard drive and able to change the permissions to the user.


Sorry if I get in @kos'es way, but I just have to happen a phpMyAdmin installation handy ;) Ubuntu 14.04 LTS comes with phpMyAdmin 4.0.10. That version offers you two choices on the "export" tab: "Quick - display only the minimal options" and "Custom - display all possible options".

If you choose "Custom", you should get a bunch of additional options. Among those, in the "Output" section, you can choose which compression you'd like to use.


error libgtk-3.so.0 not installed even though it's in /usr/lib/x86_64-linux-gnu

On a hunch, let's see if the problem is that the application is 32-bit

unpack the deb to a local directory

$ mkdir ./tmproot
$ dpkg -x CANMAte_V1.3_Linux/deb/CANMatev1.3.deb ./tmproot

examine the application binary

$ file ./tmproot/usr/bin/CANMate
./tmproot/usr/bin/CANMate: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=061c53b0a1b07aca998506681c2a93039181979e, not stripped

So, since you are using a 64-bit OS, you will need to enable multiarch and install the 32-bit version of any required libraries

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libgtk-3-0:i386

See also How to run 32-bit app in Ubuntu 64-bit?


What does this bash escape sequence mean?

That uses an XTerm control sequence. echo with -e interprets certain sequences in the string given, in this case \033 became Esc, and \007 is the ASCII bell character (see man 7 ascii).

An Esc (represented as ^]) followed by ] is, in XTerm parlance, an Operating System Control code. Terminals which support it interpret it as given in the above link:

OSC Ps ; Pt ST
OSC Ps ; Pt BEL
          Set Text Parameters.  For colors and font, if Pt is a "?", the
          control sequence elicits a response which consists of the con-
          trol sequence which would set the corresponding value.  The
          dtterm control sequences allow you to determine the icon name
          and window title.
            Ps = 0  -> Change Icon Name and Window Title to Pt.
            Ps = 1  -> Change Icon Name to Pt.
            Ps = 2  -> Change Window Title to Pt.

OSC being ^]], the Ps in this case is 0, which sets Pt, in this case NEW_TITLE, as the terminal title.

Related:

What do the different colors mean in ls?
How to change the caret of the Gnome Terminal?


Try checking out Ubuntu's own sound card issues page, it has helped me a few times in the past and gives you simple instructions on testing and re-enabling sound cards: https://help.ubuntu.com/community/SoundTroubleshooting


Try this

grep "name\|email" <Path to your File>


Change size of /root patition in ubuntu 16.04 LVM

The first thing you should do is backup your most important data in case of a mistake.  Then use the LVM resize commands.

You can find images of procedures on this link:

How to Extend/REduce LVM's in Linux - Part II

The actuall commands to reduce the size are:

resize2fs - Reduce a file-system
lvreduce  - Reduce a Logical volume

For GUI you can try system-config-lvm from the Ubuntu repository.

You might consider installing Ubuntu on a Pen-drive.  Boot to the pen-drive then install the LVM gui on that drive and manage your hard drive from that session.


Vmware Server Console stops responding to clicks

From the VMware website knowledge base:

  This issue occurs if the virtual machine is in a non-responsive state.
  To confirm the virtual machine is not responding, check if the virtual
  machine can be accessed with Microsoft Remote Desktop Protocol (RDP),
  or if it responds to pings. If it cannot, the virtual machine is
  non-responsive and must be restarted.

  To restart the virtual machine:

  Right-click the virtual machine, and click Power Off.
  Right-click the virtual machine, and click Power On.

Reference


Difference between $ and # in Linux environment

In short, if the screen shows a dollar sign ($) or hash (#) on the left of the blinking cursor, you are in a command-line environment.
$, #, % symbols indicate the user account type you are logged in to.

Dollar sign ($) means you are a normal user.
hash (#) means you are the system administrator (root).
In the C shell, the prompt ends with a percentage sign (%).

There are differences on prompts in different Unix or GNU/Linux distributions because of their default settings. For example, the prompt of Debian/Ubuntu is guest@linux:~$, the one of Fedora/CentOS/RedHat is [guest@linux ~]$ and the one of SuSE Linux/OpenSUSE is guest@linux:~>. In general, the prompt usually show the login user name, machine hostname, and current working directory and ended with a dollar ($), percentage (%), or hash (#) sign.
guest@linux:~$

guest - username: the user account you are logged in to.
linux - machine hostname: the machine you are operating.
~ - current working directory: the directory you are in. Tilde (~) means home directory, i.e. the default directory when first logging in.

Reference: wiki.debian.org.hk/w/Basic_Command_Line


I encountered similar issues and the package uvcdynctrl resolved it.
$ sudo apt install uvcdynctrl


You need one more line

Terminal=true

If the command requires you keeping terminal open for some time, you can alter the Exec line like so:

Exec=bash -c 'onedrive -m;bash'


Ubuntu 13.10 boots into blank purple screen after fresh install

I will try to answer the last question because I had a similar experience when I was trying to install Ubuntu 13.10 at my new notebook.  And I got a valuable lesson from this case.

First of all, we should understand that notebook produced over 2010 or 2011 comes with UEFI, that affects to installation of Ubuntu 13.04 or 13.10.

Second, make sure that you have downloaded uncorrupted installer, check the integrity size.

The differences in installation steps are:

When installing Ubuntu, I usually choose Something else partition.

Then I divide partition into 4 or more parts depend on our need. The basic partitions are: /boot, /, /swap, and /home partition.
The most important and critical things in this installation are:

First:

  you should add efi bootloader partition

Second:

  after make partitions, don't forget to choose where GRUB will be
  installed, choose from Device for Boot Loader Installation drop-down
  box.  It should be the same place where Ubuntu System was
  installed.

The next step is the same as previous version of Ubuntu.

Hope it helps you...


The next Ubuntu release will be on the 25th, so you will have to wait a couple days. It sounds like your installation is broken anyway, so consider installing 12.10 again and the upgrading to 13.04 once it is out. If you can live without Ubuntu for a couple days, then just wait.

I would not fix the Beta install.


How do I stop my iPhone from being automounted?

So far the only way I've seen to not automount external devices is:

Open up the terminal and type in:

gconf-editor

Scroll down to Nautilus -> Preferences -> Media Automount
Uncheck the option for Media Automount

I tested after unchecking the Media Automount option without a system restart and it did not automatically mount my iPod but it was still listed under Places -> iPod and available for mounting which equals success.

I then un-mounted the iPod, restarted the system, and plugged my iPod back into the system. Once again it did not automatically mount and also once again was under Places -> iPod and available to be mounted.

I don't know if it is just a fluke or a bug you have but using gconf-editor worked for me so I'll suggest maybe you give it another shot?


After you set up your sound by opening alsamixer manually, input
sudo alsactl store

in the terminal and it should save your sound levels.


How to know what plugins are installed in my Oh My Zsh

To install Oh My Zsh, run the following command:
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

Oh My Zsh plugins are installed in ~/.oh-my-zsh/plugins, so running the following command will return a list of your installed plugins:
ls ~/.oh-my-zsh/plugins

To enable a plugin, just add its name (as shown from the above command) in plugins=(...) in your .zshrc file. From the Oh My Zsh wiki:

Enable a plugin by adding its name to the plugins array in your .zshrc file (found in the $HOME directory). For example, this enables the rails, git and ruby plugins, in that order:
plugins=(rails git ruby)


ubuntu 15.10 - shrinking volumes and removing others

You have to launch gparted from live http://gparted.org/download.php
You can't move these volumes because they are mounted. Make backups before this operation


As the commands around pipes start at the same time, your two sudo dd and pv all are starting simultaneously.

Two sudo dd are asking for password and pv is starting to pull its trigger too, all at the same time hence the prompt is turning into a garbage.

To solve this, you can use bash command grouping and use sudo on bash only:

sudo bash -c '{ dd if=diskimage.img | pv -s 7340M | dd of=/dev/disk2 bs=64K ;}'

Or use a subshell:

sudo bash -c '( dd if=diskimage.img | pv -s 7340M | dd of=/dev/disk2 bs=64K )'

In both cases, you will be prompted sudo password once and no other form of user switching is required too.


I'm actually just installing Tahr as we speak and after a quick Google it seems that Apple no longer use a USB camera for iSight anymore, rendering the USB firmware workaround you're trying useless. As far as I can tell there is no current workaround. I'm aware this is a very late response, but it may help others who come across this page.


Change permissions on all folders and files

If you are talking about your home folder or any shared folder then you can chmod -R 777 /Your/folder/path/. If you just want to make the files read and write enabled then I would set the permissions to 766 instead.

This said, for this to work, your partition entry in the fstab file must permit read/write and execute permissions.


I'm unable to remove postgresql 9.3 after installing it

Try to include the missing directories in your path before running the apt-get.

Like:

$ PATH=$(PATH):/usr/local/sbin:/usr/sbin:/sbin
$ sudo apt-get remove postgresql-client-9.3

Note: this PATH setting will be lost after reboot. The save this setting permanently place it in your shell its rc file, for example when using BASH shell: $ nano .bashrc


Does VirtualBox run 64-bit guests on a 32-bit host?

Your CPU does not provide VT-x harware virtualization needed for running a 64-bit guest OS in a 32-bit host. There is nothing we can do to overcome this.

In order to still be able to run a 64-bit application (as was said in a comment) let me suggest you run Ubuntu 64-bit either by a dual-boot, or as a live system from USB. A live system in persistence mode allows to save files in a reserved area.

Alternatively it is also possible to completely install a bootable Ubuntu on a USB drive/key:

How do I install Ubuntu to a USB key? (without using Startup Disk Creator)


Window panel button missing after upgrading 14.4

In order to get back a proper Unity desktop, you'll have to purge the repositories and the packages installed from them(incluided corebird)

How to purge a PPA

Purging a PPA means not only to disable the PPA, but also to downgrade any packages you've upgraded from that PPA, to the version available in the official Ubuntu repositories.

To be able to purge a PPA, you need to install "ppa-purge":

sudo apt-get install ppa-purge

To purge a PPA, you must use the following command:

sudo ppa-purge ppa:someppa/ppa

For example, to purge the Gnome's PPA's, you would use:

sudo ppa-purge ppa:gnome3-team/gnome3

sudo ppa-purge ppa:gnome3-team/gnome3-staging

http://www.webupd8.org/2012/02/how-to-use-launchpad-ppa-add-remove.html


Unable to boot a Dell laptop from ubuntu DVD

If you're getting PXE boot errors, the boot order is incorrect in your BIOS. It's trying to boot from a network device via PXE.

The Preboot Execution Environment (PXE) is an industry standard client/server interface that allows networked computers that are not yet loaded with an operating system to be configured and booted remotely by an administrator.

Check your BIOS boot order, and it should be set to something like this...

CD-ROM
HDD/SDD
USB
PXE

You can also hitting F12 (this key varies by manufacturer) at power on (BIOS display screen), to bring up a manual boot menu, where you could select to boot from the HDD/SSD directly.


Ahh... nevermind...
Turns out there was a cockpit-bridge package that was seperate, and I think cockpit-ws too.

In the end I ran sudo apt purge --auto-remove cockpit*

Which is... perhaps not the most elegant solution and it might have removed some important stuff, but I'm fairly certain they have all been reinstalled as I reinstalled Cockpit this time...

Anyway, it's working now, although I'm scared to restart this server at the moment...


How to make script wait for Nautilus to exit

Keeping track of the PID and killing it from the shellscript works for me in a live system of Ubuntu 16.04.1 LTS with the Xenial kernel and also in an up to date installed system with Ubuntu 16.04 LTS (and the Xenial kernel).

#!/bin/bash

echo "Starting Nautilus"

nautilus --no-desktop ~/Downloads & pid=$!

echo "pid=$pid"
ps -A|grep "$pid"

read -p "Press Enter when you are ready to kill the Nautilus window"

kill "$pid"
sync
echo "Checking that the process is gone"
ps -A|grep "$pid"

Edit:

It works, when killed like this, but when closed with the x control button, the process is still alive, which is a problem with Nautilus.

But if you use Thunar instead of Nautilus, the process will be killed, when the window is closed with the x button. So I suggest to switch file browser for this task,

#!/bin/bash

echo "Starting Thunar"

thunar ~/Downloads

echo "Checking that the process is gone"
ps -A|grep "thunar"


Hello, I have Windows Xp and I have install Ubuntu in a second USB harddisk(120Gb)

Try doing sudo apt-get clean in terminal. This will clear cache of package archives you downloaded to install packages thus giving you some space to be able to clear your disk better without having apps crashing because of lack of disk space.


Use WinUSB

sudo add-apt-repository ppa:colingille/freshlight &&
apt-get update &&
apt-get install winusb

Then:

sudo winusb --install <iso path> <partition>

You can always install Windows 7 inside a virtual machine if you are not gaming and have the best OS possible installed on your computer.


What is the software updater doing compared to e.g. "sudo apt-get update"?

apt-get update only refreshes the available packages lists. apt-get upgrade does the actual upgrade. apt-get dist-upgrade, unlike apt-get upgrade has the ability to install or delete packages (that's what the GUI call an "intelligent upgrade". Normally, since dependencies aren't supposed to change during a release's lifecycle, for day-to-day upgrades, apt-get update followed by apt-get upgrade is enough. You should run apt-get dist-upgrade only when some packages are held back.

All that (and far more) is explained in apt-get manual page (man apt-get).


You ask a very specific question about only a single application (Chrome). In your comments later, you extend your question to other very specific applications. This has nothing to do with KDE whatsoever.

Chrome does not have a menu bar, so there's no point in searching for one.

Thunderbird, Firefox, Mozilla etc. have a menu bar that you can switch off. (Right-click on the tab bar and select the menu "Menu bar")

Other applications (Dolphin) usually have a menu bar

A completely different question is why these applications are made this way: I remember reading a comment from google engineers that they wanted to "maximize the application-space" on the screen and therefore were looking to reduce the surrounding space to the absolute minimum possible. Mozilla followed suit with that development. Web browsers were almost the only applications where this development really made it to the end user.


How to change Ubuntu 19.10's login theme

The file that may concern is ubuntu.css which is located in usr/share/gnome-shell/theme.So you have to edit the file .First i will suggest you to take a backup of the file
sudo cp /usr/share/gnome-shell/theme/ubuntu.css /usr/share/gnome-shell/theme/ubuntu.css.bak

Now edit : file the directive named lockDialogGroup in the ubuntu.css file .
now change the background value to your desired image file location.
You can also set background-repeat value with no-repeat and many more as you wish.
an exapmle :
#lockDialogGroup {
   background: #ffff url(file:///home/background.png);
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center;
}

You can also edit gdm3.css file if you want . its located in /usr/share/gnome-shell/theme too .

Happy customizing!


Resolution change after my xubuntu 18.04 updated with Nvidia 390 driver

Kernel updated to 5.3 recently. But Ubuntu maintainers forgot to update the 390 Nvidia driver to build with that kernel.

The solution is to install a driver from PPA. Run in a terminal:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt upgrade

and reboot.

That solved exactly same issue for me.


Connect Remote Desktop Viewer to Mac on same local network with Screen Sharing enabled

I'm fairly certain that Vinagre, the built in VNC viewer tool has excellent avahi (also known as mDNS or ZeroConf) support.  Bonjour, which is Apple's version of Avahi is, from memory, reasonably compatible.  I've used it both for iTunes library sharing from Mac to Ryhthmbox and VNC sharing - at least back in the days I still used Macs (about two years ago).

However, just to rule out a bug in Vinagre, try the (I think) even better Remmina to see if it can connect :

sudo apt-get install remmina remmina-gnome

You can also see what's being broadcast on your network with avahi-utils.  You can install it with

sudo apt-get install avahi-utils

Then see what's running on your network with

avahi-browse -a

I should also add that Avahi just advertises the conneciton.  You'll still need to know the password to connect - that's set in the Mac settings.  From this older blog post :

And you don't need to use Avahi at all if you already know the IP address of the Mac itself.  Just stick it into a new connection profile on either Vinagre or Remmina and you'll be able to specify the password and connect that way.  As I say, Avahi just advertises the service across your local network.


Unable to update Ubuntu server due to unmet dependensies

Seems that the metapackages has some dependency issues, remove it and install it again, then upgrade your system as usual:

sudo apt-get update
sudo apt-get remove linux-server
sudo apt-get install linux-server
sudo apt-get upgrade


If your guest account is not affected this could be a user-specific setting that is causing the problem. Try deleting ~/.config/monitors.xml


FN Shortcut keys don't work anymore after changed accidentally

The only thing I could come up with was to delete the hidden folder " .gconf " in the home folder. Deleting it will reset all user specific desktop settings (including the keyboard shortcuts).


VLC is set to open the folders (Home, desktop, documents etc) in the Places menu. How to reset this?

You are probably seeing this bug. You need to open Nautilus, right click on a folder, and go to the Open With Other Application... in the right click menu and set it back to File Browser

Don't forget to make sure the checkbox for "Remember this application for folder files" is checked!


As stated at kdenlive.org:

  Unfortunately users of Debian stable are still stuck with 0.9.10 which is unsupported.

Despite being unsupported, you could still get it and try to install it at your own risk from the Debian stable repository.


Here below is my working bonding configuration. Both NICs em1 & p3p1 are connecting to the same switch. BTW, it looks both NICs carries traffic rather than in "active-backup" mode.

I can see both counters on the 2 interfaces are increasing but of different rate.

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto p3p1
iface p3p1 inet manual
        bond-master bond0
        bond-primary p3p1

# The secondary network interface
auto em1
iface em1 inet manual
        bond-master bond0

# Bonding Interface
auto bond0
iface bond0 inet static
        address 192.168.1.99
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        network 192.168.1.0
        metric 10
        up /sbin/ifenslave bond0 p3p1 em1
        down /sbin/ifenslave -d bond0 p3p1 em1
        bond-mode active-backup
        dns-nameservers 192.168.1.1 8.8.8.8


Internet behind proxy doesn't from terminal in Ubuntu 18.04

Try this:

sudoedit /etc/environment

Paste your network proxy and port from the second line like this:

http_proxy="http://hostname:port"
ftp_proxy="ftp://hostname:port"
https_proxy="https://hostname:port"

This works for the terminal and software center. If you ever want to change the network configuration for the terminal and software center, just edit the file again.
The GUI app in settings works for all other software like browsers.
Hope you find this helpful


Transparency for gnome-terminal not working in awesome wm

So i figured out a way to get it working.

sudo apt-get install compton

and in the rc.lua file add

{ rule = { class = "x-terminal-emulator" },
        properties = { opacity = 0.75 } },

into the

awful.rules.rules

variable

and at the bottom of the rc.lua file add:

awful.util.spawn("compton")


how to convert the content of subfolders recursive to pdf format?

A script like this would do the trick

#!/bin/bash
for D in `find . -mindepth 1 -type d`
do
    convert `ls -1v $D/*.png` $D.pdf
done


I found a guide that might help you:

http://tech.deepumohan.com/2012/04/ati-radeon-hd-6600m-graphics-card-on.html

If you are confident on doing an command line installation, there is hope for you. You can use the Minimal CD image to do a text based installation:

https://help.ubuntu.com/community/Installation/MinimalCD

Then after booting your freshly installed system:

sudo apt-get install fglrx-updates fglrx-amdcccle-updates
sudo aticonfig --initial --input=/etc/X11/xorg.conf

Restart your system and when it is back up:

fglrxinfo
/usr/lib/nux/unity_support_test -p


Does upgrading to Ubuntu 20.04 require all packages to be upgraded?

Ubuntu does not test older (wrong-version) packages with newer releases of Ubuntu.
Advice for LTS users: Wait until the upgrade path from 18.04 to 20.04.1 opens in late July 2020.
If downtime is important to you, consider testing an upgrade using a Virtual Machine. A few minutes to set up a testing environment may be worthwhile for some users.
Selective upgrading means you will be running a Frankensystem of cobbled-together wrong-version packages. That may cause problems that are hard to reproduce or diagnose. We generally advise against mixing packages from different releases of Ubuntu.


How do I change Java Runtime Parameters?

The same applies on Linux. If you want to make the options permanent, you can export the JAVA_OPTS environment variable.

I recommend to do it on a per-user basis. Modify the .profile file in your home directory (or .bash_profile if it exists and you use bash) to include this line:

export JAVA_OPTS='-Xincgc -Xmx2048M'

After setting this, you need to restart shell sessions for it to apply.

Alternatively, you can also modify the system-wide profile in /etc/profile.

Edit: Settings for the Java Browser Plugin are defined in the Java Control Panel: http://docs.oracle.com/javase/1.4.2/docs/guide/plugin/developer_guide/control_panel.html.


Where to find older source&binary package versions?

Ubuntu uses Launchpad to host all its packages specifically here:

https://launchpad.net/ubuntu

From here you can find the source code to any package simply by searching

For example by searching for for acpid you are taken here

https://launchpad.net/ubuntu/+source/acpid

from here you can View the full publishing history,  or View full change log to find all releases and select the one you want.

In many cases you will also be able to find binaries.  However I have seen examples where the binaries are missing.  I'm not sure why but I presume this is when the main truck has changed more than once between Ubuntu releases.

The developer may have updated the source from upstream project for the first upstream change, tested it and published the source then immediately updated the with the second update and published again with the current upstream release.


How can I remove a cron job set as user ubuntu

To execute crontab as the user ubuntu do:

sudo -u ubuntu crontab -e

Or you can login as user ubuntu first with:

sudo su ubuntu -

and then:

crontab -e


Shell script can be run only with sh command

I can't tell for sure but it looks like you have a typo on the first line where there's a stray * over to the right.

#!/bin/sh                                                                                *

^^^ Scroll over to the right to see it.

Example

$ cat script.bash
#!/bin/sh                    *
echo hi

Run directly:

$ ./script.bash
/bin/sh: *: No such file or directory

Run via sh:

$ sh script.bash
hi

General advice

It's generally advisable to use the exact shell you're expecting with your shebang.  If you suspect that you're running into problems where you suspect dash or some other shell is being used, you can always make your shebang explicit by changing it from #!/bin/sh as your shebang #!/bin/bash.

The above is based on your comment below:

  but now I think it is a problem with the script itself or with dash.


Access gnome-shell messaging tray using keyboard

Gnome 3.6 and up

This extension has not yet been updated for Gnome 3.6 But the functionality it provided for the message tray is now a built in feature of Gnome 3.6.

Gnome 3.4 and earlier

A GNOME extension has been developed to enable keyboard access to messaging tray.

https://extensions.gnome.org/extension/313/helpful-keybindings/

You can, by default, use Super + M to display the messaging tray and Super + Space to activate the messaging tray. You can also configure the keyboard shortcut to your wish.


don't mean to sound rude or ignorant but maybe you should post you question here since most of the guys here will not have a clue about what you are asking:

https://gamedev.stackexchange.com/

Just saying...


Restore old installation after new install

It seemed to me that the relevant informations for partitioning and booting are contained in /boot and /etc/fstab. So I copied the complete backed-up system, with the exception of these 2 elements.

It seems to work!


/bin (and /sbin) were intended for programs that needed to be on a small / partition before the larger /usr, etc. partitions were mounted. These days, it mostly serves as a standard location for key programs like /bin/sh, although the original intent may still be relevant for e.g. installations on small embedded devices.

/sbin, as distinct from /bin, is for system management programs (not normally used by ordinary users) needed before /usr is mounted.

/usr/bin is for distribution-managed normal user programs.

/usr/sbin with the same relationship to /usr/bin as /sbin has to /bin.

/usr/local/bin is for normal user programs not managed by the distribution package manager, e.g. locally compiled packages. You should not install them into /usr/bin because future distribution upgrades may modify or delete them without warning.

/usr/local/sbin, as you can probably guess at this point, is to /usr/local/bin as /usr/sbin to /usr/bin.

In addition, there is also /opt which is for monolithic non-distribution packages, although before they were properly integrated various distributions put Gnome and KDE there. Generally you should reserve it for large, poorly behaved third party packages such as Oracle.

As far as deleting modem-manager goes, deleting the folder will probably only give you more problems if certain external programs are calling for it and its not there.  I would find out what the underlying problem is for why it is giving you so many problems.


Will "something else" option wipe my hard drive?

If you booted the iso in VirtualBox then the installer is referring to the virtual disk in the virtual machine. In this case, you probably want to select the erase option because the something else option requires more advanced knowledge.
If it was referring to your OS disk, you would see an option to install alongside your other operating system, so you're good to go.


How to get my Teclast X98 plus 2 built in touch screen working on Ubuntu 20.04

You just need to put the silead folder from https://github.com/onitake/gsl-firmware/tree/master/firmware/linux into /lib/firmware and reboot.
Regards!


Format and partition second hard drive using terminal? (Ubuntu Server 14.04)

Solved

I used

  fdisk -l

to show the partitions and then:

  fdisk /dev/sdb

  n

  p

  1

  [enter]

  [enter]

   w

and then:

   mkntfs /dev/sdb1

in that order to partition the drive. obviously if anyone used they replace sdb and sdb1 to their own if needed.


How to start an application with bottom most property?

You could use Devilspie2 (http://www.gusnan.se/devilspie2/), a program which performs actions on windows as they are created, using scripts written in Lua (http://www.lua.org/manual/)

Install it with: sudo apt-get install devilspie2, then run devilspie2.  You should see the error message:

No script files found in the script folder - exiting.

It will have created this folder as ~/.config/devilspie2/.  Create the following file, and save it in this directory with the extension .lua, e.g. as chromium.lua:

debug_print("Window Name: " .. get_window_name())
debug_print("Application name: " .. get_application_name())
debug_print("WM_CLASS: " .. get_class_instance_name())
debug_print("Window Class: " .. get_window_class())
if (string.match(get_application_name(),"Chromium$")) then
   set_window_below();
end

Then run devilspie2 --debug & and open Chromium.  The terminal should show:

Window Name: Untitled - Chromium
Application name: Untitled - Chromium

All Chromium windows (any application name ending in 'Chromium') opened while Devilspie2 is running will now be set to be below all normal windows.

Opening other programs while Devilspie2 is running with the debug switch, should help you modify this code for other applications.

To automatically run Devilspie2

Create a file ~/.config/autostart/devilspie2.desktop, containing:

[Desktop Entry]
Type=Application
Name=Devilspie2
Exec=devilspie2
NoDisplay=true
Terminal=false

Adding Additional Conditions

To run a script for an application only sometimes, you could either:

Run Devilspie2 only as needed, e.g. devilspie2 & app ; killall devilspie2, though it will apply its rules to all new windows created while it is running.
For GTK apps, the option --name= changes the application name, and --class= the Window class.  Chromium doesn't recognise this despite documentation.
Run the command with a modified environment, e.g. window-below= chromium-browser, and instead use the following rule:

if (string.match(get_application_name(),"Chromium$")) and
   (string.match(io.input("/proc/" .. get_window_property("_NET_WM_PID") .. "/environ"):read("*a"), "window-below="))
then
   set_window_below();
end


Building an mpv package is possible but a little difficult as the supplied instructions need some modification to work under Groovy Gorilla.  The more sensible thing to do is to simply repair the existing Ubuntu Repository package of mpv under Groovy Gorilla. This is quite a reasonable package but its YouTube playback suffers because it ships an older version of youtube-dl.
First install mpv from the Ubuntu Repository as usual:
sudo apt-get install mpv

After this remove the older version of youtube-dl (2020.09.14) that has come with this installation; and then install the very latest youtube-dl:
sudo apt-get remove youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo apt-get install python-is-python3

Now test your mpv installation against a great YouTube clip:
mpv --autofit=800 'https://www.youtube.com/watch?v=ZbZSe6N_BXs'

And I suspect that you, like myself, will be listening to Pharrell William's 'Happy' message successfully playing with mpv :).


How can I share my internet connection from windows to ubuntu?

I actually fixed this a while ago so I'll share my findings.

I haven't done exactly as my question asks but I found by using a Raspberry PI with a USB WiFi card as a router I could share my phone's internet connection to everything on my network.

I used this script: http://www.debian-administration.org/articles/23 on my RPI, it can pretty much apply to any Linux distro though.


How to move boot and root partitions to another drive

You'll need to boot from a live cd.  Add partitions for them to disk 1, copy all the contents over, and then use sudo blkid to get the UUID of each partition.  On disk 1's new /, edit the /etc/fstab to use the new UUIDs you just looked up.

Updating GRUB depends on whether it's GRUB1 or GRUB2.  If GRUB1, you need to edit /boot/grub/device.map

If GRUB2, I think you need to mount your partitions as they would be in a real situation. For example:

sudo mkdir /media/root
sudo mount /dev/sda1 /media/root
sudo mount /dev/sda2 /media/root/boot
sudo mount /dev/sda3 /media/root/home

(Filling in whatever the actual partitions are that you copied things to, of course)

Then bind mount /proc and /dev in the /media/root:

sudo mount -B /proc /media/root/proc
sudo mount -B /dev /media/root/dev
sudo mount -B /sys /media/root/sys

Now chroot into the drive so you can force GRUB to update itself according to the new layout:

sudo chroot /media/root
sudo update-grub

The second command will make one complaint (I forget what it is though...), but that's ok to ignore.

Test it by removing the bad drive.  If it doesn't work, the bad drive should still be able to boot the system, but I believe these are all the necessary steps.


Namp map only found three open ports in my computer?

It is normal that the port are closed if no service like ssh server or web server is opening them.

If you install openssh-server port 22 will be opened, if you install apache2 port 80 will be opened.

If you use ssh ( apt-get install openssh-client )
or a webbrowser it will temporary open a random high port for the duration of the usage.

Port 53 is dns.
Port 80 is http, do
netstat -tlpen to see which process opens which port, especially the port 80 in your case.

Since on your android phone you are not offering any services, only using them it is nornal that nmap shows no open ports.

You find the default port numbers in
/etc/services


How to solve unicode display wrong (different) characters issue in ubuntu?

I came here looking for solution to this problem and I eventually fixed it using

apt-get install language-pack-ne language-pack-ne-base mythes-ne ttf-devanagari-fonts libreoffice-l10n-ne

Sharing here: https://aabhash.com.np/fix-nepali-devnagari-texts-display-problem-on-ubuntu/


What is the absolute minimum that a linux system needs to boot?

There are many Linux distributions that have different minimum requirements and many "Tiny" linux distributions that require even less. Now to make this relevant to AskUbuntu, the minimum requirements for Ubuntu (including Xubuntu and Lubuntu) are here:

https://help.ubuntu.com/community/Installation/SystemRequirements

Otherwise if you're looking for a broader range of different distribution requirements you might want to ask elsewhere.


How to manually set a special resolution?

As my blog post, here, suggests

sudo xrandr --newmode "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
sudo xrandr --addmode VBOX0 "1600x900_60.00"
sudo xrandr --output VBOX0 --mode "1600x900_60.00"

First command creates a new mode with resolution 1600x900
Second command makes it available for use, with display (in this case VBOX0)
Third command selects the newly added mode as the display resolution for the specified display

To change this to any custom resolution, just replace 1600 with the width you want and 900 with the height you want.


Is it possible to make the scrollbars wider in 15.10?

Instead of customizing a theme, set the general properties of gtk-3.0.  I wrote out how to do it earlier this week on this one.

How to get a bigger static scrollbar (aka normal scrollbar)?

Mine is the answer that has no up votes :( Here's the gist

$ cat .config/gtk-3.0/gtk.css
.scrollbar {
  -GtkScrollbar-has-backward-stepper: true;
  -GtkScrollbar-has-forward-stepper: true;
  -GtkRange-slider-width: 20;
  -GtkRange-stepper-size: 20;
}


sudo sanitizes the environment and by default only keeps certain environment variables available with modifying the values of some (e.g. PATH).

You can pass the variable ANDROID_HOME manually:

sudo ANDROID_HOME="/actual/path" ionic run android

Or preserve the current environment:

sudo -E ionic run android


Tomcat7 installation failed via apt-get on Ubuntu 14.04

I was able to solve this by installing the package libtomcat7-Java.  This appears to be the missing dependency.

sudo apt-get install libtomcat7-java


I know this is an old post, but in case this happens again try running:

  sudo apt-get install unity-control-center

it worked for me when I ran into a similar issue


I think, but I am not sure, that preventing ordinary users from any control whatsoever over the Network Manager functions also prevents them from seeing the password. This is a setting I use in my lab, and I think I checked it to see if passwords could be visible, but that was long ago and I don't remember for sure:

# cat /etc/polkit-1/localauthority/50-local.d/disable-network-control.pkla
[Wifi management]
Identity=unix-user:*
Action=org.freedesktop.NetworkManager.settings.*
ResultAny=no
ResultInactive=no
ResultActive=no

[Wifi sysad management]
Identity=unix-group:sudo;unix-user:root
Action=org.freedesktop.NetworkManager.settings.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

The configuration is very readable - it denies access to all users for any action related to Network Manager, and then allows them for members of the sudo group and the root user.

So (assuming of course your students use unprivileged accounts), you could apply the same restriction to their accounts, while exempting your administrator accounts.


Package other than calibre for converting an RSS feed's entries to an ebook

You can extract xml to text with just bash and wget.

e.g;

# Setup
URI=http://www.nydailynews.com/new-york/index_rss.xml
LINES=20 #max number of lines
EXEC="wget -q -O temp.temp"
clear

# Start
$EXEC $URI
cat temp.temp | grep title |\

# use sed loop to delete all LFs bar last line
sed ':a;N;$!ba;s/\n/ /g' |\

#replace all titles and descriptions with LFs
sed -e 's/<title>/\n\n/g' |\
sed -e 's/<description>/\n/g' |\

# uncook
sed -e 's/&lt;/</g' |\
sed -e 's/&gt;/>/g' |\
sed -e 's/nbsp;/ /g' |\
sed -e 's/&amp;/+/g' |\

#delete URLs
sed -e 's/http.[^<]*//g' |\

#replace other angled brackets with space
sed -e 's/<[^>]*>/ /g' |\

head -n $(($LINES + 2)) |\
tail -n $(($LINES))


You may have not created your USB correctly if it  won't run ... Or you have not configured your BIOS to change the boot order on USB.

You can find how to create a bootable USB stick of Ubuntu on Windows:
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

I checked for issues with your computer's model... The only problem which come back is for the  detection of the SSD :  http://ubuntuforums.org/showthread.php?t=2307273


18.04: Bionic Beaver: nautilus-connect-server: GONE?! Workaround?

An easy way to connect to server is to install nemo.
Nemo is very similar to Nautilus and allows you to explore your files and connect to server.
You can install nemo with the common apt:

sudo apt install nemo

Then, you can go to menu file, Connect to Server and then you will see this:

Nautilus: If you still want to connect using nautilus, you can normally do it. When connecting to a server in Nemo, it automatically appears in Nautilus.

Nemo also allows you to add bookmarks to your server connections with the name you desire (in this case MyBookmark). Then, the next time you want to connect you can simply select the  bookmark. If you create it in nemo it automatically appears in nautilus as well.


System will hang after start for a while if I disable typer-threading in BIOS

This can be caused by many things.
It is more likely that you activated overclock, and the Hardware can't cope with the memory timings or other tunnables.
Or maybe your computer has an air flow problem and hangs randomly.
HT brings more parallel capacity and tasks would be completed sooner. So CPU speed will be reduced sooner that without HT, and reducing the speed reduces the heat generated.
Sounds possible that a memory module is not working well, and it generates a hang on the system when it gets heat. That would be independent of if you have HT activated or not. Would be random hangs.
Or for example, it could be that your laptop is configured to hibernate if there is no activity for a while, and you don't have enough swap, so it crashes.
But you don't need to disable HT, you'll get no get variation in temperature.
There is a nice thread in here:
https://forums.tomshardware.com/threads/ive-heard-that-turning-off-hyperthreading-can-cool-down-the-cpu-temps.2438840/
Also some laptops have bad air flow. If you replaced internal components the new ones may be blocking a bit the air flow.
Cheers.


Windows 10 (dual boot) doesn't start anymore!

Create a bootable USB-stick or a CD with the Windows OS

In the Installation menu, navigate to the recover | repair current windows.
Open the cmd.
Enter bootrec \fixmbr and bootrec \fixboot.

That should configure the bootloader for booting the windows operating system, but there's a slight chance corrupting the grub loader.


To check/repair your file system...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sda5, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Note: If you have Windows, and you've installed any drivers that allow you to read/write to linux ext2/3/4 partitions, remove it asap, as these drivers corrupt linux partitions.
Note: Edit your question and show me screenshots of the Disks app SMART Data (scrollable) window. I want to look at the condition of your hard disk.


Can I theme the menubar to look different if a window is maximized?

I don't believe this is possible outside of the exit, minimize and maximize buttons. But it may be.


No option to boot to windows 3 days after installing ubuntu

The excellent boot-repair tool usually sorts out these problems.

If that doesn't fix it the tool can provide more information as to what's going wrong. Details in this post


Install Windows 10 alongside Ubuntu 18.04

Remember the step you skipped While installing, it explicitly said don't turn off the system. If you want a clean slate you can boot from Hirens Boot, backup your data and unallocated every partition then merge them. Then start from step 1 again. If you want Windows, Then make sure your CPU architect is compatible with the one you choose in the start up. Second, it takes time so grab a coffee, And Then install Ubuntu on top of it. One more thing try to give windows an unallocated partition instead of a hand made NTFS one. If you all fails, get your HDD checked or get it wiped out clean. And if that failed..... you're in deep s**t.


Create a Ubutnu live cd, mount the drive Ubutnu is installed on and do chown -R root: /media/ubuntu/YourDriveName/etc. Repeat this but replace etc with usr. I think there is no reason the change the owners of /etc and /usr.


Trying to disable a working site; a2dissite returns 'ERROR: Site [such] does not exist!'

The following is the report of significant progresses made regarding my problem.

First troubleshooting step taken was: take time to read the code of the a2dissite script found in /usr/sbin.  Realize that I usually troubleshoot well by modifying code.

Second troubleshooting step: make a copy with a diffrent name, and execute for testing purposes.  Repeat the problem: FAIL.  Call with perl: FAIL.  Give up on echoing info from the script.

Third troubleshooting step: call man a2dissite and docuread.  The interesting bit says:

   FILES

   /etc/apache2/sites-available
          Directory with files giving information on available sites.

   /etc/apache2/sites-enabled
          Directory with links to the files in sites-available for enabled
          sites.

I then see that I have a true file in sites-enabled and no 'corresponding' file in sites-available.  The lack of file in sites-available was the reason for the error message.

The following apparently fixed my problematic symptoms:

/etc/apache2/sites-enabled $ sudo mv [such_site.conf] ../sites-available/[such_site.conf]
/etc/apache2/sites-enabled $ sudo ln ../sites-available/[such_site.conf] [such_site.conf]
/etc/apache2/sites-enabled $ sudo a2dissite [such_site]
ERROR: /etc/apache2/sites-enabled/[such_site.conf] is not a symbolic link, not deleting
Site [such_site] disabled.
/etc/apache2/sites-enabled $ sudo rm [such_site.conf]
/etc/apache2/sites-enabled $ sudo a2dissite [such_site]
Site [such_site] already disabled


Cannot boot Ubuntu 16.10 after resizing /boot with GParted (EFI, LVM, and LUKS encryption)

If I were not misunderstanding your post, I think your problem is boot loader missing problem. Because I face this problem when I try to install ubuntu 16.04 LTS with along side with windows 10.

At this time, I try to install ubuntu from my usb memory stick. I used Rufus to create nest in usb. And I choose the the wrong partition scheme as MBR partition scheme for BIOS or UEFI because I already format my hard disk to GPT format.

So, when I try to install ubuntu from this usb drive everything is fine until it reach to install grub. When installation process reach grub installation, I got error and installation process is crush and when I try to boot, I never seen the ubuntu boot loader.

So, I try to repair grub a lot of times and also used ubuntu boot repair tools. But nothing works. It still the same error.

After I read a lot of post, I understand my problem is missing boot loader and it because of I choose wrong disk format when I create nest in usb.

My usb nest format is MBR partition scheme for BIOS or UEFI and my hard disk format is only GPT format. So, the format is wrong and it happened boot loader missing problem.

After that I recreate nest in usb with [Rufus] by using GPT partition scheme for UEFI only. This time when I install ubuntu again, everything is fine and no boot loader problem again.

I think my solution will help some idea for you.


Wallpaper settings via nitrogren are lost after rebooting?

You add nitrogen to your commands to run at log in

nitrogen --restore

How to run commands at login on ubuntu 12.04?


Where can I find a compact list of basic commands for the root shell prompt?

Depends.  I don't recall if ubuntu uses busybox, if so, your commands are those available in busybox.  To see a list, type this:

busybox --list

Or

busybox -h

Beyond that, available programs are determined by your PATH environment variable.  Generally, these are the same as those in the terminal.  Any executable that is in your PATH will be available as a command.  If there is a command you need, but it doesn't execute when you type it in, you might just need to update your path.  Be sure to include the previous value of path if you do this.  For example:

export PATH=~/bin:"$PATH"

In addition to executables in your PATH, you have some basic bash commands that are also available.  For a list of bash commands, type help.


Where can I download Ubuntu 10.04.4 LTS desktop edition for 64 bit?

This is the link containing all the different images for Ubuntu 10.04.4. Don't get confused with the naming of AMD64 - this is the name of the Architecture - doesn't mean you have to have an "AMD Processor".

Direct Links for Desktop images of Ubuntu 10.04.4:

Standard Download
BitTorrent Download

Linked Question:

Difference between the i386 download and the amd64?


Filezilla cannot upload file on ftp on Ubuntu: 533 transfer failed

Change the permissions of upload dir
chmod 664 /var/www/myproject


"Mouse Middle Click" paste to exactly where mousecursor is

The comments made me aware that apparently the Google Docs webpage seems to be the problem. In fact, Gedit, LibreOffice, (as well as this answer I am typing) and other tools function properly.

If this problem occurs for others, check other applications first. Thanks to the commenters!


IPTables (Firehol) rule to only allow whitelist client IP's outbound to PPP interface

I solved this by moving the whitelist hosts to the route

interface4 "${lan_interface}" lan
    policy accept

interface4 "${ppp_interface}" internet
    protection strong

    policy reject
    client all accept

    server http accept
    server https accept
    server ssh accept src "${SSH_ACCESS}"
    server ping accept src "${ICMP_ACCESS}"
    server ident reject with tcp-reset

 router4 lan2internet inface "${lan_interface}" outface "${ppp_interface}"
    masquerade
    route all accept src "${LAN_HOSTS_WHITELIST}"


Eclipse looks terrible with Linux Dark Theme

I was struggling with this myself, and I found an answer (I can make dark theme work using answer from FloT but I just don't like it for eclipse). If you want to keep light theme for eclipse launch eclipse with GTK_THEME set for light theme. This will work with default theme in eclipse (or/and no theme at all)

GTK_THEME=Adwaita ./eclipse


Explaining a shell script to recursively print full directory tree

This script defines a function walk() and then runs walk on the first argument passed to the script.

The function first defines a local variable (one known only to the function and its children) indent

indent is locally defined as "${2:-0}". This means that if $2 (the second argument received by the walk command) is unset, then make it 0. This variable is local so that you cannot pass a second argument to the script yourself.

The function then prints the contents of the directory specified on the command line ($1) in this format

printf "%*s%s\n" $indent '' "$1"

This means, print $indent number of spaces, then print the name of the directory as a string (so a number is not expected), then print a newline.

Then the function runs a loop

for entry in $1/*; do

This assigns every non-hidden file or sub-directory in $1 (the directory specified as the first argument to walk) to the variable entry and loops over them, running this command on them:

[[ -d "$entry" ]] && walk "$entry" $((indent+4))

This means, if entry is a directory, then run walk on entry. Now walk has a second argument $((indent+4)), which will be used instead of 0 as the new value of indent. The effect of this is that the first level directory is not indented at all, but the second level directories are indented 4 spaces, the third level 8 spaces, etc. Since entry is now the first argument, $1 of the walk function, it will recurse throughout the structure.

The script ends by running the walk function on the positional parameter $1, the first argument passed to the script. Usage could be

./script directory

This means directory is $1and walk will be run on directory.

It would be nice if the script printed regular files I think, but they would look confusing without some elaborate formatting. I recommend using tree for this purpose instead of the script!


All you need is to run the hl.exe with "-game hlspbunny" parameter, so you can do this in the command line (Ctrl + Alt + t): LINK_OF_THE_HL_DIR/hl.exe -game hlspbunny

And it can be converted into a script, save the following content into a file, e.g. HL-mod.sh:

#!/bin/sh
LINK_OF_THE_HL_DIR/hl.exe -game hlspbunny

Remember to change the "LINK_OF_THE_HL_DIR" correspondingly.

And change the permission to make it executable chmod u+x HL-mod.sh

Now you can simply run the script to start it.


After comming accidently up in the system monitor, I saw that there was a background program using about 16gb of memory, and keeps using more over time. This program is for my sound controller, I closed it and now and it didn't crash anymore. Thanks @Kanehkili and @KGIII for helping.


Overlay translucent image on desktop / above all windows

I was unable to find a stock solution so ended up modifying the pqiv program to achieve this.

I wrote an article explaining details.

The branch of pqiv is here. The command-line options for the desired effect are:

pqiv --click-through --keep-above --transparent-background --hide-info-box  filename.png


1 TB Dell USB hard disk not getting recognized

Look at http://ubuntuforums.org/showpost.php?p=11334979&postcount=17

I tried a rmmod uas and it worked :)


How can I troubleshoot the lack of detection of the D-Link DWM-152 (HSDPA USB modem)?

Give sakis3g a try. If it works than we know the modem works on Ubuntu and it's just a matter of including it in usb_modeswitch data or toggling it manually and we can work towards that.


How to upgrade from Ubuntu 14.04 to Xubuntu 16.04?

I don't think you can update from Ubuntu to Xubuntu. But you can simply sudo apt install xubuntu-desktop to get everything that xubuntu would install.

About your upgrade: (X)Ubuntu 16.04 isn't released yet. You could force the update on the dev version by running sudo do-release-upgrade -d.

But since you had to ask that, I would recommend holding off another couple of weeks until it's stable. (and then maybe another couple of weeks while the early adopter update :-))


You need to install 'Unity WebApp extension for the chromium browser' from Ubuntu Software Center. Then restart Chromium and go to gmail website

Write 'chromium webapp' in search box.


What is the current state of Ubuntu on Bay Trail tablets?

I got mine to boot, but couldn't get the touchscreen, camera or screen rotation to work.

To get ubuntu to boot, you need to find a 32bit uefi to add to a live usb. Then boot usb from the windows recovery menu.


I am not able to update TexStudio in Ubuntu 15.04

1st, read this:

  Linux

  We recommend that you first try to install TeXstudio from the
  repository of your distribution. Only if TeXstudio is not available
  there, use the following pre-packaged versions.

texstudio-dbg 2.8.4 needs texstudio 2.8.4, but you installed 2.9.4

Normally you do not need debug packages.

2nd, if you insist on 2.9.4, use the following steps:

Remove the texstudio-dbg

sudo apt-get remove texstudio-dbg

Install your .deb file again:

sudo dpkg -i texstudio_2.9.4_amd64.deb


How can I get the computer to sleep while at the login screen? (No users logged in.)

You might want to take a look at this. The second comment provides a good answer.


Revert root passwd to its default "empty"

There's a difference between "empty" password (or no password - when you get asked for a password you type nothing and hit enter) and a locked account.

The "root" user on Ubuntu systems is locked by default, that means there is no password at all that would match, not even the empty password.

Your command sudo passwd -dl root is correct:

The -d flag deletes the password, that means it reverts the password to the empty password. You log in by simply hitting Enter without typing anything.
The -l flag locks the account. It adds a "!" character in front of the stored encrypted password hash. This way, no entered password can match any more, because "!" would normally not appear in any hash of the used type. That means it becomes impossible to log in using a root password.

You should use both -d and -l (or short -dl) together because otherwise your current password would still be saved. If someone unlocks the account later and the current password wouldn't have been deleted, that's what the new password would become. If you could not remember the old one then, you would wonder why the root account is still not accessible until you figure out that there could be an old password set and you would have to reset it somehow again.


How to delete old kernels without package management?

Kernel version for Lucid Lynx is 2.6.32 and no other Ubuntu release uses that kernel. It is safe to remove those old Lucid's kernels runnning:

sudo rm /boot/*-2.6.32-*


Upgrade means: it will update the core software to new features and better functionality and by doing this update you will never lose any of your personal data, files or installed applications.

Upgrade simply means shifting your home from a Single bed room flat to a Double bed room flat. All your stuff will be there and there is room for some other more but its risky too for arrangement in the new flat.

So There is a chance that you upgrade can fail and it will take the stability of your system or it may be dont want to boot after upgrade , WiFi , VGA drivers , etc many issues are there .

If I were you , What I do ?

before going to move to the upgrade take all your important data as backup.
If you more time and high speed Internet , download the ISO of which you would like to get as upgrade and make sure that the hardware and everything running properly in a normal way.

hope that helps.


How to get a "Maximize" button in every window in GNOME Fallback

You can set this feature with gconf-editor:

Hit Alt+F2 and type gconf-editor
Use the left tree view to navigate to apps -> metacity -> general -> button_layout or hit Ctrl+F and enter button_layout.
You see several settings in the right top window. Click right of button_layout. Now enter close,maximize:
Your settings are automatically saved when you leave the text field.
Now you should have a close and maximize button on every window (But when the developer of some interface didn't want to have a maximize button, there is no way to put one there).

If you also want a minimize button, type close,minimize,maximize: at point 3 above.


Computer starts, ubuntu asks username and password, and then "freezes"

If you press Ctrl+ALT+T, you will get a terminal. Type in there:gnome-system-monitor and see what's using the RAM and CPU.


Is there a way to do scp in parallel to multiple systems?

There is a way.  Have a look at this Ubuntu Manpage.

  NAME

   parallel-scp - parallel versions of scp

  SYNOPSIS

   parallel-scp [OPTIONS] -h hosts.txt local remote

  DESCRIPTION

   pssh provides a number of commands for executing against a group of
   computers, using SSH. It's most useful for operating on clusters of
   homogenously-configured hosts.

   parallel-scp copy files in parallel to a set of machines.

Source: Ubuntu Manpages


Can I run Ubuntu 20.10 smoothly on Intel Pentium G3220?

Yes, you can.
Here are the installation/system requirements for Ubuntu 20.04 -

2 GHz dual-core processor
4 GiB RAM (system memory)
25 GB of hard-drive space (or USB stick, memory card, or external drive but see LiveCD for an alternative approach)
VGA capable of 1024x768 screen resolution
Either a CD/DVD drive or a USB port for the installer media
Internet access is helpful


How can I revert ubuntu settings after gnome-shell install

Make sure you run ppa-purge first like so (assuming you added the standard Gnome team PPA.  You also need to do this for every PPA you installed.  Do this before uninstalling the packages.

ppa-purge ppa:gnome3-team/gnome3

Then remove all of the gnome related stuff (if it's installed):

sudo apt-get remove --purge gnome-shell
sudo apt-get remove --purge ubuntu-gnome-desktop
sudo apt-get remove --purge ubuntu-gnome-default-settings
sudo apt-get remove --purge gnome-tweak-tool

Then run

unity --reset
unity --reset-icons

That should take care of it.

On a purely personal note, you may want to give Gnome 3 a try for a little longer and just read through the keyboard operations (especially the "Windows" key) and the available Gnome extensions.  It is a truly amazing work of UI engineering and design, fine-tuned for efficiency and customization.  The appearance can be micro-managed to be perfectly you.  Now that I know how to use it, I don't think I'll ever be able to use anything else and be happy.


changing Apache2 web directory. 403 forbidden

I suggest you to follow this workaround which work without problems in the majority of the cases.

How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?

But have in consideration that if you make the changes for a reserved or protected directory you must give the proper permissions in order to allow access to everybody.

Please inform if you experience any issues when trying with this workarund.

Good luck!


How to take ownership over an existing Ubuntu Software Center app?

Actually, the uget package is maintained in Debian. The unstable release of Debian ships with uGet 1.10.3, and the same is also true for  the development version of Ubuntu.

In order to have the package updated in the current stable releases of Ubuntu (lucid, precise, quantal and raring), you can ask for a backport using the procedure detailed in the Ubuntu wiki.


Can I install Visual Studio Code in Docker for security?

Code_OSS AppImage
Unlike other applications, AppImages do not need to be installed before they can be used, however they need to be marked as executable before they can be run. This is a Linux security feature.
Visual Studio Code OSS Edition:
Download the Code_OSS AppImage and make it executable using your file manager or by entering the following commands in a terminal:
chmod +x ./*.AppImage

Then double-click the AppImage in the file manager to open it.
Sandboxing Code_OSS:
If you want to restrict what Code_OSS can do on your system, you can run the AppImage in a sandbox like Firejail. This is entirely optional and currently needs to be configured by the user.


How to debug dpkg configure error in subprocess post-installation?

Ok, I have found the solution for this problem. Thought I was unable to crank up the logging to get more data, the data already presented had the clue to the problem.

dpkg: error processing spamassassin (--configure):
subprocess installed post-installation script returned error exit status 1

says dpkg encountered an error processing spamassassin while running configure. Next line tels us the post-installation script did not finish correct.

In the /var/lib/dpkg/info dir we can locate the script files of dpkg, the file: spamassassin.postinst gives us the script file which generated the error.

Within this file we know we have to look at the code runned by configure:

  if [ "$1" = "configure" ]; then

and after some debugging I found out the line:

  su debian-spamd -c "sa-update --gpghomedir /var/lib/spamassassin/sa-update-keys \
          --import /usr/share/spamassassin/GPG.KEY"

returned exit code 1 (run command @commandline and use echo $? next to get the exit code)

The problem was that the user debian-spamd already existed on my system but its login shell was /bin/false. Su-ing with /bin/false returns without any message but exitcode 1.

Adding -s /bin/sh to the command solved the problem though in the end I did alter the login shell of the user to stay in sync with future updates.


Is Ubuntu/Unity More CPU or GPU Intensive?

2D is more CPU intensive, 3D is more GPU intensive.


How to define which kernel module to use for a device

You can revert with this terminal command:

sudo apt-get remove --purge bcmwl-kernel-source

We'd love to identify your device first and be certain which driver and firmware is optimal:

lspci -nn -d 14e4:


Why does Radiance have GtkLabel while Ambiance doesn't?

I updated my system recently and my gtk-widgets.css are the same in this part, for Ambiance or Radiance.

Although GtkLabel is invoked to set attributes that may differ from the default pattern, so it was used to modify some defaults of tabs that may fit Ambiance, but not Radiance.

When calling gtk.Notebook you don't need to specify an  attribute, it will be used a default pattern, but in case of Radiance they wanted to set a different attribute from the deafult, so they called GtkLabel that was specified prior in the css:

/*********
 * label *
 *********/
GtkLabel,
GtkLabel:insensitive {
    background-color: transparent;
}

Defining the background-color of widgets that use GtkLabel (widget that displays a small amount of text) on it, such as gtk.Notebook (a tabbed notebook container).


14.04 - Does trash empty automatically after awhile?

By default it doesn't. You can empty it manually by right-clicking on the trash icon in the launcher and then clicking "Empty Trash ...".

If you want it to do this automatically, open a terminal and enter this command:

sudo apt-get install trash-cli

Then open "Startup Applications" from the dash. Click "Add" and enter trash-empty 5 as command, choose some name you like. This will delete all files which are longer than 5 days in your trash every time you log in to your computer.


Glade: How can I set the value of a spin button?

In Glade:

Select the spinbutton.
Click the button next to the "Adjustment" text entry that has "..." in it.
In the window that appears click "New."
Select the "adjustment1" widget from above.
From there you can change value for a default value, minimum value, maximum value, and step increment.

You can also change those values from code, the class refrence can be found here: gtk.SpinButton.

Edit: You can get the maximum and minimum values using the following code:

(min, max) = spinbutton.get_range()

where min is minimum value, max is maximum value, and spinbutton is the spin button widget. You can also set it using the following:

spinbutton.set_range(min, max)


Where to ask questions related to ubuntu app developer showdown?

Feel free to ask
You can ask ubuntushowdown questions here ,because it is directly related to ubuntu, tag them with application-development


Do I need to reboot my computer to read data from two SD cards?

There is a similar report on launchpad.

For those affected, the suggestion in the report is not to use "Safely Extract Drive" (Natty) or "Safely Remove" (Precise) (as shown in the picture below) but to unmount the drive from the command line.

The issue is that where a USB memory stick is unmounted before removal (i.e. use Safely Extract Drive), SD cards use-case are apparently treated differently - the use case is that SDxx memory cards are expected to be ejected, leaving the card reader mounted and ready to read the next card inserted.

The workaround for is to use the terminal:

Use mount -l to list your mounts - your SD card will be reported like the following extract:

/dev/sdb1 on /media/7804-99AA type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)

unmount using the device name shown

umount /dev/sdb1

Note - if this affects you, subscribe to the launchpad report.  During testing with 12.04 I'm perhaps fortunate to be unaffected, but there is a comment in the thread that a user using 12.04 was also affected.

Linked Question:
 - What is the difference between Eject and Safely Remove Device


Missing package libemu-dev in Ubuntu 20.04

Open the terminal and type:
sudo apt update
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/libe/libemu/libemu2_0.2.0+git20120122-1.2build1_amd64.deb http://archive.ubuntu.com/ubuntu/pool/universe/libe/libemu/libemu-dev_0.2.0+git20120122-1.2build1_amd64.deb
sudo apt install ./libemu2_0.2.0+git20120122-1.2build1_amd64.deb ./libemu-dev_0.2.0+git20120122-1.2build1_amd64.deb


Connection timed out; no servers could be reached error

As soon as I had the same situation and reboot did not solve the problem here is my simple steps which could help to find the problem:

check internet connection

ping 8.8.8.8

If destination is unreachable check if your gateway 10.0.2.2 is reachable.
And fix the problem.
if connection is fine you would see something like :
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=4.13 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=46 time=4.13 ms

Check if host/dig send packets properly:

sudo tcpdump -n -i en0  host 8.8.8.8

At the same time from another console in the same machine
dig @8.8.8.8 www.google.com

You will get response similar to:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
13:34:00.980550 IP 10.0.2.15.56570 > 8.8.8.8.53: 47059+ A? google.com. (27)
13:34:05.980541 IP 10.0.2.15.56570 > 8.8.8.8.53: 47059+ A? google.com. (27)

This means that the request had pass to the external network but did not come back...
You can check what your firewall doing by analysing output of your firewall rules:
iptables -n -L

The problem might be from any firewall between you and 208.67.222.222 or 208.67.220.220 or 8.8.8.8
in my case provider's firewall coincidently block incoming UDP packets from 53 port.
and thus correction of providers firewall rules fix the problem.
Hope this analysis would be helpful to someone.


Can files/directories deleted with rm be restored?

To this end I use trash-cli package and the following alias in my ~/.bashrc

alias rm=trash

And the trash-cli package can be installed by the followoing command: sudo apt-get install trash-cli.

The files you remove will be moved to trash, and you can see them in nautilus trashcan.

You can always access the real rm by using one of the following method:

command rm something
'rm' something
\rm something

There are also commands to access the trashcan from terminal, trash-list, restore-trash (or trash-restore), trash-empty installable from package trash-cli (then see their man pages).

Last note, it is not advisable to use such an alias for super-user, because it can interfere with system operations.


How to use the AccountsService API with Python?

After looking at the source to libaccountsservice you actually have to wait for the user to be loaded before accessing the user object.  This acheives the result:

from gi.repository import AccountsService, GLib

current_user = GLib.get_user_name()
user = AccountsService.UserManager.get_default().get_user(current_user)
def is_loaded_cb(user, param):
    print user.get_icon_file()
user.connect('notify::is-loaded', is_loaded_cb)

main_loop = GLib.MainLoop()
main_loop.run()

Alternatively, you can contact the accounts service directly and synchronously over D-Bus:

from gi.repository import GLib, Gio

current_user = GLib.get_user_name ()
bus = Gio.bus_get_sync (Gio.BusType.SYSTEM, None)
result = bus.call_sync ('org.freedesktop.Accounts',
                        '/org/freedesktop/Accounts',
                        'org.freedesktop.Accounts',
                        'FindUserByName',
                        GLib.Variant ('(s)', (current_user,)),
                        GLib.VariantType.new ('(o)'),
                        Gio.DBusCallFlags.NONE,
                        -1,
                        None)
(path,) = result.unpack ()

result = bus.call_sync ('org.freedesktop.Accounts',
                        path,
                        'org.freedesktop.DBus.Properties',
                        'GetAll',
                        GLib.Variant ('(s)', ('org.freedesktop.Accounts.User',)),
                        GLib.VariantType.new ('(a{sv})'),
                        Gio.DBusCallFlags.NONE,
                        -1,
                        None)
(props,) = result.unpack ()
print props['IconFile']
print props['RealName']

If you want to set the icon file you need to call the appropriate method:

result = bus.call_sync ('org.freedesktop.Accounts',
                       path,
                       'org.freedesktop.Accounts.User',
                       'SetIconFile',
                       GLib.Variant ('(s)', ('/tmp/somefile.png',)),
                       GLib.VariantType.new ('()'),
                       Gio.DBusCallFlags.NONE,
                       -1,
                       None)

If you need to use any other methods, browse the D-Bus interface using D-Feet (in the software center).


Press Alt+Space (open window context menu) and then use accelerator key (underlined) for your desired option.

Update: Also, in Unity (no unity 2D I think), you can hold Win key and it shows you some help.


What will be the default filesystem in 16.04?

If there were any plans to change the default filesystem, they would be part of the blueprints for 16.04. As you can see, the list of blueprints is rather threadbare compared to the those of 15.10 or 14.04, so I guess things haven't really settled yet. So, if there are plans, they aren't "official" yet.

The last time this was discussed in ubuntu-devel was in April 2015. To quote an Ubuntu kernel dev, Colin King:

  After a lot of thorough testing over the past several months, I still
  deem btrfs as experimental quality. There are still issues that can't
  be easily recovered from, so personally, I don't recommended it quite
  yet for a default filesystem.

So, in conclusion:

There are no plans to change the default filesystem.


Installing default-jdk

First, update the package list by running the command

sudo apt update

Now, install the default JDK

sudo apt install default-jdk

Installing Java 11 or Java 13

Update the package list by running the command

sudo apt update

Install dependency

sudo apt install software-properties-common

Add java repository

add-apt-repository ppa:linuxuprising/java

Again update your package list

sudo apt update

Run the command to install oracle-java11-installer or oracle-java13-installer (ANY ONE)

sudo apt install oracle-java11-installer

sudo apt install oracle-java13-installer


Thunderbird in Ubuntu 16.04: Calendar view disabled?

You need to be running Lightning 4.7.4. It can be downloaded at https://www.mozilla.org/en-US/projects/calendar/

The calendar-related menus only work if the calendar tab is the front tab. Same with the tasks menus, the tasks tab has to be in front.


Normally nothing is encrypted - it might be that you mean binary-files.
You can search for any package in the repository via this page: https://packages.ubuntu.com/
Regarding the package linux-firmware_1.187_all.deb you can find a list of the included files here: https://packages.ubuntu.com/focal/all/linux-firmware/filelist
For further investigations I would recommend you to have a look at the source-code-package here: https://packages.ubuntu.com/source/focal/all/linux-firmware
and if you wnat to get fully into the rabbit hole take a look here:
https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-firmware/tree/
Hope this was a help.


Why does Thunderbird cause an error when launching Firefox, if it's already running?

Thunderbird sets a lot of environment variables (this bug may be related), which will change Firefox behavior. It's not clear if this is intended or not.

The solution is to find an unset them all; the list I've found in my case, with related unsets, is:

unset MOZ_APP_LAUNCHER
unset MOZ_ASSUME_USER_NS
unset MOZ_CRASHREPORTER_DATA_DIRECTORY
unset MOZ_CRASHREPORTER_EVENTS_DIRECTORY
unset MOZ_CRASHREPORTER_RESTART_ARG_0
unset MOZ_CRASHREPORTER_RESTART_ARG_1
unset MOZ_CRASHREPORTER_RESTART_ARG_2
unset MOZ_LAUNCHED_CHILD
unset MOZ_NEW_INSTANCE
unset NO_AT_BRIDGE
unset NO_EM_RESTART
unset XRE_BINARY_PATH
unset XRE_PROFILE_LOCAL_PATH
unset XRE_PROFILE_NAME
unset XRE_PROFILE_PATH
unset XRE_START_OFFLINE
unset XUL_APP_FILE


I needed to install ruby-dev:

sudo apt-get install ruby-dev zlib1g-dev liblzma-dev

Cf: This question on StackOverflow. It recommends sudo apt-get install build-essential patch first, but my system didn't need that.


Can I get inverted (i.e. Mac-like) scrolling on my touchpad?

Just paste

pointer = 1 2 3 5 4 6 7 8 9 10 11 12

inside a file named: .Xmodmap and save it to your home folder :) Don't forget to log out and back in


Sorry if I seem stupid: have you removed any possibly manually edited xorg.conf?

Still: does it seem like the kernel is activating framebuffer right from the start? I mean, when you boot, are you getting that fancy and pretty text mode at 160 cols x 60 rows (or something like that), or just the traditional 80x25?


You have to use sudo whenever it says you dont have required privilages..Open your terminal and type sudo gnome-software
One more thing you can do is to use your terminal to download any packages you want, all you have to do is

sudo apt-get install <name of package/software>

To update and upgrade your ubuntu use

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

Hope this helps you.


VS Code not showing top menu bar Ubuntu 18.10

on the left bottom you will a setting icon,click on the setting icon.
in the search box type : window.titleBarStyle
change the Window: Title Bar Style to custom
restart the VS editor.