Quantcast
Channel: User Florian Diesch - Ask Ubuntu
Browsing latest articles
Browse All 107 View Live

Comment by Florian Diesch on ubuntu 18.10 broken for a lot of packages? This...

Please add the output of apt-cache policy libdouble-conversion1 to your question.

View Article


Comment by Florian Diesch on Can't install libpcre3-dev

@AbrahamBrookes: I added a warning. It seems you still have package sources for 16.04 activated on your system. By forcing to install libpcre3 from 16.04 APT removed all packages depending on the 18.04...

View Article


Comment by Florian Diesch on "systemctl status apache2" Failed to start the...

Please add line 25 of the file /etc/apache/sites-enabled/phpmonitor.com.conf to your question. According to the error message in contains an error.

View Article

Comment by Florian Diesch on Running a Custom Command as Superuser Using sudo?

Please add the output of ls -l /usr/local/bin/Wandering_Echo /usr/local/Custom_Programs/Wandering_Echo and sudo bash -c 'echo $PATH' to your question.

View Article

Comment by Florian Diesch on mysql installation ubuntu

What do you get if you try to install the package mysql-server (not mysql-server-5.5)?

View Article


Comment by Florian Diesch on Shrink Kernel Size For 64 MB RAM

Edited my answer to clarify this.

View Article

Comment by Florian Diesch on How to fix an apt upgrade error

/usr/bin/lib/python2.7/logging/__init__.py looks strange. It seems like you've installed Python 2.7 manually or from some incompatible package and it's causing problems now. Try to remove it and...

View Article

Comment by Florian Diesch on Using ClassicMenu Indicator from Launcher

Maybe I could add an option top avoid the Notification Area icon. bugs.launchpad.net/classicmenu-indicator/+bug/1859243

View Article


Comment by Florian Diesch on list: command not found

What do you expect that command to do?

View Article


Answer by Florian Diesch for Alias for "echo $?" doesn't work

Use single quotes instead of double quotes to prevent the shell from replacing the $? when defining the alias:alias status='echo $?'

View Article

Answer by Florian Diesch for How is my language exposed when im on the web?

Your web browser submits your preferred languages to web servers.You can configure that e.g. in Firefox in the "General" ("Allgemein" in German) page in the "Language and Appearance") ("Sprache und...

View Article

Answer by Florian Diesch for Apache doesn't start after reinstallation

Mai 21 19:12:32 v14268 apachectl[23971]: AH00526: Syntax error on line 3 of /etc/apache2/conf- enabled/phpmyadmin.conf:Mai 21 19:12:32 v14268 apachectl[23971]: Invalid command 'Alias', perhaps...

View Article

Comment by Florian Diesch on Help adding app to favourites

What do you get if you run the command python3 -c 'from gi.repository import Gio; Gio.DesktopAppInfo.new_from_filename("jmol.desktop").launch(‌​None, None)' (one long line) in the folder where you...

View Article


Answer by Florian Diesch for tar: p: Cannot open: No such file or directory

tar interprets the next argument after -f as the file name of the tar file.Put the p before the f:tar -xvpf file.tar.gz

View Article

Image may be NSFW.
Clik here to view.

Answer by Florian Diesch for Are there any GUI apps that can create .desktop...

Have a look at my project, Arronax:It's available as a plugin for Nautilus and as a standalone application.To install, open a terminal and type:sudo add-apt-repository ppa:diesch/stable sudo apt-get...

View Article


Answer by Florian Diesch for On Ubuntu 20.04 the clipboard is cleared when I...

On Linux the clipboard isn't a place to store data but a way of communication between programs:If a program copies data to the clipboard it actually doesn't copy anything but just registers itself as...

View Article

Answer by Florian Diesch for Why do Filenames created under UTF-8 not match...

The sort order is controlled by the LC_COLLATE category of the locale settings. It doesn't depend on the character encoding.Note that some programs, especially command line programs, may not use the...

View Article


Comment by Florian Diesch on Unable to use sudo apt update

The error isn't in /etc/apt/sources.list but in /etc/apt/sources.list.d/pgdg.list

View Article

Answer by Florian Diesch for how to extract arbitrary amount of bytes from...

Use dd:dd if=big_file of=smaller_file bs=1k count=1

View Article

Answer by Florian Diesch for SETUID not working in my laptop

For security reasons Linux ignores the SUID bit for shell scripts. See for example http://www.faqs.org/faqs/unix-faq/faq/part4/section-7.html for some reasons.So your shell script doesn't run as root...

View Article

Answer by Florian Diesch for very basic isc-dhcp server config issues

You need a ; after option domain-name-servers 192.168.1.1

View Article


Comment by Florian Diesch on Find all programs associated with a MIME type

@Quasímodo Does it work if you change #!/usr/bin/env python3 to #!/usr/bin/python3? If not which Ubuntu version and desktop environment are you using?

View Article


Answer by Florian Diesch for Wrap specific field on each line

You can use \1 to refer to the matching sub-expressions in the regex: sed -Ei 's:^([^ ]+):"<opentag>\1</closetag>":' file

View Article

Answer by Florian Diesch for How to change distribution name (20.04)

lsb_release gets the OS name from the file /usr/lib/os-release.If you want modify this file and want your changes to survive upgrades of the package base-files you need to runsudo dpkg-divert --add...

View Article

Comment by Florian Diesch on Misconfigured system: how to increase swapfile...

Does this answer your question? What are kswapd0, kworker/num:num, ksoftirqd/num?

View Article


Answer by Florian Diesch for How can I assign variables from file into a bash...

Assuming a.file contains your data:while IFS=, read var1 var2 var3; do msg="""\To $var1 You need to buy $var2From $var3""" echo "$msg"done < a.file$IFS is the character that separates your wordsread...

View Article

Answer by Florian Diesch for find command is not able to find piped file

As your file isn't a regular file but a pipe you can't use [ -f ...] or -type f. Use [ -p ... ] opr -type p instead:if [ -p $NETHERMIND_SOCK ]; then ....orsudo find / -type p -name "*.sock" ...

View Article

Answer by Florian Diesch for syntax error: unexpected end of file .bash_profile

There needs to be a semicolon or line break before the fi:if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

View Article

Answer by Florian Diesch for Why is the client-server architecture of...

The X server provides access to display, keyboard and mouse. To do that it needs to run on the machine where the display, keyboard and mouse are connected, just like e.g. a file server needs to run on...

View Article



Comment by Florian Diesch on Software Updates from terminal without sudo

@RayFoss Ubuntu 19.04 reached end-of-live on 2020-01-23. On supported Ubuntu versions aptdaemon is still available

View Article

Comment by Florian Diesch on Desktop launcher - Could not find the program

@Raffa /home/myname/.local/share/applications/ is where user-specific application launcher go.

View Article

Answer by Florian Diesch for Any Windows Manager Controler libraries for...

Have a look at libwnck.API docs for the Python bindings are here, you need to install the package gir1.2-wnck-1.0 to use them.It should be usable with C++, too, but I've never tried that.

View Article

Answer by Florian Diesch for In a .desktop file, what is the "%U" variable?

When the program is launched the file manager or program launcher will expand the %u with a single URL or file path of the thing you are trying to open.See the Freedesktop.org Desktop Entry...

View Article


Comment by Florian Diesch on Why is this .sh script run on CentOS but not on...

@steeldriver Thanks. I've added that to my answer.

View Article

Answer by Florian Diesch for How to automatically install a program bash...

If you set the environment variableCOMMAND_NOT_FOUND_INSTALL_PROMPT to 1, likeexport COMMAND_NOT_FOUND_INSTALL_PROMPT=1you will be ask if you want to install the package:me@myhost:~$ tigerThe program...

View Article

Answer by Florian Diesch for Hardwaretime vs Systemtime

By default Ubuntu expects your hardware clock to run on UTC and calculates your localtime based on that.See How to tell Ubuntu that hardware clock is local time? if you don't want that. Note that in...

View Article


Answer by Florian Diesch for Open port 80 on Ubuntu server

There is no program listening on port 80 so it's closed and you can't connect to it.You can usesudo python -m SimpleHTTPServer 80For Python-3:sudo python3 -m http.server 80to start a simple web server...

View Article


Answer by Florian Diesch for What is the difference between Modify and Change...

"Modify" is the timestamp of the last time the file's content has been modified which is often called "mtime"."Change" is the timestamp of the last time the file's inode has been changed, like by...

View Article

Answer by Florian Diesch for What does 'without password' mean in sshd_config...

From the man page:PermitRootLoginSpecifies whether root can log in using ssh(1). The argument must be “yes”, “without-password”, “forced-commands-only”, or "no”. The default is “yes”.If this option is...

View Article

Answer by Florian Diesch for Reserved UIDs/GIDs and semi-reserverd UIDs/GIDs

The UIDs and GIDs 0-99 are fixed and always the same. They are created by the package base-passwd.The 100-999 are dynamically allocated, usually in the order the users/groups are created on your...

View Article

Answer by Florian Diesch for How to fix "chown: invalid group:" if the user...

Use the numerical UID/GID instead of the user/group name.You can find the UID/GID on the system the disk belongs to by using id some_usernameorls -ln some_filewhere some_file is a file that belongs to...

View Article


Answer by Florian Diesch for What exact purpose do transitional packages have?

They simplify the transition if a package gets renamed:Let's say we have a package called mypackage in the current release. Now for some reasons this packages gets renamed mynewpackage in the next...

View Article

Answer by Florian Diesch for how to include an environment variable in the...

Starter commands usually aren't evaluated by a shell so environment variable don't get evaluated.Use sh -c '$HOME/Desktop/firefox_test.bash'or sh -c 'xdg-open...

View Article

Browsing latest articles
Browse All 107 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>