Quantcast
Channel: User Tankman六四 - Unix & Linux Stack Exchange
Browsing all 16 articles
Browse latest View live

Comment by Tankman六四 on switch to an existing Terminal Emulator using command...

Thank you. The command I finally used to launch xterm is:xterm -e 'echo $WINDOWID > /tmp/xterm.wid ; bash' and the command to switch to it is xargs wmctrl -i -a < /tmp/xterm.wid

View Article



Comment by Tankman六四 on How to check the life left in SSD or the medium's...

So clear, thank you. This knowledge is best made into a GUI tool utilizing smartctl or its API. Afterall calculating with a calculator by using computer as an input device and human sitting in front of...

View Article

Comment by Tankman六四 on How to check the life left in SSD or the medium's...

How do you know my data is 'precious'? It is just an offline copy of company's knowledgabase to my laptop. I comment to make a point that people assume too often a sysop scenario. Thanks for you...

View Article

Comment by Tankman六四 on SMBFS Mount suddenly stopped working. CIFS error

In my case, I suddenly needed to add sec=ntlm - I am totally sure that I didn't upgarde my Ubuntu, it just start to require that parameter one day.

View Article

Comment by Tankman六四 on How to find the raw keycodes for xkb?

It turns out that in X and in Linux console keycodes are treated very differently. In console, key stroke signals are translated to a Linux keycode map, which is not used in X at all. In X, these key...

View Article


Comment by Tankman六四 on How to get the filename part of a path from a shell...

I found basename easier to read for the next maintainer of my code than the parameter expansions

View Article

switch to an existing Terminal Emulator using command (wmctrl) or shortcut key

It's rather hard to do it. wmctrl needs to know the window title in order to operate on it, but it is damn hard to know the title of any terminal emulator, be it gnome-terminal, rxvt, xterm... Because...

View Article

Answer by Tankman六四 for Shell: how to go to the beginning of line when you...

Ctrl-x-Ctrl-x lets you go to the first character of the line for any readline-compatible environment like Bash, python and mysql. GNU SCREEN safely ignores this. No customized configuration necessary....

View Article


Answer by Tankman六四 for Having trouble exporting FUSE via NFS

Most Linux distributions ship with a kernel that does not allow exporting a FUSE mounted file system using NFSv2 or NFSv3. Your choices are: 1. Implement your file system in kernel space. 2. Export it...

View Article


How to find the raw keycodes for xkb? [duplicate]

This question already has an answer here: How to get keycodes for xmodmap? 6 answers At first glance, it seems /usr/share/X11/xkb/keycodes/ contains the mapping of raw keycodes reported by the device,...

View Article

How can I find a list of card readers that supports blkdiscard

The common answer on the Internet is to read the spec (they never mention it) or know the chipset (hard to know before buying) before buying. Where can I find a list of SD card readers which supports...

View Article

How to get the filename part of a path from a shell variable

A shell variable holds a path. How does one get its filename portion? In bash(1), I experimented and found that I can do it with ."${i/*\///}" where i is the name of the environment variable. Such a...

View Article

Answer by Tankman六四 for Finding the sector size of a partition

One can just use file(1) command and do the math himself. This is works even if you only have an image of the FAT system. For example: $ sudo file -s /dev/sda5 | tr , '\n' /dev/sda5: DOS/MBR boot...

View Article


Answer by Tankman六四 for How do I setup Alpine to connect my Gmail account...

Short answer: you need to set up with Google API and configure alpine to use xoAuth. It will take you a good hour if doing it for the first time.The previous answer, involving enabling "less secure"...

View Article

Answer by Tankman六四 for How is data from a Bluetooth keyboard handled by...

In my case, I think my Bluetooth keyboard (AnnePro2 P1, made in China) is mix designed to work only a few centimetres away from the host device. That is it only works with the laptop-in-front-of-you...

View Article


Answer by Tankman六四 for Script for swapping mouse primary and secondary buttons

As of 2023, you don't need a script. Use input-remapper, since scripts has to be executed everytime when it boots (input-remapper doesn't need to be started every time). More on it is answered here:...

View Article
Browsing all 16 articles
Browse latest View live




Latest Images

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