Is there a way to delete two non-juxtaposed duplicate lines in ed? Posted: 24 Jul 2021 10:31 AM PDT I was looking for a way to delete non-juxtaposed duplicate lines in ed such as, ed is a terminal editor sam is a bitmap editor emacs is a macro editor ed is a terminal editor I am hoping to produce: ed is a terminal editor sam is a bitmap editor emacs is a macro editor |
Unalble to access desktop after Debian install Posted: 24 Jul 2021 10:25 AM PDT This is the first time trying to install Debian (10.10) on this system (including proprietary drivers). Install worked without (apparent) errors, but I am unable to get into the desktop. After booting up I get to a black screen with a pointer. The pointer moves, and it seems to go past the monitor on the left. No menus or icons available to log in and access the desktop. I am able to boot into recovery and access a command line. Sometimes I get a blue screen saver. The system is an old dell laptop (Inspiron N5010). The screen has been removed and I am using an external monitor. Maybe that is the source of the issue, perhaps related to GNOME or Xorg? System was working on the previous Windows 7 install. Any pointers on how to further investigate are appreciated. I am somewhat competent at navigating/using Linux, but not much experience installing/administering it. Let me know of any info/logs that would be useful. Thanks These were grabbed in recovery mode: lspci dmesg |
Get path of directory containing tmux configuration file Posted: 24 Jul 2021 10:00 AM PDT I keep my tmux configuration file in $DOTFILES/tmux and I have a symlink in the home folder pointing to it. But I would like to know how could I get the path to the $DOTFILES/tmux directory from the same tmux configuration file without using the variable $DOTFILES . To get the path from the .zshenv I do: export DOTFILES=$(dirname "$(dirname "$(readlink "${(%):-%N}")")") It should be something similar. |
can iptables/nflog rules be simplified? Posted: 24 Jul 2021 09:28 AM PDT This is my rules about ulogd and iptables, and records are stored in /var/log/ulog/sysloemu.log : iptables -A INPUT -p tcp --sport 1234 -j NFLOG --nflog-prefix 'example block' iptables -A INPUT -p tcp --sport 1234 -j DROP I want to simplify this rules. I have tried this but it doesn't work: iptables -A INPUT -p tcp --sport 1234 --nflog-prefix 'example block' -j DROP out: iptables v1.8.4 (legacy): unknown option "--nflog-prefix" Try `iptables -h' or 'iptables --help' for more information" but ebtables accepts it: ebtables -A INPUT --protocol ipv4 --ip-proto tcp --ip-sport 1234 --nflog-prefix 'example block' -j DROP Is there any way to put NFLOG (--nflog-prefix ) inside the iptables rule so that there is only one line left? PD: Or some other alternative to simplify these rules, except nftables |
libinput -- disable horizontal scrolling Posted: 24 Jul 2021 08:38 AM PDT The Logitech Trackman does not have a scroll wheel so we enable it by installing libinput and this libinput.conf Section "InputClass" Identifier "Marble Mouse" MatchProduct "Logitech USB Trackball" Driver "libinput" Option "ScrollMethod" "button" Option "ScrollButton" "8" Option "MiddleEmulation" "true" EndSection This works well. Combining small-left button with a vertical ball roll scrolls the page vertically but if there is an active horizontal scroll bar the page jitters. A perfectly straight roll requires precise movement and I never need a horizontal scroll. The libinput documentation has this to say Horizontal scrolling Scroll movements provide vertical and horizontal directions, each scroll event contains both directions where applicable, see libinput_event_pointer_get_axis_value(). libinput does not provide separate toggles to enable or disable horizontal scrolling. Instead, horizontal scrolling is always enabled. This is intentional, libinput does not have enough context to know when horizontal scrolling is appropriate for a given widget. The task of filtering horizontal movements is up to the caller. Here's the rub: libinput does not provide separate toggles to enable or disable horizontal scrolling.... The task of filtering horizontal movements is up to the caller. Who is the 'caller' here and how could I configure the caller to drop horizontal movements. |
Installing a package starts installing updates Posted: 24 Jul 2021 08:39 AM PDT So I just installed Fedora 34 and did the following: sudo dnf install powertop However, rather than installing the package, it begins downloading updates. Because I'm using a metered connection, I'd like to simply install that package. Same thing happens with yum . |
Why is `pam_nologin.so` denying access despite no existence of `/etc/nologin`? Posted: 24 Jul 2021 08:21 AM PDT After A lot of searching, I managed to debug a PAM configuration file, and it turns out the pam_nologin.so module was denying access to my system. Now, this is particularly strange since, according to the man page, it should only deny access to non-root users when the /etc/nologin file exists, and this file has never existed on my system (checked with both rm and ls ), as I have verified multiple times throughout this experience. Is there any other condition that could be causing this? |
Unable to search into a pdf with `evince` with the `/` command: it gets written into the terminal window instead Posted: 24 Jul 2021 09:05 AM PDT I used to be able to search into a pdf with evince with the / command. Now when I type /, this gets written into the terminal window. This happens since I tried to install zathura through macports. I wrote the same question in ask different (MacOS stackoverflow portal) but retrospectively I thin that This portal has more experience with those programs What should I do? Many thanks in advance |
How do I set up null-sink and capture to route audio into camilladsp? Posted: 24 Jul 2021 08:05 AM PDT I am trying to set up an assistant on my raspberry pi, but I need the audio to route through camilladsp before it's outputted to my DAC. I figured a pulseaudio null-sink and null-sink capture would be the best/easiest way to do this. (I tried also loopback previously but that was a lot more of a mess). I have set up the null and it is set to the default output, all I need to do now is configure camilladsp to accept the null-sink capture as a capture device, but it is asking for it to be of type: Alsa, File, or Stdin. Any idea how to sort this out, or have an alternative idea for routing the audio through camilladsp? Many thanks, Elliott |
why kali linux accounts gets crashed after shutdown Posted: 24 Jul 2021 07:40 AM PDT This morning i connected my Kali Linux to our work WIFI for first time it has two panels the every time you want to connect you have to enter username and password in second one and system wont pop up the second panel so i used route in terminal took gateway inserted it in browser and connected.after lunch i turned on my system and saw after login my background wont come on instead it keeps using the login page and if i open for example Firefox it will open a little page on top right corner or Vscode will freeze it.Notable with chromium it will work.I deleted lightdm and installed it again nothing changed the i made another account in tty logged in and everything was fine but when i came home and logged in to new account the same thing happened i made new account and it was works fine with this account until I dont power off the system !!!!! |
How can I use the parallel command while getting parameters dynamically from a file? Posted: 24 Jul 2021 09:36 AM PDT Let's say I have a file listing the path of multiple files like the following: /home/user/file1.txt /home/user/file2.txt /home/user/file3.txt /home/user/file4.txt /home/user/file5.txt /home/user/file6.txt /home/user/file7.txt Let's also say that I want to copy those files in parallel 3 by 3. I know that with the command parallel I can execute a specific command in parallel as the following: parallel bash -c "echo hello world" -- 1 2 3 However, this way of running parallel is hardcoded because even if I use a variable inside the quotes, it will only have a fixed parameter. I'd like to execute the parallel command getting parameters dynamically from a file. As an example, let's say I'd like to copy all files from my file running three parallel processes (something like cp "$file" /home/user/samplefolder/ ). How can I do it? Is there any parameter I can use with parallel to accomplish that and get parameters dynamically from a file? |
Fedora upgrade failed, how to rollback Posted: 24 Jul 2021 07:30 AM PDT I just upgraded fedora from 33 to 34 and the installation hung at 92%. After a restart I can log in on the cmdline. If I try to rollback using 'dnf history rollback' it complains that it can't find certain fc33 rpms. What can I do next? |
No longer able to mount NAS using CIFS Posted: 24 Jul 2021 07:54 AM PDT I am following notes made previously on mounting my NAS on my Debian system: sudo mount -t cifs -o user=***,password=***,vers=1.0 //NAS_IP_ADDRESS/NAS_DIR /mnt/NAS This is generating the below error: mount error(95): Operation not supported Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) I remember when I had first mounted my NAS adding vers=1.0 was necessary for it to work. If I now change the version from 1 to 2 the NAS is mounted. sudo mount -t cifs -o user=***,password=***,vers=2.0 //NAS_IP_ADDRESS/NAS_DIR /mnt/NAS However on adding the below line to /etc/fstab and restarting the machine the NAS is no longer mounted: //NAS_IP_ADDRESS/NAS_DIR /mnt/NAS cifs user=***,password=***,vers=2.0,iocharset=utf8,sec=ntlm 0 0 This used to work without fail. What am I doing wrong? |
yum info doesn't update after manual install package Posted: 24 Jul 2021 06:49 AM PDT my libevent installed version is 2.0.12 I install the new version of libevent (v2.1.12) through the following command and everything goes well but after that yum info show libevent version 2.0.12 again. what's wrong with yum? and how can I update yum database? $ wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz $ tar -zxf libevent-*.tar.gz $ cd libevent-*/ $ ./configure --prefix=/usr/local --enable-shared $ sudo make && make install |
Arch Linux: Reinstall all broken packages after poweroff during system upgrade Posted: 24 Jul 2021 08:45 AM PDT There was power failure during system upgrade (pacman -Suy ). So I have a lot of broken packages. They seems to be fixed on reinstall with force overwriting (e.g pacman -S systemd-sysvcompat--overwrite "*" ). So my question is how to apply reinstallation to all broken packages? |
syntax error near else in shell script Posted: 24 Jul 2021 08:00 AM PDT I am trying the below code. In that I am trying to check I get two files in the mentioned directory below, then I want to get completely out of the while loop! But if I have not received the files then it should keep iterating and waiting. But by using this below code I am getting error in the else part. The error is : syntax error near unexpected token else What should I do to fix it? Another question is how do I format my shell script in Visual Studio Code, I do not find any extension for it in VSC. day_of_month=1 export filesdir=/dir1/dir2/dir3 local count=0 numFilesReceived=0 while true; do files=$(find $filesdir -name '*.txt.gz' -type f -mmin -1) if [ "$day_of_month" == "1" ]; then if [ -f "$files" ]; then count=$((count + 1)) break if [ "$numFilesReceived" == "$count" ]; then echo "All $count data received!" break 3 fi fi else echo "No data received yet!" fi fi else rm $files fi done |
Find log filenames that MUST end with any char but not only ".log" Posted: 24 Jul 2021 09:26 AM PDT I need to find all log files older than 5 days and that the filename MUST ends with .log AND any character (i.e. first.log20210701 but not first.log). I tried this command but it shows also ".log" find . -type f -name '*.log*' -mtime +5 Could you help me please? |
Install google chrome in Amazon linux EC2 instance - CentOS Posted: 24 Jul 2021 06:49 AM PDT I am currently facing troubles in installing google chrome/chromium in Amazon EC2 instance. I tried the command, [ec2-user@ip-XXXX yum.repos.d]$ sudo yum install google-chrome-stable Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00:00 http://dl.google.com/linux/chrome/rpm/stable/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. 191 packages excluded due to repository priority protections I have seen any solutions from stack overflow/other sites for this, but I nothing works and getting the same error. Some of them I tried are,
- https://stackoverflow.com/questions/21623131/centos-unable-to-install-chromium-browser
- How to install Google Chrome on CentOS, Red Hat or Fedora
- Unable to install Google Chrome on Linux
It looks like the repository is not found. It is true, as I get the same when I tried to access the link from the browser. As an alternative, I tried downloading the rpm and insatlled, but it seems to be a wrong architecture (but I thought its the same), [ec2-user@ip-XXXX yum.repos.d]$ sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm ...... [ec2-user@ip-XXXX yum.repos.d]$ sudo yum install google-chrome-stable_current_x86_64.rpm Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-92.0.4515.107-1.x86_64 Cannot add package google-chrome-stable_current_x86_64.rpm to transaction. Not a compatible architecture: x86_64 Error: Nothing to do Other information about the OS and repo are, /etc/yum.repos.d/google-chrome.repo [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub Os details [ec2-user@XXXX yum.repos.d]$ uname -m aarch64 ec2-user@XXXX yum.repos.d]$ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" [ec2-user@XXXX yum.repos.d]$ rpm -E %{rhel} 7 Could someone please help on this? |
Why can't "cpulimit" limit chromium browser? Posted: 24 Jul 2021 08:42 AM PDT Due to its high CPU usage i want to limit Chromium web browser by cpulimit and use terminal to run: cpulimit -l 30 -- chromium --incognito but it does not limit CPU usage as expected (i.e. to maximum to 30%). It again uses 100%. Why? What am I doing wrong? |
passing exclude and include file type extensions to grep Posted: 24 Jul 2021 09:56 AM PDT I have two variables, passed as command line arguments to a bash function, containing exclude and include information on file type extension, using comma as delimiter. excl="el" excl="el,htm" incl="texi,org" I want to use excl and incl to parse the exclude and include options for grep . excl="el,htm" incl="texi,org" grep -hir --exclude=\*.{el,htm} --include=\*.{org,texi} "$@" excl="el" incl="texi,org" grep -hir --exclude=\*.el --include=\*.{org,texi} "$@" |
Trouble building PsyDoom for debian buster Posted: 24 Jul 2021 06:50 AM PDT |
yum error and configuration for redhat Posted: 24 Jul 2021 06:51 AM PDT I followed the instructions but it did not work [root@Ready4Use ~]# yum clean metadata Loaded plugins: product-id, search-disabled-repos, subscription-manager Network error code: 400 Cleaning repos: rhel-7-server-rpms rhel-7-server-rt-beta-rpms rhel-7-server-rt-rpms 0 metadata files removed 0 sqlite files removed 0 metadata files removed [root@Ready4Use ~]# yum install rsync Loaded plugins: product-id, search-disabled-repos, subscription-manager Network error code: 400 https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror. I am trying to install rsync on my redhat box i tried yum install rsync but i get [root@Ready4Use yum.repos.d]# yum install rsync Loaded plugins: product-id, search-disabled-repos, subscription-manager Network error code: 400 https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror I checked in the redhat.repo file and there are tons of urls for different repositories example: [root@Ready4Use yum.repos.d]# grep baseurl redhat.repo baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/debug baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/os baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/insights/3/debug baseurl = https://cdn.redhat.com/content/e4s/rhel/server/7/$releasever/$basearch/sap/source/SRPMS baseurl = https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/resilientstorage/debug baseurl = https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/resilientstorage/source/SRPMS baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/11/debug baseurl = https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/x86_64/cdk/2.3/os baseurl = https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhscl/1/source/SRPMS My repolist: [root@Ready4Use yum.repos.d]# yum repolist Loaded plugins: product-id, search-disabled-repos, subscription-manager Network error code: 400 https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror. To address this issue please refer to the below knowledge base article https://access.redhat.com/solutions/69319 If above article doesn't help to resolve this issue please open a ticket with Red Hat Support. https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror. https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rt/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror. https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/rt/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror. repo id repo name status rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 0 rhel-7-server-rt-beta-rpms/x86_64 Red Hat Enterprise Linux for Real Time Beta (RHEL 7 Server) (RPMs) 0 rhel-7-server-rt-rpms/7Server/x86_64 Red Hat Enterprise Linux for Real Time (RHEL 7 Server) (RPMs) 0 repolist: 0 [root@Ready4Use yum.repos.d]# i tried manually going to the url and i do indeed get the same error. Is there some item I need to configure in yum? Thank you. |
shared folder in virtualbox guest debian 10 not showing files from linux mint host Posted: 24 Jul 2021 07:02 AM PDT I believe I have done everything all the manuals have said to get this to work, and have been struggling with it for a few days now. Here are the details of the setup: Host: Linux Mint 18.1 Serena, Ubuntu 5.4.0-6ubuntu1~16.04.4, 4.4.0-53-generic Guest: Debian GNU/Linux 10 (buster), 4.19.0-8-amd64 Virtualbox version: 5.1.38_Ubuntu Guest Editions version: 5.1.38 Guest Editions is installed in the guest, my user is part of the group vboxsf, in the gui of Virtualbox on the host, I selected a folder in the host home directory which I made called MintDebianSharedFolder and selected Auto-Mount, and gave the name to be seen by the guest MintDebianSharedFolder5. Now upon booting the guest (Debian 10): cardamom@ruthenium:~$ sudo ls -la /media/ insgesamt 14 drwxr-xr-x 4 root root 4096 Mär 24 12:41 . drwxr-xr-x 19 root root 4096 Mär 23 14:34 .. lrwxrwxrwx 1 root root 6 Mär 23 13:19 cdrom -> cdrom0 dr-xr-xr-x 6 root root 2048 Mai 9 2018 cdrom0 drwxrwx--- 2 root vboxsf 4096 Mär 24 12:38 sf_MintDebianSharedFolder5 cardamom@ruthenium:~$ sudo ls -la /media/sf_MintDebianSharedFolder5/ insgesamt 8 drwxrwx--- 2 root vboxsf 4096 Mär 24 12:38 . drwxr-xr-x 4 root root 4096 Mär 24 12:41 .. There are in fact 2 files in the corresponding folder on the host - Why are they not showing up in the guest? I created the second one just a moment ago on the host, but it is just not visible in the guest. Here is the output of a few other commands on the Debian 10 guest which may help diagnose: cardamom@ruthenium:~$ df Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf udev 3354284 0 3354284 0% /dev tmpfs 674824 9084 665740 2% /run /dev/sda1 7578488 5697972 1475832 80% / tmpfs 3374108 0 3374108 0% /dev/shm tmpfs 5120 4 5116 1% /run/lock tmpfs 3374108 0 3374108 0% /sys/fs/cgroup tmpfs 674820 20 674800 1% /run/user/1000 /dev/sr0 58214 58214 0 100% /media/cdrom0 cardamom@ruthenium:~$ mount | grep sf sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) cardamom@ruthenium:~$ sudo VBoxControl guestproperty get /VirtualBox/GuestAdd/SharedFolders/MountDir Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 5.1.38 (C) 2008-2018 Oracle Corporation All rights reserved. No value set! cardamom@ruthenium:~$ lsmod | grep vboxguest vboxguest 299008 4 cardamom@ruthenium:~$ cd /opt/VBoxGuestAdditions-*/init cardamom@ruthenium:/opt/VBoxGuestAdditions-5.1.38/init$ ls vboxadd vboxadd-service vboxadd-x11 cardamom@ruthenium:/opt/VBoxGuestAdditions-5.1.38/init$ sudo ./vboxadd setup vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong. vboxadd.sh: Starting the VirtualBox Guest Additions. vboxadd.sh: failed: modprobe vboxsf failed. Any ideas much appreciated |
How to read pdf annotations in Zathura? Posted: 24 Jul 2021 08:09 AM PDT I opened a pdf with annotations (created in evince) with Zathura, and I see the little yellow sign for notes at the right place, but how to open them? It seems that there is a commit about it, but in the man page I can't find a shortcut or command. Is it possible? |
Getting Tightvnc Server Working on Debian 8 (with KDE) Posted: 24 Jul 2021 10:01 AM PDT I have done much research and attempted fixes on this issue, mostly involving tweaking the xstartup file. I've tried alternative VNC clients (UltraVNC and TightVNC) from a Windows 7 computer, with the same results for each client. Basically, I get either a blank grey screen with only an arrow cursor, or a failure to connect at all. I also tried a different VNC server (VNC4server) but abandoned that because, although I could connect, I got an error every time on the client window. And Tightvnc seems more widely used and user-supported. I find that, almost regardless of what I put in the ~/.vnc/xstartup file (for example, even if it has just one line (startkde &) it will work if I specify "root" as the VNC user. But then I'm logged in as root and I need instead to follow standard *nix practice of being logged in as a non-root user. So, the issue does appear to relate to privileges. However, I check for correct ownership and executable flags on files after every time I edit them. I read somewhere that the latest Tightvnc server will not allow KDE desktop to be started if there is already a desktop session running on the host (user logged in), so I start the host machine without anyone logged in. I have configured Tightvnc server as a service. My current xstartup file follows, but like I said, I have already attempted many variants of these lines, commenting out nearly everything, from suggestions gathered on the internet. #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc & # unset DBUS_SESSION_BUS_ADDRESS [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & # x-window-manager & exec startkde & Here is the service file, /lib/systemd/system/tightvncserver.service : [Unit] Description=TightVNC remote desktop server After=sshd.service [Service] Type=dbus ExecStart=/usr/bin/vncserver -geometry 1024x768 -depth 24 :1 User=vnc Type=forking [Install] WantedBy=multi-user.target Here is the log after one reboot of the host followed by one connection attempt: 14/03/16 01:37:46 Xvnc version TightVNC-1.3.9 14/03/16 01:37:46 Copyright (C) 2000-2007 TightVNC Group 14/03/16 01:37:46 Copyright (C) 1999 AT&T Laboratories Cambridge 14/03/16 01:37:46 All Rights Reserved. 14/03/16 01:37:46 See http://www.tightvnc.com/ for information on TightVNC 14/03/16 01:37:46 Desktop name 'X' (test:1) 14/03/16 01:37:46 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t 14/03/16 01:37:46 Listening for VNC connections on TCP port 5901 /home/vnc/.vnc/xstartup: 12: /home/vnc/.vnc/xstartup: vncconfig: not found x-terminal-emulator: Unknown option 'ls'. x-terminal-emulator: Use --help to get a list of available command line options. Error: cannot create directory "/tmp/ksocket-vncw1nXNU": File exists startkde: Starting up... kdeinit4: Aborting. bind() failed: Address already in use Could not bind to socket '/tmp/ksocket-vncGcyXe4/kdeinit4__1' 14/03/16 01:38:09 Got connection from client 192.168.10.10 14/03/16 01:38:09 Using protocol version 3.8 14/03/16 01:38:14 Full-control authentication passed by 192.168.10.10 14/03/16 01:38:14 Pixel format for client 192.168.10.10: 14/03/16 01:38:14 32 bpp, depth 24, little endian 14/03/16 01:38:14 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0 14/03/16 01:38:14 no translation needed 14/03/16 01:38:14 Using hextile encoding for client 192.168.10.10 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding 19 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding 18 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding 17 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding 16 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding 10 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding 9 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding 8 14/03/16 01:38:14 Using compression level 6 for client 192.168.10.10 14/03/16 01:38:14 Enabling full-color cursor updates for client 192.168.10.10 14/03/16 01:38:14 Enabling cursor position updates for client 192.168.10.10 14/03/16 01:38:14 Using image quality level 6 for client 192.168.10.10 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -65530 14/03/16 01:38:14 Enabling LastRect protocol extension for client 192.168.10.10 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -223 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -32768 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -32767 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -32764 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -32766 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -32765 14/03/16 01:38:14 rfbProcessClientNormalMessage: ignoring unknown encoding -1063131698 14/03/16 01:38:43 Client 192.168.10.10 gone 14/03/16 01:38:43 Statistics: 14/03/16 01:38:43 key events received 0, pointer events 260 14/03/16 01:38:43 framebuffer updates 2, rectangles 5, bytes 776789 14/03/16 01:38:43 cursor shape updates 2, bytes 4920 14/03/16 01:38:43 cursor position updates 1, bytes 12 14/03/16 01:38:43 hextile rectangles 2, bytes 771857 14/03/16 01:38:43 raw bytes equivalent 6291480, compression ratio 8.151095 Any ideas? [EDIT, 2014/03/14, 1409 UTC]: I forgot to mention that I had it working error-free with XFCE desktop. But I much prefer KDE, and I wish to get that working if at all possible. [EDIT, 2014/03/14, 2216 UTC]: This is a follow-up to Paul H.'s suggestion, I'm putting it here because the mini-formatting of comments doesn't seem to allow blockquotes and images. Thank you, that got me further. After I give the "startkde &" command, the client window opens with a sensible-looking desktop that is starting to load and gets this far before closing (note the error message in top left): The log is as follows: 14/03/16 21:32:11 Desktop name 'X' (test:1) 14/03/16 21:32:11 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t 14/03/16 21:32:11 Listening for VNC connections on TCP port 5901 QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. 14/03/16 21:32:37 Got connection from client 192.168.10.10 14/03/16 21:32:37 Using protocol version 3.8 14/03/16 21:32:47 Full-control authentication passed by 192.168.10.10 14/03/16 21:32:47 Pixel format for client 192.168.10.10: 14/03/16 21:32:47 32 bpp, depth 24, little endian 14/03/16 21:32:47 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0 14/03/16 21:32:47 no translation needed 14/03/16 21:32:47 Using hextile encoding for client 192.168.10.10 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding 19 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding 18 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding 17 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding 16 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding 10 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding 9 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding 8 14/03/16 21:32:47 Using compression level 6 for client 192.168.10.10 14/03/16 21:32:47 Enabling full-color cursor updates for client 192.168.10.10 14/03/16 21:32:47 Enabling cursor position updates for client 192.168.10.10 14/03/16 21:32:47 Using image quality level 6 for client 192.168.10.10 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -65530 14/03/16 21:32:47 Enabling LastRect protocol extension for client 192.168.10.10 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -223 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -32768 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -32767 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -32764 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -32766 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -32765 14/03/16 21:32:47 rfbProcessClientNormalMessage: ignoring unknown encoding -1063131698 Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. kbuildsycoca4 running... kbuildsycoca4(989) KBuildSycoca::checkTimestamps: checking file timestamps kbuildsycoca4(989) KBuildSycoca::checkTimestamps: timestamps check ok kbuildsycoca4(989) kdemain: Emitting notifyDatabaseChanged () QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QString) Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QString) QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.11' klauncher: Exiting on signal 15 knotify4: Fatal IO error: client killed kded4: Fatal IO error: client killed konsole: Fatal IO error: client killed konsole(902) Konsole::SessionManager::~SessionManager: Konsole SessionManager destroyed with sessions still alive The first error message, ending with "application may misbehave," is supposed to be unimportant, from the bug reports I have seen. The rest, I'm not sure about.. |
AWS CLI - not working in a crontab Posted: 24 Jul 2021 10:20 AM PDT I can run the command aws --version in a script and in the cli. But if I put this command into a crontab it does not work. Crontab: 50 12 * * * aws --version > ~/yolo.swag Error: /bin/sh: 1: aws: not found The aws command is in a bash script. And I get the same error message when I run the script in cron. How can I get the script to run the command fine ? |
Shortcut to minimize all windows? Posted: 24 Jul 2021 10:21 AM PDT In Windows systems, I use the keyboard shortcut Start-D (show desktop) a lot. I'm using Linux Mint, and I wonder: Can I create a keyboard shortcut that will do the same? edit after the comment from Gert van den Berg - if you could explain how to make a short-cut equivalent to Start-M that well do. I think the desktop environment is KDE. |
Setting a name for a screen session Posted: 24 Jul 2021 07:25 AM PDT Is there a way to give a particular name to a unix screen session? For instance, say I'm running the same program multiple times, each with different parameters and I want to tell which one is which. |
No comments:
Post a Comment