Sirius' blog

黄沙百战穿金甲,不破楼兰誓不还

💼 Back to categories list

linux

make a arch iso with password and put in your grub

📅 2022-08-29 12:50:42 +0000
折腾了一下定制一个带 root 密码的 arch iso 并且通过 loopback 的方式放进 grub 的方案。虽然在 wiki 上有,不过稍微零散了一点,毕竟折腾了一下就顺便水个 blog。

color terminal background when ssh

📅 2021-01-16 02:16:43 +0000
模仿 volltin 搞了个 ssh 时终端背景颜色变化的配置,调研之后我用的是在 ssh 前后加控制字符的方法(需要终端支持),在 zshrc 中加入如下代码:

some configure experience of mpv

📅 2020-10-10 13:40:08 +0000
一些 mpv 折腾经验 之前音视频播放都是用 mplayer,之前因为一些奇怪的需求发现 mpv 更易定制,于是就用下来了,也折腾了一些配置。

systemd for user and tmux for services

📅 2020-09-18 09:28:06 +0000
用 systemctl --user 管理你的服务 之前在同学的服务器上折腾 teeworlds 服务器的时候由于没有 root,然后又面临不能自动启动的局面,于是想到了 systemd --user。 后来因为机器突然坏了,所以配置都烂在了那台机器里,导致后面再次配置的时候又搞了半天,因此为了避免再出现这种状况,就写个 blog 记录一下。

Tools under Linux

📅 2018-07-21 11:26:09 +0000
This is a post about some good open source tools under Linux. I think it will continue updating because I may find more good tools in my using. About graph processing Gimp Gimp is a powerful tool of graph processing, it includes many functions, I think if you are not very professional, it can replace of Adobe Photoshop. If you are familiar with Photoshop, it is not hard to study it. Inkscape Inkscape is also a powerful tool, but it is for processing vector drawings. You can translate b...

Solution of transfer file between android and Linux

📅 2018-07-17 08:01:11 +0000
Solution of file transfering of multi-device Scheme I Once Used Sometimes, we need to transfer files between computer and cell phone, if we don’t have a good solution, it will be troublesome. USB: Originally, I use USB to connect cell phone with computer, and there will be a MTP device on the computer and be mounted, we can enter the directory and copy files between them. However, because it uses MTP, the speed is very slow, and I need a data line, it’s still troublesome. ...

Use windows software in Linux

📅 2018-07-08 04:38:08 +0000
How to use windows software in Linux? For this kind of situation, I always use software of open-source similar in functions, for example: Adobe PhotoShop -> Gimp Adobe illustrator -> Inkscape MS Office -> Libreoffice … And, some software which use widely have Linux version, such as Matlab, Mathmatica, Xilinx Vivado and so on. So you can download Linux version of them and install directory. However, there are still many software which not have a similar open-source softwa...

Touchpad in linux

📅 2018-07-07 02:44:36 +0000
Touchpad configure in linux Synaptics The driver package of touchpad in Archlinux is xf86-input-synaptics, After installed it, you can adjust the config file /etc/X11/xorg.conf.d/70-synaptics.conf, you can config mapping of gestures of one or two fingers, for example, my configure file is like this: Section "InputClass" Identifier "touchpad" Driver "synaptics" MatchIsTouchpad "on" Option "TapButton2" "1" # tap of two fingers stand for left click Optio...

Compile with older gcc in Archlinux

📅 2018-07-05 02:32:09 +0000
Compile with older gcc in Archlinux Reason I’m an Archlinux user, and because the version of packages in Archlinux are always almost the newest. So when I compile the code written in distros with older gcc, such as Ubuntu, I always fail to compile. For example, when I compile a teeworlds server with mod CSTT, I always got error and it can’t output the binary, but when I compile it in Ubuntu, things got much easier. However, the binary compiled in Ubuntu can’t run in my Archlinux, either (It...

keep a remote process running

📅 2018-03-08 04:09:14 +0000
How to keep a process running when you are in a remote shell like ssh? Sometimes we need to run porgrams in remote shell, such as download, update or other things, but if you quit the shell, the process will be killed, so how to keep it? nohup Linux offered a command called nohup, it will redirect output of your program to a file called nohup.out in your current directory, and you can execute it like this: nohup aria2c $url & you need to add a & to put the process to the backgroud,...

linux tutor for newers

📅 2018-02-12 10:41:52 +0000
A basical tutor to linux using these are based on my personal experience, only for advice mirrors config these are for chinese users, and I chose mirrors of USTC, for help of other mirrors, please check their official website USTC mirrors Archlinux: Arch Linux mirrors help Ubuntu: Ubuntu Linux mirrors help Fedora: Fedora Linux mirrors help basical commands ls: if no arguments, to list all files in the current directory. if argument is directory, list all fil...